ERC-721
Overview
Max Total Supply
147 BASED
Holders
120
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BASEDLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
MferLayers
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /* ██ ██████ ██ ██ ██ ██ ██ ██ █████ ██ ██ ██████ ██████ ███ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ████ ██████ ██ ██ █████ ██ ███ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ███████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██ ██ ██ ██ ██ ████ ███ ███ ███████ ███████ ██████ ███████ ████ ████ ██ ██ ██ ██ ██ ██ ████ ██ █████ █████ ██████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ██ ██ ███████ (phase 2) vision: @DadMod_xyz & @galtoshi art: @thompsonNFT devs: @JofaMcBender & @0xSomeGuy with the support of: sartoshi: 0xF95752fD023fD8802Abdd9cbe8e9965F623F8A84 mfer community: 0x79FCDEF22feeD20eDDacbB2587640e45491b757f */ import "./extras/SSTORE2.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; error OneOfOnesCantBeTransferredTheyAreSpeeeeeeeeeecial(); error ThisIsTheOneOfOneMintHomieWhatYouDoin(); error ThisIsAwkwardYoureEarlyToTheMintParty(); error WouldLoveToMintButTheFundsArentRight(); error SorryCouldntWithdrawYourFundsDude(); error YouDontEvenOwnThisOgOneOfOne(); error WhoaThisTokenIdDoesntExist(); error ThisIsNotAnOgOneOfOneToken(); error YouDontOwnThisTokenThough(); error NoLayersToMintStayTuned(); contract MferLayers is ERC721A, Ownable, ReentrancyGuard { // constructor... like it says... constructor() ERC721A("MferLayers", "BASED") { JeffFromAccounting = msg.sender; // nothing else to see here folks 👇 } //------------------------------------------------------------------------- // // contract brain cells // //------------------------------------------------------------------------- // count to control mints uint256 public LayerCount; // map token index to trait and layer indexes mapping(uint256 => uint256[2]) public TokenToTraitLayerMap; // we do a little dark mode up in here mapping(uint256 => bool) public TokenToDarkModeMap; // mint status bool public IsMintPartyLit; // toggle mint status function togglePartyStatus() external onlyOwner { IsMintPartyLit = !IsMintPartyLit; } // mint price uint256 CoverPrice = .69 ether; // update mint price function updateCoverPrice(uint256 _newPrice) external onlyOwner { CoverPrice = _newPrice; } // map token to 1/1 status mapping (uint256 => bool) public TokenToIsOgOneOfOneMap; // map token to og 1/1 index (21 total) mapping (uint256 => uint256) public TokenToOgOneOfOneIndexMap; // og mfer contract for 1/1 ownership IOgMferContract private OgMferContract; function setOgMferContractAddress(address _newAddress) external onlyOwner { OgMferContract = IOgMferContract(address(_newAddress)); } // trait data struct struct Trait { string name; // trait name Layer[] layers; // array of layer structs } // layer data struct struct Layer { uint256 x; // x-coordinate on 1000x1000 image uint256 y; // y-coordinate on 1000x1000 image uint256 width; // layer width uint256 height; // layer height string name; // layer name string traitName; // trait name (more accessibility) address[] pointers; // array of addresses in sequential order that retrieve base64 strings } // array of trait structs, one for each trait group form the mfer collection (including 1/1) Trait[15] public Traits; // array of strings for metadata in tokenURI string[5] public MetadataStrings; function updateMetadataString(uint256 _index, string memory _newString) external onlyOwner { MetadataStrings[_index] = _newString; } // array of strings for svg in tokenURI string[7] public SvgStrings; function updateSvgString(uint256 _index, string memory _newString) external onlyOwner { SvgStrings[_index] = _newString; } // 1/1 indexes from original mfer contract uint256[21] public OneOfOneIndexes = [ 140, 781, 1825, 2293, 2506, 3942, 4482, 5476, 5659, 5688, 6551, 7456, 7503, 8434, 8618, 9035, 9205, 9292, 9547, 9860, 9967 ]; //------------------------------------------------------------------------- // // token stuffs // //------------------------------------------------------------------------- // mint additional layers added to collection function mint() external payable { // check if mint is active if(!IsMintPartyLit) revert ThisIsAwkwardYoureEarlyToTheMintParty(); // check if layers are available to mint if(totalSupply() >= LayerCount) revert NoLayersToMintStayTuned(); // check if price is correct if(msg.value != CoverPrice) revert WouldLoveToMintButTheFundsArentRight(); // mint that suckah! _mint(msg.sender, 1); } // owner mint function ownerMint(address _to) external onlyOwner { // check if layers are available to mint if(totalSupply() >= LayerCount) revert NoLayersToMintStayTuned(); // mint token _mint(_to, 1); } function oneOfOneMint(address _to, uint256 _oneOfOneIndex) external onlyOwner { // check if layers are available to mint if(totalSupply() >= LayerCount) revert NoLayersToMintStayTuned(); // get original 1/1 owner address oneOfOneOwner = OgMferContract.ownerOf(OneOfOneIndexes[_oneOfOneIndex]); // check if to is og owner if(_to != oneOfOneOwner) revert ThisIsTheOneOfOneMintHomieWhatYouDoin(); // update is 1/1 mapping TokenToIsOgOneOfOneMap[_nextTokenId()] = true; // update token to 1/1 index mapping TokenToOgOneOfOneIndexMap[_nextTokenId()] = _oneOfOneIndex; // mint token _mint(_to, 1); } // update one of one index function updateOneOfOneIndex(uint256 _tokenId, uint256 _oneOfOneIndex) external onlyOwner { TokenToOgOneOfOneIndexMap[_tokenId] = _oneOfOneIndex; } // update one of one index function toggleOneOfOneStatus(uint256 _tokenId) external onlyOwner { TokenToIsOgOneOfOneMap[_tokenId] = !TokenToIsOgOneOfOneMap[_tokenId]; } // return owner of token function ownerOf(uint256 _tokenId) public view override returns (address) { // check token exists if(!_exists(_tokenId)) revert WhoaThisTokenIdDoesntExist(); // check if token is layer or 1/1 if(TokenToIsOgOneOfOneMap[_tokenId]) { // get the 1/1 owner from the original contract return OgMferContract.ownerOf(TokenToOgOneOfOneIndexMap[_tokenId]); } // else this is a (non 1/1) layer token, get owner as usual return _ownershipOf(_tokenId).addr; } // dont allow 1/1 transfers function _beforeTokenTransfers(address from, address to, uint256 startTokenId, uint256 quantity) internal view override { // check if 1/1, then dont transfer if(TokenToIsOgOneOfOneMap[startTokenId] && from != address(0)) revert OneOfOnesCantBeTransferredTheyAreSpeeeeeeeeeecial(); } function emitTransferForOgOneOfOne(uint256 _tokenId) public { // check if token is 1/1 if(!TokenToIsOgOneOfOneMap[_tokenId]) revert ThisIsNotAnOgOneOfOneToken(); // check owner if(msg.sender != ownerOf(_tokenId)) revert YouDontEvenOwnThisOgOneOfOne(); // emit event emit Transfer(address(this), msg.sender, _tokenId); } //------------------------------------------------------------------------- // // erc721 metadata overrides // //------------------------------------------------------------------------- // see IERC721Metadata-tokenURI function tokenURI(uint256 _tokenId) public view override returns (string memory) { // check if token exists if(!_exists(_tokenId)) revert WhoaThisTokenIdDoesntExist(); // get trait and layer indexes uint256[2] memory traitLayer = TokenToTraitLayerMap[_tokenId]; // get layer Layer memory layer = Traits[traitLayer[0]].layers[traitLayer[1]]; // generate svg string memory svg = string.concat( SvgStrings[0], // svg intro TokenToDarkModeMap[_tokenId] ? SvgStrings[1] : SvgStrings[2], // js, grads, filter _toString(_tokenId), ' - ', layer.name, SvgStrings[3], addDecimalFromTheRight(5000-((layer.width*10)/2), 2), SvgStrings[4], addDecimalFromTheRight(5000-((layer.height*10)/2), 2), SvgStrings[5], getTokenLayerString(_tokenId), SvgStrings[6] ); // generate metadata string memory metadata = string.concat( MetadataStrings[0], _toString(_tokenId), MetadataStrings[1], layer.traitName, MetadataStrings[2], layer.name, MetadataStrings[3], svg, MetadataStrings[4] ); return metadata; } // allows owners to update light/dark mode function toggleDarkMode(uint256 _tokenId) public { // check if caller is owner if(msg.sender != ownerOf(_tokenId)) revert YouDontOwnThisTokenThough(); // do the thing! TokenToDarkModeMap[_tokenId] = !TokenToDarkModeMap[_tokenId]; } //------------------------------------------------------------------------- // // layer storage // //------------------------------------------------------------------------- // update trait name function updateTraitName(uint256 _traitIndex, string memory _name) external onlyOwner { Traits[_traitIndex].name = _name; } // add trait layer function addTraitLayer(uint256 _traitIndex, string memory _newName, uint256 _x, uint256 _y, uint256 _width, uint256 _height) external onlyOwner { // generate new layer Layer memory newLayer; newLayer.name = _newName; newLayer.x = _x; newLayer.y = _y; newLayer.width = _width; newLayer.height = _height; newLayer.traitName = Traits[_traitIndex].name; // update trait with new layer Traits[_traitIndex].layers.push(newLayer); // update layer count LayerCount++; } // add layer pointer by string function addLayerPointer(uint256 _traitIndex, uint256 _layerIndex, address _pointer) external onlyOwner { Traits[_traitIndex].layers[_layerIndex].pointers.push(_pointer); } // add layer pointer by string function addLayerString(uint256 _traitIndex, uint256 _layerIndex, string memory _newString) external onlyOwner returns(address) { address pointer = SSTORE2.write(bytes(_newString)); Traits[_traitIndex].layers[_layerIndex].pointers.push(pointer); return pointer; } // update layer info function updateLayerInfo(uint256 _traitIndex, uint256 _layerIndex, string memory _newName, uint256 _x, uint256 _y, uint256 _width, uint256 _height) external onlyOwner { Trait storage trait = Traits[_traitIndex]; Layer storage layer = trait.layers[_layerIndex]; layer.name = _newName; layer.x = _x; layer.y = _y; layer.width = _width; layer.height = _height; layer.traitName = trait.name; } // add layer pointer by address function updateLayerPointer(uint256 _traitIndex, uint256 _layerIndex, uint256 _pointerIndex, address _pointer) external onlyOwner { Traits[_traitIndex].layers[_layerIndex].pointers[_pointerIndex] = _pointer; } // reset layer pointers... cause fat fingers function resetLayerPointers(uint256 _traitIndex, uint256 _layerIndex) external onlyOwner { delete Traits[_traitIndex].layers[_layerIndex].pointers; } // update token mapping function updateTokenToTraitLayerMap(uint256 _tokenId, uint256 _traitIndex, uint256 _layerIndex) external onlyOwner { TokenToTraitLayerMap[_tokenId] = [_traitIndex, _layerIndex]; } //------------------------------------------------------------------------- // // public layer functions, have fun! // //------------------------------------------------------------------------- // get trait function getTrait(uint256 _traitIndex) public view returns(Trait memory) { return Traits[_traitIndex]; } // get layer function getLayer(uint256 _traitIndex, uint256 _layerIndex) public view returns(Layer memory) { return Traits[_traitIndex].layers[_layerIndex]; } // read layer function readLayerString(uint256 _traitIndex, uint256 _layerIndex) public view returns(string memory) { // if complex shape not loaded, return empty string if(Traits[_traitIndex].layers[_layerIndex].pointers.length == 0) { return ""; } // return layer string uint256 i; string memory output; address[] memory pointers = Traits[_traitIndex].layers[_layerIndex].pointers; unchecked { do { output = string.concat(output, string(SSTORE2.read(pointers[i]))); ++i; } while(i<pointers.length); } return output; } // returns the tokens base64 string function getTokenLayerString(uint256 _tokenId) public view returns(string memory) { // get token layer uint256[2] memory traitLayer = TokenToTraitLayerMap[_tokenId]; // return layer string return readLayerString(traitLayer[0], traitLayer[1]); } //------------------------------------------------------------------------- // // other functions // //------------------------------------------------------------------------- // add decimal number from the right function addDecimalFromTheRight(uint256 _number, uint256 _sigFigs) public pure returns(string memory) { // get initial variables string memory numString = _toString(_number); uint256 length = bytes(numString).length; bytes memory decimal = new bytes(_sigFigs); unchecked { // check if sig fig greater thant length (0 padded) if(_sigFigs > length) { uint256 i = _sigFigs-length; do { if(i < _sigFigs-length) { decimal[i] = bytes("0")[0]; } else { decimal[i] = bytes(numString)[i-(_sigFigs-length)]; } --i; } while(i>0); decimal[0] = "0"; // return string return string.concat("0", ".", string(decimal)); // sig figs is = length } else if(_sigFigs == length) { // return string return string.concat("0", ".", numString); // sig figs < length } else { uint256 wholeIndex; uint256 decimalIndex; uint256 i; bytes memory whole = new bytes(length-_sigFigs); do { if(i < length-_sigFigs) { whole[wholeIndex] = bytes(numString)[i]; ++wholeIndex; } else { decimal[decimalIndex] = bytes(numString)[i]; ++decimalIndex; } ++i; } while(i<length); // return string return string.concat(string(whole), ".", string(decimal)); } } } // withdraw address (nod to NN) address private JeffFromAccounting; // update withdraw address function updateAccountant(address _newAddress) external onlyOwner { JeffFromAccounting = _newAddress; } // withdraw contract eth function moveThatGuap() public { (bool success, ) = JeffFromAccounting.call{value: address(this).balance}(""); if(!success) revert SorryCouldntWithdrawYourFundsDude(); } } interface IMferLayerPass { function ownerOf(uint256) external view returns(address); } interface IOgMferContract { function ownerOf(uint256) external view returns(address); } /////////////////////////////////////////////////////////////// // giving doesnt make you charitable, it makes you free ❤ // ///////////////////////////////////////////////////////////////
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library Bytecode { error InvalidCodeAtRange(uint256 _size, uint256 _start, uint256 _end); /** @notice Generate a creation code that results on a contract with `_code` as bytecode @param _code The returning value of the resulting `creationCode` @return creationCode (constructor) for new contract */ function creationCodeFor(bytes memory _code) internal pure returns (bytes memory) { /* 0x00 0x63 0x63XXXXXX PUSH4 _code.length size 0x01 0x80 0x80 DUP1 size size 0x02 0x60 0x600e PUSH1 14 14 size size 0x03 0x60 0x6000 PUSH1 00 0 14 size size 0x04 0x39 0x39 CODECOPY size 0x05 0x60 0x6000 PUSH1 00 0 size 0x06 0xf3 0xf3 RETURN <CODE> */ return abi.encodePacked( hex"63", uint32(_code.length), hex"80_60_0E_60_00_39_60_00_F3", _code ); } /** @notice Returns the size of the code on a given address @param _addr Address that may or may not contain code @return size of the code on the given `_addr` */ function codeSize(address _addr) internal view returns (uint256 size) { assembly { size := extcodesize(_addr) } } /** @notice Returns the code of a given address @dev It will fail if `_end < _start` @param _addr Address that may or may not contain code @param _start number of bytes of code to skip on read @param _end index before which to end extraction @return oCode read from `_addr` deployed bytecode Forked from: https://gist.github.com/KardanovIR/fe98661df9338c842b4a30306d507fbd */ function codeAt(address _addr, uint256 _start, uint256 _end) internal view returns (bytes memory oCode) { uint256 csize = codeSize(_addr); if (csize == 0) return bytes(""); if (_start > csize) return bytes(""); if (_end < _start) revert InvalidCodeAtRange(csize, _start, _end); unchecked { uint256 reqSize = _end - _start; uint256 maxSize = csize - _start; uint256 size = maxSize < reqSize ? maxSize : reqSize; assembly { // allocate output byte array - this could also be done without assembly // by using o_code = new bytes(size) oCode := mload(0x40) // new "memory end" including padding mstore(0x40, add(oCode, and(add(add(size, 0x20), 0x1f), not(0x1f)))) // store length in memory mstore(oCode, size) // actually retrieve the code, this needs assembly extcodecopy(_addr, add(oCode, 0x20), _start, size) } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Bytecode.sol"; /** @title A key-value storage with auto-generated keys for storing chunks of data with a lower write & read cost. @author Agustin Aguilar <[email protected]> Readme: https://github.com/0xsequence/sstore2#readme */ library SSTORE2 { error WriteError(); /** @notice Stores `_data` and returns `pointer` as key for later retrieval @dev The pointer is a contract address with `_data` as code @param _data to be written @return pointer Pointer to the written `_data` */ function write(bytes memory _data) internal returns (address pointer) { // Append 00 to _data so contract can't be called // Build init code bytes memory code = Bytecode.creationCodeFor( abi.encodePacked( hex'00', _data ) ); // Deploy contract using create assembly { pointer := create(0, add(code, 32), mload(code)) } // Address MUST be non-zero if (pointer == address(0)) revert WriteError(); } /** @notice Reads the contents of the `_pointer` code as data, skips the first byte @dev The function is intended for reading pointers generated by `write` @param _pointer to be read @return data read from `_pointer` contract */ function read(address _pointer) internal view returns (bytes memory) { return Bytecode.codeAt(_pointer, 1, type(uint256).max); } /** @notice Reads the contents of the `_pointer` code as data, skips the first byte @dev The function is intended for reading pointers generated by `write` @param _pointer to be read @param _start number of bytes to skip @return data read from `_pointer` contract */ function read(address _pointer, uint256 _start) internal view returns (bytes memory) { return Bytecode.codeAt(_pointer, _start + 1, type(uint256).max); } /** @notice Reads the contents of the `_pointer` code as data, skips the first byte @dev The function is intended for reading pointers generated by `write` @param _pointer to be read @param _start number of bytes to skip @param _end index before which to end extraction @return data read from `_pointer` contract */ function read(address _pointer, uint256 _start, uint256 _end) internal view returns (bytes memory) { return Bytecode.codeAt(_pointer, _start + 1, _end + 1); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"InvalidCodeAtRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoLayersToMintStayTuned","type":"error"},{"inputs":[],"name":"OneOfOnesCantBeTransferredTheyAreSpeeeeeeeeeecial","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SorryCouldntWithdrawYourFundsDude","type":"error"},{"inputs":[],"name":"ThisIsAwkwardYoureEarlyToTheMintParty","type":"error"},{"inputs":[],"name":"ThisIsNotAnOgOneOfOneToken","type":"error"},{"inputs":[],"name":"ThisIsTheOneOfOneMintHomieWhatYouDoin","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WhoaThisTokenIdDoesntExist","type":"error"},{"inputs":[],"name":"WouldLoveToMintButTheFundsArentRight","type":"error"},{"inputs":[],"name":"WriteError","type":"error"},{"inputs":[],"name":"YouDontEvenOwnThisOgOneOfOne","type":"error"},{"inputs":[],"name":"YouDontOwnThisTokenThough","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"IsMintPartyLit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LayerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"MetadataStrings","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"OneOfOneIndexes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"SvgStrings","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TokenToDarkModeMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TokenToIsOgOneOfOneMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TokenToOgOneOfOneIndexMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"TokenToTraitLayerMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Traits","outputs":[{"internalType":"string","name":"name","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"},{"internalType":"uint256","name":"_sigFigs","type":"uint256"}],"name":"addDecimalFromTheRight","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"},{"internalType":"address","name":"_pointer","type":"address"}],"name":"addLayerPointer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"},{"internalType":"string","name":"_newString","type":"string"}],"name":"addLayerString","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"string","name":"_newName","type":"string"},{"internalType":"uint256","name":"_x","type":"uint256"},{"internalType":"uint256","name":"_y","type":"uint256"},{"internalType":"uint256","name":"_width","type":"uint256"},{"internalType":"uint256","name":"_height","type":"uint256"}],"name":"addTraitLayer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"emitTransferForOgOneOfOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"}],"name":"getLayer","outputs":[{"components":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"height","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"traitName","type":"string"},{"internalType":"address[]","name":"pointers","type":"address[]"}],"internalType":"struct MferLayers.Layer","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenLayerString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"}],"name":"getTrait","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"components":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"height","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"traitName","type":"string"},{"internalType":"address[]","name":"pointers","type":"address[]"}],"internalType":"struct MferLayers.Layer[]","name":"layers","type":"tuple[]"}],"internalType":"struct MferLayers.Trait","name":"","type":"tuple"}],"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":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"moveThatGuap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_oneOfOneIndex","type":"uint256"}],"name":"oneOfOneMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","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":"_traitIndex","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"}],"name":"readLayerString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"}],"name":"resetLayerPointers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setOgMferContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"toggleDarkMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"toggleOneOfOneStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePartyStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"updateAccountant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"updateCoverPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"},{"internalType":"string","name":"_newName","type":"string"},{"internalType":"uint256","name":"_x","type":"uint256"},{"internalType":"uint256","name":"_y","type":"uint256"},{"internalType":"uint256","name":"_width","type":"uint256"},{"internalType":"uint256","name":"_height","type":"uint256"}],"name":"updateLayerInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"},{"internalType":"uint256","name":"_pointerIndex","type":"uint256"},{"internalType":"address","name":"_pointer","type":"address"}],"name":"updateLayerPointer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_newString","type":"string"}],"name":"updateMetadataString","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_oneOfOneIndex","type":"uint256"}],"name":"updateOneOfOneIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_newString","type":"string"}],"name":"updateSvgString","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"}],"name":"updateTokenToTraitLayerMap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitIndex","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"updateTraitName","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526709935f581f050000600e55604051806102a00160405280608c61ffff16815260200161030d61ffff16815260200161072161ffff1681526020016108f561ffff1681526020016109ca61ffff168152602001610f6661ffff16815260200161118261ffff16815260200161156461ffff16815260200161161b61ffff16815260200161163861ffff16815260200161199761ffff168152602001611d2061ffff168152602001611d4f61ffff1681526020016120f261ffff1681526020016121aa61ffff16815260200161234b61ffff1681526020016123f561ffff16815260200161244c61ffff16815260200161254b61ffff16815260200161268461ffff1681526020016126ef61ffff16815250603c9060156200012792919062000320565b503480156200013557600080fd5b506040518060400160405280600a81526020017f4d6665724c6179657273000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f42415345440000000000000000000000000000000000000000000000000000008152508160029081620001b3919062000604565b508060039081620001c5919062000604565b50620001d66200024d60201b60201c565b6000819055505050620001fe620001f26200025260201b60201c565b6200025a60201b60201c565b600160098190555033605160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620006eb565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b826015810192821562000358579160200282015b8281111562000357578251829061ffff1690559160200191906001019062000334565b5b5090506200036791906200036b565b5090565b5b80821115620003865760008160009055506001016200036c565b5090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200040c57607f821691505b602082108103620004225762000421620003c4565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200048c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200044d565b6200049886836200044d565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004e5620004df620004d984620004b0565b620004ba565b620004b0565b9050919050565b6000819050919050565b6200050183620004c4565b620005196200051082620004ec565b8484546200045a565b825550505050565b600090565b6200053062000521565b6200053d818484620004f6565b505050565b5b8181101562000565576200055960008262000526565b60018101905062000543565b5050565b601f821115620005b4576200057e8162000428565b62000589846200043d565b8101602085101562000599578190505b620005b1620005a8856200043d565b83018262000542565b50505b505050565b600082821c905092915050565b6000620005d960001984600802620005b9565b1980831691505092915050565b6000620005f48383620005c6565b9150826002028217905092915050565b6200060f826200038a565b67ffffffffffffffff8111156200062b576200062a62000395565b5b620006378254620003f3565b6200064482828562000569565b600060209050601f8311600181146200067c576000841562000667578287015190505b620006738582620005e6565b865550620006e3565b601f1984166200068c8662000428565b60005b82811015620006b6578489015182556001820191506020850194506020810190506200068f565b86831015620006d65784890151620006d2601f891682620005c6565b8355505b6001600288020188555050505b505050505050565b615e8e80620006fb6000396000f3fe6080604052600436106103355760003560e01c8063833eb9b8116101ab578063a7d514f1116100f7578063c87b56dd11610095578063dd67997d1161006f578063dd67997d14610c13578063e985e9c514610c50578063f2fde38b14610c8d578063f440459e14610cb657610335565b8063c87b56dd14610b82578063cd6ab03b14610bbf578063d9110c9c14610bea57610335565b8063ad0582d6116100d1578063ad0582d614610ae9578063b231792414610b26578063b88d4fde14610b3d578063bc9f41c714610b5957610335565b8063a7d514f114610a46578063a9c0082b14610a83578063acb586df14610aac57610335565b806399cbaa2b11610164578063a17390c71161013e578063a17390c71461098e578063a22cb465146109b7578063a3f62f39146109e0578063a5232cea14610a1d57610335565b806399cbaa2b146108eb5780639cf1a8dc14610914578063a09c53721461095157610335565b8063833eb9b8146107f157806386f748491461081a5780638a430743146108435780638da5cb5b1461086c5780638f0f46f11461089757806395d89b41146108c057610335565b806323b872dd116102855780635cec86531161022357806370a08231116101fd57806370a082311461074b578063715018a6146107885780637a1934b81461079f578063803021dc146107c857610335565b80635cec8653146106a85780636352211e146106e55780636c222b171461072257610335565b80633bc94eb11161025f5780633bc94eb11461060f57806342842e0e1461063857806352c9188f146106545780635af2eff21461066b57610335565b806323b872dd1461058d57806336b7df54146105a9578063373e3526146105d257610335565b80630e27c141116102f257806312b0ebb2116102cc57806312b0ebb2146104bf578063149fd99e146104fc57806318160ddd146105395780631e3bcc8e1461056457610335565b80630e27c141146104635780630fab32de1461048c5780631249c58b146104b557610335565b806301ffc9a71461033a57806306fdde03146103775780630702b69b146103a2578063081812fc146103cd578063095ea7b31461040a5780630b113f6514610426575b600080fd5b34801561034657600080fd5b50610361600480360381019061035c9190614426565b610cf3565b60405161036e919061446e565b60405180910390f35b34801561038357600080fd5b5061038c610d85565b6040516103999190614519565b60405180910390f35b3480156103ae57600080fd5b506103b7610e17565b6040516103c49190614554565b60405180910390f35b3480156103d957600080fd5b506103f460048036038101906103ef919061459b565b610e1d565b6040516104019190614609565b60405180910390f35b610424600480360381019061041f9190614650565b610e9c565b005b34801561043257600080fd5b5061044d6004803603810190610448919061459b565b610fe0565b60405161045a9190614519565b60405180910390f35b34801561046f57600080fd5b5061048a60048036038101906104859190614690565b611083565b005b34801561049857600080fd5b506104b360048036038101906104ae91906146f7565b61112a565b005b6104bd611180565b005b3480156104cb57600080fd5b506104e660048036038101906104e1919061459b565b611250565b6040516104f39190614554565b60405180910390f35b34801561050857600080fd5b50610523600480360381019061051e919061459b565b61126b565b6040516105309190614554565b60405180910390f35b34801561054557600080fd5b5061054e611283565b60405161055b9190614554565b60405180910390f35b34801561057057600080fd5b5061058b60048036038101906105869190614737565b61129a565b005b6105a760048036038101906105a29190614764565b6112f2565b005b3480156105b557600080fd5b506105d060048036038101906105cb919061459b565b611614565b005b3480156105de57600080fd5b506105f960048036038101906105f491906146f7565b611626565b6040516106069190614519565b60405180910390f35b34801561061b57600080fd5b50610636600480360381019061063191906146f7565b6119e8565b005b610652600480360381019061064d9190614764565b611a0c565b005b34801561066057600080fd5b50610669611a2c565b005b34801561067757600080fd5b50610692600480360381019061068d919061459b565b611af4565b60405161069f9190614519565b60405180910390f35b3480156106b457600080fd5b506106cf60048036038101906106ca91906146f7565b611b97565b6040516106dc9190614519565b60405180910390f35b3480156106f157600080fd5b5061070c6004803603810190610707919061459b565b611d26565b6040516107199190614609565b60405180910390f35b34801561072e57600080fd5b5061074960048036038101906107449190614737565b611e58565b005b34801561075757600080fd5b50610772600480360381019061076d9190614737565b611ea4565b60405161077f9190614554565b60405180910390f35b34801561079457600080fd5b5061079d611f5c565b005b3480156107ab57600080fd5b506107c660048036038101906107c1919061459b565b611f70565b005b3480156107d457600080fd5b506107ef60048036038101906107ea91906148ec565b611fc7565b005b3480156107fd57600080fd5b5061081860048036038101906108139190614737565b61218d565b005b34801561082657600080fd5b50610841600480360381019061083c9190614650565b6121d9565b005b34801561084f57600080fd5b5061086a60048036038101906108659190614995565b61239f565b005b34801561087857600080fd5b506108816123ce565b60405161088e9190614609565b60405180910390f35b3480156108a357600080fd5b506108be60048036038101906108b99190614995565b6123f8565b005b3480156108cc57600080fd5b506108d5612427565b6040516108e29190614519565b60405180910390f35b3480156108f757600080fd5b50610912600480360381019061090d919061459b565b6124b9565b005b34801561092057600080fd5b5061093b6004803603810190610936919061459b565b6125db565b604051610948919061446e565b60405180910390f35b34801561095d57600080fd5b506109786004803603810190610973919061459b565b6125fb565b6040516109859190614519565b60405180910390f35b34801561099a57600080fd5b506109b560048036038101906109b091906149f1565b6126a7565b005b3480156109c357600080fd5b506109de60048036038101906109d99190614adb565b612749565b005b3480156109ec57600080fd5b50610a076004803603810190610a0291906146f7565b612854565b604051610a149190614cdc565b60405180910390f35b348015610a2957600080fd5b50610a446004803603810190610a3f9190614cfe565b612a84565b005b348015610a5257600080fd5b50610a6d6004803603810190610a68919061459b565b612ac8565b604051610a7a9190614519565b60405180910390f35b348015610a8f57600080fd5b50610aaa6004803603810190610aa59190614995565b612b5f565b005b348015610ab857600080fd5b50610ad36004803603810190610ace919061459b565b612b94565b604051610ae09190614f01565b60405180910390f35b348015610af557600080fd5b50610b106004803603810190610b0b91906146f7565b612e91565b604051610b1d9190614554565b60405180910390f35b348015610b3257600080fd5b50610b3b612eb9565b005b610b576004803603810190610b529190614fc4565b612eed565b005b348015610b6557600080fd5b50610b806004803603810190610b7b9190615047565b612f60565b005b348015610b8e57600080fd5b50610ba96004803603810190610ba4919061459b565b61300c565b604051610bb69190614519565b60405180910390f35b348015610bcb57600080fd5b50610bd461351e565b604051610be1919061446e565b60405180910390f35b348015610bf657600080fd5b50610c116004803603810190610c0c919061459b565b613531565b005b348015610c1f57600080fd5b50610c3a6004803603810190610c35919061509a565b6135ed565b604051610c479190614609565b60405180910390f35b348015610c5c57600080fd5b50610c776004803603810190610c729190615109565b6136ae565b604051610c84919061446e565b60405180910390f35b348015610c9957600080fd5b50610cb46004803603810190610caf9190614737565b613742565b005b348015610cc257600080fd5b50610cdd6004803603810190610cd8919061459b565b6137c5565b604051610cea919061446e565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d4e57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d7e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610d9490615178565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc090615178565b8015610e0d5780601f10610de257610100808354040283529160200191610e0d565b820191906000526020600020905b815481529060010190602001808311610df057829003601f168201915b5050505050905090565b600a5481565b6000610e28826137e5565b610e5e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ea782611d26565b90508073ffffffffffffffffffffffffffffffffffffffff16610ec8613844565b73ffffffffffffffffffffffffffffffffffffffff1614610f2b57610ef481610eef613844565b6136ae565b610f2a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60358160078110610ff057600080fd5b01600091509050805461100290615178565b80601f016020809104026020016040519081016040528092919081815260200182805461102e90615178565b801561107b5780601f106110505761010080835404028352916020019161107b565b820191906000526020600020905b81548152906001019060200180831161105e57829003601f168201915b505050505081565b61108b61384c565b80601285600f81106110a05761109f6151a9565b5b6002020160010184815481106110b9576110b86151a9565b5b906000526020600020906007020160060183815481106110dc576110db6151a9565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b61113261384c565b601282600f8110611146576111456151a9565b5b60020201600101818154811061115f5761115e6151a9565b5b9060005260206000209060070201600601600061117c919061420c565b5050565b600d60009054906101000a900460ff166111c6576040517fdf595e5a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a546111d1611283565b10611208576040517fdac1789000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e543414611243576040517f2bb1a66a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61124e3360016138ca565b565b603c816015811061126057600080fd5b016000915090505481565b60106020528060005260406000206000915090505481565b600061128d613a85565b6001546000540303905090565b6112a261384c565b600a546112ad611283565b106112e4576040517fdac1789000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112ef8160016138ca565b50565b60006112fd82613a8a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611364576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061137084613b56565b915091506113868187611381613844565b613b7d565b6113d25761139b86611396613844565b6136ae565b6113d1576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611438576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114458686866001613bc1565b801561145057600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061151e856114fa888887613c58565b7c020000000000000000000000000000000000000000000000000000000017613c80565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036115a457600060018501905060006004600083815260200190815260200160002054036115a25760005481146115a1578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461160c8686866001613cab565b505050505050565b61161c61384c565b80600e8190555050565b6060600061163384613cb1565b905060008151905060008467ffffffffffffffff811115611657576116566147c1565b5b6040519080825280601f01601f1916602001820160405280156116895781602001600182028036833780820191505090505b5090508185111561184457600082860390505b828603811015611741576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152506000815181106116ef576116ee6151a9565b5b602001015160f81c60f81b82828151811061170d5761170c6151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506117a6565b83838703820381518110611758576117576151a9565b5b602001015160f81c60f81b828281518110611776576117756151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b806001900390506000811161169c577f3000000000000000000000000000000000000000000000000000000000000000826000815181106117ea576117e96151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508160405160200161182a9190615260565b6040516020818303038152906040529450505050506119e2565b818503611875578260405160200161185c9190615260565b60405160208183030381529060405293505050506119e2565b60008060008088860367ffffffffffffffff811115611897576118966147c1565b5b6040519080825280601f01601f1916602001820160405280156118c95781602001600182028036833780820191505090505b5090505b888603821015611942578682815181106118ea576118e96151a9565b5b602001015160f81c60f81b818581518110611908576119076151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508360010193506119a9565b868281518110611955576119546151a9565b5b602001015160f81c60f81b858481518110611973576119726151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508260010192505b8160010191508582106118cd5780856040516020016119c9929190615295565b6040516020818303038152906040529750505050505050505b92915050565b6119f061384c565b8060106000848152602001908152602001600020819055505050565b611a2783838360405180602001604052806000815250612eed565b505050565b6000605160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051611a74906152f9565b60006040518083038185875af1925050503d8060008114611ab1576040519150601f19603f3d011682016040523d82523d6000602084013e611ab6565b606091505b5050905080611af1576040517fc79988b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b60308160058110611b0457600080fd5b016000915090508054611b1690615178565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4290615178565b8015611b8f5780601f10611b6457610100808354040283529160200191611b8f565b820191906000526020600020905b815481529060010190602001808311611b7257829003601f168201915b505050505081565b60606000601284600f8110611baf57611bae6151a9565b5b600202016001018381548110611bc857611bc76151a9565b5b90600052602060002090600702016006018054905003611bf957604051806020016040528060008152509050611d20565b600060606000601286600f8110611c1357611c126151a9565b5b600202016001018581548110611c2c57611c2b6151a9565b5b9060005260206000209060070201600601805480602002602001604051908101604052809291908181526020018280548015611cbd57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611c73575b505050505090505b81611ce9828581518110611cdc57611cdb6151a9565b5b6020026020010151613d01565b604051602001611cfa92919061530e565b604051602081830303815290604052915082600101925080518310611cc5578193505050505b92915050565b6000611d31826137e5565b611d67576040517fedc178bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f600083815260200190815260200160002060009054906101000a900460ff1615611e4357601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e60106000858152602001908152602001600020546040518263ffffffff1660e01b8152600401611dfb9190614554565b602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c9190615347565b9050611e53565b611e4c82613d36565b6000015190505b919050565b611e6061384c565b80605160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f0b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611f6461384c565b611f6e6000613d56565b565b611f7861384c565b600f600082815260200190815260200160002060009054906101000a900460ff1615600f600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611fcf61384c565b611fd761422d565b85816080018190525084816000018181525050838160200181815250508281604001818152505081816060018181525050601287600f811061201c5761201b6151a9565b5b60020201600001805461202e90615178565b80601f016020809104026020016040519081016040528092919081815260200182805461205a90615178565b80156120a75780601f1061207c576101008083540402835291602001916120a7565b820191906000526020600020905b81548152906001019060200180831161208a57829003601f168201915b50505050508160a00181905250601287600f81106120c8576120c76151a9565b5b600202016001018190806001815401808255809150506001900390600052602060002090600702016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040190816121369190615520565b5060a082015181600501908161214c9190615520565b5060c082015181600601908051906020019061216992919061426a565b505050600a600081548092919061217f90615621565b919050555050505050505050565b61219561384c565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6121e161384c565b600a546121ec611283565b10612223576040517fdac1789000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e603c8460158110612277576122766151a9565b5b01546040518263ffffffff1660e01b81526004016122959190614554565b602060405180830381865afa1580156122b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d69190615347565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461233d576040517f83cbc0c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600f600061234b613e1c565b815260200190815260200160002060006101000a81548160ff021916908315150217905550816010600061237d613e1c565b81526020019081526020016000208190555061239a8360016138ca565b505050565b6123a761384c565b80603083600581106123bc576123bb6151a9565b5b0190816123c99190615520565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61240061384c565b8060358360078110612415576124146151a9565b5b0190816124229190615520565b505050565b60606003805461243690615178565b80601f016020809104026020016040519081016040528092919081815260200182805461246290615178565b80156124af5780601f10612484576101008083540402835291602001916124af565b820191906000526020600020905b81548152906001019060200180831161249257829003601f168201915b5050505050905090565b600f600082815260200190815260200160002060009054906101000a900460ff16612510576040517faf3bc0e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61251981611d26565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461257d576040517f9d695f0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450565b600f6020528060005260406000206000915054906101000a900460ff1681565b601281600f811061260b57600080fd5b6002020160009150905080600001805461262490615178565b80601f016020809104026020016040519081016040528092919081815260200182805461265090615178565b801561269d5780601f106126725761010080835404028352916020019161269d565b820191906000526020600020905b81548152906001019060200180831161268057829003601f168201915b5050505050905081565b6126af61384c565b6000601288600f81106126c5576126c46151a9565b5b60020201905060008160010188815481106126e3576126e26151a9565b5b90600052602060002090600702019050868160040190816127049190615520565b508581600001819055508481600101819055508381600201819055508281600301819055508160000181600501908161273d9190615694565b50505050505050505050565b8060076000612756613844565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612803613844565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612848919061446e565b60405180910390a35050565b61285c61422d565b601283600f81106128705761286f6151a9565b5b600202016001018281548110612889576128886151a9565b5b90600052602060002090600702016040518060e0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820180546128da90615178565b80601f016020809104026020016040519081016040528092919081815260200182805461290690615178565b80156129535780601f1061292857610100808354040283529160200191612953565b820191906000526020600020905b81548152906001019060200180831161293657829003601f168201915b5050505050815260200160058201805461296c90615178565b80601f016020809104026020016040519081016040528092919081815260200182805461299890615178565b80156129e55780601f106129ba576101008083540402835291602001916129e5565b820191906000526020600020905b8154815290600101906020018083116129c857829003601f168201915b5050505050815260200160068201805480602002602001604051908101604052809291908181526020018280548015612a7357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612a29575b505050505081525050905092915050565b612a8c61384c565b604051806040016040528083815260200182815250600b6000858152602001908152602001600020906002612ac29291906142f4565b50505050565b60606000600b6000848152602001908152602001600020600280602002604051908101604052809291908260028015612b16576020028201915b815481526020019060010190808311612b02575b50505050509050612b5781600060028110612b3457612b336151a9565b5b602002015182600160028110612b4d57612b4c6151a9565b5b6020020151611b97565b915050919050565b612b6761384c565b80601283600f8110612b7c57612b7b6151a9565b5b600202016000019081612b8f9190615520565b505050565b612b9c614334565b601282600f8110612bb057612baf6151a9565b5b60020201604051806040016040529081600082018054612bcf90615178565b80601f0160208091040260200160405190810160405280929190818152602001828054612bfb90615178565b8015612c485780601f10612c1d57610100808354040283529160200191612c48565b820191906000526020600020905b815481529060010190602001808311612c2b57829003601f168201915b5050505050815260200160018201805480602002602001604051908101604052809291908181526020016000905b82821015612e8257838290600052602060002090600702016040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482018054612cd190615178565b80601f0160208091040260200160405190810160405280929190818152602001828054612cfd90615178565b8015612d4a5780601f10612d1f57610100808354040283529160200191612d4a565b820191906000526020600020905b815481529060010190602001808311612d2d57829003601f168201915b50505050508152602001600582018054612d6390615178565b80601f0160208091040260200160405190810160405280929190818152602001828054612d8f90615178565b8015612ddc5780601f10612db157610100808354040283529160200191612ddc565b820191906000526020600020905b815481529060010190602001808311612dbf57829003601f168201915b5050505050815260200160068201805480602002602001604051908101604052809291908181526020018280548015612e6a57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612e20575b50505050508152505081526020019060010190612c76565b50505050815250509050919050565b600b6020528160005260406000208160028110612ead57600080fd5b01600091509150505481565b612ec161384c565b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b612ef88484846112f2565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f5a57612f2384848484613e25565b612f59576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612f6861384c565b601283600f8110612f7c57612f7b6151a9565b5b600202016001018281548110612f9557612f946151a9565b5b9060005260206000209060070201600601819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6060613017826137e5565b61304d576040517fedc178bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600b6000848152602001908152602001600020600280602002604051908101604052809291908260028015613099576020028201915b815481526020019060010190808311613085575b5050505050905060006012826000600281106130b8576130b76151a9565b5b6020020151600f81106130ce576130cd6151a9565b5b60020201600101826001600281106130e9576130e86151a9565b5b6020020151815481106130ff576130fe6151a9565b5b90600052602060002090600702016040518060e00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201805461315090615178565b80601f016020809104026020016040519081016040528092919081815260200182805461317c90615178565b80156131c95780601f1061319e576101008083540402835291602001916131c9565b820191906000526020600020905b8154815290600101906020018083116131ac57829003601f168201915b505050505081526020016005820180546131e290615178565b80601f016020809104026020016040519081016040528092919081815260200182805461320e90615178565b801561325b5780601f106132305761010080835404028352916020019161325b565b820191906000526020600020905b81548152906001019060200180831161323e57829003601f168201915b50505050508152602001600682018054806020026020016040519081016040528092919081815260200182805480156132e957602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161329f575b50505050508152505090506000603560006007811061330b5761330a6151a9565b5b01600c600087815260200190815260200160002060009054906101000a900460ff1661334c576035600260078110613346576133456151a9565b5b01613363565b6035600160078110613361576133606151a9565b5b015b61336c87613cb1565b84608001516035600360078110613386576133856151a9565b5b016133bb6002600a896040015161339d919061577c565b6133a791906157ed565b6113886133b4919061581e565b6002611626565b60356004600781106133d0576133cf6151a9565b5b016134056002600a8b606001516133e7919061577c565b6133f191906157ed565b6113886133fe919061581e565b6002611626565b603560056007811061341a576134196151a9565b5b016134248e612ac8565b6035600660078110613439576134386151a9565b5b016040516020016134549b9a9998979695949392919061597e565b60405160208183030381529060405290506000603060006005811061347c5761347b6151a9565b5b0161348687613cb1565b603060016005811061349b5761349a6151a9565b5b018560a0015160306002600581106134b6576134b56151a9565b5b01876080015160306003600581106134d1576134d06151a9565b5b018860306004600581106134e8576134e76151a9565b5b0160405160200161350199989796959493929190615a26565b604051602081830303815290604052905080945050505050919050565b600d60009054906101000a900460ff1681565b61353a81611d26565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461359e576040517feabeeff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c600082815260200190815260200160002060009054906101000a900460ff1615600c600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60006135f761384c565b600061360283613f75565b9050601285600f8110613618576136176151a9565b5b600202016001018481548110613631576136306151a9565b5b9060005260206000209060070201600601819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550809150509392505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61374a61384c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036137b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b090615b17565b60405180910390fd5b6137c281613d56565b50565b600c6020528060005260406000206000915054906101000a900460ff1681565b6000816137f0613a85565b111580156137ff575060005482105b801561383d575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b613854614019565b73ffffffffffffffffffffffffffffffffffffffff166138726123ce565b73ffffffffffffffffffffffffffffffffffffffff16146138c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138bf90615b83565b60405180910390fd5b565b6000805490506000820361390a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6139176000848385613bc1565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061398e8361397f6000866000613c58565b61398885614021565b17613c80565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613a2f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506139f4565b5060008203613a6a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613a806000848385613cab565b505050565b600090565b60008082905080613a99613a85565b11613b1f57600054811015613b1e5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613b1c575b60008103613b12576004600083600190039350838152602001908152602001600020549050613ae8565b8092505050613b51565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b600f600083815260200190815260200160002060009054906101000a900460ff168015613c1b5750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b15613c52576040517f346885a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60008060e883901c905060e8613c6f868684614031565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b606060a060405101806040526020810391506000825281835b600115613cec57600184039350600a81066030018453600a8104905080613cca575b50828103602084039350808452505050919050565b6060613d2f8260017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61403a565b9050919050565b613d3e61434e565b613d4f613d4a83613a8a565b61411f565b9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613e4b613844565b8786866040518563ffffffff1660e01b8152600401613e6d9493929190615bf8565b6020604051808303816000875af1925050508015613ea957506040513d601f19601f82011682018060405250810190613ea69190615c59565b60015b613f22573d8060008114613ed9576040519150601f19603f3d011682016040523d82523d6000602084013e613ede565b606091505b506000815103613f1a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080613fa083604051602001613f8c9190615ce3565b6040516020818303038152906040526141d5565b90508051602082016000f09150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603614013576040517f08d4abb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50919050565b600033905090565b60006001821460e11b9050919050565b60009392505050565b6060600061404785614201565b9050600081036140695760405180602001604052806000815250915050614118565b808411156140895760405180602001604052806000815250915050614118565b838310156140d2578084846040517f2c4a89fa0000000000000000000000000000000000000000000000000000000081526004016140c993929190615d05565b60405180910390fd5b600084840390506000858303905060008282106140ef57826140f1565b815b90506040519450601f19601f60208301011685016040528085528087602087018a3c505050505b9392505050565b61412761434e565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60608151826040516020016141eb929190615e1a565b6040516020818303038152906040529050919050565b6000813b9050919050565b508054600082559060005260206000209081019061422a919061439d565b50565b6040518060e00160405280600081526020016000815260200160008152602001600081526020016060815260200160608152602001606081525090565b8280548282559060005260206000209081019282156142e3579160200282015b828111156142e25782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061428a565b5b5090506142f0919061439d565b5090565b8260028101928215614323579160200282015b82811115614322578251825591602001919060010190614307565b5b509050614330919061439d565b5090565b604051806040016040528060608152602001606081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b808211156143b657600081600090555060010161439e565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b614403816143ce565b811461440e57600080fd5b50565b600081359050614420816143fa565b92915050565b60006020828403121561443c5761443b6143c4565b5b600061444a84828501614411565b91505092915050565b60008115159050919050565b61446881614453565b82525050565b6000602082019050614483600083018461445f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156144c35780820151818401526020810190506144a8565b60008484015250505050565b6000601f19601f8301169050919050565b60006144eb82614489565b6144f58185614494565b93506145058185602086016144a5565b61450e816144cf565b840191505092915050565b6000602082019050818103600083015261453381846144e0565b905092915050565b6000819050919050565b61454e8161453b565b82525050565b60006020820190506145696000830184614545565b92915050565b6145788161453b565b811461458357600080fd5b50565b6000813590506145958161456f565b92915050565b6000602082840312156145b1576145b06143c4565b5b60006145bf84828501614586565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006145f3826145c8565b9050919050565b614603816145e8565b82525050565b600060208201905061461e60008301846145fa565b92915050565b61462d816145e8565b811461463857600080fd5b50565b60008135905061464a81614624565b92915050565b60008060408385031215614667576146666143c4565b5b60006146758582860161463b565b925050602061468685828601614586565b9150509250929050565b600080600080608085870312156146aa576146a96143c4565b5b60006146b887828801614586565b94505060206146c987828801614586565b93505060406146da87828801614586565b92505060606146eb8782880161463b565b91505092959194509250565b6000806040838503121561470e5761470d6143c4565b5b600061471c85828601614586565b925050602061472d85828601614586565b9150509250929050565b60006020828403121561474d5761474c6143c4565b5b600061475b8482850161463b565b91505092915050565b60008060006060848603121561477d5761477c6143c4565b5b600061478b8682870161463b565b935050602061479c8682870161463b565b92505060406147ad86828701614586565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6147f9826144cf565b810181811067ffffffffffffffff82111715614818576148176147c1565b5b80604052505050565b600061482b6143ba565b905061483782826147f0565b919050565b600067ffffffffffffffff821115614857576148566147c1565b5b614860826144cf565b9050602081019050919050565b82818337600083830152505050565b600061488f61488a8461483c565b614821565b9050828152602081018484840111156148ab576148aa6147bc565b5b6148b684828561486d565b509392505050565b600082601f8301126148d3576148d26147b7565b5b81356148e384826020860161487c565b91505092915050565b60008060008060008060c08789031215614909576149086143c4565b5b600061491789828a01614586565b965050602087013567ffffffffffffffff811115614938576149376143c9565b5b61494489828a016148be565b955050604061495589828a01614586565b945050606061496689828a01614586565b935050608061497789828a01614586565b92505060a061498889828a01614586565b9150509295509295509295565b600080604083850312156149ac576149ab6143c4565b5b60006149ba85828601614586565b925050602083013567ffffffffffffffff8111156149db576149da6143c9565b5b6149e7858286016148be565b9150509250929050565b600080600080600080600060e0888a031215614a1057614a0f6143c4565b5b6000614a1e8a828b01614586565b9750506020614a2f8a828b01614586565b965050604088013567ffffffffffffffff811115614a5057614a4f6143c9565b5b614a5c8a828b016148be565b9550506060614a6d8a828b01614586565b9450506080614a7e8a828b01614586565b93505060a0614a8f8a828b01614586565b92505060c0614aa08a828b01614586565b91505092959891949750929550565b614ab881614453565b8114614ac357600080fd5b50565b600081359050614ad581614aaf565b92915050565b60008060408385031215614af257614af16143c4565b5b6000614b008582860161463b565b9250506020614b1185828601614ac6565b9150509250929050565b614b248161453b565b82525050565b600082825260208201905092915050565b6000614b4682614489565b614b508185614b2a565b9350614b608185602086016144a5565b614b69816144cf565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614ba9816145e8565b82525050565b6000614bbb8383614ba0565b60208301905092915050565b6000602082019050919050565b6000614bdf82614b74565b614be98185614b7f565b9350614bf483614b90565b8060005b83811015614c25578151614c0c8882614baf565b9750614c1783614bc7565b925050600181019050614bf8565b5085935050505092915050565b600060e083016000830151614c4a6000860182614b1b565b506020830151614c5d6020860182614b1b565b506040830151614c706040860182614b1b565b506060830151614c836060860182614b1b565b5060808301518482036080860152614c9b8282614b3b565b91505060a083015184820360a0860152614cb58282614b3b565b91505060c083015184820360c0860152614ccf8282614bd4565b9150508091505092915050565b60006020820190508181036000830152614cf68184614c32565b905092915050565b600080600060608486031215614d1757614d166143c4565b5b6000614d2586828701614586565b9350506020614d3686828701614586565b9250506040614d4786828701614586565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600060e083016000830151614d956000860182614b1b565b506020830151614da86020860182614b1b565b506040830151614dbb6040860182614b1b565b506060830151614dce6060860182614b1b565b5060808301518482036080860152614de68282614b3b565b91505060a083015184820360a0860152614e008282614b3b565b91505060c083015184820360c0860152614e1a8282614bd4565b9150508091505092915050565b6000614e338383614d7d565b905092915050565b6000602082019050919050565b6000614e5382614d51565b614e5d8185614d5c565b935083602082028501614e6f85614d6d565b8060005b85811015614eab5784840389528151614e8c8582614e27565b9450614e9783614e3b565b925060208a01995050600181019050614e73565b50829750879550505050505092915050565b60006040830160008301518482036000860152614eda8282614b3b565b91505060208301518482036020860152614ef48282614e48565b9150508091505092915050565b60006020820190508181036000830152614f1b8184614ebd565b905092915050565b600067ffffffffffffffff821115614f3e57614f3d6147c1565b5b614f47826144cf565b9050602081019050919050565b6000614f67614f6284614f23565b614821565b905082815260208101848484011115614f8357614f826147bc565b5b614f8e84828561486d565b509392505050565b600082601f830112614fab57614faa6147b7565b5b8135614fbb848260208601614f54565b91505092915050565b60008060008060808587031215614fde57614fdd6143c4565b5b6000614fec8782880161463b565b9450506020614ffd8782880161463b565b935050604061500e87828801614586565b925050606085013567ffffffffffffffff81111561502f5761502e6143c9565b5b61503b87828801614f96565b91505092959194509250565b6000806000606084860312156150605761505f6143c4565b5b600061506e86828701614586565b935050602061507f86828701614586565b92505060406150908682870161463b565b9150509250925092565b6000806000606084860312156150b3576150b26143c4565b5b60006150c186828701614586565b93505060206150d286828701614586565b925050604084013567ffffffffffffffff8111156150f3576150f26143c9565b5b6150ff868287016148be565b9150509250925092565b600080604083850312156151205761511f6143c4565b5b600061512e8582860161463b565b925050602061513f8582860161463b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061519057607f821691505b6020821081036151a3576151a2615149565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f3000000000000000000000000000000000000000000000000000000000000000815250565b7f2e00000000000000000000000000000000000000000000000000000000000000815250565b600081905092915050565b600061523a82614489565b6152448185615224565b93506152548185602086016144a5565b80840191505092915050565b600061526b826151d8565b60018201915061527a826151fe565b60018201915061528a828461522f565b915081905092915050565b60006152a1828561522f565b91506152ac826151fe565b6001820191506152bc828461522f565b91508190509392505050565b600081905092915050565b50565b60006152e36000836152c8565b91506152ee826152d3565b600082019050919050565b6000615304826152d6565b9150819050919050565b600061531a828561522f565b9150615326828461522f565b91508190509392505050565b60008151905061534181614624565b92915050565b60006020828403121561535d5761535c6143c4565b5b600061536b84828501615332565b91505092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026153d67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615399565b6153e08683615399565b95508019841693508086168417925050509392505050565b6000819050919050565b600061541d6154186154138461453b565b6153f8565b61453b565b9050919050565b6000819050919050565b61543783615402565b61544b61544382615424565b8484546153a6565b825550505050565b600090565b615460615453565b61546b81848461542e565b505050565b5b8181101561548f57615484600082615458565b600181019050615471565b5050565b601f8211156154d4576154a581615374565b6154ae84615389565b810160208510156154bd578190505b6154d16154c985615389565b830182615470565b50505b505050565b600082821c905092915050565b60006154f7600019846008026154d9565b1980831691505092915050565b600061551083836154e6565b9150826002028217905092915050565b61552982614489565b67ffffffffffffffff811115615542576155416147c1565b5b61554c8254615178565b615557828285615493565b600060209050601f83116001811461558a5760008415615578578287015190505b6155828582615504565b8655506155ea565b601f19841661559886615374565b60005b828110156155c05784890151825560018201915060208501945060208101905061559b565b868310156155dd57848901516155d9601f8916826154e6565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061562c8261453b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361565e5761565d6155f2565b5b600182019050919050565b60008154905061567881615178565b9050919050565b60008190508160005260206000209050919050565b8181036156a257505061577a565b6156ab82615669565b67ffffffffffffffff8111156156c4576156c36147c1565b5b6156ce8254615178565b6156d9828285615493565b6000601f83116001811461570857600084156156f6578287015490505b6157008582615504565b865550615773565b601f1984166157168761567f565b965061572186615374565b60005b8281101561574957848901548255600182019150600185019450602081019050615724565b868310156157665784890154615762601f8916826154e6565b8355505b6001600288020188555050505b5050505050505b565b60006157878261453b565b91506157928361453b565b92508282026157a08161453b565b915082820484148315176157b7576157b66155f2565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006157f88261453b565b91506158038361453b565b925082615813576158126157be565b5b828204905092915050565b60006158298261453b565b91506158348361453b565b925082820390508181111561584c5761584b6155f2565b5b92915050565b6000815461585f81615178565b6158698186615224565b945060018216600081146158845760018114615899576158cc565b60ff19831686528115158202860193506158cc565b6158a285615374565b60005b838110156158c4578154818901526001820191506020810190506158a5565b838801955050505b50505092915050565b600081546158e281615178565b6158ec8186615224565b94506001821660008114615907576001811461591c5761594f565b60ff198316865281151582028601935061594f565b6159258561567f565b60005b8381101561594757815481890152600182019150602081019050615928565b838801955050505b50505092915050565b7f202d200000000000000000000000000000000000000000000000000000000000815250565b600061598a828e615852565b9150615996828d6158d5565b91506159a2828c61522f565b91506159ad82615958565b6003820191506159bd828b61522f565b91506159c9828a615852565b91506159d5828961522f565b91506159e18288615852565b91506159ed828761522f565b91506159f98286615852565b9150615a05828561522f565b9150615a118284615852565b91508190509c9b505050505050505050505050565b6000615a32828c615852565b9150615a3e828b61522f565b9150615a4a828a615852565b9150615a56828961522f565b9150615a628288615852565b9150615a6e828761522f565b9150615a7a8286615852565b9150615a86828561522f565b9150615a928284615852565b91508190509a9950505050505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615b01602683614494565b9150615b0c82615aa5565b604082019050919050565b60006020820190508181036000830152615b3081615af4565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615b6d602083614494565b9150615b7882615b37565b602082019050919050565b60006020820190508181036000830152615b9c81615b60565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bca82615ba3565b615bd48185615bae565b9350615be48185602086016144a5565b615bed816144cf565b840191505092915050565b6000608082019050615c0d60008301876145fa565b615c1a60208301866145fa565b615c276040830185614545565b8181036060830152615c398184615bbf565b905095945050505050565b600081519050615c53816143fa565b92915050565b600060208284031215615c6f57615c6e6143c4565b5b6000615c7d84828501615c44565b91505092915050565b60008082015250565b6000615c9c600183615224565b9150615ca782615c86565b600182019050919050565b6000615cbd82615ba3565b615cc781856152c8565b9350615cd78185602086016144a5565b80840191505092915050565b6000615cee82615c8f565b9150615cfa8284615cb2565b915081905092915050565b6000606082019050615d1a6000830186614545565b615d276020830185614545565b615d346040830184614545565b949350505050565b7f6300000000000000000000000000000000000000000000000000000000000000600082015250565b6000615d72600183615224565b9150615d7d82615d3c565b600182019050919050565b600063ffffffff82169050919050565b60008160e01b9050919050565b6000615db082615d98565b9050919050565b615dc8615dc382615d88565b615da5565b82525050565b7f80600e6000396000f30000000000000000000000000000000000000000000000600082015250565b6000615e04600983615224565b9150615e0f82615dce565b600982019050919050565b6000615e2582615d65565b9150615e318285615db7565b600482019150615e4082615df7565b9150615e4c8284615cb2565b9150819050939250505056fea2646970667358221220444bf2c4af6b26899eb32cba16818d7a5fd50b203c0784df6b256c4251da81a964736f6c63430008130033
Deployed Bytecode
0x6080604052600436106103355760003560e01c8063833eb9b8116101ab578063a7d514f1116100f7578063c87b56dd11610095578063dd67997d1161006f578063dd67997d14610c13578063e985e9c514610c50578063f2fde38b14610c8d578063f440459e14610cb657610335565b8063c87b56dd14610b82578063cd6ab03b14610bbf578063d9110c9c14610bea57610335565b8063ad0582d6116100d1578063ad0582d614610ae9578063b231792414610b26578063b88d4fde14610b3d578063bc9f41c714610b5957610335565b8063a7d514f114610a46578063a9c0082b14610a83578063acb586df14610aac57610335565b806399cbaa2b11610164578063a17390c71161013e578063a17390c71461098e578063a22cb465146109b7578063a3f62f39146109e0578063a5232cea14610a1d57610335565b806399cbaa2b146108eb5780639cf1a8dc14610914578063a09c53721461095157610335565b8063833eb9b8146107f157806386f748491461081a5780638a430743146108435780638da5cb5b1461086c5780638f0f46f11461089757806395d89b41146108c057610335565b806323b872dd116102855780635cec86531161022357806370a08231116101fd57806370a082311461074b578063715018a6146107885780637a1934b81461079f578063803021dc146107c857610335565b80635cec8653146106a85780636352211e146106e55780636c222b171461072257610335565b80633bc94eb11161025f5780633bc94eb11461060f57806342842e0e1461063857806352c9188f146106545780635af2eff21461066b57610335565b806323b872dd1461058d57806336b7df54146105a9578063373e3526146105d257610335565b80630e27c141116102f257806312b0ebb2116102cc57806312b0ebb2146104bf578063149fd99e146104fc57806318160ddd146105395780631e3bcc8e1461056457610335565b80630e27c141146104635780630fab32de1461048c5780631249c58b146104b557610335565b806301ffc9a71461033a57806306fdde03146103775780630702b69b146103a2578063081812fc146103cd578063095ea7b31461040a5780630b113f6514610426575b600080fd5b34801561034657600080fd5b50610361600480360381019061035c9190614426565b610cf3565b60405161036e919061446e565b60405180910390f35b34801561038357600080fd5b5061038c610d85565b6040516103999190614519565b60405180910390f35b3480156103ae57600080fd5b506103b7610e17565b6040516103c49190614554565b60405180910390f35b3480156103d957600080fd5b506103f460048036038101906103ef919061459b565b610e1d565b6040516104019190614609565b60405180910390f35b610424600480360381019061041f9190614650565b610e9c565b005b34801561043257600080fd5b5061044d6004803603810190610448919061459b565b610fe0565b60405161045a9190614519565b60405180910390f35b34801561046f57600080fd5b5061048a60048036038101906104859190614690565b611083565b005b34801561049857600080fd5b506104b360048036038101906104ae91906146f7565b61112a565b005b6104bd611180565b005b3480156104cb57600080fd5b506104e660048036038101906104e1919061459b565b611250565b6040516104f39190614554565b60405180910390f35b34801561050857600080fd5b50610523600480360381019061051e919061459b565b61126b565b6040516105309190614554565b60405180910390f35b34801561054557600080fd5b5061054e611283565b60405161055b9190614554565b60405180910390f35b34801561057057600080fd5b5061058b60048036038101906105869190614737565b61129a565b005b6105a760048036038101906105a29190614764565b6112f2565b005b3480156105b557600080fd5b506105d060048036038101906105cb919061459b565b611614565b005b3480156105de57600080fd5b506105f960048036038101906105f491906146f7565b611626565b6040516106069190614519565b60405180910390f35b34801561061b57600080fd5b50610636600480360381019061063191906146f7565b6119e8565b005b610652600480360381019061064d9190614764565b611a0c565b005b34801561066057600080fd5b50610669611a2c565b005b34801561067757600080fd5b50610692600480360381019061068d919061459b565b611af4565b60405161069f9190614519565b60405180910390f35b3480156106b457600080fd5b506106cf60048036038101906106ca91906146f7565b611b97565b6040516106dc9190614519565b60405180910390f35b3480156106f157600080fd5b5061070c6004803603810190610707919061459b565b611d26565b6040516107199190614609565b60405180910390f35b34801561072e57600080fd5b5061074960048036038101906107449190614737565b611e58565b005b34801561075757600080fd5b50610772600480360381019061076d9190614737565b611ea4565b60405161077f9190614554565b60405180910390f35b34801561079457600080fd5b5061079d611f5c565b005b3480156107ab57600080fd5b506107c660048036038101906107c1919061459b565b611f70565b005b3480156107d457600080fd5b506107ef60048036038101906107ea91906148ec565b611fc7565b005b3480156107fd57600080fd5b5061081860048036038101906108139190614737565b61218d565b005b34801561082657600080fd5b50610841600480360381019061083c9190614650565b6121d9565b005b34801561084f57600080fd5b5061086a60048036038101906108659190614995565b61239f565b005b34801561087857600080fd5b506108816123ce565b60405161088e9190614609565b60405180910390f35b3480156108a357600080fd5b506108be60048036038101906108b99190614995565b6123f8565b005b3480156108cc57600080fd5b506108d5612427565b6040516108e29190614519565b60405180910390f35b3480156108f757600080fd5b50610912600480360381019061090d919061459b565b6124b9565b005b34801561092057600080fd5b5061093b6004803603810190610936919061459b565b6125db565b604051610948919061446e565b60405180910390f35b34801561095d57600080fd5b506109786004803603810190610973919061459b565b6125fb565b6040516109859190614519565b60405180910390f35b34801561099a57600080fd5b506109b560048036038101906109b091906149f1565b6126a7565b005b3480156109c357600080fd5b506109de60048036038101906109d99190614adb565b612749565b005b3480156109ec57600080fd5b50610a076004803603810190610a0291906146f7565b612854565b604051610a149190614cdc565b60405180910390f35b348015610a2957600080fd5b50610a446004803603810190610a3f9190614cfe565b612a84565b005b348015610a5257600080fd5b50610a6d6004803603810190610a68919061459b565b612ac8565b604051610a7a9190614519565b60405180910390f35b348015610a8f57600080fd5b50610aaa6004803603810190610aa59190614995565b612b5f565b005b348015610ab857600080fd5b50610ad36004803603810190610ace919061459b565b612b94565b604051610ae09190614f01565b60405180910390f35b348015610af557600080fd5b50610b106004803603810190610b0b91906146f7565b612e91565b604051610b1d9190614554565b60405180910390f35b348015610b3257600080fd5b50610b3b612eb9565b005b610b576004803603810190610b529190614fc4565b612eed565b005b348015610b6557600080fd5b50610b806004803603810190610b7b9190615047565b612f60565b005b348015610b8e57600080fd5b50610ba96004803603810190610ba4919061459b565b61300c565b604051610bb69190614519565b60405180910390f35b348015610bcb57600080fd5b50610bd461351e565b604051610be1919061446e565b60405180910390f35b348015610bf657600080fd5b50610c116004803603810190610c0c919061459b565b613531565b005b348015610c1f57600080fd5b50610c3a6004803603810190610c35919061509a565b6135ed565b604051610c479190614609565b60405180910390f35b348015610c5c57600080fd5b50610c776004803603810190610c729190615109565b6136ae565b604051610c84919061446e565b60405180910390f35b348015610c9957600080fd5b50610cb46004803603810190610caf9190614737565b613742565b005b348015610cc257600080fd5b50610cdd6004803603810190610cd8919061459b565b6137c5565b604051610cea919061446e565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d4e57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d7e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610d9490615178565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc090615178565b8015610e0d5780601f10610de257610100808354040283529160200191610e0d565b820191906000526020600020905b815481529060010190602001808311610df057829003601f168201915b5050505050905090565b600a5481565b6000610e28826137e5565b610e5e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ea782611d26565b90508073ffffffffffffffffffffffffffffffffffffffff16610ec8613844565b73ffffffffffffffffffffffffffffffffffffffff1614610f2b57610ef481610eef613844565b6136ae565b610f2a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60358160078110610ff057600080fd5b01600091509050805461100290615178565b80601f016020809104026020016040519081016040528092919081815260200182805461102e90615178565b801561107b5780601f106110505761010080835404028352916020019161107b565b820191906000526020600020905b81548152906001019060200180831161105e57829003601f168201915b505050505081565b61108b61384c565b80601285600f81106110a05761109f6151a9565b5b6002020160010184815481106110b9576110b86151a9565b5b906000526020600020906007020160060183815481106110dc576110db6151a9565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b61113261384c565b601282600f8110611146576111456151a9565b5b60020201600101818154811061115f5761115e6151a9565b5b9060005260206000209060070201600601600061117c919061420c565b5050565b600d60009054906101000a900460ff166111c6576040517fdf595e5a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a546111d1611283565b10611208576040517fdac1789000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e543414611243576040517f2bb1a66a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61124e3360016138ca565b565b603c816015811061126057600080fd5b016000915090505481565b60106020528060005260406000206000915090505481565b600061128d613a85565b6001546000540303905090565b6112a261384c565b600a546112ad611283565b106112e4576040517fdac1789000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112ef8160016138ca565b50565b60006112fd82613a8a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611364576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061137084613b56565b915091506113868187611381613844565b613b7d565b6113d25761139b86611396613844565b6136ae565b6113d1576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611438576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114458686866001613bc1565b801561145057600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061151e856114fa888887613c58565b7c020000000000000000000000000000000000000000000000000000000017613c80565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036115a457600060018501905060006004600083815260200190815260200160002054036115a25760005481146115a1578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461160c8686866001613cab565b505050505050565b61161c61384c565b80600e8190555050565b6060600061163384613cb1565b905060008151905060008467ffffffffffffffff811115611657576116566147c1565b5b6040519080825280601f01601f1916602001820160405280156116895781602001600182028036833780820191505090505b5090508185111561184457600082860390505b828603811015611741576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152506000815181106116ef576116ee6151a9565b5b602001015160f81c60f81b82828151811061170d5761170c6151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506117a6565b83838703820381518110611758576117576151a9565b5b602001015160f81c60f81b828281518110611776576117756151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b806001900390506000811161169c577f3000000000000000000000000000000000000000000000000000000000000000826000815181106117ea576117e96151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508160405160200161182a9190615260565b6040516020818303038152906040529450505050506119e2565b818503611875578260405160200161185c9190615260565b60405160208183030381529060405293505050506119e2565b60008060008088860367ffffffffffffffff811115611897576118966147c1565b5b6040519080825280601f01601f1916602001820160405280156118c95781602001600182028036833780820191505090505b5090505b888603821015611942578682815181106118ea576118e96151a9565b5b602001015160f81c60f81b818581518110611908576119076151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508360010193506119a9565b868281518110611955576119546151a9565b5b602001015160f81c60f81b858481518110611973576119726151a9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508260010192505b8160010191508582106118cd5780856040516020016119c9929190615295565b6040516020818303038152906040529750505050505050505b92915050565b6119f061384c565b8060106000848152602001908152602001600020819055505050565b611a2783838360405180602001604052806000815250612eed565b505050565b6000605160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051611a74906152f9565b60006040518083038185875af1925050503d8060008114611ab1576040519150601f19603f3d011682016040523d82523d6000602084013e611ab6565b606091505b5050905080611af1576040517fc79988b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b60308160058110611b0457600080fd5b016000915090508054611b1690615178565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4290615178565b8015611b8f5780601f10611b6457610100808354040283529160200191611b8f565b820191906000526020600020905b815481529060010190602001808311611b7257829003601f168201915b505050505081565b60606000601284600f8110611baf57611bae6151a9565b5b600202016001018381548110611bc857611bc76151a9565b5b90600052602060002090600702016006018054905003611bf957604051806020016040528060008152509050611d20565b600060606000601286600f8110611c1357611c126151a9565b5b600202016001018581548110611c2c57611c2b6151a9565b5b9060005260206000209060070201600601805480602002602001604051908101604052809291908181526020018280548015611cbd57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611c73575b505050505090505b81611ce9828581518110611cdc57611cdb6151a9565b5b6020026020010151613d01565b604051602001611cfa92919061530e565b604051602081830303815290604052915082600101925080518310611cc5578193505050505b92915050565b6000611d31826137e5565b611d67576040517fedc178bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f600083815260200190815260200160002060009054906101000a900460ff1615611e4357601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e60106000858152602001908152602001600020546040518263ffffffff1660e01b8152600401611dfb9190614554565b602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c9190615347565b9050611e53565b611e4c82613d36565b6000015190505b919050565b611e6061384c565b80605160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f0b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611f6461384c565b611f6e6000613d56565b565b611f7861384c565b600f600082815260200190815260200160002060009054906101000a900460ff1615600f600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611fcf61384c565b611fd761422d565b85816080018190525084816000018181525050838160200181815250508281604001818152505081816060018181525050601287600f811061201c5761201b6151a9565b5b60020201600001805461202e90615178565b80601f016020809104026020016040519081016040528092919081815260200182805461205a90615178565b80156120a75780601f1061207c576101008083540402835291602001916120a7565b820191906000526020600020905b81548152906001019060200180831161208a57829003601f168201915b50505050508160a00181905250601287600f81106120c8576120c76151a9565b5b600202016001018190806001815401808255809150506001900390600052602060002090600702016000909190919091506000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040190816121369190615520565b5060a082015181600501908161214c9190615520565b5060c082015181600601908051906020019061216992919061426a565b505050600a600081548092919061217f90615621565b919050555050505050505050565b61219561384c565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6121e161384c565b600a546121ec611283565b10612223576040517fdac1789000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e603c8460158110612277576122766151a9565b5b01546040518263ffffffff1660e01b81526004016122959190614554565b602060405180830381865afa1580156122b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d69190615347565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461233d576040517f83cbc0c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600f600061234b613e1c565b815260200190815260200160002060006101000a81548160ff021916908315150217905550816010600061237d613e1c565b81526020019081526020016000208190555061239a8360016138ca565b505050565b6123a761384c565b80603083600581106123bc576123bb6151a9565b5b0190816123c99190615520565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61240061384c565b8060358360078110612415576124146151a9565b5b0190816124229190615520565b505050565b60606003805461243690615178565b80601f016020809104026020016040519081016040528092919081815260200182805461246290615178565b80156124af5780601f10612484576101008083540402835291602001916124af565b820191906000526020600020905b81548152906001019060200180831161249257829003601f168201915b5050505050905090565b600f600082815260200190815260200160002060009054906101000a900460ff16612510576040517faf3bc0e000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61251981611d26565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461257d576040517f9d695f0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450565b600f6020528060005260406000206000915054906101000a900460ff1681565b601281600f811061260b57600080fd5b6002020160009150905080600001805461262490615178565b80601f016020809104026020016040519081016040528092919081815260200182805461265090615178565b801561269d5780601f106126725761010080835404028352916020019161269d565b820191906000526020600020905b81548152906001019060200180831161268057829003601f168201915b5050505050905081565b6126af61384c565b6000601288600f81106126c5576126c46151a9565b5b60020201905060008160010188815481106126e3576126e26151a9565b5b90600052602060002090600702019050868160040190816127049190615520565b508581600001819055508481600101819055508381600201819055508281600301819055508160000181600501908161273d9190615694565b50505050505050505050565b8060076000612756613844565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612803613844565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612848919061446e565b60405180910390a35050565b61285c61422d565b601283600f81106128705761286f6151a9565b5b600202016001018281548110612889576128886151a9565b5b90600052602060002090600702016040518060e0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820180546128da90615178565b80601f016020809104026020016040519081016040528092919081815260200182805461290690615178565b80156129535780601f1061292857610100808354040283529160200191612953565b820191906000526020600020905b81548152906001019060200180831161293657829003601f168201915b5050505050815260200160058201805461296c90615178565b80601f016020809104026020016040519081016040528092919081815260200182805461299890615178565b80156129e55780601f106129ba576101008083540402835291602001916129e5565b820191906000526020600020905b8154815290600101906020018083116129c857829003601f168201915b5050505050815260200160068201805480602002602001604051908101604052809291908181526020018280548015612a7357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612a29575b505050505081525050905092915050565b612a8c61384c565b604051806040016040528083815260200182815250600b6000858152602001908152602001600020906002612ac29291906142f4565b50505050565b60606000600b6000848152602001908152602001600020600280602002604051908101604052809291908260028015612b16576020028201915b815481526020019060010190808311612b02575b50505050509050612b5781600060028110612b3457612b336151a9565b5b602002015182600160028110612b4d57612b4c6151a9565b5b6020020151611b97565b915050919050565b612b6761384c565b80601283600f8110612b7c57612b7b6151a9565b5b600202016000019081612b8f9190615520565b505050565b612b9c614334565b601282600f8110612bb057612baf6151a9565b5b60020201604051806040016040529081600082018054612bcf90615178565b80601f0160208091040260200160405190810160405280929190818152602001828054612bfb90615178565b8015612c485780601f10612c1d57610100808354040283529160200191612c48565b820191906000526020600020905b815481529060010190602001808311612c2b57829003601f168201915b5050505050815260200160018201805480602002602001604051908101604052809291908181526020016000905b82821015612e8257838290600052602060002090600702016040518060e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482018054612cd190615178565b80601f0160208091040260200160405190810160405280929190818152602001828054612cfd90615178565b8015612d4a5780601f10612d1f57610100808354040283529160200191612d4a565b820191906000526020600020905b815481529060010190602001808311612d2d57829003601f168201915b50505050508152602001600582018054612d6390615178565b80601f0160208091040260200160405190810160405280929190818152602001828054612d8f90615178565b8015612ddc5780601f10612db157610100808354040283529160200191612ddc565b820191906000526020600020905b815481529060010190602001808311612dbf57829003601f168201915b5050505050815260200160068201805480602002602001604051908101604052809291908181526020018280548015612e6a57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612e20575b50505050508152505081526020019060010190612c76565b50505050815250509050919050565b600b6020528160005260406000208160028110612ead57600080fd5b01600091509150505481565b612ec161384c565b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b612ef88484846112f2565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f5a57612f2384848484613e25565b612f59576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612f6861384c565b601283600f8110612f7c57612f7b6151a9565b5b600202016001018281548110612f9557612f946151a9565b5b9060005260206000209060070201600601819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6060613017826137e5565b61304d576040517fedc178bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600b6000848152602001908152602001600020600280602002604051908101604052809291908260028015613099576020028201915b815481526020019060010190808311613085575b5050505050905060006012826000600281106130b8576130b76151a9565b5b6020020151600f81106130ce576130cd6151a9565b5b60020201600101826001600281106130e9576130e86151a9565b5b6020020151815481106130ff576130fe6151a9565b5b90600052602060002090600702016040518060e00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201805461315090615178565b80601f016020809104026020016040519081016040528092919081815260200182805461317c90615178565b80156131c95780601f1061319e576101008083540402835291602001916131c9565b820191906000526020600020905b8154815290600101906020018083116131ac57829003601f168201915b505050505081526020016005820180546131e290615178565b80601f016020809104026020016040519081016040528092919081815260200182805461320e90615178565b801561325b5780601f106132305761010080835404028352916020019161325b565b820191906000526020600020905b81548152906001019060200180831161323e57829003601f168201915b50505050508152602001600682018054806020026020016040519081016040528092919081815260200182805480156132e957602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161329f575b50505050508152505090506000603560006007811061330b5761330a6151a9565b5b01600c600087815260200190815260200160002060009054906101000a900460ff1661334c576035600260078110613346576133456151a9565b5b01613363565b6035600160078110613361576133606151a9565b5b015b61336c87613cb1565b84608001516035600360078110613386576133856151a9565b5b016133bb6002600a896040015161339d919061577c565b6133a791906157ed565b6113886133b4919061581e565b6002611626565b60356004600781106133d0576133cf6151a9565b5b016134056002600a8b606001516133e7919061577c565b6133f191906157ed565b6113886133fe919061581e565b6002611626565b603560056007811061341a576134196151a9565b5b016134248e612ac8565b6035600660078110613439576134386151a9565b5b016040516020016134549b9a9998979695949392919061597e565b60405160208183030381529060405290506000603060006005811061347c5761347b6151a9565b5b0161348687613cb1565b603060016005811061349b5761349a6151a9565b5b018560a0015160306002600581106134b6576134b56151a9565b5b01876080015160306003600581106134d1576134d06151a9565b5b018860306004600581106134e8576134e76151a9565b5b0160405160200161350199989796959493929190615a26565b604051602081830303815290604052905080945050505050919050565b600d60009054906101000a900460ff1681565b61353a81611d26565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461359e576040517feabeeff800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c600082815260200190815260200160002060009054906101000a900460ff1615600c600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60006135f761384c565b600061360283613f75565b9050601285600f8110613618576136176151a9565b5b600202016001018481548110613631576136306151a9565b5b9060005260206000209060070201600601819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550809150509392505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61374a61384c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036137b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b090615b17565b60405180910390fd5b6137c281613d56565b50565b600c6020528060005260406000206000915054906101000a900460ff1681565b6000816137f0613a85565b111580156137ff575060005482105b801561383d575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b613854614019565b73ffffffffffffffffffffffffffffffffffffffff166138726123ce565b73ffffffffffffffffffffffffffffffffffffffff16146138c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138bf90615b83565b60405180910390fd5b565b6000805490506000820361390a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6139176000848385613bc1565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061398e8361397f6000866000613c58565b61398885614021565b17613c80565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613a2f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506139f4565b5060008203613a6a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613a806000848385613cab565b505050565b600090565b60008082905080613a99613a85565b11613b1f57600054811015613b1e5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613b1c575b60008103613b12576004600083600190039350838152602001908152602001600020549050613ae8565b8092505050613b51565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b600f600083815260200190815260200160002060009054906101000a900460ff168015613c1b5750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b15613c52576040517f346885a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60008060e883901c905060e8613c6f868684614031565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b606060a060405101806040526020810391506000825281835b600115613cec57600184039350600a81066030018453600a8104905080613cca575b50828103602084039350808452505050919050565b6060613d2f8260017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61403a565b9050919050565b613d3e61434e565b613d4f613d4a83613a8a565b61411f565b9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613e4b613844565b8786866040518563ffffffff1660e01b8152600401613e6d9493929190615bf8565b6020604051808303816000875af1925050508015613ea957506040513d601f19601f82011682018060405250810190613ea69190615c59565b60015b613f22573d8060008114613ed9576040519150601f19603f3d011682016040523d82523d6000602084013e613ede565b606091505b506000815103613f1a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080613fa083604051602001613f8c9190615ce3565b6040516020818303038152906040526141d5565b90508051602082016000f09150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603614013576040517f08d4abb600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50919050565b600033905090565b60006001821460e11b9050919050565b60009392505050565b6060600061404785614201565b9050600081036140695760405180602001604052806000815250915050614118565b808411156140895760405180602001604052806000815250915050614118565b838310156140d2578084846040517f2c4a89fa0000000000000000000000000000000000000000000000000000000081526004016140c993929190615d05565b60405180910390fd5b600084840390506000858303905060008282106140ef57826140f1565b815b90506040519450601f19601f60208301011685016040528085528087602087018a3c505050505b9392505050565b61412761434e565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60608151826040516020016141eb929190615e1a565b6040516020818303038152906040529050919050565b6000813b9050919050565b508054600082559060005260206000209081019061422a919061439d565b50565b6040518060e00160405280600081526020016000815260200160008152602001600081526020016060815260200160608152602001606081525090565b8280548282559060005260206000209081019282156142e3579160200282015b828111156142e25782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061428a565b5b5090506142f0919061439d565b5090565b8260028101928215614323579160200282015b82811115614322578251825591602001919060010190614307565b5b509050614330919061439d565b5090565b604051806040016040528060608152602001606081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b808211156143b657600081600090555060010161439e565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b614403816143ce565b811461440e57600080fd5b50565b600081359050614420816143fa565b92915050565b60006020828403121561443c5761443b6143c4565b5b600061444a84828501614411565b91505092915050565b60008115159050919050565b61446881614453565b82525050565b6000602082019050614483600083018461445f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156144c35780820151818401526020810190506144a8565b60008484015250505050565b6000601f19601f8301169050919050565b60006144eb82614489565b6144f58185614494565b93506145058185602086016144a5565b61450e816144cf565b840191505092915050565b6000602082019050818103600083015261453381846144e0565b905092915050565b6000819050919050565b61454e8161453b565b82525050565b60006020820190506145696000830184614545565b92915050565b6145788161453b565b811461458357600080fd5b50565b6000813590506145958161456f565b92915050565b6000602082840312156145b1576145b06143c4565b5b60006145bf84828501614586565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006145f3826145c8565b9050919050565b614603816145e8565b82525050565b600060208201905061461e60008301846145fa565b92915050565b61462d816145e8565b811461463857600080fd5b50565b60008135905061464a81614624565b92915050565b60008060408385031215614667576146666143c4565b5b60006146758582860161463b565b925050602061468685828601614586565b9150509250929050565b600080600080608085870312156146aa576146a96143c4565b5b60006146b887828801614586565b94505060206146c987828801614586565b93505060406146da87828801614586565b92505060606146eb8782880161463b565b91505092959194509250565b6000806040838503121561470e5761470d6143c4565b5b600061471c85828601614586565b925050602061472d85828601614586565b9150509250929050565b60006020828403121561474d5761474c6143c4565b5b600061475b8482850161463b565b91505092915050565b60008060006060848603121561477d5761477c6143c4565b5b600061478b8682870161463b565b935050602061479c8682870161463b565b92505060406147ad86828701614586565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6147f9826144cf565b810181811067ffffffffffffffff82111715614818576148176147c1565b5b80604052505050565b600061482b6143ba565b905061483782826147f0565b919050565b600067ffffffffffffffff821115614857576148566147c1565b5b614860826144cf565b9050602081019050919050565b82818337600083830152505050565b600061488f61488a8461483c565b614821565b9050828152602081018484840111156148ab576148aa6147bc565b5b6148b684828561486d565b509392505050565b600082601f8301126148d3576148d26147b7565b5b81356148e384826020860161487c565b91505092915050565b60008060008060008060c08789031215614909576149086143c4565b5b600061491789828a01614586565b965050602087013567ffffffffffffffff811115614938576149376143c9565b5b61494489828a016148be565b955050604061495589828a01614586565b945050606061496689828a01614586565b935050608061497789828a01614586565b92505060a061498889828a01614586565b9150509295509295509295565b600080604083850312156149ac576149ab6143c4565b5b60006149ba85828601614586565b925050602083013567ffffffffffffffff8111156149db576149da6143c9565b5b6149e7858286016148be565b9150509250929050565b600080600080600080600060e0888a031215614a1057614a0f6143c4565b5b6000614a1e8a828b01614586565b9750506020614a2f8a828b01614586565b965050604088013567ffffffffffffffff811115614a5057614a4f6143c9565b5b614a5c8a828b016148be565b9550506060614a6d8a828b01614586565b9450506080614a7e8a828b01614586565b93505060a0614a8f8a828b01614586565b92505060c0614aa08a828b01614586565b91505092959891949750929550565b614ab881614453565b8114614ac357600080fd5b50565b600081359050614ad581614aaf565b92915050565b60008060408385031215614af257614af16143c4565b5b6000614b008582860161463b565b9250506020614b1185828601614ac6565b9150509250929050565b614b248161453b565b82525050565b600082825260208201905092915050565b6000614b4682614489565b614b508185614b2a565b9350614b608185602086016144a5565b614b69816144cf565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614ba9816145e8565b82525050565b6000614bbb8383614ba0565b60208301905092915050565b6000602082019050919050565b6000614bdf82614b74565b614be98185614b7f565b9350614bf483614b90565b8060005b83811015614c25578151614c0c8882614baf565b9750614c1783614bc7565b925050600181019050614bf8565b5085935050505092915050565b600060e083016000830151614c4a6000860182614b1b565b506020830151614c5d6020860182614b1b565b506040830151614c706040860182614b1b565b506060830151614c836060860182614b1b565b5060808301518482036080860152614c9b8282614b3b565b91505060a083015184820360a0860152614cb58282614b3b565b91505060c083015184820360c0860152614ccf8282614bd4565b9150508091505092915050565b60006020820190508181036000830152614cf68184614c32565b905092915050565b600080600060608486031215614d1757614d166143c4565b5b6000614d2586828701614586565b9350506020614d3686828701614586565b9250506040614d4786828701614586565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600060e083016000830151614d956000860182614b1b565b506020830151614da86020860182614b1b565b506040830151614dbb6040860182614b1b565b506060830151614dce6060860182614b1b565b5060808301518482036080860152614de68282614b3b565b91505060a083015184820360a0860152614e008282614b3b565b91505060c083015184820360c0860152614e1a8282614bd4565b9150508091505092915050565b6000614e338383614d7d565b905092915050565b6000602082019050919050565b6000614e5382614d51565b614e5d8185614d5c565b935083602082028501614e6f85614d6d565b8060005b85811015614eab5784840389528151614e8c8582614e27565b9450614e9783614e3b565b925060208a01995050600181019050614e73565b50829750879550505050505092915050565b60006040830160008301518482036000860152614eda8282614b3b565b91505060208301518482036020860152614ef48282614e48565b9150508091505092915050565b60006020820190508181036000830152614f1b8184614ebd565b905092915050565b600067ffffffffffffffff821115614f3e57614f3d6147c1565b5b614f47826144cf565b9050602081019050919050565b6000614f67614f6284614f23565b614821565b905082815260208101848484011115614f8357614f826147bc565b5b614f8e84828561486d565b509392505050565b600082601f830112614fab57614faa6147b7565b5b8135614fbb848260208601614f54565b91505092915050565b60008060008060808587031215614fde57614fdd6143c4565b5b6000614fec8782880161463b565b9450506020614ffd8782880161463b565b935050604061500e87828801614586565b925050606085013567ffffffffffffffff81111561502f5761502e6143c9565b5b61503b87828801614f96565b91505092959194509250565b6000806000606084860312156150605761505f6143c4565b5b600061506e86828701614586565b935050602061507f86828701614586565b92505060406150908682870161463b565b9150509250925092565b6000806000606084860312156150b3576150b26143c4565b5b60006150c186828701614586565b93505060206150d286828701614586565b925050604084013567ffffffffffffffff8111156150f3576150f26143c9565b5b6150ff868287016148be565b9150509250925092565b600080604083850312156151205761511f6143c4565b5b600061512e8582860161463b565b925050602061513f8582860161463b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061519057607f821691505b6020821081036151a3576151a2615149565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f3000000000000000000000000000000000000000000000000000000000000000815250565b7f2e00000000000000000000000000000000000000000000000000000000000000815250565b600081905092915050565b600061523a82614489565b6152448185615224565b93506152548185602086016144a5565b80840191505092915050565b600061526b826151d8565b60018201915061527a826151fe565b60018201915061528a828461522f565b915081905092915050565b60006152a1828561522f565b91506152ac826151fe565b6001820191506152bc828461522f565b91508190509392505050565b600081905092915050565b50565b60006152e36000836152c8565b91506152ee826152d3565b600082019050919050565b6000615304826152d6565b9150819050919050565b600061531a828561522f565b9150615326828461522f565b91508190509392505050565b60008151905061534181614624565b92915050565b60006020828403121561535d5761535c6143c4565b5b600061536b84828501615332565b91505092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026153d67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615399565b6153e08683615399565b95508019841693508086168417925050509392505050565b6000819050919050565b600061541d6154186154138461453b565b6153f8565b61453b565b9050919050565b6000819050919050565b61543783615402565b61544b61544382615424565b8484546153a6565b825550505050565b600090565b615460615453565b61546b81848461542e565b505050565b5b8181101561548f57615484600082615458565b600181019050615471565b5050565b601f8211156154d4576154a581615374565b6154ae84615389565b810160208510156154bd578190505b6154d16154c985615389565b830182615470565b50505b505050565b600082821c905092915050565b60006154f7600019846008026154d9565b1980831691505092915050565b600061551083836154e6565b9150826002028217905092915050565b61552982614489565b67ffffffffffffffff811115615542576155416147c1565b5b61554c8254615178565b615557828285615493565b600060209050601f83116001811461558a5760008415615578578287015190505b6155828582615504565b8655506155ea565b601f19841661559886615374565b60005b828110156155c05784890151825560018201915060208501945060208101905061559b565b868310156155dd57848901516155d9601f8916826154e6565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061562c8261453b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361565e5761565d6155f2565b5b600182019050919050565b60008154905061567881615178565b9050919050565b60008190508160005260206000209050919050565b8181036156a257505061577a565b6156ab82615669565b67ffffffffffffffff8111156156c4576156c36147c1565b5b6156ce8254615178565b6156d9828285615493565b6000601f83116001811461570857600084156156f6578287015490505b6157008582615504565b865550615773565b601f1984166157168761567f565b965061572186615374565b60005b8281101561574957848901548255600182019150600185019450602081019050615724565b868310156157665784890154615762601f8916826154e6565b8355505b6001600288020188555050505b5050505050505b565b60006157878261453b565b91506157928361453b565b92508282026157a08161453b565b915082820484148315176157b7576157b66155f2565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006157f88261453b565b91506158038361453b565b925082615813576158126157be565b5b828204905092915050565b60006158298261453b565b91506158348361453b565b925082820390508181111561584c5761584b6155f2565b5b92915050565b6000815461585f81615178565b6158698186615224565b945060018216600081146158845760018114615899576158cc565b60ff19831686528115158202860193506158cc565b6158a285615374565b60005b838110156158c4578154818901526001820191506020810190506158a5565b838801955050505b50505092915050565b600081546158e281615178565b6158ec8186615224565b94506001821660008114615907576001811461591c5761594f565b60ff198316865281151582028601935061594f565b6159258561567f565b60005b8381101561594757815481890152600182019150602081019050615928565b838801955050505b50505092915050565b7f202d200000000000000000000000000000000000000000000000000000000000815250565b600061598a828e615852565b9150615996828d6158d5565b91506159a2828c61522f565b91506159ad82615958565b6003820191506159bd828b61522f565b91506159c9828a615852565b91506159d5828961522f565b91506159e18288615852565b91506159ed828761522f565b91506159f98286615852565b9150615a05828561522f565b9150615a118284615852565b91508190509c9b505050505050505050505050565b6000615a32828c615852565b9150615a3e828b61522f565b9150615a4a828a615852565b9150615a56828961522f565b9150615a628288615852565b9150615a6e828761522f565b9150615a7a8286615852565b9150615a86828561522f565b9150615a928284615852565b91508190509a9950505050505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615b01602683614494565b9150615b0c82615aa5565b604082019050919050565b60006020820190508181036000830152615b3081615af4565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615b6d602083614494565b9150615b7882615b37565b602082019050919050565b60006020820190508181036000830152615b9c81615b60565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bca82615ba3565b615bd48185615bae565b9350615be48185602086016144a5565b615bed816144cf565b840191505092915050565b6000608082019050615c0d60008301876145fa565b615c1a60208301866145fa565b615c276040830185614545565b8181036060830152615c398184615bbf565b905095945050505050565b600081519050615c53816143fa565b92915050565b600060208284031215615c6f57615c6e6143c4565b5b6000615c7d84828501615c44565b91505092915050565b60008082015250565b6000615c9c600183615224565b9150615ca782615c86565b600182019050919050565b6000615cbd82615ba3565b615cc781856152c8565b9350615cd78185602086016144a5565b80840191505092915050565b6000615cee82615c8f565b9150615cfa8284615cb2565b915081905092915050565b6000606082019050615d1a6000830186614545565b615d276020830185614545565b615d346040830184614545565b949350505050565b7f6300000000000000000000000000000000000000000000000000000000000000600082015250565b6000615d72600183615224565b9150615d7d82615d3c565b600182019050919050565b600063ffffffff82169050919050565b60008160e01b9050919050565b6000615db082615d98565b9050919050565b615dc8615dc382615d88565b615da5565b82525050565b7f80600e6000396000f30000000000000000000000000000000000000000000000600082015250565b6000615e04600983615224565b9150615e0f82615dce565b600982019050919050565b6000615e2582615d65565b9150615e318285615db7565b600482019150615e4082615df7565b9150615e4c8284615cb2565b9150819050939250505056fea2646970667358221220444bf2c4af6b26899eb32cba16818d7a5fd50b203c0784df6b256c4251da81a964736f6c63430008130033
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.