Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
480 Mages
Holders
125
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 MagesLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ConjuredLands
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // βββββ βββ βββββ ββββ βββββββββ βββββ // // βββββ ββββ βββββ βββββ βββββββββββ βββββ // // ββββ ββββ ββββ ββββββ ββββ ββββββ ββββββ βββββββββββββ ββββββ ββββ βββ βββββββ ββββββββ ββββββ ββββββββ βββββββ ββββββ ββββββββ // // ββββ ββββ ββββ ββββββββ ββββ ββββββββ βββββββββββββββββββββββ ββββββββ βββββββββββ βββββββ ββββββββββ ββββββββ ββββββββββ ββββββββ ββββββββββββββββββ // // βββββ βββββ βββ ββββββββ ββββ ββββ βββ ββββ ββββ ββββ ββββ ββββ ββββββββ βββββββββββ ββββ ββββ βββ βββββββ ββββ ββββ ββββ ββββββββββββ ββββ βββ // // βββββββββββββββ βββββββ ββββ ββββ βββββββ ββββ ββββ ββββ ββββ βββββββ βββ ββββ ββββ βββ ββββ ββββββββ ββββ ββββ ββββ βββββββββββ ββββ // // βββββ βββββ ββββββββ βββββββββββββ ββββββββ βββββββββ βββββββββββββ βββββββββββ βββββββ βββββ ββββββββββ ββββ ββββββββββββββββββββββ βββββ // // βββ βββ ββββββ βββββ ββββββ ββββββ βββββ βββ βββββ ββββββ βββββββββ βββββ βββββ ββββββββ ββββ βββββ ββββββββ ββββββ βββββ // // βββ ββββ // // ββββββββ // // ββββββ // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./EscrowManagement.sol"; import "./SignedMessages.sol"; import "./TokenSegments.sol"; // we whitelist OpenSea so that minters can save on gas and spend it on NFTs contract OwnableDelegateProxy { } contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract ConjuredLands is ReentrancyGuard, EscrowManagement, ERC721, ERC721Enumerable, Ownable, SignedMessages, TokenSegments { using Strings for uint256; address proxyRegistryAddress; mapping (address => bool) private airdroppers; mapping(address => uint256[]) private burnedTokensByOwners; uint8 public maxNumberOfTokens = 30; address[] public ownersThatBurned; address[20] public premiumOwners; uint256 public tokenPrice = 0.0555 ether; uint256 public premiumTokenPrice = 5.55 ether; uint256 public constant maxSupply = 10888; uint256 public constant maxIndex = 10887; mapping (uint256 => uint256) private tokenCreationBlocknumber; bool public mintingActive = true; bool public burningActive = false; uint8 public premiumMintingSlots = 22; // that's October 19th 2021 folks! uint256 public salesStartTime = 1634839200; mapping (address => uint256) mintingBlockByOwners; mapping(address => uint256) public highestAmountOfMintedTokensByOwners; string private __baseURI; bool baseURIfrozen = false; // generate random index uint256 internal nonce = 19831594194915648; mapping(int8 => uint256[maxSupply]) private alignmentIndices; // the good, the evil and the neutral https://www.youtube.com/watch?v=WCN5JJY_wiA uint16[3] public alignmentMaxSupply; uint16[3] public alignmentTotalSupply; uint16[3] public alignmentFirstIndex; // these are URIs for the custom part, single URLs and segmented baseURIs mapping(uint256 => string) specialTokenURIs; constructor(string memory _name, string memory _symbol, address[] memory _teamMembers, uint8[] memory _splits, address _proxyRegistryAddress) ERC721(_name, _symbol) { // set the team members require(_teamMembers.length == _splits.length, "Wrong team lengths"); if (_teamMembers.length > 0) { uint8 totalSplit = 0; for (uint8 i = 0; i < _teamMembers.length; i++) { EscrowManagement._addTeamMemberSplit(_teamMembers[i], _splits[i]); totalSplit += _splits[i]; } require(totalSplit == 100, "Total split not 100"); } alignmentMaxSupply[0] = 3000; // good alignmentMaxSupply[1] = 3000; // evil alignmentMaxSupply[2] = 4000; // neutral alignmentFirstIndex[0] = 888; // the indexes 0- 887 are reserved for the giveaways alignmentFirstIndex[1] = alignmentFirstIndex[0] + alignmentMaxSupply[0]; alignmentFirstIndex[2] = alignmentFirstIndex[1] + alignmentMaxSupply[1]; // set the deployer of this contract as an issuer of signed messages SignedMessages.setIssuer(msg.sender, true); __baseURI = "ipfs://QmamCw1tks7fpFyDCfGYVQyMkSwtJ39BRGxuA2D37hFME1/"; proxyRegistryAddress = _proxyRegistryAddress; } function _baseURI() internal view override returns(string memory) { return __baseURI; } function setBaseURI(string memory newBaseURI) public onlyOwner(){ require(!baseURIfrozen, "BaseURI frozen"); __baseURI = newBaseURI; } function baseURI() public view returns(string memory){ return __baseURI; } // calling this function locks the possibility to change the baseURI forever function freezeBaseURI() public onlyOwner(){ baseURIfrozen = true; } function tokenURI(uint256 tokenId) public view override returns(string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); // check if token is in a special segment int256 segmentId = TokenSegments.getSegmentId(tokenId); if (segmentId != -1) { // found a segment, get the URI, only return if it is set string memory segmentURI = TokenSegments.getBaseURIBySegmentId(segmentId); if (bytes(segmentURI).length > 0) { return string(abi.encodePacked(segmentURI,tokenId.toString())); } } // check if a special tokenURI is set, otherwise fallback to standard if (bytes(specialTokenURIs[tokenId]).length == 0){ return ERC721.tokenURI(tokenId); } else { // special tokenURI is set return specialTokenURIs[tokenId]; } } function setSpecialTokenURI(uint256 tokenId, string memory newTokenURI) public onlyOwner(){ require(getAlignmentByIndex(tokenId) == -1, "No special token"); specialTokenURIs[tokenId] = newTokenURI; } function setSegmentBaseTokenURIs(uint256 startingIndex, uint256 endingIndex, string memory _URI) public onlyOwner(){ TokenSegments._setSegmentBaseTokenURIs(startingIndex, endingIndex, _URI); } function setBaseURIBySegmentId(int256 pointer, string memory _URI) public onlyOwner(){ TokenSegments._setBaseURIBySegmentId(pointer, _URI); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns(bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } // use this to update the registry address, if a wrong one was passed with the constructor function setProxyRegistryAddress(address _proxyRegistryAddress) public onlyOwner(){ proxyRegistryAddress = _proxyRegistryAddress; } function approveAirdropperContract(address contractAddress, bool approval) public onlyOwner(){ airdroppers[contractAddress] = approval; } function airdropper_allowedCaller(address caller) public view returns(bool){ // only team members can airdrop return (EscrowManagement.teamMembersSplit[caller] > 0); } // used by the external airdropper function airdropper_allowedToken(uint256 tokenId) public view returns(bool){ // only tokens in the giveaway section are allowed for airdrops return (getAlignmentByIndex(tokenId) == -1); } function airdropper_mint(address to, uint256 tokenId) public{ // protect this call - only the airdropper contract can can call this require(airdroppers[msg.sender], "Not an airdropper"); _internalMintById(to, tokenId); } function setIssuerForSignedMessages(address issuer, bool status) public onlyOwner(){ SignedMessages.setIssuer(issuer, status); } function getAlignmentByIndex(uint256 _index) public view returns(int8){ // we take the last one, and loop int8 alignment = -1; // check the boundaries - lower than the first or higher than the last if ((_index < alignmentFirstIndex[0]) || ((_index > alignmentFirstIndex[alignmentFirstIndex.length - 1] + alignmentMaxSupply[alignmentMaxSupply.length - 1] - 1))) { return -1; } for (uint8 ix = 0; ix < alignmentFirstIndex.length; ix++) { if (alignmentFirstIndex[ix] <= _index) { alignment = int8(ix); } } return alignment; } function addTeamMemberSplit(address teamMember, uint8 split) public onlyOwner(){ EscrowManagement._addTeamMemberSplit(teamMember, split); } function getTeamMembers() public onlyOwner view returns(address[] memory){ return EscrowManagement._getTeamMembers(); } function remainingSupply() public view returns(uint256){ // returns the total remainingSupply return maxSupply - totalSupply(); } function remainingSupply(uint8 alignment) public view returns(uint16){ return alignmentMaxSupply[alignment] - alignmentTotalSupply[alignment]; } function salesStarted() public view returns (bool) { return block.timestamp >= salesStartTime; } // set the time from which the sales will be started function setSalesStartTime(uint256 _salesStartTime) public onlyOwner(){ salesStartTime = _salesStartTime; } function flipMintingState() public onlyOwner(){ mintingActive = !mintingActive; } function flipBurningState() public onlyOwner(){ burningActive = !burningActive; } // change the prices for minting function setTokenPrice(uint256 newPrice) public onlyOwner(){ tokenPrice = newPrice; } function setPremiumTokenPrice(uint256 newPremiumPrice) public onlyOwner(){ premiumTokenPrice = newPremiumPrice; } function getRandomId(uint256 _presetIndex, uint8 _alignment) internal returns(uint256){ uint256 totalSize = remainingSupply(_alignment); int8 alignment = int8(_alignment); // allow the caller to preset an index uint256 index; if (_presetIndex == 0) { index = alignmentFirstIndex[uint8(alignment)] + uint256(keccak256(abi.encodePacked(nonce, "ourSaltAndPepper", blockhash(block.number), msg.sender, block.difficulty, block.timestamp, gasleft()))) % totalSize; } else { index = _presetIndex; alignment = getAlignmentByIndex(index); } if (alignment == -1) { // if the index is out of bounds, then exit return 0; } uint256 value = 0; // the indices holds the value for unused index positions // so you never get a collision if (alignmentIndices[alignment][index] != 0) { value = alignmentIndices[alignment][index]; } else { value = index; } // Move last value to the actual position, so if it get taken, you can give back the free one if (alignmentIndices[alignment][totalSize - 1] == 0) { // Array position not initialized, so use that position alignmentIndices[alignment][index] = totalSize - 1; } else { // Array position holds a value so use that alignmentIndices[alignment][index] = alignmentIndices[alignment][totalSize - 1]; } nonce++; return value; } // team members can always mint out of the giveaway section function membersMint(address to, uint256 tokenId) onlyTeamMembers() public{ // can only mint in the non public section require(getAlignmentByIndex(tokenId) == -1, "Token in public section"); _internalMintById(to, tokenId); } // internal minting function by id, can flexibly be called by the external controllers function _internalMintById(address to, uint256 tokenId) internal{ require(tokenId <= maxIndex, "Token out of index"); _safeMint(to, tokenId); getRandomId(tokenId, 0); // consume the index in the alignment, if it was part of the open section int8 alignment = getAlignmentByIndex(tokenId); if (alignment != -1) { alignmentTotalSupply[uint8(alignment)]++; } } // internal minting function via random index, can flexibly be called by the external controllers function _internalMintRandom(address to, uint256 numberOfTokens, uint8 alignment) internal{ require(numberOfTokens <= maxNumberOfTokens, "Max amount exceeded"); for (uint i = 0; i < numberOfTokens; i++) { uint mintIndex = getRandomId(0, alignment); if (alignmentTotalSupply[alignment] < alignmentMaxSupply[alignment]) { _safeMint(to, mintIndex); alignmentTotalSupply[alignment]++; } } if (numberOfTokens > 0) { // this is for preventing getting the id in the same transaction (semaphore) mintingBlockByOwners[msg.sender] = block.number; // keep track of the minting amounts (even is something has been transferred or burned) highestAmountOfMintedTokensByOwners[msg.sender] += numberOfTokens; emit FundsReceived(msg.sender, msg.value, "payment by minting sale"); } } function mint(uint256 numberOfTokens, uint8 alignment) public payable nonReentrant{ require(mintingActive && salesStarted(), "Minting is not active"); require((tokenPrice * numberOfTokens) == msg.value, "Wrong payment"); require(numberOfTokens <= remainingSupply(alignment), "Purchase amount exceeds max supply"); _internalMintRandom(msg.sender, numberOfTokens, alignment); } function premiumMint(uint8 alignment) public payable nonReentrant{ require(mintingActive && salesStarted(), "Minting is not active"); require(premiumMintingSlots>0, "No more premium minting slots"); require(totalSupply()<= maxSupply, "Maximum supply reached"); require(msg.value == premiumTokenPrice, "Wrong payment"); premiumOwners[premiumMintingSlots -1] = msg.sender; premiumMintingSlots--; _internalMintRandom(msg.sender, 1, alignment); } function burn(uint256 tokenId) public nonReentrant{ require(burningActive, "Burning not active."); super._burn(tokenId); // keep track of burners if (burnedTokensByOwners[msg.sender].length == 0){ // first time they burn, add the caller to the list ownersThatBurned.push(msg.sender); } burnedTokensByOwners[msg.sender].push(tokenId); } function getBurnedTokensByOwner(address owner) public view returns(uint256[] memory){ return burnedTokensByOwners[owner]; } event FundsReceived(address from, uint256 amount, string description); // accounting purposes: we need to be able to split the incoming funds between sales and royalty receive() external payable { emit FundsReceived(msg.sender, msg.value, "direct payment, no sale"); } fallback() external payable { emit FundsReceived(msg.sender, msg.value, "direct payment, no sale"); } /* * Functions for handling signed messages * * */ function mintById_SignedMessage(uint256 _tokenId, uint256 _setPrice, uint256 expirationTimestamp, uint256 _nonce, bytes memory _sig) public payable{ // check validity and execute require(expirationTimestamp <= block.timestamp, "Expired"); bytes32 message = SignedMessages.prefixed(keccak256(abi.encodePacked(msg.sender, _tokenId, _setPrice, expirationTimestamp, _nonce))); require(msg.value == _setPrice, "Wrong payment"); require(SignedMessages.consumePass(message, _sig, _nonce), "Error in signed msg"); _internalMintById(msg.sender, _tokenId); if (msg.value > 0) { emit FundsReceived(msg.sender, msg.value, "payment by minting sale"); } } //DAppJS.addSignatureCall('test', 'address', 'uint8', 'uint256', 'uint256', 'uint256','uint256', 'bytes memory'); function mintByAlignment_SignedMessage(uint8 _alignment, uint256 _numberOfTokens, uint256 _maxAmountOfTokens, uint256 _setPrice, uint256 expirationTimestamp, uint256 _nonce, bytes memory _sig) public payable{ // check validity and execute require(expirationTimestamp <= block.timestamp, "Expired"); require(_numberOfTokens <= _maxAmountOfTokens, "Amount too big"); bytes32 message = SignedMessages.prefixed(keccak256(abi.encodePacked(msg.sender, _alignment, _maxAmountOfTokens, _setPrice, expirationTimestamp, _nonce))); require(msg.value == _setPrice * _numberOfTokens, "Wrong payment"); require(SignedMessages.consumePass(message, _sig, _nonce), "Error in signed msg"); _internalMintRandom(msg.sender, _numberOfTokens, _alignment); if (msg.value > 0) { emit FundsReceived(msg.sender, msg.value, "payment by minting sale"); } } function mintAnyAlignment_SignedMessage(uint8 _alignment, uint256 _numberOfTokens, uint256 _maxAmountOfTokens, uint256 _setPrice, uint256 expirationTimestamp, uint256 _nonce, bytes memory _sig) public payable{ // check validity and execute require(expirationTimestamp <= block.timestamp, "Expired"); require(_numberOfTokens <= _maxAmountOfTokens, "Amount too big"); bytes32 message = SignedMessages.prefixed(keccak256(abi.encodePacked(msg.sender, _maxAmountOfTokens, _setPrice, expirationTimestamp, _nonce))); require(msg.value == _setPrice * _numberOfTokens, "Wrong payment"); require(SignedMessages.consumePass(message, _sig, _nonce), "Error in signed msg"); _internalMintRandom(msg.sender, _numberOfTokens, _alignment); if (msg.value > 0) { emit FundsReceived(msg.sender, msg.value, "payment by minting sale"); } } /* * Withdrawal functions */ function withdrawToOwner() public onlyOwner(){ EscrowManagement._withdrawToOwner(owner()); } // these functions are meant to help retrieve ERC721, ERC1155 and ERC20 tokens that have been sent to this contract function withdrawERC721(address _contract, uint256 id, address to) public onlyOwner(){ EscrowManagement._withdrawERC721(_contract, id, to); } function withdrawERC1155(address _contract, uint256[] memory ids, uint256[] memory amounts, address to) public onlyOwner(){ // withdraw a 1155 token EscrowManagement._withdrawERC1155(_contract, ids, amounts, to); } function withdrawERC20(address _contract, address to, uint256 amount) public onlyOwner(){ // withdraw a 20 token EscrowManagement._withdrawERC20(_contract, to, amount); } function balanceOf(address owner) public view override(ERC721) returns (uint256) { return super.balanceOf(owner); } function transferSplitByOwner(address from, address to, uint8 split) public onlyOwner(){ // allow the contract owner to change the split, if anything with withdrawals goes wrong, or a team member loses access to their EOA EscrowManagement._transferSplit(from, to, split); } function tokensOfOwner(address owner) public view returns (uint256[] memory){ // allow this function only after the minting has happened for passed owner require(block.number > mintingBlockByOwners[owner], "Hello @0xnietzsche"); uint256 tokenCount = balanceOf(owner); if (tokenCount == 0) { // The address has no tokens return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 index; for (index = 0; index < tokenCount; index++) { result[index] = tokenOfOwnerByIndex(owner, index); } return result; } } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, ERC1155Receiver) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^ 0.8.0; /* * Manage different baseURIs per tokenSegments. * A segment is defined by a starting and and ending index. * The last added segment that fits a passed ID wins over previous ones. * A segment can be changed back to an empty string. * A segment can be determined by passing a tokenId * */ contract TokenSegments{ string[] segmentBaseURIs; uint256[] tokenSegmentsStartingIndex; uint256[] tokenSegmentsEndingIndex; function _setSegmentBaseTokenURIs(uint256 startingIndex, uint256 endingIndex, string memory _URI) internal{ tokenSegmentsStartingIndex.push(startingIndex); tokenSegmentsEndingIndex.push(endingIndex); segmentBaseURIs.push(_URI); } function getSegmentId(uint256 pointer) public view returns(int256){ // go backwards, so that segments can be overwritten by adding them if (tokenSegmentsStartingIndex.length == 0) { return -1; } for (int256 i = int256(tokenSegmentsStartingIndex.length - 1); i >= 0; i--) { if ((tokenSegmentsStartingIndex[uint256(i)] <= pointer) && (tokenSegmentsEndingIndex[uint256(i)] >= pointer)) { return i; } } return -1; } function getSegmentBaseURI(uint256 tokenId) public view returns(string memory){ int256 segmentId = getSegmentId(tokenId); if (segmentId == -1) { return ""; } return segmentBaseURIs[uint256(segmentId)]; } function getBaseURIBySegmentId(int256 pointer) public view returns(string memory){ return segmentBaseURIs[uint256(pointer)]; } function _setBaseURIBySegmentId(int256 pointer, string memory _URI) internal{ segmentBaseURIs[uint256(pointer)] = _URI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // handles the signed messages contract SignedMessages{ mapping(uint256 => bool) internal nonces; mapping(address => bool) internal issuers; /// builds a prefixed hash to mimic the behavior of eth_sign. function prefixed(bytes32 hash) internal pure returns(bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } function consumePass(bytes32 message, bytes memory sig, uint256 nonce) internal returns(bool){ // check the nonce first if (nonces[nonce]) { return false; } // check the issuer if (!issuers[recoverSigner(message, sig)]) { return false; } // consume the nonce if it is safe nonces[nonce] = true; return true; } function validateNonce(uint256 _nonce) public view returns(bool){ return nonces[_nonce]; } function setIssuer(address issuer, bool status) internal{ issuers[issuer] = status; } function getIssuerStatus(address issuer) public view returns(bool){ return issuers[issuer]; } function recoverSigner(bytes32 _message, bytes memory sig) internal pure returns(address){ uint8 v; bytes32 r; bytes32 s; (v, r, s) = splitSignature(sig); return ecrecover(_message, v, r, s); } function splitSignature(bytes memory sig) internal pure returns(uint8, bytes32, bytes32){ require(sig.length == 65); bytes32 r; bytes32 s; uint8 v; assembly { // first 32 bytes, after the length prefix r:= mload(add(sig, 32)) // second 32 bytes s:= mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v:= byte(0, mload(add(sig, 96))) } return (v, r, s); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; abstract contract ERC1155Interface{ function safeBatchTransferFrom(address from,address to,uint256[] memory ids,uint256[] memory amounts,bytes memory data) public virtual; } abstract contract ERC721Interface{ function safeTransferFrom(address from,address to,uint256 tokenId) public virtual; } abstract contract ERC20Interface{ function transfer(address recipient, uint256 amount) public virtual returns(bool); } contract EscrowManagement is ReentrancyGuard, ERC721Holder, ERC1155Holder{ address[] internal teamMembers; mapping (address => uint8) internal teamMembersSplit; modifier onlyTeamMembers(){ require(teamMembersSplit[msg.sender] > 0, "No team member"); _; } function _getTeamMembers() internal view returns(address[] memory){ return teamMembers; } function getTeamMemberSplit(address teamMember) public view returns(uint8){ return teamMembersSplit[teamMember]; } /* * Escrow and withdrawal functions for decentral team members */ function _addTeamMemberSplit(address teamMember, uint8 split) internal{ require(teamMembersSplit[teamMember] == 0, "Team member already added"); require(split<101, "Split too big"); teamMembers.push(teamMember); teamMembersSplit[teamMember] = split; } function _transferSplit(address from, address to, uint8 split) internal{ // transfer split from one member to another // the caller has to be a team member require(split <= teamMembersSplit[from], "Split too big"); if (teamMembersSplit[to] == 0) { // if to was not yet a team member, then welcome teamMembers.push(to); } teamMembersSplit[from] = teamMembersSplit[from] - split; teamMembersSplit[to] = teamMembersSplit[to] + split; } function transferSplit(address from, address to, uint8 split) public nonReentrant onlyTeamMembers(){ // the from has the be the caller for team members require(msg.sender == from, "Not the sender"); _transferSplit(from, to, split); } // withdraw - pays out the team members by the defined distribution // every call pays out the actual balance to all team members // this function can be called by anyone function withdraw() public nonReentrant{ uint256 balance = address(this).balance; require(balance > 0, "No balance"); uint256 amountOfTeamMembers = teamMembers.length; require(amountOfTeamMembers >0, "0 team members found"); // in order to distribute everything and take care of rests due to the division, the first team members gets the rest // i=1 -> we start with the second member, the first goes after the for bool success; for (uint256 i=1; i<amountOfTeamMembers; i++) { uint256 payoutAmount = balance /100 * teamMembersSplit[teamMembers[i]]; // only payout if amount is positive if (payoutAmount > 0){ (success, ) = (payable(teamMembers[i])).call{value:payoutAmount}(""); //(payable(teamMembers[i])).transfer(payoutAmount); require(success, "Withdraw failed"); } } // payout the rest to first team member (success, ) = (payable(teamMembers[0])).call{value:address(this).balance}(""); //(payable(teamMembers[0])).transfer(address(this).balance); require(success, "Withdraw failed-0"); } // this function is for safety, if no team members have been defined function _withdrawToOwner(address owner) internal{ require(teamMembers.length == 0, "Team members are defined"); (bool success, ) = (payable(owner)).call{value:address(this).balance}(""); //(payable(owner)).transfer(address(this).balance); require(success, "Withdraw failed."); } // these functions are meant to help retrieve ERC721, ERC1155 and ERC20 tokens that have been sent to this contract function _withdrawERC721(address _contract, uint256 id, address to) internal{ // withdraw a 721 token ERC721Interface ERC721Contract = ERC721Interface(_contract); // transfer ownership from this contract to the specified address ERC721Contract.safeTransferFrom(address(this), to,id); } function _withdrawERC1155(address _contract, uint256[] memory ids, uint256[] memory amounts, address to) internal{ // withdraw a 1155 token ERC1155Interface ERC1155Contract = ERC1155Interface(_contract); // transfer ownership from this contract to the specified address ERC1155Contract.safeBatchTransferFrom(address(this),to,ids,amounts,''); } function _withdrawERC20(address _contract, address to, uint256 amount) internal{ // withdraw a 20 token ERC20Interface ERC20Contract = ERC20Interface(_contract); // transfer ownership from this contract to the specified address ERC20Contract.transfer(to, amount); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address[]","name":"_teamMembers","type":"address[]"},{"internalType":"uint8[]","name":"_splits","type":"uint8[]"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"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":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"description","type":"string"}],"name":"FundsReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"teamMember","type":"address"},{"internalType":"uint8","name":"split","type":"uint8"}],"name":"addTeamMemberSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"airdropper_allowedCaller","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"airdropper_allowedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"airdropper_mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"alignmentFirstIndex","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"alignmentMaxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"alignmentTotalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"bool","name":"approval","type":"bool"}],"name":"approveAirdropperContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burningActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipBurningState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintingState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getAlignmentByIndex","outputs":[{"internalType":"int8","name":"","type":"int8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"pointer","type":"int256"}],"name":"getBaseURIBySegmentId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getBurnedTokensByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"issuer","type":"address"}],"name":"getIssuerStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSegmentBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pointer","type":"uint256"}],"name":"getSegmentId","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"teamMember","type":"address"}],"name":"getTeamMemberSplit","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTeamMembers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"highestAmountOfMintedTokensByOwners","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNumberOfTokens","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"membersMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint8","name":"alignment","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_alignment","type":"uint8"},{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"_maxAmountOfTokens","type":"uint256"},{"internalType":"uint256","name":"_setPrice","type":"uint256"},{"internalType":"uint256","name":"expirationTimestamp","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"mintAnyAlignment_SignedMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_alignment","type":"uint8"},{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"_maxAmountOfTokens","type":"uint256"},{"internalType":"uint256","name":"_setPrice","type":"uint256"},{"internalType":"uint256","name":"expirationTimestamp","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"mintByAlignment_SignedMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_setPrice","type":"uint256"},{"internalType":"uint256","name":"expirationTimestamp","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"mintById_SignedMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownersThatBurned","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"alignment","type":"uint8"}],"name":"premiumMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"premiumMintingSlots","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"premiumOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"premiumTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"alignment","type":"uint8"}],"name":"remainingSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"salesStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salesStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"pointer","type":"int256"},{"internalType":"string","name":"_URI","type":"string"}],"name":"setBaseURIBySegmentId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"issuer","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setIssuerForSignedMessages","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPremiumPrice","type":"uint256"}],"name":"setPremiumTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salesStartTime","type":"uint256"}],"name":"setSalesStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startingIndex","type":"uint256"},{"internalType":"uint256","name":"endingIndex","type":"uint256"},{"internalType":"string","name":"_URI","type":"string"}],"name":"setSegmentBaseTokenURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newTokenURI","type":"string"}],"name":"setSpecialTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"split","type":"uint8"}],"name":"transferSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"split","type":"uint8"}],"name":"transferSplitByOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"validateNonce","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawToOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405260168054601e60ff199182161790915566c52cf4b908c000602c55674d058f98476b0000602d55602f805462ffffff191662160001179055636171aaa0603055603480549091169055664674bad75151406035553480156200006557600080fd5b5060405162005e1e38038062005e1e833981016040819052620000889162000720565b6001600055845185908590620000a6906003906020850190620004d5565b508051620000bc906004906020840190620004d5565b505050620000d9620000d36200033960201b60201c565b6200033d565b8151835114620001255760405162461bcd60e51b815260206004820152601260248201527157726f6e67207465616d206c656e6774687360701b60448201526064015b60405180910390fd5b8251156200022f576000805b84518160ff161015620001d75762000193858260ff16815181106200015a576200015a6200084e565b6020026020010151858360ff16815181106200017a576200017a6200084e565b60200260200101516200038f60201b62002e111760201c565b838160ff1681518110620001ab57620001ab6200084e565b602002602001015182620001c091906200087a565b915080620001ce81620008a2565b91505062000131565b508060ff166064146200022d5760405162461bcd60e51b815260206004820152601360248201527f546f74616c2073706c6974206e6f74203130300000000000000000000000000060448201526064016200011c565b505b6037805465ffffffffffff1916650fa00bb80bb81790556039805461037861ffff1990911681179091556200026890610bb890620008c5565b6039805463ffff000019166201000061ffff93841681029190911791829055603754620002a193908290048116929190910416620008c5565b6039805461ffff60201b191664010000000061ffff9390931692909202919091179055620002dd336001620004aa602090811b62002f2817901c565b60405180606001604052806036815260200162005de86036913980516200030d91603391602090910190620004d5565b50601380546001600160a01b0319166001600160a01b0392909216919091179055506200092b92505050565b3390565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526002602052604090205460ff1615620003fa5760405162461bcd60e51b815260206004820152601960248201527f5465616d206d656d62657220616c72656164792061646465640000000000000060448201526064016200011c565b60658160ff16106200043f5760405162461bcd60e51b815260206004820152600d60248201526c53706c697420746f6f2062696760981b60448201526064016200011c565b600180548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b03939093169283179055600091825260026020526040909120805460ff191660ff909216919091179055565b6001600160a01b03919091166000908152600f60205260409020805460ff1916911515919091179055565b828054620004e390620008ee565b90600052602060002090601f01602090048101928262000507576000855562000552565b82601f106200052257805160ff191683800117855562000552565b8280016001018555821562000552579182015b828111156200055257825182559160200191906001019062000535565b506200056092915062000564565b5090565b5b8082111562000560576000815560010162000565565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620005bc57620005bc6200057b565b604052919050565b600082601f830112620005d657600080fd5b81516001600160401b03811115620005f257620005f26200057b565b602062000608601f8301601f1916820162000591565b82815285828487010111156200061d57600080fd5b60005b838110156200063d57858101830151828201840152820162000620565b838111156200064f5760008385840101525b5095945050505050565b60006001600160401b038211156200067557620006756200057b565b5060051b60200190565b80516001600160a01b03811681146200069757600080fd5b919050565b600082601f830112620006ae57600080fd5b81516020620006c7620006c18362000659565b62000591565b82815260059290921b84018101918181019086841115620006e757600080fd5b8286015b848110156200071557805160ff81168114620007075760008081fd5b8352918301918301620006eb565b509695505050505050565b600080600080600060a086880312156200073957600080fd5b85516001600160401b03808211156200075157600080fd5b6200075f89838a01620005c4565b96506020915081880151818111156200077757600080fd5b620007858a828b01620005c4565b9650506040880151818111156200079b57600080fd5b8801601f81018a13620007ad57600080fd5b8051620007be620006c18262000659565b81815260059190911b8201840190848101908c831115620007de57600080fd5b928501925b828410156200080757620007f7846200067f565b82529285019290850190620007e3565b60608c01519098509450505050808211156200082257600080fd5b5062000831888289016200069c565b92505062000842608087016200067f565b90509295509295909350565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168060ff038211156200089a576200089a62000864565b019392505050565b600060ff821660ff811415620008bc57620008bc62000864565b60010192915050565b600061ffff808316818516808303821115620008e557620008e562000864565b01949350505050565b600181811c908216806200090357607f821691505b602082108114156200092557634e487b7160e01b600052602260045260246000fd5b50919050565b6154ad806200093b6000396000f3fe60806040526004361061048b5760003560e01c80636c0360eb11610255578063bc197c8111610144578063da0239a6116100c1578063efded14711610085578063efded14714610e8b578063f23a6e6114610ead578063f2fde38b14610ed9578063f4dbf49514610ef9578063f655ff2214610f19578063fb2f1ffb14610f2e576104b9565b8063da0239a614610e01578063dbd32a9a14610e16578063e7bc820814610e36578063e985e9c514610e4b578063ec86643f14610e6b576104b9565b8063ca65409711610108578063ca65409714610d5b578063cafee7ee14610d8b578063cfe6dd5b14610dab578063d26ea6c014610dcb578063d5abeb0114610deb576104b9565b8063bc197c8114610cbc578063bf37f5d414610ce8578063c0d63c1914610d08578063c4b09ef414610d28578063c87b56dd14610d3b576104b9565b80638667de22116101d2578063a22cb46511610196578063a22cb46514610c24578063ad658ed714610c44578063adfa451f14610c64578063b75ecf1314610c84578063b88d4fde14610c9c576104b9565b80638667de2214610b835780638da5cb5b14610ba357806395d89b4114610bc15780639828dcad14610bd65780639bad0bf314610c0f576104b9565b80637b9f76b5116102195780637b9f76b514610ae05780637bf51a8914610b005780637ff9b59614610b20578063841bde4514610b365780638462151c14610b56576104b9565b80636c0360eb14610a565780636db485d814610a6b57806370a0823114610a8b578063715018a614610aab578063734fad6c14610ac0576104b9565b806331f9c9191161037c5780634f6ccce7116102f957806357861795116102bd57806357861795146109885780635c4c3cad146109a857806360948b1c146109bb5780636352211e146109f6578063663526d314610a165780636a61e5fc14610a36576104b9565b80634f6ccce7146108f557806350bd591114610915578063521c183d14610935578063534e38391461094857806355f804b314610968576104b9565b806342842e0e1161034057806342842e0e1461083c57806342966c681461085c57806343036aa31461087c57806344004cc1146108b55780634c0a5c5c146108d5576104b9565b806331f9c919146107a557806333387e2e146107bf57806339d902d8146107f25780633cb40e16146108125780633ccfd60b14610827576104b9565b8063150b7a021161040a5780631fb8b0a1116103ce5780631fb8b0a1146106fc57806323b872dd1461071c57806327cdcecf1461073c5780632ca869bf1461076f5780632f745c5914610785576104b9565b8063150b7a021461065957806317b8b1f21461069257806318160ddd146106b25780631b54c025146106c75780631c7c2598146106dd576104b9565b8063082a4c2211610451578063082a4c22146105b8578063095ea7b3146105e457806309ad1040146106065780630f69aa781461062657806314a9ecce14610646576104b9565b80622876b1146104d85780623e23c61461051857806301ffc9a71461052e57806306fdde031461055e578063081812fc14610580576104b9565b366104b95760008051602061545883398151915233346040516104af92919061465e565b60405180910390a1005b60008051602061545883398151915233346040516104af92919061465e565b3480156104e457600080fd5b506105056104f33660046146c1565b60326020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561052457600080fd5b50610505602d5481565b34801561053a57600080fd5b5061054e6105493660046146f4565b610f41565b604051901515815260200161050f565b34801561056a57600080fd5b50610573610f52565b60405161050f9190614769565b34801561058c57600080fd5b506105a061059b36600461477c565b610fe4565b6040516001600160a01b03909116815260200161050f565b3480156105c457600080fd5b506016546105d29060ff1681565b60405160ff909116815260200161050f565b3480156105f057600080fd5b506106046105ff366004614795565b61107e565b005b34801561061257600080fd5b506106046106213660046147d7565b611194565b34801561063257600080fd5b5061060461064136600461477c565b6111c9565b6106046106543660046148d3565b6111f8565b34801561066557600080fd5b50610679610674366004614936565b611344565b6040516001600160e01b0319909116815260200161050f565b34801561069e57600080fd5b506106046106ad3660046149a1565b611355565b3480156106be57600080fd5b50600b54610505565b3480156106d357600080fd5b5061050560305481565b3480156106e957600080fd5b50602f5461054e90610100900460ff1681565b34801561070857600080fd5b50610604610717366004614a66565b6113ed565b34801561072857600080fd5b50610604610737366004614aee565b611429565b34801561074857600080fd5b5061075c61075736600461477c565b61145a565b60405161ffff909116815260200161050f565b34801561077b57600080fd5b50610505612a8781565b34801561079157600080fd5b506105056107a0366004614795565b611488565b3480156107b157600080fd5b50602f5461054e9060ff1681565b3480156107cb57600080fd5b506107df6107da36600461477c565b61151e565b60405160009190910b815260200161050f565b3480156107fe57600080fd5b5061060461080d366004614b3d565b611637565b34801561081e57600080fd5b5061060461166f565b34801561083357600080fd5b506106046116b5565b34801561084857600080fd5b50610604610857366004614aee565b61194d565b34801561086857600080fd5b5061060461087736600461477c565b611968565b34801561088857600080fd5b5061054e6108973660046146c1565b6001600160a01b03166000908152600f602052604090205460ff1690565b3480156108c157600080fd5b506106046108d0366004614aee565b611a67565b3480156108e157600080fd5b506105736108f036600461477c565b611a9c565b34801561090157600080fd5b5061050561091036600461477c565b611b79565b34801561092157600080fd5b5061057361093036600461477c565b611c0c565b610604610943366004614b76565b611cbb565b34801561095457600080fd5b5061075c610963366004614bf3565b611df4565b34801561097457600080fd5b50610604610983366004614c0e565b611e60565b34801561099457600080fd5b5061054e6109a336600461477c565b611ee1565b6106046109b6366004614b76565b611efa565b3480156109c757600080fd5b5061054e6109d63660046146c1565b6001600160a01b031660009081526002602052604090205460ff16151590565b348015610a0257600080fd5b506105a0610a1136600461477c565b611fb0565b348015610a2257600080fd5b506105a0610a3136600461477c565b612027565b348015610a4257600080fd5b50610604610a5136600461477c565b612051565b348015610a6257600080fd5b50610573612080565b348015610a7757600080fd5b50610604610a86366004614b3d565b61208f565b348015610a9757600080fd5b50610505610aa63660046146c1565b6120e4565b348015610ab757600080fd5b506106046120ef565b348015610acc57600080fd5b50610604610adb36600461477c565b612123565b348015610aec57600080fd5b50610604610afb366004614c42565b612152565b348015610b0c57600080fd5b50610604610b1b366004614c84565b612187565b348015610b2c57600080fd5b50610505602c5481565b348015610b4257600080fd5b50610604610b513660046149a1565b6121bb565b348015610b6257600080fd5b50610b76610b713660046146c1565b6121ef565b60405161050f9190614cf4565b348015610b8f57600080fd5b50602f546105d29062010000900460ff1681565b348015610baf57600080fd5b50600d546001600160a01b03166105a0565b348015610bcd57600080fd5b5061057361230a565b348015610be257600080fd5b506105d2610bf13660046146c1565b6001600160a01b031660009081526002602052604090205460ff1690565b348015610c1b57600080fd5b50610604612319565b348015610c3057600080fd5b50610604610c3f366004614b3d565b612360565b348015610c5057600080fd5b50610505610c5f36600461477c565b612425565b348015610c7057600080fd5b506105a0610c7f36600461477c565b6124c6565b348015610c9057600080fd5b5060305442101561054e565b348015610ca857600080fd5b50610604610cb7366004614936565b6124e6565b348015610cc857600080fd5b50610679610cd7366004614d07565b63bc197c8160e01b95945050505050565b348015610cf457600080fd5b5061075c610d0336600461477c565b612518565b348015610d1457600080fd5b50610604610d233660046147d7565b612528565b610604610d36366004614bf3565b6125f4565b348015610d4757600080fd5b50610573610d5636600461477c565b6127d5565b348015610d6757600080fd5b5061054e610d7636600461477c565b6000908152600e602052604090205460ff1690565b348015610d9757600080fd5b50610b76610da63660046146c1565b6128b6565b348015610db757600080fd5b5061075c610dc636600461477c565b612921565b348015610dd757600080fd5b50610604610de63660046146c1565b612931565b348015610df757600080fd5b50610505612a8881565b348015610e0d57600080fd5b5061050561297d565b348015610e2257600080fd5b50610604610e31366004614795565b612999565b348015610e4257600080fd5b506106046129f6565b348015610e5757600080fd5b5061054e610e66366004614da7565b612a2f565b348015610e7757600080fd5b50610604610e86366004614dd5565b612afb565b348015610e9757600080fd5b50610ea0612b30565b60405161050f9190614e24565b348015610eb957600080fd5b50610679610ec8366004614e71565b63f23a6e6160e01b95945050505050565b348015610ee557600080fd5b50610604610ef43660046146c1565b612b65565b348015610f0557600080fd5b50610604610f14366004614795565b612c00565b348015610f2557600080fd5b50610604612cac565b610604610f3c366004614ecd565b612cea565b6000610f4c82612f53565b92915050565b606060038054610f6190614ef0565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8d90614ef0565b8015610fda5780601f10610faf57610100808354040283529160200191610fda565b820191906000526020600020905b815481529060010190602001808311610fbd57829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166110625760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061108982611fb0565b9050806001600160a01b0316836001600160a01b031614156110f75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401611059565b336001600160a01b038216148061111357506111138133612a2f565b6111855760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401611059565b61118f8383612f78565b505050565b600d546001600160a01b031633146111be5760405162461bcd60e51b815260040161105990614f25565b61118f838383612fe6565b600d546001600160a01b031633146111f35760405162461bcd60e51b815260040161105990614f25565b603055565b428311156112185760405162461bcd60e51b815260040161105990614f5a565b60006112963387878787604051602001611236959493929190614f7b565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90508434146112b75760405162461bcd60e51b815260040161105990614fad565b6112c2818385613142565b6113045760405162461bcd60e51b81526020600482015260136024820152724572726f7220696e207369676e6564206d736760681b6044820152606401611059565b61130e33876131bc565b341561133c576000805160206154588339815191523334604051611333929190614fd4565b60405180910390a15b505050505050565b630a85bd0160e11b5b949350505050565b600d546001600160a01b0316331461137f5760405162461bcd60e51b815260040161105990614f25565b6113888261151e565b60000b600019146113ce5760405162461bcd60e51b815260206004820152601060248201526f27379039b832b1b4b0b6103a37b5b2b760811b6044820152606401611059565b6000828152603a60209081526040909120825161118f928401906145c5565b600d546001600160a01b031633146114175760405162461bcd60e51b815260040161105990614f25565b61142384848484613291565b50505050565b61143333826132fe565b61144f5760405162461bcd60e51b815260040161105990615022565b61118f8383836133cd565b6038816003811061146a57600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b600061149383613578565b82106114f55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401611059565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b6039546000906000199061ffff168310806115c257506001603761154382600361509f565b6003811061155357611553615073565b601091828204019190066002029054906101000a900461ffff1660396001600361157d919061509f565b6003811061158d5761158d615073565b601091828204019190066002029054906101000a900461ffff166115b191906150b6565b6115bb91906150dc565b61ffff1683115b156115d1575060001992915050565b60005b60038160ff161015611630578360398260ff16600381106115f7576115f7615073565b601091828204019190066002029054906101000a900461ffff1661ffff161161161e578091505b80611628816150ff565b9150506115d4565b5092915050565b600d546001600160a01b031633146116615760405162461bcd60e51b815260040161105990614f25565b61166b8282612f28565b5050565b600d546001600160a01b031633146116995760405162461bcd60e51b815260040161105990614f25565b6116b36116ae600d546001600160a01b031690565b6135ff565b565b600260005414156116d85760405162461bcd60e51b81526004016110599061511f565b600260005547806117185760405162461bcd60e51b815260206004820152600a6024820152694e6f2062616c616e636560b01b6044820152606401611059565b6001548061175f5760405162461bcd60e51b81526020600482015260146024820152730c081d19585b481b595b58995c9cc8199bdd5b9960621b6044820152606401611059565b600060015b8281101561188e576000600260006001848154811061178557611785615073565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff166117b860648761516c565b6117c29190615180565b9050801561187b57600182815481106117dd576117dd615073565b60009182526020822001546040516001600160a01b039091169183919081818185875af1925050503d8060008114611831576040519150601f19603f3d011682016040523d82523d6000602084013e611836565b606091505b5050809350508261187b5760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc819985a5b1959608a1b6044820152606401611059565b50806118868161519f565b915050611764565b5060016000815481106118a3576118a3615073565b60009182526020822001546040516001600160a01b039091169147919081818185875af1925050503d80600081146118f7576040519150601f19603f3d011682016040523d82523d6000602084013e6118fc565b606091505b505080915050806119435760405162461bcd60e51b815260206004820152601160248201527005769746864726177206661696c65642d3607c1b6044820152606401611059565b5050600160005550565b61118f838383604051806020016040528060008152506124e6565b6002600054141561198b5760405162461bcd60e51b81526004016110599061511f565b6002600055602f54610100900460ff166119dd5760405162461bcd60e51b8152602060048201526013602482015272213ab93734b733903737ba1030b1ba34bb329760691b6044820152606401611059565b6119e6816136e5565b33600090815260156020526040902054611a3d57601780546001810182556000919091527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c150180546001600160a01b031916331790555b33600090815260156020908152604082208054600181810183559184529183209091019290925555565b600d546001600160a01b03163314611a915760405162461bcd60e51b815260040161105990614f25565b61118f83838361378c565b60606000611aa983612425565b9050806000191415611acb575050604080516020810190915260008152919050565b60108181548110611ade57611ade615073565b906000526020600020018054611af390614ef0565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1f90614ef0565b8015611b6c5780601f10611b4157610100808354040283529160200191611b6c565b820191906000526020600020905b815481529060010190602001808311611b4f57829003601f168201915b5050505050915050919050565b6000611b84600b5490565b8210611be75760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401611059565b600b8281548110611bfa57611bfa615073565b90600052602060002001549050919050565b606060108281548110611c2157611c21615073565b906000526020600020018054611c3690614ef0565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6290614ef0565b8015611caf5780601f10611c8457610100808354040283529160200191611caf565b820191906000526020600020905b815481529060010190602001808311611c9257829003601f168201915b50505050509050919050565b42831115611cdb5760405162461bcd60e51b815260040161105990614f5a565b84861115611d1c5760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e7420746f6f2062696760901b6044820152606401611059565b6000611d3a3387878787604051602001611236959493929190614f7b565b9050611d468786615180565b3414611d645760405162461bcd60e51b815260040161105990614fad565b611d6f818385613142565b611db15760405162461bcd60e51b81526020600482015260136024820152724572726f7220696e207369676e6564206d736760681b6044820152606401611059565b611dbc33888a613818565b3415611dea576000805160206154588339815191523334604051611de1929190614fd4565b60405180910390a15b5050505050505050565b600060388260ff1660038110611e0c57611e0c615073565b601091828204019190066002029054906101000a900461ffff1660378360ff1660038110611e3c57611e3c615073565b601091828204019190066002029054906101000a900461ffff16610f4c91906150dc565b600d546001600160a01b03163314611e8a5760405162461bcd60e51b815260040161105990614f25565b60345460ff1615611ece5760405162461bcd60e51b815260206004820152600e60248201526d2130b9b2aaa92490333937bd32b760911b6044820152606401611059565b805161166b9060339060208401906145c5565b6000611eec8261151e565b60000b600019149050919050565b42831115611f1a5760405162461bcd60e51b815260040161105990614f5a565b84861115611f5b5760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e7420746f6f2062696760901b6044820152606401611059565b6040516001600160601b03193360601b1660208201526001600160f81b031960f889901b16603482015260358101869052605581018590526075810184905260958101839052600090611d3a9060b501611236565b6000818152600560205260408120546001600160a01b031680610f4c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401611059565b6017818154811061203757600080fd5b6000918252602090912001546001600160a01b0316905081565b600d546001600160a01b0316331461207b5760405162461bcd60e51b815260040161105990614f25565b602c55565b606060338054610f6190614ef0565b600d546001600160a01b031633146120b95760405162461bcd60e51b815260040161105990614f25565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b6000610f4c82613578565b600d546001600160a01b031633146121195760405162461bcd60e51b815260040161105990614f25565b6116b360006139c8565b600d546001600160a01b0316331461214d5760405162461bcd60e51b815260040161105990614f25565b602d55565b600d546001600160a01b0316331461217c5760405162461bcd60e51b815260040161105990614f25565b61118f838383613a1a565b600d546001600160a01b031633146121b15760405162461bcd60e51b815260040161105990614f25565b61166b8282612e11565b600d546001600160a01b031633146121e55760405162461bcd60e51b815260040161105990614f25565b61166b8282613a81565b6001600160a01b038116600090815260316020526040902054606090431161224e5760405162461bcd60e51b815260206004820152601260248201527148656c6c6f204030786e6965747a7363686560701b6044820152606401611059565b6000612259836120e4565b90508061227a5760408051600080825260208201909252905b509392505050565b6000816001600160401b038111156122945761229461481e565b6040519080825280602002602001820160405280156122bd578160200160208202803683370190505b50905060005b82811015612272576122d58582611488565b8282815181106122e7576122e7615073565b6020908102919091010152806122fc8161519f565b9150506122c3565b50919050565b606060048054610f6190614ef0565b600d546001600160a01b031633146123435760405162461bcd60e51b815260040161105990614f25565b602f805461ff001981166101009182900460ff1615909102179055565b6001600160a01b0382163314156123b95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401611059565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6011546000906124385750600019919050565b60115460009061244a9060019061509f565b90505b600081126124bc57826011828154811061246957612469615073565b90600052602060002001541115801561249f5750826012828154811061249157612491615073565b906000526020600020015410155b156124aa5792915050565b806124b4816151ba565b91505061244d565b5060001992915050565b601881601481106124d657600080fd5b01546001600160a01b0316905081565b6124f033836132fe565b61250c5760405162461bcd60e51b815260040161105990615022565b61142384848484613ab2565b6037816003811061146a57600080fd5b6002600054141561254b5760405162461bcd60e51b81526004016110599061511f565b60026000818155338152602091909152604090205460ff166125a05760405162461bcd60e51b815260206004820152600e60248201526d2737903a32b0b69036b2b6b132b960911b6044820152606401611059565b336001600160a01b038416146125e95760405162461bcd60e51b815260206004820152600e60248201526d2737ba103a34329039b2b73232b960911b6044820152606401611059565b611943838383612fe6565b600260005414156126175760405162461bcd60e51b81526004016110599061511f565b6002600055602f5460ff16801561263057506030544210155b6126745760405162461bcd60e51b81526020600482015260156024820152744d696e74696e67206973206e6f742061637469766560581b6044820152606401611059565b602f5462010000900460ff166126cc5760405162461bcd60e51b815260206004820152601d60248201527f4e6f206d6f7265207072656d69756d206d696e74696e6720736c6f74730000006044820152606401611059565b612a886126d8600b5490565b111561271f5760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481cdd5c1c1b1e481c995858da195960521b6044820152606401611059565b602d5434146127405760405162461bcd60e51b815260040161105990614fad565b602f54339060189061275d9060019062010000900460ff166151d8565b60ff166014811061277057612770615073565b0180546001600160a01b0319166001600160a01b0392909216919091179055602f805462010000900460ff169060026127a8836151fb565b91906101000a81548160ff021916908360ff160217905550506127cd33600183613818565b506001600055565b6000818152600560205260409020546060906001600160a01b031661280c5760405162461bcd60e51b815260040161105990615218565b600061281783612425565b9050806000191461286c57600061282d82611c0c565b80519091501561286a578061284185613ae5565b604051602001612852929190615267565b60405160208183030381529060405292505050919050565b505b6000838152603a60205260409020805461288590614ef0565b1515905061289d5761289683613be2565b9392505050565b6000838152603a602052604090208054611af390614ef0565b6001600160a01b038116600090815260156020908152604091829020805483518184028101840190945280845260609392830182828015611caf57602002820191906000526020600020905b8154815260200190600101908083116129025750505050509050919050565b6039816003811061146a57600080fd5b600d546001600160a01b0316331461295b5760405162461bcd60e51b815260040161105990614f25565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6000612988600b5490565b61299490612a8861509f565b905090565b3360009081526014602052604090205460ff166129ec5760405162461bcd60e51b81526020600482015260116024820152702737ba1030b71030b4b9323937b83832b960791b6044820152606401611059565b61166b82826131bc565b600d546001600160a01b03163314612a205760405162461bcd60e51b815260040161105990614f25565b6034805460ff19166001179055565b60135460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015612a7c57600080fd5b505afa158015612a90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab4919061528d565b6001600160a01b03161415612acd576001915050610f4c565b6001600160a01b0380851660009081526008602090815260408083209387168352929052205460ff1661134d565b600d546001600160a01b03163314612b255760405162461bcd60e51b815260040161105990614f25565b61118f838383613c74565b600d546060906001600160a01b03163314612b5d5760405162461bcd60e51b815260040161105990614f25565b612994613d13565b600d546001600160a01b03163314612b8f5760405162461bcd60e51b815260040161105990614f25565b6001600160a01b038116612bf45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611059565b612bfd816139c8565b50565b3360009081526002602052604090205460ff16612c505760405162461bcd60e51b815260206004820152600e60248201526d2737903a32b0b69036b2b6b132b960911b6044820152606401611059565b612c598161151e565b60000b600019146129ec5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20696e207075626c69632073656374696f6e0000000000000000006044820152606401611059565b600d546001600160a01b03163314612cd65760405162461bcd60e51b815260040161105990614f25565b602f805460ff19811660ff90911615179055565b60026000541415612d0d5760405162461bcd60e51b81526004016110599061511f565b6002600055602f5460ff168015612d2657506030544210155b612d6a5760405162461bcd60e51b81526020600482015260156024820152744d696e74696e67206973206e6f742061637469766560581b6044820152606401611059565b3482602c54612d799190615180565b14612d965760405162461bcd60e51b815260040161105990614fad565b612d9f81611df4565b61ffff16821115612dfd5760405162461bcd60e51b815260206004820152602260248201527f507572636861736520616d6f756e742065786365656473206d617820737570706044820152616c7960f01b6064820152608401611059565b612e08338383613818565b50506001600055565b6001600160a01b03821660009081526002602052604090205460ff1615612e7a5760405162461bcd60e51b815260206004820152601960248201527f5465616d206d656d62657220616c7265616479206164646564000000000000006044820152606401611059565b60658160ff1610612ebd5760405162461bcd60e51b815260206004820152600d60248201526c53706c697420746f6f2062696760981b6044820152606401611059565b600180548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b03939093169283179055600091825260026020526040909120805460ff191660ff909216919091179055565b6001600160a01b03919091166000908152600f60205260409020805460ff1916911515919091179055565b60006001600160e01b0319821663780e9d6360e01b1480610f4c5750610f4c82613d74565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612fad82611fb0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03831660009081526002602052604090205460ff90811690821611156130455760405162461bcd60e51b815260206004820152600d60248201526c53706c697420746f6f2062696760981b6044820152606401611059565b6001600160a01b03821660009081526002602052604090205460ff166130b0576001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0384161790555b6001600160a01b0383166000908152600260205260409020546130d790829060ff166151d8565b6001600160a01b03848116600090815260026020526040808220805460ff191660ff95861617905591851681522054613112918391166152aa565b6001600160a01b03929092166000908152600260205260409020805460ff191660ff909316929092179091555050565b6000818152600e602052604081205460ff161561316157506000612896565b600f600061316f8686613db4565b6001600160a01b0316815260208101919091526040016000205460ff1661319857506000612896565b506000818152600e60205260409020805460ff191660019081179091559392505050565b612a878111156132035760405162461bcd60e51b81526020600482015260126024820152710a8ded6cadc40deeae840decc40d2dcc8caf60731b6044820152606401611059565b61320d8282613e33565b613218816000613e4d565b5060006132248261151e565b90508060000b6000191461118f5760388160ff166003811061324857613248615073565b6010918282040191900660020281819054906101000a900461ffff1680929190613271906152cf565b91906101000a81548161ffff021916908361ffff16021790555050505050565b604051631759616b60e11b815284906001600160a01b03821690632eb2c2d6906132c59030908690899089906004016152f1565b600060405180830381600087803b1580156132df57600080fd5b505af11580156132f3573d6000803e3d6000fd5b505050505050505050565b6000818152600560205260408120546001600160a01b03166133775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401611059565b600061338283611fb0565b9050806001600160a01b0316846001600160a01b031614806133bd5750836001600160a01b03166133b284610fe4565b6001600160a01b0316145b8061134d575061134d8185612a2f565b826001600160a01b03166133e082611fb0565b6001600160a01b0316146134485760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401611059565b6001600160a01b0382166134aa5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401611059565b6134b5838383614083565b6134c0600082612f78565b6001600160a01b03831660009081526006602052604081208054600192906134e990849061509f565b90915550506001600160a01b038216600090815260066020526040812080546001929061351790849061534c565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0382166135e35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401611059565b506001600160a01b031660009081526006602052604090205490565b6001541561364f5760405162461bcd60e51b815260206004820152601860248201527f5465616d206d656d626572732061726520646566696e656400000000000000006044820152606401611059565b6000816001600160a01b03164760405160006040518083038185875af1925050503d806000811461369c576040519150601f19603f3d011682016040523d82523d6000602084013e6136a1565b606091505b505090508061166b5760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401611059565b60006136f082611fb0565b90506136fe81600084614083565b613709600083612f78565b6001600160a01b038116600090815260066020526040812080546001929061373290849061509f565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284919082169063a9059cbb90604401602060405180830381600087803b1580156137d957600080fd5b505af11580156137ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138119190615364565b5050505050565b60165460ff168211156138635760405162461bcd60e51b815260206004820152601360248201527213585e08185b5bdd5b9d08195e18d959591959606a1b6044820152606401611059565b60005b8281101561396357600061387b600084613e4d565b905060378360ff166003811061389357613893615073565b601091828204019190066002029054906101000a900461ffff1661ffff1660388460ff16600381106138c7576138c7615073565b601091828204019190066002029054906101000a900461ffff1661ffff161015613950576138f58582613e33565b60388360ff166003811061390b5761390b615073565b6010918282040191900660020281819054906101000a900461ffff1680929190613934906152cf565b91906101000a81548161ffff021916908361ffff160217905550505b508061395b8161519f565b915050613866565b50811561118f5733600090815260316020908152604080832043905560329091528120805484929061399690849061534c565b9091555050604051600080516020615458833981519152906139bb9033903490614fd4565b60405180910390a1505050565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051632142170760e11b81523060048201526001600160a01b038281166024830152604482018490528491908216906342842e0e90606401600060405180830381600087803b158015613a6d57600080fd5b505af1158015611dea573d6000803e3d6000fd5b8060108381548110613a9557613a95615073565b90600052602060002001908051906020019061118f9291906145c5565b613abd8484846133cd565b613ac98484848461408e565b6114235760405162461bcd60e51b815260040161105990615381565b606081613b095750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613b335780613b1d8161519f565b9150613b2c9050600a8361516c565b9150613b0d565b6000816001600160401b03811115613b4d57613b4d61481e565b6040519080825280601f01601f191660200182016040528015613b77576020820181803683370190505b5090505b841561134d57613b8c60018361509f565b9150613b99600a866153d3565b613ba490603061534c565b60f81b818381518110613bb957613bb9615073565b60200101906001600160f81b031916908160001a905350613bdb600a8661516c565b9450613b7b565b6000818152600560205260409020546060906001600160a01b0316613c195760405162461bcd60e51b815260040161105990615218565b6000613c23612080565b90506000815111613c435760405180602001604052806000815250612896565b80613c4d84613ae5565b604051602001613c5e929190615267565b6040516020818303038152906040529392505050565b6011805460018181019092557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801849055601280548083019091557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444018390556010805491820181556000528151611423917f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672019060208401906145c5565b60606001805480602002602001604051908101604052809291908181526020018280548015610fda57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311613d4d575050505050905090565b60006001600160e01b031982166380ac58cd60e01b1480613da557506001600160e01b03198216635b5e139f60e01b145b80610f4c5750610f4c82614198565b600080600080613dc3856141cd565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015613e1e573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b61166b8282604051806020016040528060008152506141fc565b600080613e5983611df4565b61ffff16905082600085613f2c578260355443403344425a6040805160208101979097526f37bab929b0b63a20b7322832b83832b960811b90870152605086019490945260609290921b6001600160601b0319166070850152608484015260a483015260c482015260e4016040516020818303038152906040528051906020012060001c613ee791906153d3565b60398360ff1660038110613efd57613efd615073565b601091828204019190066002029054906101000a900461ffff1661ffff16613f25919061534c565b9050613f3a565b5084613f378161151e565b91505b8160000b6000191415613f535760009350505050610f4c565b600082810b815260366020526040812082612a888110613f7557613f75615073565b015415613fa757600083810b815260366020526040902082612a888110613f9e57613f9e615073565b01549050613faa565b50805b600083810b8152603660205260409020613fc560018661509f565b612a888110613fd657613fd6615073565b015461401057613fe760018561509f565b600084810b815260366020526040902083612a88811061400957614009615073565b0155614063565b600083810b815260366020526040902061402b60018661509f565b612a88811061403c5761403c615073565b0154600084810b815260366020526040902083612a88811061406057614060615073565b01555b603580549060006140738361519f565b9091555090979650505050505050565b61118f83838361422f565b60006001600160a01b0384163b1561419057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906140d29033908990889088906004016153e7565b602060405180830381600087803b1580156140ec57600080fd5b505af192505050801561411c575060408051601f3d908101601f1916820190925261411991810190615424565b60015b614176573d80801561414a576040519150601f19603f3d011682016040523d82523d6000602084013e61414f565b606091505b50805161416e5760405162461bcd60e51b815260040161105990615381565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061134d565b50600161134d565b60006001600160e01b03198216630271189760e51b1480610f4c57506301ffc9a760e01b6001600160e01b0319831614610f4c565b600080600083516041146141e057600080fd5b5050506020810151604082015160609092015160001a92909190565b61420683836142e7565b614213600084848461408e565b61118f5760405162461bcd60e51b815260040161105990615381565b6001600160a01b03831661428a5761428581600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b6142ad565b816001600160a01b0316836001600160a01b0316146142ad576142ad8382614435565b6001600160a01b0382166142c45761118f816144d2565b826001600160a01b0316826001600160a01b03161461118f5761118f8282614581565b6001600160a01b03821661433d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401611059565b6000818152600560205260409020546001600160a01b0316156143a25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611059565b6143ae60008383614083565b6001600160a01b03821660009081526006602052604081208054600192906143d790849061534c565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161444284613578565b61444c919061509f565b6000838152600a602052604090205490915080821461449f576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b546000906144e49060019061509f565b6000838152600c6020526040812054600b805493945090928490811061450c5761450c615073565b9060005260206000200154905080600b838154811061452d5761452d615073565b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b80548061456557614565615441565b6001900381819060005260206000200160009055905550505050565b600061458c83613578565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b8280546145d190614ef0565b90600052602060002090601f0160209004810192826145f35760008555614639565b82601f1061460c57805160ff1916838001178555614639565b82800160010185558215614639579182015b8281111561463957825182559160200191906001019061461e565b50614645929150614649565b5090565b5b80821115614645576000815560010161464a565b6001600160a01b0392909216825260208201526060604082018190526017908201527f646972656374207061796d656e742c206e6f2073616c65000000000000000000608082015260a00190565b6001600160a01b0381168114612bfd57600080fd5b6000602082840312156146d357600080fd5b8135612896816146ac565b6001600160e01b031981168114612bfd57600080fd5b60006020828403121561470657600080fd5b8135612896816146de565b60005b8381101561472c578181015183820152602001614714565b838111156114235750506000910152565b60008151808452614755816020860160208601614711565b601f01601f19169290920160200192915050565b602081526000612896602083018461473d565b60006020828403121561478e57600080fd5b5035919050565b600080604083850312156147a857600080fd5b82356147b3816146ac565b946020939093013593505050565b803560ff811681146147d257600080fd5b919050565b6000806000606084860312156147ec57600080fd5b83356147f7816146ac565b92506020840135614807816146ac565b9150614815604085016147c1565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561485c5761485c61481e565b604052919050565b600082601f83011261487557600080fd5b81356001600160401b0381111561488e5761488e61481e565b6148a1601f8201601f1916602001614834565b8181528460208386010111156148b657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156148eb57600080fd5b8535945060208601359350604086013592506060860135915060808601356001600160401b0381111561491d57600080fd5b61492988828901614864565b9150509295509295909350565b6000806000806080858703121561494c57600080fd5b8435614957816146ac565b93506020850135614967816146ac565b92506040850135915060608501356001600160401b0381111561498957600080fd5b61499587828801614864565b91505092959194509250565b600080604083850312156149b457600080fd5b8235915060208301356001600160401b038111156149d157600080fd5b6149dd85828601614864565b9150509250929050565b600082601f8301126149f857600080fd5b813560206001600160401b03821115614a1357614a1361481e565b8160051b614a22828201614834565b9283528481018201928281019087851115614a3c57600080fd5b83870192505b84831015614a5b57823582529183019190830190614a42565b979650505050505050565b60008060008060808587031215614a7c57600080fd5b8435614a87816146ac565b935060208501356001600160401b0380821115614aa357600080fd5b614aaf888389016149e7565b94506040870135915080821115614ac557600080fd5b50614ad2878288016149e7565b9250506060850135614ae3816146ac565b939692955090935050565b600080600060608486031215614b0357600080fd5b8335614b0e816146ac565b92506020840135614b1e816146ac565b929592945050506040919091013590565b8015158114612bfd57600080fd5b60008060408385031215614b5057600080fd5b8235614b5b816146ac565b91506020830135614b6b81614b2f565b809150509250929050565b600080600080600080600060e0888a031215614b9157600080fd5b614b9a886147c1565b96506020880135955060408801359450606088013593506080880135925060a0880135915060c08801356001600160401b03811115614bd857600080fd5b614be48a828b01614864565b91505092959891949750929550565b600060208284031215614c0557600080fd5b612896826147c1565b600060208284031215614c2057600080fd5b81356001600160401b03811115614c3657600080fd5b61134d84828501614864565b600080600060608486031215614c5757600080fd5b8335614c62816146ac565b9250602084013591506040840135614c79816146ac565b809150509250925092565b60008060408385031215614c9757600080fd5b8235614ca2816146ac565b9150614cb0602084016147c1565b90509250929050565b600081518084526020808501945080840160005b83811015614ce957815187529582019590820190600101614ccd565b509495945050505050565b6020815260006128966020830184614cb9565b600080600080600060a08688031215614d1f57600080fd5b8535614d2a816146ac565b94506020860135614d3a816146ac565b935060408601356001600160401b0380821115614d5657600080fd5b614d6289838a016149e7565b94506060880135915080821115614d7857600080fd5b614d8489838a016149e7565b93506080880135915080821115614d9a57600080fd5b5061492988828901614864565b60008060408385031215614dba57600080fd5b8235614dc5816146ac565b91506020830135614b6b816146ac565b600080600060608486031215614dea57600080fd5b833592506020840135915060408401356001600160401b03811115614e0e57600080fd5b614e1a86828701614864565b9150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015614e655783516001600160a01b031683529284019291840191600101614e40565b50909695505050505050565b600080600080600060a08688031215614e8957600080fd5b8535614e94816146ac565b94506020860135614ea4816146ac565b9350604086013592506060860135915060808601356001600160401b0381111561491d57600080fd5b60008060408385031215614ee057600080fd5b82359150614cb0602084016147c1565b600181811c90821680614f0457607f821691505b6020821081141561230457634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260079082015266115e1c1a5c995960ca1b604082015260600190565b60609590951b6001600160601b0319168552601485019390935260348401919091526054830152607482015260940190565b6020808252600d908201526c15dc9bdb99c81c185e5b595b9d609a1b604082015260600190565b6001600160a01b0392909216825260208201526060604082018190526017908201527f7061796d656e74206279206d696e74696e672073616c65000000000000000000608082015260a00190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156150b1576150b1615089565b500390565b600061ffff8083168185168083038211156150d3576150d3615089565b01949350505050565b600061ffff838116908316818110156150f7576150f7615089565b039392505050565b600060ff821660ff81141561511657615116615089565b60010192915050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601260045260246000fd5b60008261517b5761517b615156565b500490565b600081600019048311821515161561519a5761519a615089565b500290565b60006000198214156151b3576151b3615089565b5060010190565b6000600160ff1b8214156151d0576151d0615089565b506000190190565b600060ff821660ff8416808210156151f2576151f2615089565b90039392505050565b600060ff82168061520e5761520e615089565b6000190192915050565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60008351615279818460208801614711565b8351908301906150d3818360208801614711565b60006020828403121561529f57600080fd5b8151612896816146ac565b600060ff821660ff84168060ff038211156152c7576152c7615089565b019392505050565b600061ffff808316818114156152e7576152e7615089565b6001019392505050565b6001600160a01b0385811682528416602082015260a06040820181905260009061531d90830185614cb9565b828103606084015261532f8185614cb9565b838103608090940193909352505060008152602001949350505050565b6000821982111561535f5761535f615089565b500190565b60006020828403121561537657600080fd5b815161289681614b2f565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826153e2576153e2615156565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061541a9083018461473d565b9695505050505050565b60006020828403121561543657600080fd5b8151612896816146de565b634e487b7160e01b600052603160045260246000fdfe53bd392522b272902b85d06641a5c298f18e160fffff1e84a020e622f7922810a26469706673582212206b825dca1c19228247f47b9b833b53fb78b32ab0d7f671d314a8e1359efc56ea64736f6c63430008090033697066733a2f2f516d616d437731746b73376670467944436647595651794d6b5377744a33394252477875413244333768464d45312f00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000180000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000174d61676573206f6620436f6e6a75726564204c616e647300000000000000000000000000000000000000000000000000000000000000000000000000000000054d616765730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d92a68cabf38bbcc65bccf9ebdfcf8c103e25cf0000000000000000000000000bd0a238036e54c2586aceebb21db70dc9f605fdf000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000022
Deployed Bytecode
0x60806040526004361061048b5760003560e01c80636c0360eb11610255578063bc197c8111610144578063da0239a6116100c1578063efded14711610085578063efded14714610e8b578063f23a6e6114610ead578063f2fde38b14610ed9578063f4dbf49514610ef9578063f655ff2214610f19578063fb2f1ffb14610f2e576104b9565b8063da0239a614610e01578063dbd32a9a14610e16578063e7bc820814610e36578063e985e9c514610e4b578063ec86643f14610e6b576104b9565b8063ca65409711610108578063ca65409714610d5b578063cafee7ee14610d8b578063cfe6dd5b14610dab578063d26ea6c014610dcb578063d5abeb0114610deb576104b9565b8063bc197c8114610cbc578063bf37f5d414610ce8578063c0d63c1914610d08578063c4b09ef414610d28578063c87b56dd14610d3b576104b9565b80638667de22116101d2578063a22cb46511610196578063a22cb46514610c24578063ad658ed714610c44578063adfa451f14610c64578063b75ecf1314610c84578063b88d4fde14610c9c576104b9565b80638667de2214610b835780638da5cb5b14610ba357806395d89b4114610bc15780639828dcad14610bd65780639bad0bf314610c0f576104b9565b80637b9f76b5116102195780637b9f76b514610ae05780637bf51a8914610b005780637ff9b59614610b20578063841bde4514610b365780638462151c14610b56576104b9565b80636c0360eb14610a565780636db485d814610a6b57806370a0823114610a8b578063715018a614610aab578063734fad6c14610ac0576104b9565b806331f9c9191161037c5780634f6ccce7116102f957806357861795116102bd57806357861795146109885780635c4c3cad146109a857806360948b1c146109bb5780636352211e146109f6578063663526d314610a165780636a61e5fc14610a36576104b9565b80634f6ccce7146108f557806350bd591114610915578063521c183d14610935578063534e38391461094857806355f804b314610968576104b9565b806342842e0e1161034057806342842e0e1461083c57806342966c681461085c57806343036aa31461087c57806344004cc1146108b55780634c0a5c5c146108d5576104b9565b806331f9c919146107a557806333387e2e146107bf57806339d902d8146107f25780633cb40e16146108125780633ccfd60b14610827576104b9565b8063150b7a021161040a5780631fb8b0a1116103ce5780631fb8b0a1146106fc57806323b872dd1461071c57806327cdcecf1461073c5780632ca869bf1461076f5780632f745c5914610785576104b9565b8063150b7a021461065957806317b8b1f21461069257806318160ddd146106b25780631b54c025146106c75780631c7c2598146106dd576104b9565b8063082a4c2211610451578063082a4c22146105b8578063095ea7b3146105e457806309ad1040146106065780630f69aa781461062657806314a9ecce14610646576104b9565b80622876b1146104d85780623e23c61461051857806301ffc9a71461052e57806306fdde031461055e578063081812fc14610580576104b9565b366104b95760008051602061545883398151915233346040516104af92919061465e565b60405180910390a1005b60008051602061545883398151915233346040516104af92919061465e565b3480156104e457600080fd5b506105056104f33660046146c1565b60326020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561052457600080fd5b50610505602d5481565b34801561053a57600080fd5b5061054e6105493660046146f4565b610f41565b604051901515815260200161050f565b34801561056a57600080fd5b50610573610f52565b60405161050f9190614769565b34801561058c57600080fd5b506105a061059b36600461477c565b610fe4565b6040516001600160a01b03909116815260200161050f565b3480156105c457600080fd5b506016546105d29060ff1681565b60405160ff909116815260200161050f565b3480156105f057600080fd5b506106046105ff366004614795565b61107e565b005b34801561061257600080fd5b506106046106213660046147d7565b611194565b34801561063257600080fd5b5061060461064136600461477c565b6111c9565b6106046106543660046148d3565b6111f8565b34801561066557600080fd5b50610679610674366004614936565b611344565b6040516001600160e01b0319909116815260200161050f565b34801561069e57600080fd5b506106046106ad3660046149a1565b611355565b3480156106be57600080fd5b50600b54610505565b3480156106d357600080fd5b5061050560305481565b3480156106e957600080fd5b50602f5461054e90610100900460ff1681565b34801561070857600080fd5b50610604610717366004614a66565b6113ed565b34801561072857600080fd5b50610604610737366004614aee565b611429565b34801561074857600080fd5b5061075c61075736600461477c565b61145a565b60405161ffff909116815260200161050f565b34801561077b57600080fd5b50610505612a8781565b34801561079157600080fd5b506105056107a0366004614795565b611488565b3480156107b157600080fd5b50602f5461054e9060ff1681565b3480156107cb57600080fd5b506107df6107da36600461477c565b61151e565b60405160009190910b815260200161050f565b3480156107fe57600080fd5b5061060461080d366004614b3d565b611637565b34801561081e57600080fd5b5061060461166f565b34801561083357600080fd5b506106046116b5565b34801561084857600080fd5b50610604610857366004614aee565b61194d565b34801561086857600080fd5b5061060461087736600461477c565b611968565b34801561088857600080fd5b5061054e6108973660046146c1565b6001600160a01b03166000908152600f602052604090205460ff1690565b3480156108c157600080fd5b506106046108d0366004614aee565b611a67565b3480156108e157600080fd5b506105736108f036600461477c565b611a9c565b34801561090157600080fd5b5061050561091036600461477c565b611b79565b34801561092157600080fd5b5061057361093036600461477c565b611c0c565b610604610943366004614b76565b611cbb565b34801561095457600080fd5b5061075c610963366004614bf3565b611df4565b34801561097457600080fd5b50610604610983366004614c0e565b611e60565b34801561099457600080fd5b5061054e6109a336600461477c565b611ee1565b6106046109b6366004614b76565b611efa565b3480156109c757600080fd5b5061054e6109d63660046146c1565b6001600160a01b031660009081526002602052604090205460ff16151590565b348015610a0257600080fd5b506105a0610a1136600461477c565b611fb0565b348015610a2257600080fd5b506105a0610a3136600461477c565b612027565b348015610a4257600080fd5b50610604610a5136600461477c565b612051565b348015610a6257600080fd5b50610573612080565b348015610a7757600080fd5b50610604610a86366004614b3d565b61208f565b348015610a9757600080fd5b50610505610aa63660046146c1565b6120e4565b348015610ab757600080fd5b506106046120ef565b348015610acc57600080fd5b50610604610adb36600461477c565b612123565b348015610aec57600080fd5b50610604610afb366004614c42565b612152565b348015610b0c57600080fd5b50610604610b1b366004614c84565b612187565b348015610b2c57600080fd5b50610505602c5481565b348015610b4257600080fd5b50610604610b513660046149a1565b6121bb565b348015610b6257600080fd5b50610b76610b713660046146c1565b6121ef565b60405161050f9190614cf4565b348015610b8f57600080fd5b50602f546105d29062010000900460ff1681565b348015610baf57600080fd5b50600d546001600160a01b03166105a0565b348015610bcd57600080fd5b5061057361230a565b348015610be257600080fd5b506105d2610bf13660046146c1565b6001600160a01b031660009081526002602052604090205460ff1690565b348015610c1b57600080fd5b50610604612319565b348015610c3057600080fd5b50610604610c3f366004614b3d565b612360565b348015610c5057600080fd5b50610505610c5f36600461477c565b612425565b348015610c7057600080fd5b506105a0610c7f36600461477c565b6124c6565b348015610c9057600080fd5b5060305442101561054e565b348015610ca857600080fd5b50610604610cb7366004614936565b6124e6565b348015610cc857600080fd5b50610679610cd7366004614d07565b63bc197c8160e01b95945050505050565b348015610cf457600080fd5b5061075c610d0336600461477c565b612518565b348015610d1457600080fd5b50610604610d233660046147d7565b612528565b610604610d36366004614bf3565b6125f4565b348015610d4757600080fd5b50610573610d5636600461477c565b6127d5565b348015610d6757600080fd5b5061054e610d7636600461477c565b6000908152600e602052604090205460ff1690565b348015610d9757600080fd5b50610b76610da63660046146c1565b6128b6565b348015610db757600080fd5b5061075c610dc636600461477c565b612921565b348015610dd757600080fd5b50610604610de63660046146c1565b612931565b348015610df757600080fd5b50610505612a8881565b348015610e0d57600080fd5b5061050561297d565b348015610e2257600080fd5b50610604610e31366004614795565b612999565b348015610e4257600080fd5b506106046129f6565b348015610e5757600080fd5b5061054e610e66366004614da7565b612a2f565b348015610e7757600080fd5b50610604610e86366004614dd5565b612afb565b348015610e9757600080fd5b50610ea0612b30565b60405161050f9190614e24565b348015610eb957600080fd5b50610679610ec8366004614e71565b63f23a6e6160e01b95945050505050565b348015610ee557600080fd5b50610604610ef43660046146c1565b612b65565b348015610f0557600080fd5b50610604610f14366004614795565b612c00565b348015610f2557600080fd5b50610604612cac565b610604610f3c366004614ecd565b612cea565b6000610f4c82612f53565b92915050565b606060038054610f6190614ef0565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8d90614ef0565b8015610fda5780601f10610faf57610100808354040283529160200191610fda565b820191906000526020600020905b815481529060010190602001808311610fbd57829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166110625760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061108982611fb0565b9050806001600160a01b0316836001600160a01b031614156110f75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401611059565b336001600160a01b038216148061111357506111138133612a2f565b6111855760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401611059565b61118f8383612f78565b505050565b600d546001600160a01b031633146111be5760405162461bcd60e51b815260040161105990614f25565b61118f838383612fe6565b600d546001600160a01b031633146111f35760405162461bcd60e51b815260040161105990614f25565b603055565b428311156112185760405162461bcd60e51b815260040161105990614f5a565b60006112963387878787604051602001611236959493929190614f7b565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b90508434146112b75760405162461bcd60e51b815260040161105990614fad565b6112c2818385613142565b6113045760405162461bcd60e51b81526020600482015260136024820152724572726f7220696e207369676e6564206d736760681b6044820152606401611059565b61130e33876131bc565b341561133c576000805160206154588339815191523334604051611333929190614fd4565b60405180910390a15b505050505050565b630a85bd0160e11b5b949350505050565b600d546001600160a01b0316331461137f5760405162461bcd60e51b815260040161105990614f25565b6113888261151e565b60000b600019146113ce5760405162461bcd60e51b815260206004820152601060248201526f27379039b832b1b4b0b6103a37b5b2b760811b6044820152606401611059565b6000828152603a60209081526040909120825161118f928401906145c5565b600d546001600160a01b031633146114175760405162461bcd60e51b815260040161105990614f25565b61142384848484613291565b50505050565b61143333826132fe565b61144f5760405162461bcd60e51b815260040161105990615022565b61118f8383836133cd565b6038816003811061146a57600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b600061149383613578565b82106114f55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401611059565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b6039546000906000199061ffff168310806115c257506001603761154382600361509f565b6003811061155357611553615073565b601091828204019190066002029054906101000a900461ffff1660396001600361157d919061509f565b6003811061158d5761158d615073565b601091828204019190066002029054906101000a900461ffff166115b191906150b6565b6115bb91906150dc565b61ffff1683115b156115d1575060001992915050565b60005b60038160ff161015611630578360398260ff16600381106115f7576115f7615073565b601091828204019190066002029054906101000a900461ffff1661ffff161161161e578091505b80611628816150ff565b9150506115d4565b5092915050565b600d546001600160a01b031633146116615760405162461bcd60e51b815260040161105990614f25565b61166b8282612f28565b5050565b600d546001600160a01b031633146116995760405162461bcd60e51b815260040161105990614f25565b6116b36116ae600d546001600160a01b031690565b6135ff565b565b600260005414156116d85760405162461bcd60e51b81526004016110599061511f565b600260005547806117185760405162461bcd60e51b815260206004820152600a6024820152694e6f2062616c616e636560b01b6044820152606401611059565b6001548061175f5760405162461bcd60e51b81526020600482015260146024820152730c081d19585b481b595b58995c9cc8199bdd5b9960621b6044820152606401611059565b600060015b8281101561188e576000600260006001848154811061178557611785615073565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff166117b860648761516c565b6117c29190615180565b9050801561187b57600182815481106117dd576117dd615073565b60009182526020822001546040516001600160a01b039091169183919081818185875af1925050503d8060008114611831576040519150601f19603f3d011682016040523d82523d6000602084013e611836565b606091505b5050809350508261187b5760405162461bcd60e51b815260206004820152600f60248201526e15da5d1a191c985dc819985a5b1959608a1b6044820152606401611059565b50806118868161519f565b915050611764565b5060016000815481106118a3576118a3615073565b60009182526020822001546040516001600160a01b039091169147919081818185875af1925050503d80600081146118f7576040519150601f19603f3d011682016040523d82523d6000602084013e6118fc565b606091505b505080915050806119435760405162461bcd60e51b815260206004820152601160248201527005769746864726177206661696c65642d3607c1b6044820152606401611059565b5050600160005550565b61118f838383604051806020016040528060008152506124e6565b6002600054141561198b5760405162461bcd60e51b81526004016110599061511f565b6002600055602f54610100900460ff166119dd5760405162461bcd60e51b8152602060048201526013602482015272213ab93734b733903737ba1030b1ba34bb329760691b6044820152606401611059565b6119e6816136e5565b33600090815260156020526040902054611a3d57601780546001810182556000919091527fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c150180546001600160a01b031916331790555b33600090815260156020908152604082208054600181810183559184529183209091019290925555565b600d546001600160a01b03163314611a915760405162461bcd60e51b815260040161105990614f25565b61118f83838361378c565b60606000611aa983612425565b9050806000191415611acb575050604080516020810190915260008152919050565b60108181548110611ade57611ade615073565b906000526020600020018054611af390614ef0565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1f90614ef0565b8015611b6c5780601f10611b4157610100808354040283529160200191611b6c565b820191906000526020600020905b815481529060010190602001808311611b4f57829003601f168201915b5050505050915050919050565b6000611b84600b5490565b8210611be75760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401611059565b600b8281548110611bfa57611bfa615073565b90600052602060002001549050919050565b606060108281548110611c2157611c21615073565b906000526020600020018054611c3690614ef0565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6290614ef0565b8015611caf5780601f10611c8457610100808354040283529160200191611caf565b820191906000526020600020905b815481529060010190602001808311611c9257829003601f168201915b50505050509050919050565b42831115611cdb5760405162461bcd60e51b815260040161105990614f5a565b84861115611d1c5760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e7420746f6f2062696760901b6044820152606401611059565b6000611d3a3387878787604051602001611236959493929190614f7b565b9050611d468786615180565b3414611d645760405162461bcd60e51b815260040161105990614fad565b611d6f818385613142565b611db15760405162461bcd60e51b81526020600482015260136024820152724572726f7220696e207369676e6564206d736760681b6044820152606401611059565b611dbc33888a613818565b3415611dea576000805160206154588339815191523334604051611de1929190614fd4565b60405180910390a15b5050505050505050565b600060388260ff1660038110611e0c57611e0c615073565b601091828204019190066002029054906101000a900461ffff1660378360ff1660038110611e3c57611e3c615073565b601091828204019190066002029054906101000a900461ffff16610f4c91906150dc565b600d546001600160a01b03163314611e8a5760405162461bcd60e51b815260040161105990614f25565b60345460ff1615611ece5760405162461bcd60e51b815260206004820152600e60248201526d2130b9b2aaa92490333937bd32b760911b6044820152606401611059565b805161166b9060339060208401906145c5565b6000611eec8261151e565b60000b600019149050919050565b42831115611f1a5760405162461bcd60e51b815260040161105990614f5a565b84861115611f5b5760405162461bcd60e51b815260206004820152600e60248201526d416d6f756e7420746f6f2062696760901b6044820152606401611059565b6040516001600160601b03193360601b1660208201526001600160f81b031960f889901b16603482015260358101869052605581018590526075810184905260958101839052600090611d3a9060b501611236565b6000818152600560205260408120546001600160a01b031680610f4c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401611059565b6017818154811061203757600080fd5b6000918252602090912001546001600160a01b0316905081565b600d546001600160a01b0316331461207b5760405162461bcd60e51b815260040161105990614f25565b602c55565b606060338054610f6190614ef0565b600d546001600160a01b031633146120b95760405162461bcd60e51b815260040161105990614f25565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b6000610f4c82613578565b600d546001600160a01b031633146121195760405162461bcd60e51b815260040161105990614f25565b6116b360006139c8565b600d546001600160a01b0316331461214d5760405162461bcd60e51b815260040161105990614f25565b602d55565b600d546001600160a01b0316331461217c5760405162461bcd60e51b815260040161105990614f25565b61118f838383613a1a565b600d546001600160a01b031633146121b15760405162461bcd60e51b815260040161105990614f25565b61166b8282612e11565b600d546001600160a01b031633146121e55760405162461bcd60e51b815260040161105990614f25565b61166b8282613a81565b6001600160a01b038116600090815260316020526040902054606090431161224e5760405162461bcd60e51b815260206004820152601260248201527148656c6c6f204030786e6965747a7363686560701b6044820152606401611059565b6000612259836120e4565b90508061227a5760408051600080825260208201909252905b509392505050565b6000816001600160401b038111156122945761229461481e565b6040519080825280602002602001820160405280156122bd578160200160208202803683370190505b50905060005b82811015612272576122d58582611488565b8282815181106122e7576122e7615073565b6020908102919091010152806122fc8161519f565b9150506122c3565b50919050565b606060048054610f6190614ef0565b600d546001600160a01b031633146123435760405162461bcd60e51b815260040161105990614f25565b602f805461ff001981166101009182900460ff1615909102179055565b6001600160a01b0382163314156123b95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401611059565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6011546000906124385750600019919050565b60115460009061244a9060019061509f565b90505b600081126124bc57826011828154811061246957612469615073565b90600052602060002001541115801561249f5750826012828154811061249157612491615073565b906000526020600020015410155b156124aa5792915050565b806124b4816151ba565b91505061244d565b5060001992915050565b601881601481106124d657600080fd5b01546001600160a01b0316905081565b6124f033836132fe565b61250c5760405162461bcd60e51b815260040161105990615022565b61142384848484613ab2565b6037816003811061146a57600080fd5b6002600054141561254b5760405162461bcd60e51b81526004016110599061511f565b60026000818155338152602091909152604090205460ff166125a05760405162461bcd60e51b815260206004820152600e60248201526d2737903a32b0b69036b2b6b132b960911b6044820152606401611059565b336001600160a01b038416146125e95760405162461bcd60e51b815260206004820152600e60248201526d2737ba103a34329039b2b73232b960911b6044820152606401611059565b611943838383612fe6565b600260005414156126175760405162461bcd60e51b81526004016110599061511f565b6002600055602f5460ff16801561263057506030544210155b6126745760405162461bcd60e51b81526020600482015260156024820152744d696e74696e67206973206e6f742061637469766560581b6044820152606401611059565b602f5462010000900460ff166126cc5760405162461bcd60e51b815260206004820152601d60248201527f4e6f206d6f7265207072656d69756d206d696e74696e6720736c6f74730000006044820152606401611059565b612a886126d8600b5490565b111561271f5760405162461bcd60e51b815260206004820152601660248201527513585e1a5b5d5b481cdd5c1c1b1e481c995858da195960521b6044820152606401611059565b602d5434146127405760405162461bcd60e51b815260040161105990614fad565b602f54339060189061275d9060019062010000900460ff166151d8565b60ff166014811061277057612770615073565b0180546001600160a01b0319166001600160a01b0392909216919091179055602f805462010000900460ff169060026127a8836151fb565b91906101000a81548160ff021916908360ff160217905550506127cd33600183613818565b506001600055565b6000818152600560205260409020546060906001600160a01b031661280c5760405162461bcd60e51b815260040161105990615218565b600061281783612425565b9050806000191461286c57600061282d82611c0c565b80519091501561286a578061284185613ae5565b604051602001612852929190615267565b60405160208183030381529060405292505050919050565b505b6000838152603a60205260409020805461288590614ef0565b1515905061289d5761289683613be2565b9392505050565b6000838152603a602052604090208054611af390614ef0565b6001600160a01b038116600090815260156020908152604091829020805483518184028101840190945280845260609392830182828015611caf57602002820191906000526020600020905b8154815260200190600101908083116129025750505050509050919050565b6039816003811061146a57600080fd5b600d546001600160a01b0316331461295b5760405162461bcd60e51b815260040161105990614f25565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6000612988600b5490565b61299490612a8861509f565b905090565b3360009081526014602052604090205460ff166129ec5760405162461bcd60e51b81526020600482015260116024820152702737ba1030b71030b4b9323937b83832b960791b6044820152606401611059565b61166b82826131bc565b600d546001600160a01b03163314612a205760405162461bcd60e51b815260040161105990614f25565b6034805460ff19166001179055565b60135460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015612a7c57600080fd5b505afa158015612a90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab4919061528d565b6001600160a01b03161415612acd576001915050610f4c565b6001600160a01b0380851660009081526008602090815260408083209387168352929052205460ff1661134d565b600d546001600160a01b03163314612b255760405162461bcd60e51b815260040161105990614f25565b61118f838383613c74565b600d546060906001600160a01b03163314612b5d5760405162461bcd60e51b815260040161105990614f25565b612994613d13565b600d546001600160a01b03163314612b8f5760405162461bcd60e51b815260040161105990614f25565b6001600160a01b038116612bf45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611059565b612bfd816139c8565b50565b3360009081526002602052604090205460ff16612c505760405162461bcd60e51b815260206004820152600e60248201526d2737903a32b0b69036b2b6b132b960911b6044820152606401611059565b612c598161151e565b60000b600019146129ec5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20696e207075626c69632073656374696f6e0000000000000000006044820152606401611059565b600d546001600160a01b03163314612cd65760405162461bcd60e51b815260040161105990614f25565b602f805460ff19811660ff90911615179055565b60026000541415612d0d5760405162461bcd60e51b81526004016110599061511f565b6002600055602f5460ff168015612d2657506030544210155b612d6a5760405162461bcd60e51b81526020600482015260156024820152744d696e74696e67206973206e6f742061637469766560581b6044820152606401611059565b3482602c54612d799190615180565b14612d965760405162461bcd60e51b815260040161105990614fad565b612d9f81611df4565b61ffff16821115612dfd5760405162461bcd60e51b815260206004820152602260248201527f507572636861736520616d6f756e742065786365656473206d617820737570706044820152616c7960f01b6064820152608401611059565b612e08338383613818565b50506001600055565b6001600160a01b03821660009081526002602052604090205460ff1615612e7a5760405162461bcd60e51b815260206004820152601960248201527f5465616d206d656d62657220616c7265616479206164646564000000000000006044820152606401611059565b60658160ff1610612ebd5760405162461bcd60e51b815260206004820152600d60248201526c53706c697420746f6f2062696760981b6044820152606401611059565b600180548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b03939093169283179055600091825260026020526040909120805460ff191660ff909216919091179055565b6001600160a01b03919091166000908152600f60205260409020805460ff1916911515919091179055565b60006001600160e01b0319821663780e9d6360e01b1480610f4c5750610f4c82613d74565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612fad82611fb0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03831660009081526002602052604090205460ff90811690821611156130455760405162461bcd60e51b815260206004820152600d60248201526c53706c697420746f6f2062696760981b6044820152606401611059565b6001600160a01b03821660009081526002602052604090205460ff166130b0576001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0319166001600160a01b0384161790555b6001600160a01b0383166000908152600260205260409020546130d790829060ff166151d8565b6001600160a01b03848116600090815260026020526040808220805460ff191660ff95861617905591851681522054613112918391166152aa565b6001600160a01b03929092166000908152600260205260409020805460ff191660ff909316929092179091555050565b6000818152600e602052604081205460ff161561316157506000612896565b600f600061316f8686613db4565b6001600160a01b0316815260208101919091526040016000205460ff1661319857506000612896565b506000818152600e60205260409020805460ff191660019081179091559392505050565b612a878111156132035760405162461bcd60e51b81526020600482015260126024820152710a8ded6cadc40deeae840decc40d2dcc8caf60731b6044820152606401611059565b61320d8282613e33565b613218816000613e4d565b5060006132248261151e565b90508060000b6000191461118f5760388160ff166003811061324857613248615073565b6010918282040191900660020281819054906101000a900461ffff1680929190613271906152cf565b91906101000a81548161ffff021916908361ffff16021790555050505050565b604051631759616b60e11b815284906001600160a01b03821690632eb2c2d6906132c59030908690899089906004016152f1565b600060405180830381600087803b1580156132df57600080fd5b505af11580156132f3573d6000803e3d6000fd5b505050505050505050565b6000818152600560205260408120546001600160a01b03166133775760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401611059565b600061338283611fb0565b9050806001600160a01b0316846001600160a01b031614806133bd5750836001600160a01b03166133b284610fe4565b6001600160a01b0316145b8061134d575061134d8185612a2f565b826001600160a01b03166133e082611fb0565b6001600160a01b0316146134485760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401611059565b6001600160a01b0382166134aa5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401611059565b6134b5838383614083565b6134c0600082612f78565b6001600160a01b03831660009081526006602052604081208054600192906134e990849061509f565b90915550506001600160a01b038216600090815260066020526040812080546001929061351790849061534c565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0382166135e35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401611059565b506001600160a01b031660009081526006602052604090205490565b6001541561364f5760405162461bcd60e51b815260206004820152601860248201527f5465616d206d656d626572732061726520646566696e656400000000000000006044820152606401611059565b6000816001600160a01b03164760405160006040518083038185875af1925050503d806000811461369c576040519150601f19603f3d011682016040523d82523d6000602084013e6136a1565b606091505b505090508061166b5760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401611059565b60006136f082611fb0565b90506136fe81600084614083565b613709600083612f78565b6001600160a01b038116600090815260066020526040812080546001929061373290849061509f565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284919082169063a9059cbb90604401602060405180830381600087803b1580156137d957600080fd5b505af11580156137ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138119190615364565b5050505050565b60165460ff168211156138635760405162461bcd60e51b815260206004820152601360248201527213585e08185b5bdd5b9d08195e18d959591959606a1b6044820152606401611059565b60005b8281101561396357600061387b600084613e4d565b905060378360ff166003811061389357613893615073565b601091828204019190066002029054906101000a900461ffff1661ffff1660388460ff16600381106138c7576138c7615073565b601091828204019190066002029054906101000a900461ffff1661ffff161015613950576138f58582613e33565b60388360ff166003811061390b5761390b615073565b6010918282040191900660020281819054906101000a900461ffff1680929190613934906152cf565b91906101000a81548161ffff021916908361ffff160217905550505b508061395b8161519f565b915050613866565b50811561118f5733600090815260316020908152604080832043905560329091528120805484929061399690849061534c565b9091555050604051600080516020615458833981519152906139bb9033903490614fd4565b60405180910390a1505050565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051632142170760e11b81523060048201526001600160a01b038281166024830152604482018490528491908216906342842e0e90606401600060405180830381600087803b158015613a6d57600080fd5b505af1158015611dea573d6000803e3d6000fd5b8060108381548110613a9557613a95615073565b90600052602060002001908051906020019061118f9291906145c5565b613abd8484846133cd565b613ac98484848461408e565b6114235760405162461bcd60e51b815260040161105990615381565b606081613b095750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613b335780613b1d8161519f565b9150613b2c9050600a8361516c565b9150613b0d565b6000816001600160401b03811115613b4d57613b4d61481e565b6040519080825280601f01601f191660200182016040528015613b77576020820181803683370190505b5090505b841561134d57613b8c60018361509f565b9150613b99600a866153d3565b613ba490603061534c565b60f81b818381518110613bb957613bb9615073565b60200101906001600160f81b031916908160001a905350613bdb600a8661516c565b9450613b7b565b6000818152600560205260409020546060906001600160a01b0316613c195760405162461bcd60e51b815260040161105990615218565b6000613c23612080565b90506000815111613c435760405180602001604052806000815250612896565b80613c4d84613ae5565b604051602001613c5e929190615267565b6040516020818303038152906040529392505050565b6011805460018181019092557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c6801849055601280548083019091557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444018390556010805491820181556000528151611423917f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672019060208401906145c5565b60606001805480602002602001604051908101604052809291908181526020018280548015610fda57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311613d4d575050505050905090565b60006001600160e01b031982166380ac58cd60e01b1480613da557506001600160e01b03198216635b5e139f60e01b145b80610f4c5750610f4c82614198565b600080600080613dc3856141cd565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015613e1e573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b61166b8282604051806020016040528060008152506141fc565b600080613e5983611df4565b61ffff16905082600085613f2c578260355443403344425a6040805160208101979097526f37bab929b0b63a20b7322832b83832b960811b90870152605086019490945260609290921b6001600160601b0319166070850152608484015260a483015260c482015260e4016040516020818303038152906040528051906020012060001c613ee791906153d3565b60398360ff1660038110613efd57613efd615073565b601091828204019190066002029054906101000a900461ffff1661ffff16613f25919061534c565b9050613f3a565b5084613f378161151e565b91505b8160000b6000191415613f535760009350505050610f4c565b600082810b815260366020526040812082612a888110613f7557613f75615073565b015415613fa757600083810b815260366020526040902082612a888110613f9e57613f9e615073565b01549050613faa565b50805b600083810b8152603660205260409020613fc560018661509f565b612a888110613fd657613fd6615073565b015461401057613fe760018561509f565b600084810b815260366020526040902083612a88811061400957614009615073565b0155614063565b600083810b815260366020526040902061402b60018661509f565b612a88811061403c5761403c615073565b0154600084810b815260366020526040902083612a88811061406057614060615073565b01555b603580549060006140738361519f565b9091555090979650505050505050565b61118f83838361422f565b60006001600160a01b0384163b1561419057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906140d29033908990889088906004016153e7565b602060405180830381600087803b1580156140ec57600080fd5b505af192505050801561411c575060408051601f3d908101601f1916820190925261411991810190615424565b60015b614176573d80801561414a576040519150601f19603f3d011682016040523d82523d6000602084013e61414f565b606091505b50805161416e5760405162461bcd60e51b815260040161105990615381565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061134d565b50600161134d565b60006001600160e01b03198216630271189760e51b1480610f4c57506301ffc9a760e01b6001600160e01b0319831614610f4c565b600080600083516041146141e057600080fd5b5050506020810151604082015160609092015160001a92909190565b61420683836142e7565b614213600084848461408e565b61118f5760405162461bcd60e51b815260040161105990615381565b6001600160a01b03831661428a5761428581600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b6142ad565b816001600160a01b0316836001600160a01b0316146142ad576142ad8382614435565b6001600160a01b0382166142c45761118f816144d2565b826001600160a01b0316826001600160a01b03161461118f5761118f8282614581565b6001600160a01b03821661433d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401611059565b6000818152600560205260409020546001600160a01b0316156143a25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611059565b6143ae60008383614083565b6001600160a01b03821660009081526006602052604081208054600192906143d790849061534c565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161444284613578565b61444c919061509f565b6000838152600a602052604090205490915080821461449f576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b546000906144e49060019061509f565b6000838152600c6020526040812054600b805493945090928490811061450c5761450c615073565b9060005260206000200154905080600b838154811061452d5761452d615073565b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b80548061456557614565615441565b6001900381819060005260206000200160009055905550505050565b600061458c83613578565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b8280546145d190614ef0565b90600052602060002090601f0160209004810192826145f35760008555614639565b82601f1061460c57805160ff1916838001178555614639565b82800160010185558215614639579182015b8281111561463957825182559160200191906001019061461e565b50614645929150614649565b5090565b5b80821115614645576000815560010161464a565b6001600160a01b0392909216825260208201526060604082018190526017908201527f646972656374207061796d656e742c206e6f2073616c65000000000000000000608082015260a00190565b6001600160a01b0381168114612bfd57600080fd5b6000602082840312156146d357600080fd5b8135612896816146ac565b6001600160e01b031981168114612bfd57600080fd5b60006020828403121561470657600080fd5b8135612896816146de565b60005b8381101561472c578181015183820152602001614714565b838111156114235750506000910152565b60008151808452614755816020860160208601614711565b601f01601f19169290920160200192915050565b602081526000612896602083018461473d565b60006020828403121561478e57600080fd5b5035919050565b600080604083850312156147a857600080fd5b82356147b3816146ac565b946020939093013593505050565b803560ff811681146147d257600080fd5b919050565b6000806000606084860312156147ec57600080fd5b83356147f7816146ac565b92506020840135614807816146ac565b9150614815604085016147c1565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561485c5761485c61481e565b604052919050565b600082601f83011261487557600080fd5b81356001600160401b0381111561488e5761488e61481e565b6148a1601f8201601f1916602001614834565b8181528460208386010111156148b657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156148eb57600080fd5b8535945060208601359350604086013592506060860135915060808601356001600160401b0381111561491d57600080fd5b61492988828901614864565b9150509295509295909350565b6000806000806080858703121561494c57600080fd5b8435614957816146ac565b93506020850135614967816146ac565b92506040850135915060608501356001600160401b0381111561498957600080fd5b61499587828801614864565b91505092959194509250565b600080604083850312156149b457600080fd5b8235915060208301356001600160401b038111156149d157600080fd5b6149dd85828601614864565b9150509250929050565b600082601f8301126149f857600080fd5b813560206001600160401b03821115614a1357614a1361481e565b8160051b614a22828201614834565b9283528481018201928281019087851115614a3c57600080fd5b83870192505b84831015614a5b57823582529183019190830190614a42565b979650505050505050565b60008060008060808587031215614a7c57600080fd5b8435614a87816146ac565b935060208501356001600160401b0380821115614aa357600080fd5b614aaf888389016149e7565b94506040870135915080821115614ac557600080fd5b50614ad2878288016149e7565b9250506060850135614ae3816146ac565b939692955090935050565b600080600060608486031215614b0357600080fd5b8335614b0e816146ac565b92506020840135614b1e816146ac565b929592945050506040919091013590565b8015158114612bfd57600080fd5b60008060408385031215614b5057600080fd5b8235614b5b816146ac565b91506020830135614b6b81614b2f565b809150509250929050565b600080600080600080600060e0888a031215614b9157600080fd5b614b9a886147c1565b96506020880135955060408801359450606088013593506080880135925060a0880135915060c08801356001600160401b03811115614bd857600080fd5b614be48a828b01614864565b91505092959891949750929550565b600060208284031215614c0557600080fd5b612896826147c1565b600060208284031215614c2057600080fd5b81356001600160401b03811115614c3657600080fd5b61134d84828501614864565b600080600060608486031215614c5757600080fd5b8335614c62816146ac565b9250602084013591506040840135614c79816146ac565b809150509250925092565b60008060408385031215614c9757600080fd5b8235614ca2816146ac565b9150614cb0602084016147c1565b90509250929050565b600081518084526020808501945080840160005b83811015614ce957815187529582019590820190600101614ccd565b509495945050505050565b6020815260006128966020830184614cb9565b600080600080600060a08688031215614d1f57600080fd5b8535614d2a816146ac565b94506020860135614d3a816146ac565b935060408601356001600160401b0380821115614d5657600080fd5b614d6289838a016149e7565b94506060880135915080821115614d7857600080fd5b614d8489838a016149e7565b93506080880135915080821115614d9a57600080fd5b5061492988828901614864565b60008060408385031215614dba57600080fd5b8235614dc5816146ac565b91506020830135614b6b816146ac565b600080600060608486031215614dea57600080fd5b833592506020840135915060408401356001600160401b03811115614e0e57600080fd5b614e1a86828701614864565b9150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015614e655783516001600160a01b031683529284019291840191600101614e40565b50909695505050505050565b600080600080600060a08688031215614e8957600080fd5b8535614e94816146ac565b94506020860135614ea4816146ac565b9350604086013592506060860135915060808601356001600160401b0381111561491d57600080fd5b60008060408385031215614ee057600080fd5b82359150614cb0602084016147c1565b600181811c90821680614f0457607f821691505b6020821081141561230457634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260079082015266115e1c1a5c995960ca1b604082015260600190565b60609590951b6001600160601b0319168552601485019390935260348401919091526054830152607482015260940190565b6020808252600d908201526c15dc9bdb99c81c185e5b595b9d609a1b604082015260600190565b6001600160a01b0392909216825260208201526060604082018190526017908201527f7061796d656e74206279206d696e74696e672073616c65000000000000000000608082015260a00190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156150b1576150b1615089565b500390565b600061ffff8083168185168083038211156150d3576150d3615089565b01949350505050565b600061ffff838116908316818110156150f7576150f7615089565b039392505050565b600060ff821660ff81141561511657615116615089565b60010192915050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601260045260246000fd5b60008261517b5761517b615156565b500490565b600081600019048311821515161561519a5761519a615089565b500290565b60006000198214156151b3576151b3615089565b5060010190565b6000600160ff1b8214156151d0576151d0615089565b506000190190565b600060ff821660ff8416808210156151f2576151f2615089565b90039392505050565b600060ff82168061520e5761520e615089565b6000190192915050565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60008351615279818460208801614711565b8351908301906150d3818360208801614711565b60006020828403121561529f57600080fd5b8151612896816146ac565b600060ff821660ff84168060ff038211156152c7576152c7615089565b019392505050565b600061ffff808316818114156152e7576152e7615089565b6001019392505050565b6001600160a01b0385811682528416602082015260a06040820181905260009061531d90830185614cb9565b828103606084015261532f8185614cb9565b838103608090940193909352505060008152602001949350505050565b6000821982111561535f5761535f615089565b500190565b60006020828403121561537657600080fd5b815161289681614b2f565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826153e2576153e2615156565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061541a9083018461473d565b9695505050505050565b60006020828403121561543657600080fd5b8151612896816146de565b634e487b7160e01b600052603160045260246000fdfe53bd392522b272902b85d06641a5c298f18e160fffff1e84a020e622f7922810a26469706673582212206b825dca1c19228247f47b9b833b53fb78b32ab0d7f671d314a8e1359efc56ea64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000180000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000174d61676573206f6620436f6e6a75726564204c616e647300000000000000000000000000000000000000000000000000000000000000000000000000000000054d616765730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d92a68cabf38bbcc65bccf9ebdfcf8c103e25cf0000000000000000000000000bd0a238036e54c2586aceebb21db70dc9f605fdf000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000022
-----Decoded View---------------
Arg [0] : _name (string): Mages of Conjured Lands
Arg [1] : _symbol (string): Mages
Arg [2] : _teamMembers (address[]): 0xd92A68cABf38BBCc65bCCF9ebDFCF8c103E25cF0,0xbd0a238036e54C2586ACEebB21Db70dc9F605fdf
Arg [3] : _splits (uint8[]): 66,34
Arg [4] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [6] : 4d61676573206f6620436f6e6a75726564204c616e6473000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 4d61676573000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [10] : 000000000000000000000000d92a68cabf38bbcc65bccf9ebdfcf8c103e25cf0
Arg [11] : 000000000000000000000000bd0a238036e54c2586aceebb21db70dc9f605fdf
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000022
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.