Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 72 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Safe Transfer Fr... | 24336816 | 32 days ago | IN | 0 ETH | 0.00019951 | ||||
| Set Approval For... | 24333598 | 32 days ago | IN | 0 ETH | 0.0000033 | ||||
| Set Approval For... | 24189119 | 52 days ago | IN | 0 ETH | 0.00000204 | ||||
| Set Approval For... | 24101989 | 64 days ago | IN | 0 ETH | 0.00009467 | ||||
| Set Approval For... | 24041162 | 73 days ago | IN | 0 ETH | 0.00009557 | ||||
| Safe Transfer Fr... | 24040982 | 73 days ago | IN | 0 ETH | 0.00031701 | ||||
| Safe Transfer Fr... | 24040980 | 73 days ago | IN | 0 ETH | 0.00031023 | ||||
| Safe Transfer Fr... | 24040960 | 73 days ago | IN | 0 ETH | 0.00028457 | ||||
| Safe Transfer Fr... | 24040955 | 73 days ago | IN | 0 ETH | 0.00028977 | ||||
| Set Approval For... | 23472150 | 153 days ago | IN | 0 ETH | 0.00006125 | ||||
| Set Approval For... | 23467127 | 153 days ago | IN | 0 ETH | 0.00005517 | ||||
| Set Approval For... | 23380562 | 165 days ago | IN | 0 ETH | 0.00005342 | ||||
| Set Approval For... | 23354166 | 169 days ago | IN | 0 ETH | 0.00003006 | ||||
| Set Approval For... | 23344281 | 170 days ago | IN | 0 ETH | 0.0000523 | ||||
| Safe Transfer Fr... | 23344253 | 170 days ago | IN | 0 ETH | 0.00010742 | ||||
| Safe Transfer Fr... | 22592583 | 276 days ago | IN | 0 ETH | 0.00017145 | ||||
| Set Approval For... | 21387395 | 444 days ago | IN | 0 ETH | 0.00165575 | ||||
| Safe Transfer Fr... | 19235981 | 745 days ago | IN | 0 ETH | 0.00444221 | ||||
| Set Approval For... | 18802114 | 806 days ago | IN | 0 ETH | 0.000846 | ||||
| Set Approval For... | 18721073 | 817 days ago | IN | 0 ETH | 0.0013686 | ||||
| Set Approval For... | 18721072 | 817 days ago | IN | 0 ETH | 0.00142604 | ||||
| Set Approval For... | 18279511 | 879 days ago | IN | 0 ETH | 0.00053131 | ||||
| Set Approval For... | 17876753 | 935 days ago | IN | 0 ETH | 0.00083272 | ||||
| Set Approval For... | 16655412 | 1107 days ago | IN | 0 ETH | 0.0022163 | ||||
| Set Approval For... | 16570657 | 1119 days ago | IN | 0 ETH | 0.00156812 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Replicator
Compiler Version
v0.8.3+commit.8d00100c
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.0;
/// @title: MDJ Replicator
/// @author: manifold.xyz
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// //
// #### #### ####################### ###### ####### ################## ###### ############### #### #### //
// #### #### ###################### ####### ######## #################### ###### ################ #### #### //
// #### #### #### ################# ######## ######### ###### ###### ###### ############# #### #### #### //
// #### #### #### ################ ######### ########## ###### ###### ###### ############## #### #### #### //
// #### #### ################### ########## ########### ###### ###### ###### ################### #### #### //
// #### #### ################## ########### ########### ###### ###### ###### #################### #### #### //
// #### #### #### ############# ####################### ###### ###### ###### ###### ################# #### #### #### //
// #### #### #### ############ ###### ####### ###### ###### ###### ###### ###### ################## #### #### #### //
// #### #### #### ####### ###### ##### ###### #################### ################# ############### #### #### #### //
// #### #### #### ###### ###### ###### ################## ############### ################# #### #### #### //
// //
// //
// ############ ############ ########### ##### ##### ######### ####### ############### ########## ########### //
// ############## ############ ############## ##### ##### ############## ######### ############# ############### ############# //
// ###### ###### ###### ####### ###### ##### ##### ###### ##### ##### ##### ####### ###### ##### ###### ##### //
// ############### ############ ############### ##### ##### ###### ###### ###### ###### ###### ###### ############## //
// ############# ###### ############# ###### ##### ##### ##### ################ ###### ####### ###### ############ //
// ############## ############# ###### ########### ##### ############## ################## ###### ############## ###### ##### //
// ###### ####### ############# ##### ########### ##### ######## ################### ##### ######## ##### ##### //
// //
// //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ReplicatorInterface.sol";
contract Replicator is ReentrancyGuard, ERC721Enumerable, Ownable, ReplicatorInterface {
using Strings for uint256;
// Mapping from token ID to next print
mapping (uint256 => uint256) private _tokenNextPrintTime;
// Mapping from token ID to remaining prints
mapping (uint256 => uint8) private _tokenPrintsRemaining;
// Mapping from token ID to generation
mapping (uint256 => uint8) private _tokenGeneration;
// Mapping from token ID to variant
mapping (uint256 => uint8) private _tokenVariant;
// Count of all prints
uint256 private _totalPrintCount = 0;
// Array with all token ids that are replicators (i.e. non-jammed NFT's)
uint256[] private _allReplicators;
/*
* bytes4(keccak256('setTokenURI(uint256,string)')) == 0x162094c4
* bytes4(keccak256('originReplicator(uint256)')) == 0x9c7a4b7a
* bytes4(keccak256('replicators()')) == 0xabc23a11
* bytes4(keccak256('canPrint(uint256)')) == 0x80e6b1cc
* bytes4(keccak256('nextPrintTime(uint256)')) == 0x26307ae0
* bytes4(keccak256('remainingPrints(uint256)')) == 0x1fc2b15b
* bytes4(keccak256('print(uint256)')) == 0x6bb0ae10
*
* => 0x162094c4 ^ 0x9c7a4b7a ^ 0xabc23a11 ^ 0x80e6b1cc ^ 0x26307ae0 ^ 0x1fc2b15b ^ 0x6bb0ae10 == 0xf33c31c8
*/
// Replicator configuration
uint256 private _printInterval;
// Only 16 supported generations max
uint8 private _maxGenerations;
// Array of generation print limits
uint8[] private _generationPrintLimits;
// Array of number of jam variants
uint8[] private _generationJamVariants;
// Array of jam probabilities (0-100)
uint8[] internal _generationJamProbabilities;
// Mapping for token URIs
mapping (uint256 => string) private _tokenURIs;
// Base URI
string private constant _baseTokenURI = "https://api.maddogjones.com/replicator/";
event Print(address indexed owner, uint256 tokenId, uint256 indexed originReplicator, uint8 indexed generation, uint8 variant, uint8 printNumber, uint256 internalPrintTime);
constructor (string memory _name, string memory _symbol, uint256 firstPrintTime, uint256 printInterval, uint8 maxGenerations, uint8[] memory generationPrintLimits, uint8[] memory generationJamVariants, uint8[] memory generationJamProbabilities) ERC721(_name, _symbol)
{
require(generationJamVariants.length == maxGenerations && generationJamProbabilities.length == maxGenerations &&
generationPrintLimits.length == maxGenerations, "Bad generation configuration");
require(maxGenerations <= 15, "Only up to 15 generations supported");
for (uint i = 0; i < generationJamProbabilities.length; i++) {
require(generationJamProbabilities[i] <= 100, "Bad jam configuration. Values must be between 0 and 100.");
}
_printInterval = printInterval;
_maxGenerations = maxGenerations;
_generationJamVariants = generationJamVariants;
_generationJamProbabilities = generationJamProbabilities;
_generationPrintLimits = generationPrintLimits;
_generationPrintLimits.push(0);
// Mint the first token
uint256 tokenId = 1;
uint8 generation = 0;
_print(firstPrintTime, msg.sender, tokenId, generation, 0, _generationPrintLimits[generation]);
emit Print(msg.sender, tokenId, 0, generation, 0, 1, firstPrintTime-_printInterval);
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721Enumerable) returns (bool) {
return interfaceId == type(ReplicatorInterface).interfaceId
|| super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "Nonexistent token");
if (bytes(_tokenURIs[tokenId]).length != 0) {
return _tokenURIs[tokenId];
}
return string(abi.encodePacked(_baseTokenURI, uint256(_tokenGeneration[tokenId]).toString(), "/", uint256(_tokenVariant[tokenId]).toString(), "/", tokenId.toString()));
}
function _burn(uint256 tokenId) internal virtual override {
ERC721._burn(tokenId);
// Clear metadata (if any)
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
}
/**
* @dev Sets `uri` as the tokenURI of `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function setTokenURI(uint256 tokenId, string calldata uri) external override onlyOwner {
require(_exists(tokenId), "Nonexistent token");
_tokenURIs[tokenId] = uri;
}
/**
* @dev Returns the tokenId of the replicator that printed the the given tokenId
*/
function originReplicator(uint256 tokenId) external view override returns (uint256) {
require(tokenId > 2**uint256(16), "No origin Replicator");
return (tokenId & (2**uint256(16*_tokenGeneration[tokenId]) - 1));
}
/**
* @dev Returns list of all tokens that can print.
*/
function replicators() external view override returns (uint256[] memory) {
uint256[] memory activeReplicators = new uint[](_allReplicators.length);
uint256 activeReplicatorsCount = 0;
for (uint i = 0; i < _allReplicators.length; i++) {
uint256 tokenId = _allReplicators[i];
if (_tokenPrintsRemaining[tokenId] > 0) {
activeReplicators[activeReplicatorsCount] = tokenId;
activeReplicatorsCount += 1;
}
}
uint256[] memory activeReplicatorsOnly = new uint[](activeReplicatorsCount);
for (uint i = 0; i < activeReplicatorsCount; i++) {
activeReplicatorsOnly[i] = activeReplicators[i];
}
return activeReplicatorsOnly;
}
/**
* @dev Returns True if tokenId can print, False otherwise.
*/
function canPrint(uint256 tokenId) public view override returns (bool) {
require(_exists(tokenId), "Nonexistent token");
return (_tokenPrintsRemaining[tokenId] > 0 && _tokenNextPrintTime[tokenId] > 0 &&
block.timestamp >= _tokenNextPrintTime[tokenId] && _tokenGeneration[tokenId] + 1 <= _maxGenerations);
}
/**
* @dev Returns next print time of tokenId. Errors if it cannot print.
*/
function nextPrintTime(uint256 tokenId) external view override returns (uint256) {
require(_exists(tokenId), "Nonexistent token");
require(_tokenPrintsRemaining[tokenId] > 0 && _tokenNextPrintTime[tokenId] > 0 && _tokenGeneration[tokenId] + 1 <= _maxGenerations, "Cannot give print");
return _tokenNextPrintTime[tokenId];
}
/**
* @dev Returns remaining prints that a tokenId can make. Errors if it cannot print.
*/
function remainingPrints(uint256 tokenId) external view override returns (uint8) {
require(_exists(tokenId), "Nonexistent token");
require(_tokenVariant[tokenId] == 0, "Jam token");
return _tokenPrintsRemaining[tokenId];
}
/**
* @dev Creates a print NFT from the given tokenId if possible. Errors otherwise.
*/
function print(uint256 tokenId) external nonReentrant override {
// check token can give print
require(canPrint(tokenId), "Cannot print");
uint256 printTime = _tokenNextPrintTime[tokenId];
_tokenPrintsRemaining[tokenId]--;
_tokenNextPrintTime[tokenId] += _printInterval;
// generate print
address tokenOwner = ownerOf(tokenId);
uint8 tokenGeneration = _tokenGeneration[tokenId];
uint8 printGeneration = tokenGeneration+1;
uint8 printVariant = 0;
uint8 printLimit = 0;
uint8 randomNumber = uint8(uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, block.number, _totalPrintCount)))%100);
if (randomNumber < _generationJamProbabilities[tokenGeneration]) {
// Jam, pick jam variant
printVariant = uint8(uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, block.number, _totalPrintCount)))%_generationJamVariants[tokenGeneration])+1;
} else {
printLimit = _generationPrintLimits[printGeneration];
}
uint8 printNumber = _generationPrintLimits[tokenGeneration] - _tokenPrintsRemaining[tokenId];
uint256 printTokenId = tokenId | uint256(printNumber)*2**uint256((printGeneration)*16);
_print(_tokenNextPrintTime[tokenId], tokenOwner, printTokenId, printGeneration, printVariant, printLimit);
emit Print(tokenOwner, printTokenId, tokenId, printGeneration, printVariant, printNumber, printTime);
}
function _print(uint256 tokenNextPrintTime, address to, uint256 tokenId, uint8 generation, uint8 variant, uint8 printLimit) internal {
require(!_exists(tokenId), "Duplicate token id");
_tokenGeneration[tokenId] = generation;
_tokenVariant[tokenId] = variant;
_tokenPrintsRemaining[tokenId] = printLimit;
if (variant == 0) {
_tokenNextPrintTime[tokenId] = tokenNextPrintTime;
_allReplicators.push(tokenId);
}
_totalPrintCount++;
_safeMint(to, tokenId);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId
|| super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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 () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = 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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor () {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant alphabet = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = alphabet[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title: MDJ Replicator
/// @author: manifold.xyz
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// //
// #### #### ####################### ###### ####### ################## ###### ############### #### #### //
// #### #### ###################### ####### ######## #################### ###### ################ #### #### //
// #### #### #### ################# ######## ######### ###### ###### ###### ############# #### #### #### //
// #### #### #### ################ ######### ########## ###### ###### ###### ############## #### #### #### //
// #### #### ################### ########## ########### ###### ###### ###### ################### #### #### //
// #### #### ################## ########### ########### ###### ###### ###### #################### #### #### //
// #### #### #### ############# ####################### ###### ###### ###### ###### ################# #### #### #### //
// #### #### #### ############ ###### ####### ###### ###### ###### ###### ###### ################## #### #### #### //
// #### #### #### ####### ###### ##### ###### #################### ################# ############### #### #### #### //
// #### #### #### ###### ###### ###### ################## ############### ################# #### #### #### //
// //
// //
// ############ ############ ########### ##### ##### ######### ####### ############### ########## ########### //
// ############## ############ ############## ##### ##### ############## ######### ############# ############### ############# //
// ###### ###### ###### ####### ###### ##### ##### ###### ##### ##### ##### ####### ###### ##### ###### ##### //
// ############### ############ ############### ##### ##### ###### ###### ###### ###### ###### ###### ############## //
// ############# ###### ############# ###### ##### ##### ##### ################ ###### ####### ###### ############ //
// ############## ############# ###### ########### ##### ############## ################## ###### ############## ###### ##### //
// ###### ####### ############# ##### ########### ##### ######## ################### ##### ######## ##### ##### //
// //
// //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
interface ReplicatorInterface is IERC721Enumerable {
function setTokenURI(uint256 tokenId, string calldata uri) external;
function originReplicator(uint256 tokenId) external view returns (uint256);
function replicators() external view returns (uint256[] memory);
function canPrint(uint256 tokenId) external view returns (bool);
function nextPrintTime(uint256 tokenId) external view returns (uint256);
function remainingPrints(uint256 tokenId) external view returns (uint8);
function print(uint256 tokenId) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "./extensions/IERC721Enumerable.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping (uint256 => address) private _owners;
// Mapping owner address to token count
mapping (address => uint256) private _balances;
// Mapping from token ID to approved address
mapping (uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping (address => mapping (address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor (string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IERC721).interfaceId
|| interfaceId == type(IERC721Metadata).interfaceId
|| super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0
? string(abi.encodePacked(baseURI, tokenId.toString()))
: '';
}
/**
* @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
* in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
_mint(to, tokenId);
require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(address from, address to, uint256 tokenId) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
private returns (bool)
{
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
// solhint-disable-next-line no-inline-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @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) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"firstPrintTime","type":"uint256"},{"internalType":"uint256","name":"printInterval","type":"uint256"},{"internalType":"uint8","name":"maxGenerations","type":"uint8"},{"internalType":"uint8[]","name":"generationPrintLimits","type":"uint8[]"},{"internalType":"uint8[]","name":"generationJamVariants","type":"uint8[]"},{"internalType":"uint8[]","name":"generationJamProbabilities","type":"uint8[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"originReplicator","type":"uint256"},{"indexed":true,"internalType":"uint8","name":"generation","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"variant","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"printNumber","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"internalPrintTime","type":"uint256"}],"name":"Print","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"canPrint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"nextPrintTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"originReplicator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"print","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"remainingPrints","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"replicators","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405260006010553480156200001657600080fd5b506040516200692e3803806200692e83398181016040528101906200003c9190620012d3565b8787600160008190555081600190805190602001906200005e92919062000ff0565b5080600290805190602001906200007792919062000ff0565b50505060006200008c6200043960201b60201c565b905080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3508360ff1682511480156200014257508360ff168151145b80156200015257508360ff168351145b62000194576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200018b90620016f0565b60405180910390fd5b600f8460ff161115620001de576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001d59062001712565b60405180910390fd5b60005b81518110156200028c57606482828151811062000227577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015160ff16111562000276576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200026d9062001668565b60405180910390fd5b8080620002839062001a15565b915050620001e1565b508460128190555083601360006101000a81548160ff021916908360ff1602179055508160159080519060200190620002c792919062001081565b508060169080519060200190620002e092919062001081565b508260149080519060200190620002f992919062001081565b506014600090806001815401808255809150506001900390600052602060002090602091828204019190069091909190916101000a81548160ff021916908360ff1602179055506000600190506000620003bc88338484600060148760ff168154811062000390577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff166200044160201b60201c565b8060ff1660003373ffffffffffffffffffffffffffffffffffffffff167fdcb91c2720ef1dd6946bd8815bda0f88eddecfe3456aed1a7ee73320bb8d145385600060016012548f6200040f919062001899565b60405162000421949392919062001734565b60405180910390a45050505050505050505062001d2f565b600033905090565b62000452846200059c60201b60201c565b1562000495576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200048c90620016ac565b60405180910390fd5b82600e600086815260200190815260200160002060006101000a81548160ff021916908360ff16021790555081600f600086815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080600d600086815260200190815260200160002060006101000a81548160ff021916908360ff16021790555060008260ff161415620005685785600c60008681526020019081526020016000208190555060118490806001815401808255809150506001900390600052602060002001600090919091909150555b601060008154809291906200057d9062001a15565b91905055506200059485856200060860201b60201c565b505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6200062a8282604051806020016040528060008152506200062e60201b60201c565b5050565b6200064083836200069c60201b60201c565b6200065560008484846200088260201b60201c565b62000697576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200068e9062001624565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200070f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200070690620016ce565b60405180910390fd5b62000720816200059c60201b60201c565b1562000763576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200075a9062001646565b60405180910390fd5b620007776000838362000a3c60201b60201c565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620007c991906200183c565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000620008b08473ffffffffffffffffffffffffffffffffffffffff1662000b8360201b62001e9d1760201c565b1562000a2f578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620008e26200043960201b60201c565b8786866040518563ffffffff1660e01b8152600401620009069493929190620015d0565b602060405180830381600087803b1580156200092157600080fd5b505af19250505080156200095557506040513d601f19601f82011682018060405250810190620009529190620012a7565b60015b620009de573d806000811462000988576040519150601f19603f3d011682016040523d82523d6000602084013e6200098d565b606091505b50600081511415620009d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620009cd9062001624565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505062000a34565b600190505b949350505050565b62000a5483838362000b9660201b62001eb01760201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141562000aa15762000a9b8162000b9b60201b60201c565b62000ae9565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161462000ae85762000ae7838262000be460201b60201c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000b365762000b308162000d6160201b60201c565b62000b7e565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000b7d5762000b7c828262000ea960201b60201c565b5b5b505050565b600080823b905060008111915050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600162000bfe8462000f3560201b620011e01760201c565b62000c0a919062001899565b905060006008600084815260200190815260200160002054905081811462000cf0576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160098054905062000d77919062001899565b90506000600a600084815260200190815260200160002054905060006009838154811062000dce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806009838154811062000e17577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a600085815260200190815260200160002060009055600980548062000e8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600062000ec18362000f3560201b620011e01760201c565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000fa9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000fa0906200168a565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b82805462000ffe90620019a9565b90600052602060002090601f0160209004810192826200102257600085556200106e565b82601f106200103d57805160ff19168380011785556200106e565b828001600101855582156200106e579182015b828111156200106d57825182559160200191906001019062001050565b5b5090506200107d91906200112f565b5090565b82805482825590600052602060002090601f016020900481019282156200111c5791602002820160005b83821115620010eb57835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302620010ab565b80156200111a5782816101000a81549060ff0219169055600101602081600001049283019260010302620010eb565b505b5090506200112b91906200112f565b5090565b5b808211156200114a57600081600090555060010162001130565b5090565b6000620011656200115f84620017aa565b62001781565b905080838252602082019050828560208602820111156200118557600080fd5b60005b85811015620011b957816200119e888262001290565b84526020840193506020830192505060018101905062001188565b5050509392505050565b6000620011da620011d484620017d9565b62001781565b905082815260208101848484011115620011f357600080fd5b6200120084828562001973565b509392505050565b600082601f8301126200121a57600080fd5b81516200122c8482602086016200114e565b91505092915050565b600081519050620012468162001ce1565b92915050565b600082601f8301126200125e57600080fd5b815162001270848260208601620011c3565b91505092915050565b6000815190506200128a8162001cfb565b92915050565b600081519050620012a18162001d15565b92915050565b600060208284031215620012ba57600080fd5b6000620012ca8482850162001235565b91505092915050565b600080600080600080600080610100898b031215620012f157600080fd5b600089015167ffffffffffffffff8111156200130c57600080fd5b6200131a8b828c016200124c565b985050602089015167ffffffffffffffff8111156200133857600080fd5b620013468b828c016200124c565b9750506040620013598b828c0162001279565b96505060606200136c8b828c0162001279565b95505060806200137f8b828c0162001290565b94505060a089015167ffffffffffffffff8111156200139d57600080fd5b620013ab8b828c0162001208565b93505060c089015167ffffffffffffffff811115620013c957600080fd5b620013d78b828c0162001208565b92505060e089015167ffffffffffffffff811115620013f557600080fd5b620014038b828c0162001208565b9150509295985092959890939650565b6200141e81620018d4565b82525050565b600062001431826200180f565b6200143d81856200181a565b93506200144f81856020860162001973565b6200145a8162001af0565b840191505092915050565b62001470816200194b565b82525050565b62001481816200195f565b82525050565b6000620014966032836200182b565b9150620014a38262001b01565b604082019050919050565b6000620014bd601c836200182b565b9150620014ca8262001b50565b602082019050919050565b6000620014e46038836200182b565b9150620014f18262001b79565b604082019050919050565b60006200150b602a836200182b565b9150620015188262001bc8565b604082019050919050565b6000620015326012836200182b565b91506200153f8262001c17565b602082019050919050565b6000620015596020836200182b565b9150620015668262001c40565b602082019050919050565b600062001580601c836200182b565b91506200158d8262001c69565b602082019050919050565b6000620015a76023836200182b565b9150620015b48262001c92565b604082019050919050565b620015ca8162001934565b82525050565b6000608082019050620015e7600083018762001413565b620015f6602083018662001413565b620016056040830185620015bf565b818103606083015262001619818462001424565b905095945050505050565b600060208201905081810360008301526200163f8162001487565b9050919050565b600060208201905081810360008301526200166181620014ae565b9050919050565b600060208201905081810360008301526200168381620014d5565b9050919050565b60006020820190508181036000830152620016a581620014fc565b9050919050565b60006020820190508181036000830152620016c78162001523565b9050919050565b60006020820190508181036000830152620016e9816200154a565b9050919050565b600060208201905081810360008301526200170b8162001571565b9050919050565b600060208201905081810360008301526200172d8162001598565b9050919050565b60006080820190506200174b6000830187620015bf565b6200175a602083018662001465565b62001769604083018562001476565b620017786060830184620015bf565b95945050505050565b60006200178d620017a0565b90506200179b8282620019df565b919050565b6000604051905090565b600067ffffffffffffffff821115620017c857620017c762001ac1565b5b602082029050602081019050919050565b600067ffffffffffffffff821115620017f757620017f662001ac1565b5b620018028262001af0565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000620018498262001934565b9150620018568362001934565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200188e576200188d62001a63565b5b828201905092915050565b6000620018a68262001934565b9150620018b38362001934565b925082821015620018c957620018c862001a63565b5b828203905092915050565b6000620018e18262001914565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600062001958826200193e565b9050919050565b60006200196c826200193e565b9050919050565b60005b838110156200199357808201518184015260208101905062001976565b83811115620019a3576000848401525b50505050565b60006002820490506001821680620019c257607f821691505b60208210811415620019d957620019d862001a92565b5b50919050565b620019ea8262001af0565b810181811067ffffffffffffffff8211171562001a0c5762001a0b62001ac1565b5b80604052505050565b600062001a228262001934565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562001a585762001a5762001a63565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f426164206a616d20636f6e66696775726174696f6e2e2056616c756573206d7560008201527f7374206265206265747765656e203020616e64203130302e0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4475706c696361746520746f6b656e2069640000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4261642067656e65726174696f6e20636f6e66696775726174696f6e00000000600082015250565b7f4f6e6c7920757020746f2031352067656e65726174696f6e7320737570706f7260008201527f7465640000000000000000000000000000000000000000000000000000000000602082015250565b62001cec81620018e8565b811462001cf857600080fd5b50565b62001d068162001934565b811462001d1257600080fd5b50565b62001d20816200193e565b811462001d2c57600080fd5b50565b614bef8062001d3f6000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80636bb0ae10116100de5780639c7a4b7a11610097578063b88d4fde11610071578063b88d4fde146104bb578063c87b56dd146104d7578063e985e9c514610507578063f2fde38b146105375761018e565b80639c7a4b7a14610451578063a22cb46514610481578063abc23a111461049d5761018e565b80636bb0ae101461038f57806370a08231146103ab578063715018a6146103db57806380e6b1cc146103e55780638da5cb5b1461041557806395d89b41146104335761018e565b80631fc2b15b1161014b5780632f745c59116101255780632f745c59146102e357806342842e0e146103135780634f6ccce71461032f5780636352211e1461035f5761018e565b80631fc2b15b1461026757806323b872dd1461029757806326307ae0146102b35761018e565b806301ffc9a71461019357806306fdde03146101c3578063081812fc146101e1578063095ea7b314610211578063162094c41461022d57806318160ddd14610249575b600080fd5b6101ad60048036038101906101a891906133ff565b610553565b6040516101ba9190613ae3565b60405180910390f35b6101cb6105cd565b6040516101d89190613afe565b60405180910390f35b6101fb60048036038101906101f69190613451565b61065f565b6040516102089190613a5a565b60405180910390f35b61022b600480360381019061022691906133c3565b6106e4565b005b6102476004803603810190610242919061347a565b6107fc565b005b6102516108e8565b60405161025e9190613e20565b60405180910390f35b610281600480360381019061027c9190613451565b6108f5565b60405161028e9190613e80565b60405180910390f35b6102b160048036038101906102ac91906132bd565b6109cd565b005b6102cd60048036038101906102c89190613451565b610a2d565b6040516102da9190613e20565b60405180910390f35b6102fd60048036038101906102f891906133c3565b610b64565b60405161030a9190613e20565b60405180910390f35b61032d600480360381019061032891906132bd565b610c09565b005b61034960048036038101906103449190613451565b610c29565b6040516103569190613e20565b60405180910390f35b61037960048036038101906103749190613451565b610cc0565b6040516103869190613a5a565b60405180910390f35b6103a960048036038101906103a49190613451565b610d72565b005b6103c560048036038101906103c09190613258565b6111e0565b6040516103d29190613e20565b60405180910390f35b6103e3611298565b005b6103ff60048036038101906103fa9190613451565b6113d5565b60405161040c9190613ae3565b60405180910390f35b61041d6114d8565b60405161042a9190613a5a565b60405180910390f35b61043b611502565b6040516104489190613afe565b60405180910390f35b61046b60048036038101906104669190613451565b611594565b6040516104789190613e20565b60405180910390f35b61049b60048036038101906104969190613387565b611636565b005b6104a56117b7565b6040516104b29190613ac1565b60405180910390f35b6104d560048036038101906104d0919061330c565b611a43565b005b6104f160048036038101906104ec9190613451565b611aa5565b6040516104fe9190613afe565b60405180910390f35b610521600480360381019061051c9190613281565b611c5d565b60405161052e9190613ae3565b60405180910390f35b610551600480360381019061054c9190613258565b611cf1565b005b60007ff33c31c8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105c657506105c582611eb5565b5b9050919050565b6060600180546105dc90614386565b80601f016020809104026020016040519081016040528092919081815260200182805461060890614386565b80156106555780601f1061062a57610100808354040283529160200191610655565b820191906000526020600020905b81548152906001019060200180831161063857829003601f168201915b5050505050905090565b600061066a82611f2f565b6106a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a090613d00565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006106ef82610cc0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610760576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075790613d60565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661077f611f9b565b73ffffffffffffffffffffffffffffffffffffffff1614806107ae57506107ad816107a8611f9b565b611c5d565b5b6107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e490613c40565b60405180910390fd5b6107f78383611fa3565b505050565b610804611f9b565b73ffffffffffffffffffffffffffffffffffffffff166108226114d8565b73ffffffffffffffffffffffffffffffffffffffff1614610878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086f90613d20565b60405180910390fd5b61088183611f2f565b6108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b790613c60565b60405180910390fd5b81816017600086815260200190815260200160002091906108e292919061309a565b50505050565b6000600980549050905090565b600061090082611f2f565b61093f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093690613c60565b60405180910390fd5b6000600f600084815260200190815260200160002060009054906101000a900460ff1660ff16146109a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099c90613b20565b60405180910390fd5b600d600083815260200190815260200160002060009054906101000a900460ff169050919050565b6109de6109d8611f9b565b8261205c565b610a1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1490613da0565b60405180910390fd5b610a2883838361213a565b505050565b6000610a3882611f2f565b610a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6e90613c60565b60405180910390fd5b6000600d600084815260200190815260200160002060009054906101000a900460ff1660ff16118015610abd57506000600c600084815260200190815260200160002054115b8015610b0a5750601360009054906101000a900460ff1660ff166001600e600085815260200190815260200160002060009054906101000a900460ff16610b049190613fc3565b60ff1611155b610b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4090613de0565b60405180910390fd5b600c6000838152602001908152602001600020549050919050565b6000610b6f836111e0565b8210610bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba790613b40565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c2483838360405180602001604052806000815250611a43565b505050565b6000610c336108e8565b8210610c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6b90613dc0565b60405180910390fd5b60098281548110610cae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6090613ca0565b60405180910390fd5b80915050919050565b60026000541415610db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daf90613e00565b60405180910390fd5b6002600081905550610dc9816113d5565b610e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dff90613bc0565b60405180910390fd5b6000600c6000838152602001908152602001600020549050600d6000838152602001908152602001600020600081819054906101000a900460ff1680929190610e509061435c565b91906101000a81548160ff021916908360ff16021790555050601254600c60008481526020019081526020016000206000828254610e8e9190613f6d565b925050819055506000610ea083610cc0565b90506000600e600085815260200190815260200160002060009054906101000a900460ff1690506000600182610ed69190613fc3565b905060008060006064424443601054604051602001610ef89493929190613a0c565b6040516020818303038152906040528051906020012060001c610f1b919061443c565b905060168560ff1681548110610f5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff168160ff16101561103657600160158660ff1681548110610fc6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff164244436010546040516020016110029493929190613a0c565b6040516020818303038152906040528051906020012060001c611025919061443c565b61102f9190613fc3565b9250611096565b60148460ff1681548110611073577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1691505b6000600d60008a815260200190815260200160002060009054906101000a900460ff1660148760ff16815481106110f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff166111209190614265565b9050600060108661113191906141f6565b60ff166002611140919061407e565b8260ff1661114e919061419c565b8a179050611173600c60008c8152602001908152602001600020548983898989612396565b8560ff168a8973ffffffffffffffffffffffffffffffffffffffff167fdcb91c2720ef1dd6946bd8815bda0f88eddecfe3456aed1a7ee73320bb8d14538489878f6040516111c49493929190613e3b565b60405180910390a4505050505050505050600160008190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124890613c80565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112a0611f9b565b73ffffffffffffffffffffffffffffffffffffffff166112be6114d8565b73ffffffffffffffffffffffffffffffffffffffff1614611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b90613d20565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60006113e082611f2f565b61141f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141690613c60565b60405180910390fd5b6000600d600084815260200190815260200160002060009054906101000a900460ff1660ff1611801561146557506000600c600084815260200190815260200160002054115b80156114845750600c6000838152602001908152602001600020544210155b80156114d15750601360009054906101000a900460ff1660ff166001600e600085815260200190815260200160002060009054906101000a900460ff166114cb9190613fc3565b60ff1611155b9050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461151190614386565b80601f016020809104026020016040519081016040528092919081815260200182805461153d90614386565b801561158a5780601f1061155f5761010080835404028352916020019161158a565b820191906000526020600020905b81548152906001019060200180831161156d57829003601f168201915b5050505050905090565b6000601060026115a4919061407e565b82116115e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115dc90613d80565b60405180910390fd5b6001600e600084815260200190815260200160002060009054906101000a900460ff16601061161491906141f6565b60ff166002611623919061407e565b61162d9190614231565b82169050919050565b61163e611f9b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a390613c00565b60405180910390fd5b80600660006116b9611f9b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611766611f9b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117ab9190613ae3565b60405180910390a35050565b6060600060118054905067ffffffffffffffff811115611800577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561182e5781602001602082028036833780820191505090505b5090506000805b6011805490508110156119215760006011828154811061187e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490506000600d600083815260200190815260200160002060009054906101000a900460ff1660ff16111561190d57808484815181106118f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505060018361190a9190613f6d565b92505b508080611919906143e9565b915050611835565b5060008167ffffffffffffffff811115611964577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156119925781602001602082028036833780820191505090505b50905060005b82811015611a39578381815181106119d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151828281518110611a1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080611a31906143e9565b915050611998565b5080935050505090565b611a54611a4e611f9b565b8361205c565b611a93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8a90613da0565b60405180910390fd5b611a9f848484846124db565b50505050565b6060611ab082611f2f565b611aef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae690613c60565b60405180910390fd5b6000601760008481526020019081526020016000208054611b0f90614386565b905014611bb957601760008381526020019081526020016000208054611b3490614386565b80601f0160208091040260200160405190810160405280929190818152602001828054611b6090614386565b8015611bad5780601f10611b8257610100808354040283529160200191611bad565b820191906000526020600020905b815481529060010190602001808311611b9057829003601f168201915b50505050509050611c58565b604051806060016040528060278152602001614b9360279139611bfe600e600085815260200190815260200160002060009054906101000a900460ff1660ff16612537565b611c2a600f600086815260200190815260200160002060009054906101000a900460ff1660ff16612537565b611c3385612537565b604051602001611c4694939291906139b8565b60405160208183030381529060405290505b919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611cf9611f9b565b73ffffffffffffffffffffffffffffffffffffffff16611d176114d8565b73ffffffffffffffffffffffffffffffffffffffff1614611d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6490613d20565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ddd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd490613b80565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080823b905060008111915050919050565b505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f285750611f27826126e4565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661201683610cc0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061206782611f2f565b6120a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209d90613c20565b60405180910390fd5b60006120b183610cc0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061212057508373ffffffffffffffffffffffffffffffffffffffff166121088461065f565b73ffffffffffffffffffffffffffffffffffffffff16145b8061213157506121308185611c5d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661215a82610cc0565b73ffffffffffffffffffffffffffffffffffffffff16146121b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a790613d40565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221790613be0565b60405180910390fd5b61222b8383836127c6565b612236600082611fa3565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122869190614231565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122dd9190613f6d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61239f84611f2f565b156123df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d690613cc0565b60405180910390fd5b82600e600086815260200190815260200160002060006101000a81548160ff021916908360ff16021790555081600f600086815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080600d600086815260200190815260200160002060006101000a81548160ff021916908360ff16021790555060008260ff1614156124b15785600c60008681526020019081526020016000208190555060118490806001815401808255809150506001900390600052602060002001600090919091909150555b601060008154809291906124c4906143e9565b91905055506124d385856128da565b505050505050565b6124e684848461213a565b6124f2848484846128f8565b612531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252890613b60565b60405180910390fd5b50505050565b6060600082141561257f576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506126df565b600082905060005b600082146125b157808061259a906143e9565b915050600a826125aa9190613ffa565b9150612587565b60008167ffffffffffffffff8111156125f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126255781602001600182028036833780820191505090505b5090505b600085146126d85760018261263e9190614231565b9150600a8561264d919061443c565b60306126599190613f6d565b60f81b818381518110612695577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126d19190613ffa565b9450612629565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127af57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127bf57506127be82612a8f565b5b9050919050565b6127d1838383611eb0565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156128145761280f81612af9565b612853565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612852576128518382612b42565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128965761289181612caf565b6128d5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128d4576128d38282612df2565b5b5b505050565b6128f4828260405180602001604052806000815250612e71565b5050565b60006129198473ffffffffffffffffffffffffffffffffffffffff16611e9d565b15612a82578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612942611f9b565b8786866040518563ffffffff1660e01b81526004016129649493929190613a75565b602060405180830381600087803b15801561297e57600080fd5b505af19250505080156129af57506040513d601f19601f820116820180604052508101906129ac9190613428565b60015b612a32573d80600081146129df576040519150601f19603f3d011682016040523d82523d6000602084013e6129e4565b606091505b50600081511415612a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2190613b60565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612a87565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612b4f846111e0565b612b599190614231565b9050600060086000848152602001908152602001600020549050818114612c3e576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050612cc39190614231565b90506000600a6000848152602001908152602001600020549050600060098381548110612d19577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110612d61577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480612dd6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612dfd836111e0565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b612e7b8383612ecc565b612e8860008484846128f8565b612ec7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ebe90613b60565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3390613ce0565b60405180910390fd5b612f4581611f2f565b15612f85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7c90613ba0565b60405180910390fd5b612f91600083836127c6565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fe19190613f6d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8280546130a690614386565b90600052602060002090601f0160209004810192826130c8576000855561310f565b82601f106130e157803560ff191683800117855561310f565b8280016001018555821561310f579182015b8281111561310e5782358255916020019190600101906130f3565b5b50905061311c9190613120565b5090565b5b80821115613139576000816000905550600101613121565b5090565b600061315061314b84613ec0565b613e9b565b90508281526020810184848401111561316857600080fd5b61317384828561431a565b509392505050565b60008135905061318a81614b36565b92915050565b60008135905061319f81614b4d565b92915050565b6000813590506131b481614b64565b92915050565b6000815190506131c981614b64565b92915050565b600082601f8301126131e057600080fd5b81356131f084826020860161313d565b91505092915050565b60008083601f84011261320b57600080fd5b8235905067ffffffffffffffff81111561322457600080fd5b60208301915083600182028301111561323c57600080fd5b9250929050565b60008135905061325281614b7b565b92915050565b60006020828403121561326a57600080fd5b60006132788482850161317b565b91505092915050565b6000806040838503121561329457600080fd5b60006132a28582860161317b565b92505060206132b38582860161317b565b9150509250929050565b6000806000606084860312156132d257600080fd5b60006132e08682870161317b565b93505060206132f18682870161317b565b925050604061330286828701613243565b9150509250925092565b6000806000806080858703121561332257600080fd5b60006133308782880161317b565b94505060206133418782880161317b565b935050604061335287828801613243565b925050606085013567ffffffffffffffff81111561336f57600080fd5b61337b878288016131cf565b91505092959194509250565b6000806040838503121561339a57600080fd5b60006133a88582860161317b565b92505060206133b985828601613190565b9150509250929050565b600080604083850312156133d657600080fd5b60006133e48582860161317b565b92505060206133f585828601613243565b9150509250929050565b60006020828403121561341157600080fd5b600061341f848285016131a5565b91505092915050565b60006020828403121561343a57600080fd5b6000613448848285016131ba565b91505092915050565b60006020828403121561346357600080fd5b600061347184828501613243565b91505092915050565b60008060006040848603121561348f57600080fd5b600061349d86828701613243565b935050602084013567ffffffffffffffff8111156134ba57600080fd5b6134c6868287016131f9565b92509250509250925092565b60006134de8383613974565b60208301905092915050565b6134f381614299565b82525050565b600061350482613f01565b61350e8185613f2f565b935061351983613ef1565b8060005b8381101561354a57815161353188826134d2565b975061353c83613f22565b92505060018101905061351d565b5085935050505092915050565b613560816142ab565b82525050565b600061357182613f0c565b61357b8185613f40565b935061358b818560208601614329565b61359481614529565b840191505092915050565b60006135aa82613f17565b6135b48185613f51565b93506135c4818560208601614329565b6135cd81614529565b840191505092915050565b60006135e382613f17565b6135ed8185613f62565b93506135fd818560208601614329565b80840191505092915050565b6000613616600983613f51565b915061362182614547565b602082019050919050565b6000613639602b83613f51565b915061364482614570565b604082019050919050565b600061365c603283613f51565b9150613667826145bf565b604082019050919050565b600061367f602683613f51565b915061368a8261460e565b604082019050919050565b60006136a2601c83613f51565b91506136ad8261465d565b602082019050919050565b60006136c5600c83613f51565b91506136d082614686565b602082019050919050565b60006136e8602483613f51565b91506136f3826146af565b604082019050919050565b600061370b601983613f51565b9150613716826146fe565b602082019050919050565b600061372e602c83613f51565b915061373982614727565b604082019050919050565b6000613751603883613f51565b915061375c82614776565b604082019050919050565b6000613774601183613f51565b915061377f826147c5565b602082019050919050565b6000613797602a83613f51565b91506137a2826147ee565b604082019050919050565b60006137ba602983613f51565b91506137c58261483d565b604082019050919050565b60006137dd601283613f51565b91506137e88261488c565b602082019050919050565b6000613800602083613f51565b915061380b826148b5565b602082019050919050565b6000613823602c83613f51565b915061382e826148de565b604082019050919050565b6000613846602083613f51565b91506138518261492d565b602082019050919050565b6000613869602983613f51565b915061387482614956565b604082019050919050565b600061388c602183613f51565b9150613897826149a5565b604082019050919050565b60006138af601483613f51565b91506138ba826149f4565b602082019050919050565b60006138d2603183613f51565b91506138dd82614a1d565b604082019050919050565b60006138f5602c83613f51565b915061390082614a6c565b604082019050919050565b6000613918601183613f51565b915061392382614abb565b602082019050919050565b600061393b601f83613f51565b915061394682614ae4565b602082019050919050565b600061395e600183613f62565b915061396982614b0d565b600182019050919050565b61397d81614303565b82525050565b61398c81614303565b82525050565b6139a361399e82614303565b614432565b82525050565b6139b28161430d565b82525050565b60006139c482876135d8565b91506139d082866135d8565b91506139db82613951565b91506139e782856135d8565b91506139f282613951565b91506139fe82846135d8565b915081905095945050505050565b6000613a188287613992565b602082019150613a288286613992565b602082019150613a388285613992565b602082019150613a488284613992565b60208201915081905095945050505050565b6000602082019050613a6f60008301846134ea565b92915050565b6000608082019050613a8a60008301876134ea565b613a9760208301866134ea565b613aa46040830185613983565b8181036060830152613ab68184613566565b905095945050505050565b60006020820190508181036000830152613adb81846134f9565b905092915050565b6000602082019050613af86000830184613557565b92915050565b60006020820190508181036000830152613b18818461359f565b905092915050565b60006020820190508181036000830152613b3981613609565b9050919050565b60006020820190508181036000830152613b598161362c565b9050919050565b60006020820190508181036000830152613b798161364f565b9050919050565b60006020820190508181036000830152613b9981613672565b9050919050565b60006020820190508181036000830152613bb981613695565b9050919050565b60006020820190508181036000830152613bd9816136b8565b9050919050565b60006020820190508181036000830152613bf9816136db565b9050919050565b60006020820190508181036000830152613c19816136fe565b9050919050565b60006020820190508181036000830152613c3981613721565b9050919050565b60006020820190508181036000830152613c5981613744565b9050919050565b60006020820190508181036000830152613c7981613767565b9050919050565b60006020820190508181036000830152613c998161378a565b9050919050565b60006020820190508181036000830152613cb9816137ad565b9050919050565b60006020820190508181036000830152613cd9816137d0565b9050919050565b60006020820190508181036000830152613cf9816137f3565b9050919050565b60006020820190508181036000830152613d1981613816565b9050919050565b60006020820190508181036000830152613d3981613839565b9050919050565b60006020820190508181036000830152613d598161385c565b9050919050565b60006020820190508181036000830152613d798161387f565b9050919050565b60006020820190508181036000830152613d99816138a2565b9050919050565b60006020820190508181036000830152613db9816138c5565b9050919050565b60006020820190508181036000830152613dd9816138e8565b9050919050565b60006020820190508181036000830152613df98161390b565b9050919050565b60006020820190508181036000830152613e198161392e565b9050919050565b6000602082019050613e356000830184613983565b92915050565b6000608082019050613e506000830187613983565b613e5d60208301866139a9565b613e6a60408301856139a9565b613e776060830184613983565b95945050505050565b6000602082019050613e9560008301846139a9565b92915050565b6000613ea5613eb6565b9050613eb182826143b8565b919050565b6000604051905090565b600067ffffffffffffffff821115613edb57613eda6144fa565b5b613ee482614529565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613f7882614303565b9150613f8383614303565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fb857613fb761446d565b5b828201905092915050565b6000613fce8261430d565b9150613fd98361430d565b92508260ff03821115613fef57613fee61446d565b5b828201905092915050565b600061400582614303565b915061401083614303565b9250826140205761401f61449c565b5b828204905092915050565b6000808291508390505b6001851115614075578086048111156140515761405061446d565b5b60018516156140605780820291505b808102905061406e8561453a565b9450614035565b94509492505050565b600061408982614303565b915061409483614303565b92506140c17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846140c9565b905092915050565b6000826140d95760019050614195565b816140e75760009050614195565b81600181146140fd576002811461410757614136565b6001915050614195565b60ff8411156141195761411861446d565b5b8360020a9150848211156141305761412f61446d565b5b50614195565b5060208310610133831016604e8410600b841016171561416b5782820a9050838111156141665761416561446d565b5b614195565b614178848484600161402b565b9250905081840481111561418f5761418e61446d565b5b81810290505b9392505050565b60006141a782614303565b91506141b283614303565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141eb576141ea61446d565b5b828202905092915050565b60006142018261430d565b915061420c8361430d565b92508160ff04831182151516156142265761422561446d565b5b828202905092915050565b600061423c82614303565b915061424783614303565b92508282101561425a5761425961446d565b5b828203905092915050565b60006142708261430d565b915061427b8361430d565b92508282101561428e5761428d61446d565b5b828203905092915050565b60006142a4826142e3565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561434757808201518184015260208101905061432c565b83811115614356576000848401525b50505050565b60006143678261430d565b9150600082141561437b5761437a61446d565b5b600182039050919050565b6000600282049050600182168061439e57607f821691505b602082108114156143b2576143b16144cb565b5b50919050565b6143c182614529565b810181811067ffffffffffffffff821117156143e0576143df6144fa565b5b80604052505050565b60006143f482614303565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156144275761442661446d565b5b600182019050919050565b6000819050919050565b600061444782614303565b915061445283614303565b9250826144625761446161449c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f4a616d20746f6b656e0000000000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f43616e6e6f74207072696e740000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4475706c696361746520746f6b656e2069640000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e6f206f726967696e205265706c696361746f72000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f43616e6e6f742067697665207072696e74000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b614b3f81614299565b8114614b4a57600080fd5b50565b614b56816142ab565b8114614b6157600080fd5b50565b614b6d816142b7565b8114614b7857600080fd5b50565b614b8481614303565b8114614b8f57600080fd5b5056fe68747470733a2f2f6170692e6d6164646f676a6f6e65732e636f6d2f7265706c696361746f722fa2646970667358221220f572e73a131640b4c7e980204adf1edbc400134cdff9cd1bff3bdaa75aa1df0964736f6c6343000803003300000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000006095b860000000000000000000000000000000000000000000000000000000000024ea000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002600000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000001b5245504c494341544f52206279204d616420446f67204a6f6e65730000000000000000000000000000000000000000000000000000000000000000000000000d4d444a5245504c494341544f520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000004600000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000032
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80636bb0ae10116100de5780639c7a4b7a11610097578063b88d4fde11610071578063b88d4fde146104bb578063c87b56dd146104d7578063e985e9c514610507578063f2fde38b146105375761018e565b80639c7a4b7a14610451578063a22cb46514610481578063abc23a111461049d5761018e565b80636bb0ae101461038f57806370a08231146103ab578063715018a6146103db57806380e6b1cc146103e55780638da5cb5b1461041557806395d89b41146104335761018e565b80631fc2b15b1161014b5780632f745c59116101255780632f745c59146102e357806342842e0e146103135780634f6ccce71461032f5780636352211e1461035f5761018e565b80631fc2b15b1461026757806323b872dd1461029757806326307ae0146102b35761018e565b806301ffc9a71461019357806306fdde03146101c3578063081812fc146101e1578063095ea7b314610211578063162094c41461022d57806318160ddd14610249575b600080fd5b6101ad60048036038101906101a891906133ff565b610553565b6040516101ba9190613ae3565b60405180910390f35b6101cb6105cd565b6040516101d89190613afe565b60405180910390f35b6101fb60048036038101906101f69190613451565b61065f565b6040516102089190613a5a565b60405180910390f35b61022b600480360381019061022691906133c3565b6106e4565b005b6102476004803603810190610242919061347a565b6107fc565b005b6102516108e8565b60405161025e9190613e20565b60405180910390f35b610281600480360381019061027c9190613451565b6108f5565b60405161028e9190613e80565b60405180910390f35b6102b160048036038101906102ac91906132bd565b6109cd565b005b6102cd60048036038101906102c89190613451565b610a2d565b6040516102da9190613e20565b60405180910390f35b6102fd60048036038101906102f891906133c3565b610b64565b60405161030a9190613e20565b60405180910390f35b61032d600480360381019061032891906132bd565b610c09565b005b61034960048036038101906103449190613451565b610c29565b6040516103569190613e20565b60405180910390f35b61037960048036038101906103749190613451565b610cc0565b6040516103869190613a5a565b60405180910390f35b6103a960048036038101906103a49190613451565b610d72565b005b6103c560048036038101906103c09190613258565b6111e0565b6040516103d29190613e20565b60405180910390f35b6103e3611298565b005b6103ff60048036038101906103fa9190613451565b6113d5565b60405161040c9190613ae3565b60405180910390f35b61041d6114d8565b60405161042a9190613a5a565b60405180910390f35b61043b611502565b6040516104489190613afe565b60405180910390f35b61046b60048036038101906104669190613451565b611594565b6040516104789190613e20565b60405180910390f35b61049b60048036038101906104969190613387565b611636565b005b6104a56117b7565b6040516104b29190613ac1565b60405180910390f35b6104d560048036038101906104d0919061330c565b611a43565b005b6104f160048036038101906104ec9190613451565b611aa5565b6040516104fe9190613afe565b60405180910390f35b610521600480360381019061051c9190613281565b611c5d565b60405161052e9190613ae3565b60405180910390f35b610551600480360381019061054c9190613258565b611cf1565b005b60007ff33c31c8000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105c657506105c582611eb5565b5b9050919050565b6060600180546105dc90614386565b80601f016020809104026020016040519081016040528092919081815260200182805461060890614386565b80156106555780601f1061062a57610100808354040283529160200191610655565b820191906000526020600020905b81548152906001019060200180831161063857829003601f168201915b5050505050905090565b600061066a82611f2f565b6106a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a090613d00565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006106ef82610cc0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610760576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075790613d60565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661077f611f9b565b73ffffffffffffffffffffffffffffffffffffffff1614806107ae57506107ad816107a8611f9b565b611c5d565b5b6107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e490613c40565b60405180910390fd5b6107f78383611fa3565b505050565b610804611f9b565b73ffffffffffffffffffffffffffffffffffffffff166108226114d8565b73ffffffffffffffffffffffffffffffffffffffff1614610878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086f90613d20565b60405180910390fd5b61088183611f2f565b6108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b790613c60565b60405180910390fd5b81816017600086815260200190815260200160002091906108e292919061309a565b50505050565b6000600980549050905090565b600061090082611f2f565b61093f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093690613c60565b60405180910390fd5b6000600f600084815260200190815260200160002060009054906101000a900460ff1660ff16146109a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099c90613b20565b60405180910390fd5b600d600083815260200190815260200160002060009054906101000a900460ff169050919050565b6109de6109d8611f9b565b8261205c565b610a1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1490613da0565b60405180910390fd5b610a2883838361213a565b505050565b6000610a3882611f2f565b610a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6e90613c60565b60405180910390fd5b6000600d600084815260200190815260200160002060009054906101000a900460ff1660ff16118015610abd57506000600c600084815260200190815260200160002054115b8015610b0a5750601360009054906101000a900460ff1660ff166001600e600085815260200190815260200160002060009054906101000a900460ff16610b049190613fc3565b60ff1611155b610b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4090613de0565b60405180910390fd5b600c6000838152602001908152602001600020549050919050565b6000610b6f836111e0565b8210610bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba790613b40565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c2483838360405180602001604052806000815250611a43565b505050565b6000610c336108e8565b8210610c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6b90613dc0565b60405180910390fd5b60098281548110610cae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6090613ca0565b60405180910390fd5b80915050919050565b60026000541415610db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610daf90613e00565b60405180910390fd5b6002600081905550610dc9816113d5565b610e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dff90613bc0565b60405180910390fd5b6000600c6000838152602001908152602001600020549050600d6000838152602001908152602001600020600081819054906101000a900460ff1680929190610e509061435c565b91906101000a81548160ff021916908360ff16021790555050601254600c60008481526020019081526020016000206000828254610e8e9190613f6d565b925050819055506000610ea083610cc0565b90506000600e600085815260200190815260200160002060009054906101000a900460ff1690506000600182610ed69190613fc3565b905060008060006064424443601054604051602001610ef89493929190613a0c565b6040516020818303038152906040528051906020012060001c610f1b919061443c565b905060168560ff1681548110610f5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff168160ff16101561103657600160158660ff1681548110610fc6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1660ff164244436010546040516020016110029493929190613a0c565b6040516020818303038152906040528051906020012060001c611025919061443c565b61102f9190613fc3565b9250611096565b60148460ff1681548110611073577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff1691505b6000600d60008a815260200190815260200160002060009054906101000a900460ff1660148760ff16815481106110f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090602091828204019190069054906101000a900460ff166111209190614265565b9050600060108661113191906141f6565b60ff166002611140919061407e565b8260ff1661114e919061419c565b8a179050611173600c60008c8152602001908152602001600020548983898989612396565b8560ff168a8973ffffffffffffffffffffffffffffffffffffffff167fdcb91c2720ef1dd6946bd8815bda0f88eddecfe3456aed1a7ee73320bb8d14538489878f6040516111c49493929190613e3b565b60405180910390a4505050505050505050600160008190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124890613c80565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112a0611f9b565b73ffffffffffffffffffffffffffffffffffffffff166112be6114d8565b73ffffffffffffffffffffffffffffffffffffffff1614611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b90613d20565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60006113e082611f2f565b61141f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141690613c60565b60405180910390fd5b6000600d600084815260200190815260200160002060009054906101000a900460ff1660ff1611801561146557506000600c600084815260200190815260200160002054115b80156114845750600c6000838152602001908152602001600020544210155b80156114d15750601360009054906101000a900460ff1660ff166001600e600085815260200190815260200160002060009054906101000a900460ff166114cb9190613fc3565b60ff1611155b9050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461151190614386565b80601f016020809104026020016040519081016040528092919081815260200182805461153d90614386565b801561158a5780601f1061155f5761010080835404028352916020019161158a565b820191906000526020600020905b81548152906001019060200180831161156d57829003601f168201915b5050505050905090565b6000601060026115a4919061407e565b82116115e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115dc90613d80565b60405180910390fd5b6001600e600084815260200190815260200160002060009054906101000a900460ff16601061161491906141f6565b60ff166002611623919061407e565b61162d9190614231565b82169050919050565b61163e611f9b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a390613c00565b60405180910390fd5b80600660006116b9611f9b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611766611f9b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117ab9190613ae3565b60405180910390a35050565b6060600060118054905067ffffffffffffffff811115611800577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561182e5781602001602082028036833780820191505090505b5090506000805b6011805490508110156119215760006011828154811061187e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490506000600d600083815260200190815260200160002060009054906101000a900460ff1660ff16111561190d57808484815181106118f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505060018361190a9190613f6d565b92505b508080611919906143e9565b915050611835565b5060008167ffffffffffffffff811115611964577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156119925781602001602082028036833780820191505090505b50905060005b82811015611a39578381815181106119d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151828281518110611a1a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080611a31906143e9565b915050611998565b5080935050505090565b611a54611a4e611f9b565b8361205c565b611a93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8a90613da0565b60405180910390fd5b611a9f848484846124db565b50505050565b6060611ab082611f2f565b611aef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae690613c60565b60405180910390fd5b6000601760008481526020019081526020016000208054611b0f90614386565b905014611bb957601760008381526020019081526020016000208054611b3490614386565b80601f0160208091040260200160405190810160405280929190818152602001828054611b6090614386565b8015611bad5780601f10611b8257610100808354040283529160200191611bad565b820191906000526020600020905b815481529060010190602001808311611b9057829003601f168201915b50505050509050611c58565b604051806060016040528060278152602001614b9360279139611bfe600e600085815260200190815260200160002060009054906101000a900460ff1660ff16612537565b611c2a600f600086815260200190815260200160002060009054906101000a900460ff1660ff16612537565b611c3385612537565b604051602001611c4694939291906139b8565b60405160208183030381529060405290505b919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611cf9611f9b565b73ffffffffffffffffffffffffffffffffffffffff16611d176114d8565b73ffffffffffffffffffffffffffffffffffffffff1614611d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6490613d20565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ddd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd490613b80565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080823b905060008111915050919050565b505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f285750611f27826126e4565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661201683610cc0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061206782611f2f565b6120a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209d90613c20565b60405180910390fd5b60006120b183610cc0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061212057508373ffffffffffffffffffffffffffffffffffffffff166121088461065f565b73ffffffffffffffffffffffffffffffffffffffff16145b8061213157506121308185611c5d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661215a82610cc0565b73ffffffffffffffffffffffffffffffffffffffff16146121b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a790613d40565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221790613be0565b60405180910390fd5b61222b8383836127c6565b612236600082611fa3565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122869190614231565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122dd9190613f6d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61239f84611f2f565b156123df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d690613cc0565b60405180910390fd5b82600e600086815260200190815260200160002060006101000a81548160ff021916908360ff16021790555081600f600086815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080600d600086815260200190815260200160002060006101000a81548160ff021916908360ff16021790555060008260ff1614156124b15785600c60008681526020019081526020016000208190555060118490806001815401808255809150506001900390600052602060002001600090919091909150555b601060008154809291906124c4906143e9565b91905055506124d385856128da565b505050505050565b6124e684848461213a565b6124f2848484846128f8565b612531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252890613b60565b60405180910390fd5b50505050565b6060600082141561257f576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506126df565b600082905060005b600082146125b157808061259a906143e9565b915050600a826125aa9190613ffa565b9150612587565b60008167ffffffffffffffff8111156125f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126255781602001600182028036833780820191505090505b5090505b600085146126d85760018261263e9190614231565b9150600a8561264d919061443c565b60306126599190613f6d565b60f81b818381518110612695577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126d19190613ffa565b9450612629565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127af57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127bf57506127be82612a8f565b5b9050919050565b6127d1838383611eb0565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156128145761280f81612af9565b612853565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612852576128518382612b42565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128965761289181612caf565b6128d5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128d4576128d38282612df2565b5b5b505050565b6128f4828260405180602001604052806000815250612e71565b5050565b60006129198473ffffffffffffffffffffffffffffffffffffffff16611e9d565b15612a82578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612942611f9b565b8786866040518563ffffffff1660e01b81526004016129649493929190613a75565b602060405180830381600087803b15801561297e57600080fd5b505af19250505080156129af57506040513d601f19601f820116820180604052508101906129ac9190613428565b60015b612a32573d80600081146129df576040519150601f19603f3d011682016040523d82523d6000602084013e6129e4565b606091505b50600081511415612a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2190613b60565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612a87565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612b4f846111e0565b612b599190614231565b9050600060086000848152602001908152602001600020549050818114612c3e576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050612cc39190614231565b90506000600a6000848152602001908152602001600020549050600060098381548110612d19577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060098381548110612d61577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480612dd6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612dfd836111e0565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b612e7b8383612ecc565b612e8860008484846128f8565b612ec7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ebe90613b60565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3390613ce0565b60405180910390fd5b612f4581611f2f565b15612f85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7c90613ba0565b60405180910390fd5b612f91600083836127c6565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fe19190613f6d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8280546130a690614386565b90600052602060002090601f0160209004810192826130c8576000855561310f565b82601f106130e157803560ff191683800117855561310f565b8280016001018555821561310f579182015b8281111561310e5782358255916020019190600101906130f3565b5b50905061311c9190613120565b5090565b5b80821115613139576000816000905550600101613121565b5090565b600061315061314b84613ec0565b613e9b565b90508281526020810184848401111561316857600080fd5b61317384828561431a565b509392505050565b60008135905061318a81614b36565b92915050565b60008135905061319f81614b4d565b92915050565b6000813590506131b481614b64565b92915050565b6000815190506131c981614b64565b92915050565b600082601f8301126131e057600080fd5b81356131f084826020860161313d565b91505092915050565b60008083601f84011261320b57600080fd5b8235905067ffffffffffffffff81111561322457600080fd5b60208301915083600182028301111561323c57600080fd5b9250929050565b60008135905061325281614b7b565b92915050565b60006020828403121561326a57600080fd5b60006132788482850161317b565b91505092915050565b6000806040838503121561329457600080fd5b60006132a28582860161317b565b92505060206132b38582860161317b565b9150509250929050565b6000806000606084860312156132d257600080fd5b60006132e08682870161317b565b93505060206132f18682870161317b565b925050604061330286828701613243565b9150509250925092565b6000806000806080858703121561332257600080fd5b60006133308782880161317b565b94505060206133418782880161317b565b935050604061335287828801613243565b925050606085013567ffffffffffffffff81111561336f57600080fd5b61337b878288016131cf565b91505092959194509250565b6000806040838503121561339a57600080fd5b60006133a88582860161317b565b92505060206133b985828601613190565b9150509250929050565b600080604083850312156133d657600080fd5b60006133e48582860161317b565b92505060206133f585828601613243565b9150509250929050565b60006020828403121561341157600080fd5b600061341f848285016131a5565b91505092915050565b60006020828403121561343a57600080fd5b6000613448848285016131ba565b91505092915050565b60006020828403121561346357600080fd5b600061347184828501613243565b91505092915050565b60008060006040848603121561348f57600080fd5b600061349d86828701613243565b935050602084013567ffffffffffffffff8111156134ba57600080fd5b6134c6868287016131f9565b92509250509250925092565b60006134de8383613974565b60208301905092915050565b6134f381614299565b82525050565b600061350482613f01565b61350e8185613f2f565b935061351983613ef1565b8060005b8381101561354a57815161353188826134d2565b975061353c83613f22565b92505060018101905061351d565b5085935050505092915050565b613560816142ab565b82525050565b600061357182613f0c565b61357b8185613f40565b935061358b818560208601614329565b61359481614529565b840191505092915050565b60006135aa82613f17565b6135b48185613f51565b93506135c4818560208601614329565b6135cd81614529565b840191505092915050565b60006135e382613f17565b6135ed8185613f62565b93506135fd818560208601614329565b80840191505092915050565b6000613616600983613f51565b915061362182614547565b602082019050919050565b6000613639602b83613f51565b915061364482614570565b604082019050919050565b600061365c603283613f51565b9150613667826145bf565b604082019050919050565b600061367f602683613f51565b915061368a8261460e565b604082019050919050565b60006136a2601c83613f51565b91506136ad8261465d565b602082019050919050565b60006136c5600c83613f51565b91506136d082614686565b602082019050919050565b60006136e8602483613f51565b91506136f3826146af565b604082019050919050565b600061370b601983613f51565b9150613716826146fe565b602082019050919050565b600061372e602c83613f51565b915061373982614727565b604082019050919050565b6000613751603883613f51565b915061375c82614776565b604082019050919050565b6000613774601183613f51565b915061377f826147c5565b602082019050919050565b6000613797602a83613f51565b91506137a2826147ee565b604082019050919050565b60006137ba602983613f51565b91506137c58261483d565b604082019050919050565b60006137dd601283613f51565b91506137e88261488c565b602082019050919050565b6000613800602083613f51565b915061380b826148b5565b602082019050919050565b6000613823602c83613f51565b915061382e826148de565b604082019050919050565b6000613846602083613f51565b91506138518261492d565b602082019050919050565b6000613869602983613f51565b915061387482614956565b604082019050919050565b600061388c602183613f51565b9150613897826149a5565b604082019050919050565b60006138af601483613f51565b91506138ba826149f4565b602082019050919050565b60006138d2603183613f51565b91506138dd82614a1d565b604082019050919050565b60006138f5602c83613f51565b915061390082614a6c565b604082019050919050565b6000613918601183613f51565b915061392382614abb565b602082019050919050565b600061393b601f83613f51565b915061394682614ae4565b602082019050919050565b600061395e600183613f62565b915061396982614b0d565b600182019050919050565b61397d81614303565b82525050565b61398c81614303565b82525050565b6139a361399e82614303565b614432565b82525050565b6139b28161430d565b82525050565b60006139c482876135d8565b91506139d082866135d8565b91506139db82613951565b91506139e782856135d8565b91506139f282613951565b91506139fe82846135d8565b915081905095945050505050565b6000613a188287613992565b602082019150613a288286613992565b602082019150613a388285613992565b602082019150613a488284613992565b60208201915081905095945050505050565b6000602082019050613a6f60008301846134ea565b92915050565b6000608082019050613a8a60008301876134ea565b613a9760208301866134ea565b613aa46040830185613983565b8181036060830152613ab68184613566565b905095945050505050565b60006020820190508181036000830152613adb81846134f9565b905092915050565b6000602082019050613af86000830184613557565b92915050565b60006020820190508181036000830152613b18818461359f565b905092915050565b60006020820190508181036000830152613b3981613609565b9050919050565b60006020820190508181036000830152613b598161362c565b9050919050565b60006020820190508181036000830152613b798161364f565b9050919050565b60006020820190508181036000830152613b9981613672565b9050919050565b60006020820190508181036000830152613bb981613695565b9050919050565b60006020820190508181036000830152613bd9816136b8565b9050919050565b60006020820190508181036000830152613bf9816136db565b9050919050565b60006020820190508181036000830152613c19816136fe565b9050919050565b60006020820190508181036000830152613c3981613721565b9050919050565b60006020820190508181036000830152613c5981613744565b9050919050565b60006020820190508181036000830152613c7981613767565b9050919050565b60006020820190508181036000830152613c998161378a565b9050919050565b60006020820190508181036000830152613cb9816137ad565b9050919050565b60006020820190508181036000830152613cd9816137d0565b9050919050565b60006020820190508181036000830152613cf9816137f3565b9050919050565b60006020820190508181036000830152613d1981613816565b9050919050565b60006020820190508181036000830152613d3981613839565b9050919050565b60006020820190508181036000830152613d598161385c565b9050919050565b60006020820190508181036000830152613d798161387f565b9050919050565b60006020820190508181036000830152613d99816138a2565b9050919050565b60006020820190508181036000830152613db9816138c5565b9050919050565b60006020820190508181036000830152613dd9816138e8565b9050919050565b60006020820190508181036000830152613df98161390b565b9050919050565b60006020820190508181036000830152613e198161392e565b9050919050565b6000602082019050613e356000830184613983565b92915050565b6000608082019050613e506000830187613983565b613e5d60208301866139a9565b613e6a60408301856139a9565b613e776060830184613983565b95945050505050565b6000602082019050613e9560008301846139a9565b92915050565b6000613ea5613eb6565b9050613eb182826143b8565b919050565b6000604051905090565b600067ffffffffffffffff821115613edb57613eda6144fa565b5b613ee482614529565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613f7882614303565b9150613f8383614303565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fb857613fb761446d565b5b828201905092915050565b6000613fce8261430d565b9150613fd98361430d565b92508260ff03821115613fef57613fee61446d565b5b828201905092915050565b600061400582614303565b915061401083614303565b9250826140205761401f61449c565b5b828204905092915050565b6000808291508390505b6001851115614075578086048111156140515761405061446d565b5b60018516156140605780820291505b808102905061406e8561453a565b9450614035565b94509492505050565b600061408982614303565b915061409483614303565b92506140c17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846140c9565b905092915050565b6000826140d95760019050614195565b816140e75760009050614195565b81600181146140fd576002811461410757614136565b6001915050614195565b60ff8411156141195761411861446d565b5b8360020a9150848211156141305761412f61446d565b5b50614195565b5060208310610133831016604e8410600b841016171561416b5782820a9050838111156141665761416561446d565b5b614195565b614178848484600161402b565b9250905081840481111561418f5761418e61446d565b5b81810290505b9392505050565b60006141a782614303565b91506141b283614303565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141eb576141ea61446d565b5b828202905092915050565b60006142018261430d565b915061420c8361430d565b92508160ff04831182151516156142265761422561446d565b5b828202905092915050565b600061423c82614303565b915061424783614303565b92508282101561425a5761425961446d565b5b828203905092915050565b60006142708261430d565b915061427b8361430d565b92508282101561428e5761428d61446d565b5b828203905092915050565b60006142a4826142e3565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561434757808201518184015260208101905061432c565b83811115614356576000848401525b50505050565b60006143678261430d565b9150600082141561437b5761437a61446d565b5b600182039050919050565b6000600282049050600182168061439e57607f821691505b602082108114156143b2576143b16144cb565b5b50919050565b6143c182614529565b810181811067ffffffffffffffff821117156143e0576143df6144fa565b5b80604052505050565b60006143f482614303565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156144275761442661446d565b5b600182019050919050565b6000819050919050565b600061444782614303565b915061445283614303565b9250826144625761446161449c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f4a616d20746f6b656e0000000000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f43616e6e6f74207072696e740000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4475706c696361746520746f6b656e2069640000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e6f206f726967696e205265706c696361746f72000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f43616e6e6f742067697665207072696e74000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b614b3f81614299565b8114614b4a57600080fd5b50565b614b56816142ab565b8114614b6157600080fd5b50565b614b6d816142b7565b8114614b7857600080fd5b50565b614b8481614303565b8114614b8f57600080fd5b5056fe68747470733a2f2f6170692e6d6164646f676a6f6e65732e636f6d2f7265706c696361746f722fa2646970667358221220f572e73a131640b4c7e980204adf1edbc400134cdff9cd1bff3bdaa75aa1df0964736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000006095b860000000000000000000000000000000000000000000000000000000000024ea000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002600000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000001b5245504c494341544f52206279204d616420446f67204a6f6e65730000000000000000000000000000000000000000000000000000000000000000000000000d4d444a5245504c494341544f520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000004600000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000032
-----Decoded View---------------
Arg [0] : _name (string): REPLICATOR by Mad Dog Jones
Arg [1] : _symbol (string): MDJREPLICATOR
Arg [2] : firstPrintTime (uint256): 1620424800
Arg [3] : printInterval (uint256): 2419200
Arg [4] : maxGenerations (uint8): 6
Arg [5] : generationPrintLimits (uint8[]): 6,5,4,3,2,1
Arg [6] : generationJamVariants (uint8[]): 0,2,3,3,3,1
Arg [7] : generationJamProbabilities (uint8[]): 0,50,60,70,80,50
-----Encoded View---------------
33 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 000000000000000000000000000000000000000000000000000000006095b860
Arg [3] : 000000000000000000000000000000000000000000000000000000000024ea00
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000340
Arg [8] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [9] : 5245504c494341544f52206279204d616420446f67204a6f6e65730000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [11] : 4d444a5245504c494341544f5200000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [29] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [31] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000032
Loading...
Loading
Loading...
Loading
OVERVIEW
REPLICATOR: The story of a machine through time. This is the world’s first self-replicating NFT.Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.