ERC-721
Overview
Max Total Supply
2,319 TC
Holders
1,408
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 TCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TravelingCreature
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "eth-token-recover/contracts/TokenRecover.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; interface ICreature { function ownerOf(uint256 tokenId) external view returns (address owner); } contract TravelingCreature is ERC721Enumerable, AccessControl, ReentrancyGuard, TokenRecover { // Event for generating assets: event TransferTravelingCreature( uint256 indexed travelingCreatureId, uint256 indexed tokenId, uint256 fromCreature, uint256 toCreature, bool nabbed ); // Event for setting baseURI: event SetBaseUri( string newBaseUri ); // Tracks next token ID: using Counters for Counters.Counter; Counters.Counter internal _currentTokenId; // Roles: bytes32 public constant NAB_ROLE = keccak256("NAB_ROLE"); // Tracks current Creature being visited by each TC: mapping (uint256 => uint256) public currentlyVisitedCreature; // Base URI for token metadata: string internal _baseURIExtended; // Receives the nabbed NFTs: address internal nabTarget; // Creature World Contract: ICreature immutable internal _creatureWorld; // Tracks visited Creatures: mapping (uint256 => bool) public hasBeenVisited; constructor( ICreature creatureWorld_, address[5] memory initialOwners, uint256[5] memory initialCreatures, string memory baseURIExtended_ ) ERC721("Traveling Creature", "TC") { require(initialOwners.length == initialCreatures.length, "TravelingCreature: initialOwners must be same length as initialCreatures!"); // Set Creature World base contract: _creatureWorld = creatureWorld_; // Set initial baseURI: _baseURIExtended = baseURIExtended_; // Set initial nab target to deployer: nabTarget = msg.sender; // Set contract deployer to admin: _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); // Mint Traveling Creatures to initial owners: for (uint i = 0; i < 5; i++) { // Traveling Creature ID (10000-10004) uint256 tcid = 10000 + i; // Mint the Traveling Creature token to the intial owner: _safeMint(initialOwners[i], tcid); // Mark the currently visited Creature to the intial Creature target: currentlyVisitedCreature[tcid] = initialCreatures[i]; // Mark the initial Creature as visited: hasBeenVisited[initialCreatures[i]] = true; } } function _baseURI() internal view override returns (string memory) { return _baseURIExtended; } function setBaseURI(string memory baseURI_) external onlyRole(DEFAULT_ADMIN_ROLE) returns (string memory) { _baseURIExtended = baseURI_; emit SetBaseUri(baseURI_); return _baseURIExtended; } function setNabTarget(address nabTarget_) external onlyRole(DEFAULT_ADMIN_ROLE) { nabTarget = nabTarget_; } function _isTravelingCreature(uint256 id) internal pure returns (bool) { return id > 9999 && id < 10005; } function _sendTravelingCreature(address from, uint256 travelingCreatureId, uint256 creatureId, bool nabbed) internal returns (uint256) { // Check that the token being sent is a Traveling Creature: require(_isTravelingCreature(travelingCreatureId) == true, "TravelingCreature: Cannot send a non-traveling-creature!"); // Check that the target Creature has not yet been visited: require(hasBeenVisited[creatureId] == false, "TravelingCreature: This Creature has already been visited!"); // Find owner of target Creature: address owner = ICreature(_creatureWorld).ownerOf(creatureId); // Transfer TC to owner of target Creature: _safeTransfer(from, owner, travelingCreatureId, ""); // Get current token ID: uint256 tokenId = _currentTokenId.current(); // Mint to sender (or nabTarget if nabbed): _safeMint(nabbed ? nabTarget : msg.sender, tokenId); // Increment current token ID: _currentTokenId.increment(); // Mark Creature as visited: hasBeenVisited[creatureId] = true; // Emit event for generating assets: emit TransferTravelingCreature( travelingCreatureId, tokenId, currentlyVisitedCreature[travelingCreatureId], creatureId, nabbed ); // Track which Creature is currently being visited by TC: currentlyVisitedCreature[travelingCreatureId] = creatureId; // Return token ID: return tokenId; } function sendTravelingCreature(uint256 travelingCreatureId, uint256 creatureId) external nonReentrant { _sendTravelingCreature(msg.sender, travelingCreatureId, creatureId, false); } function nab(uint256 travelingCreatureId, uint256 creatureId) external onlyRole(NAB_ROLE) nonReentrant { _sendTravelingCreature(ownerOf(travelingCreatureId), travelingCreatureId, creatureId, true); } function getTravelingCreaturesOwners() public view returns (address[5] memory) { address[5] memory owners = [ ownerOf(10000), ownerOf(10001), ownerOf(10002), ownerOf(10003), ownerOf(10004) ]; return owners; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) 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 // OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title TokenRecover * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Allows owner to recover any ERC20 sent into the contract */ contract TokenRecover is Ownable { /** * @dev Remember that only owner can call so be careful when use on contracts generated from other contracts. * @param tokenAddress The token contract address * @param tokenAmount Number of tokens to be sent */ function recoverERC20(address tokenAddress, uint256 tokenAmount) public virtual onlyOwner { IERC20(tokenAddress).transfer(owner(), tokenAmount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ICreature","name":"creatureWorld_","type":"address"},{"internalType":"address[5]","name":"initialOwners","type":"address[5]"},{"internalType":"uint256[5]","name":"initialCreatures","type":"uint256[5]"},{"internalType":"string","name":"baseURIExtended_","type":"string"}],"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newBaseUri","type":"string"}],"name":"SetBaseUri","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"travelingCreatureId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fromCreature","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toCreature","type":"uint256"},{"indexed":false,"internalType":"bool","name":"nabbed","type":"bool"}],"name":"TransferTravelingCreature","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAB_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"currentlyVisitedCreature","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTravelingCreaturesOwners","outputs":[{"internalType":"address[5]","name":"","type":"address[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hasBeenVisited","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"travelingCreatureId","type":"uint256"},{"internalType":"uint256","name":"creatureId","type":"uint256"}],"name":"nab","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"travelingCreatureId","type":"uint256"},{"internalType":"uint256","name":"creatureId","type":"uint256"}],"name":"sendTravelingCreature","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":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nabTarget_","type":"address"}],"name":"setNabTarget","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
60a06040523480156200001157600080fd5b506040516200666b3803806200666b8339818101604052810190620000379190620012b8565b6040518060400160405280601281526020017f54726176656c696e6720437265617475726500000000000000000000000000008152506040518060400160405280600281526020017f54430000000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb92919062000fe2565b508060019080519060200190620000d492919062000fe2565b5050506001600b81905550620000ff620000f36200034d60201b60201c565b6200035560201b60201c565b6005801462000145576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200013c9062001660565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505080600f90805190602001906200019492919062000fe2565b5033601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001fa6000801b620001ee6200034d60201b60201c565b6200041b60201b60201c565b60005b6005811015620003425760008161271062000219919062001768565b90506200026b85836005811062000259577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151826200043160201b60201c565b838260058110620002a5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151600e60008381526020019081526020016000208190555060016011600086856005811062000301577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151815260200190815260200160002060006101000a81548160ff0219169083151502179055505080806200033990620018ea565b915050620001fd565b505050505062001a3e565b600033905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200042d82826200045760201b60201c565b5050565b620004538282604051806020016040528060008152506200054960201b60201c565b5050565b620004698282620005b760201b60201c565b62000545576001600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620004ea6200034d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6200055b83836200062260201b60201c565b6200057060008484846200080860201b60201c565b620005b2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005a990620015d8565b60405180910390fd5b505050565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000695576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200068c906200163e565b60405180910390fd5b620006a681620009c260201b60201c565b15620006e9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006e090620015fa565b60405180910390fd5b620006fd6000838362000a2e60201b60201c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546200074f919062001768565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000620008368473ffffffffffffffffffffffffffffffffffffffff1662000b7560201b620016a21760201c565b15620009b5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620008686200034d60201b60201c565b8786866040518563ffffffff1660e01b81526004016200088c949392919062001584565b602060405180830381600087803b158015620008a757600080fd5b505af1925050508015620008db57506040513d601f19601f82011682018060405250810190620008d891906200128c565b60015b62000964573d80600081146200090e576040519150601f19603f3d011682016040523d82523d6000602084013e62000913565b606091505b506000815114156200095c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200095390620015d8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050620009ba565b600190505b949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b62000a4683838362000b8860201b620016b51760201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141562000a935762000a8d8162000b8d60201b60201c565b62000adb565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161462000ada5762000ad9838262000bd660201b60201c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000b285762000b228162000d5360201b60201c565b62000b70565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000b6f5762000b6e828262000e9b60201b60201c565b5b5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600162000bf08462000f2760201b62000fb51760201c565b62000bfc9190620017c5565b905060006007600084815260200190815260200160002054905081811462000ce2576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905062000d699190620017c5565b905060006009600084815260200190815260200160002054905060006008838154811062000dc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811062000e09577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548062000e7f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600062000eb38362000f2760201b62000fb51760201c565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000f9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000f92906200161c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b82805462000ff090620018b4565b90600052602060002090601f01602090048101928262001014576000855562001060565b82601f106200102f57805160ff191683800117855562001060565b8280016001018555821562001060579182015b828111156200105f57825182559160200191906001019062001042565b5b5090506200106f919062001073565b5090565b5b808211156200108e57600081600090555060010162001074565b5090565b6000620010a9620010a384620016b6565b62001682565b90508082856020860282011115620010c057600080fd5b60005b85811015620010f45781620010d98882620011af565b845260208401935060208301925050600181019050620010c3565b5050509392505050565b6000620011156200110f84620016df565b62001682565b905080828560208602820111156200112c57600080fd5b60005b8581101562001160578162001145888262001275565b8452602084019350602083019250506001810190506200112f565b5050509392505050565b6000620011816200117b8462001708565b62001682565b9050828152602081018484840111156200119a57600080fd5b620011a78482856200187e565b509392505050565b600081519050620011c081620019d6565b92915050565b600082601f830112620011d857600080fd5b6005620011e784828562001092565b91505092915050565b600082601f8301126200120257600080fd5b600562001211848285620010fe565b91505092915050565b6000815190506200122b81620019f0565b92915050565b600081519050620012428162001a0a565b92915050565b600082601f8301126200125a57600080fd5b81516200126c8482602086016200116a565b91505092915050565b600081519050620012868162001a24565b92915050565b6000602082840312156200129f57600080fd5b6000620012af848285016200121a565b91505092915050565b6000806000806101808587031215620012d057600080fd5b6000620012e08782880162001231565b9450506020620012f387828801620011c6565b93505060c06200130687828801620011f0565b92505061016085015167ffffffffffffffff8111156200132557600080fd5b620013338782880162001248565b91505092959194509250565b6200134a8162001800565b82525050565b60006200135d826200173b565b62001369818562001746565b93506200137b8185602086016200187e565b6200138681620019c5565b840191505092915050565b6000620013a060328362001757565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b600062001408601c8362001757565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b60006200144a602a8362001757565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000620014b260208362001757565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000620014f460498362001757565b91507f54726176656c696e6743726561747572653a20696e697469616c4f776e65727360008301527f206d7573742062652073616d65206c656e67746820617320696e697469616c4360208301527f72656174757265732100000000000000000000000000000000000000000000006040830152606082019050919050565b6200157e8162001874565b82525050565b60006080820190506200159b60008301876200133f565b620015aa60208301866200133f565b620015b9604083018562001573565b8181036060830152620015cd818462001350565b905095945050505050565b60006020820190508181036000830152620015f38162001391565b9050919050565b600060208201905081810360008301526200161581620013f9565b9050919050565b6000602082019050818103600083015262001637816200143b565b9050919050565b600060208201905081810360008301526200165981620014a3565b9050919050565b600060208201905081810360008301526200167b81620014e5565b9050919050565b6000604051905081810181811067ffffffffffffffff82111715620016ac57620016ab62001996565b5b8060405250919050565b600067ffffffffffffffff821115620016d457620016d362001996565b5b602082029050919050565b600067ffffffffffffffff821115620016fd57620016fc62001996565b5b602082029050919050565b600067ffffffffffffffff82111562001726576200172562001996565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000620017758262001874565b9150620017828362001874565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620017ba57620017b962001938565b5b828201905092915050565b6000620017d28262001874565b9150620017df8362001874565b925082821015620017f557620017f462001938565b5b828203905092915050565b60006200180d8262001854565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006200184d8262001800565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200189e57808201518184015260208101905062001881565b83811115620018ae576000848401525b50505050565b60006002820490506001821680620018cd57607f821691505b60208210811415620018e457620018e362001967565b5b50919050565b6000620018f78262001874565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156200192d576200192c62001938565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620019e18162001800565b8114620019ed57600080fd5b50565b620019fb8162001814565b811462001a0757600080fd5b50565b62001a158162001840565b811462001a2157600080fd5b50565b62001a2f8162001874565b811462001a3b57600080fd5b50565b60805160601c614c0e62001a5d600039600061191d0152614c0e6000f3fe608060405234801561001057600080fd5b50600436106102055760003560e01c80636b35832c1161011a578063a217fddf116100ad578063c87b56dd1161007c578063c87b56dd1461060e578063d547741f1461063e578063e985e9c51461065a578063e9ccf9e61461068a578063f2fde38b146106a657610205565b8063a217fddf14610588578063a22cb465146105a6578063b88d4fde146105c2578063c52d81c7146105de57610205565b80638da5cb5b116100e95780638da5cb5b146104fe57806391d148541461051c57806395d89b411461054c578063a1b8ed271461056a57610205565b80636b35832c1461048c57806370a08231146104a8578063715018a6146104d85780638980f11f146104e257610205565b806323b872dd1161019d57806336568abe1161016c57806336568abe146103c457806342842e0e146103e05780634f6ccce7146103fc57806355f804b31461042c5780636352211e1461045c57610205565b806323b872dd1461032c578063248a9ca3146103485780632f2ff15d146103785780632f745c591461039457610205565b8063095ea7b3116101d9578063095ea7b3146102a657806314cf9ffc146102c257806318160ddd146102de5780631a481503146102fc57610205565b8062885ccf1461020a57806301ffc9a71461022857806306fdde0314610258578063081812fc14610276575b600080fd5b6102126106c2565b60405161021f9190614347565b60405180910390f35b610242600480360381019061023d919061373e565b61080a565b60405161024f9190614362565b60405180910390f35b61026061081c565b60405161026d9190614398565b60405180910390f35b610290600480360381019061028b91906137d1565b6108ae565b60405161029d91906142b7565b60405180910390f35b6102c060048036038101906102bb9190613674565b610933565b005b6102dc60048036038101906102d791906137fa565b610a4b565b005b6102e6610ab3565b6040516102f3919061469a565b60405180910390f35b610316600480360381019061031191906137d1565b610ac0565b6040516103239190614362565b60405180910390f35b6103466004803603810190610341919061356e565b610ae0565b005b610362600480360381019061035d91906136d9565b610b40565b60405161036f919061437d565b60405180910390f35b610392600480360381019061038d9190613702565b610b60565b005b6103ae60048036038101906103a99190613674565b610b89565b6040516103bb919061469a565b60405180910390f35b6103de60048036038101906103d99190613702565b610c2e565b005b6103fa60048036038101906103f5919061356e565b610cb1565b005b610416600480360381019061041191906137d1565b610cd1565b604051610423919061469a565b60405180910390f35b61044660048036038101906104419190613790565b610d68565b6040516104539190614398565b60405180910390f35b610476600480360381019061047191906137d1565b610e60565b60405161048391906142b7565b60405180910390f35b6104a660048036038101906104a191906137fa565b610f12565b005b6104c260048036038101906104bd91906134e0565b610fb5565b6040516104cf919061469a565b60405180910390f35b6104e061106d565b005b6104fc60048036038101906104f79190613674565b6110f5565b005b61050661120a565b60405161051391906142b7565b60405180910390f35b61053660048036038101906105319190613702565b611234565b6040516105439190614362565b60405180910390f35b61055461129f565b6040516105619190614398565b60405180910390f35b610572611331565b60405161057f919061437d565b60405180910390f35b610590611355565b60405161059d919061437d565b60405180910390f35b6105c060048036038101906105bb9190613638565b61135c565b005b6105dc60048036038101906105d791906135bd565b611372565b005b6105f860048036038101906105f391906137d1565b6113d4565b604051610605919061469a565b60405180910390f35b610628600480360381019061062391906137d1565b6113ec565b6040516106359190614398565b60405180910390f35b61065860048036038101906106539190613702565b611493565b005b610674600480360381019061066f9190613532565b6114bc565b6040516106819190614362565b60405180910390f35b6106a4600480360381019061069f91906134e0565b611550565b005b6106c060048036038101906106bb91906134e0565b6115aa565b005b6106ca6132a3565b60006040518060a001604052806106e2612710610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200161071e612711610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200161075a612712610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001610796612713610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016107d2612714610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525090508091505090565b6000610815826116ba565b9050919050565b60606000805461082b906149ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610857906149ec565b80156108a45780601f10610879576101008083540402835291602001916108a4565b820191906000526020600020905b81548152906001019060200180831161088757829003601f168201915b5050505050905090565b60006108b982611734565b6108f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ef9061455a565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061093e82610e60565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a6906145da565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109ce6117a0565b73ffffffffffffffffffffffffffffffffffffffff1614806109fd57506109fc816109f76117a0565b6114bc565b5b610a3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a33906144da565b60405180910390fd5b610a4683836117a8565b505050565b6002600b541415610a91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a889061465a565b60405180910390fd5b6002600b81905550610aa63383836000611861565b506001600b819055505050565b6000600880549050905090565b60116020528060005260406000206000915054906101000a900460ff1681565b610af1610aeb6117a0565b82611ad2565b610b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b279061461a565b60405180910390fd5b610b3b838383611bb0565b505050565b6000600a6000838152602001908152602001600020600101549050919050565b610b6982610b40565b610b7a81610b756117a0565b611e0c565b610b848383611ea9565b505050565b6000610b9483610fb5565b8210610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcc906143fa565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c366117a0565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9a9061467a565b60405180910390fd5b610cad8282611f8a565b5050565b610ccc83838360405180602001604052806000815250611372565b505050565b6000610cdb610ab3565b8210610d1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d139061463a565b60405180910390fd5b60088281548110610d56577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b60606000801b610d7f81610d7a6117a0565b611e0c565b82600f9080519060200190610d959291906132c5565b507fafa35f42f46f5052816d7c6a2e9406eca98294b20726677862d83b4a7418d8d583604051610dc59190614398565b60405180910390a1600f8054610dda906149ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610e06906149ec565b8015610e535780601f10610e2857610100808354040283529160200191610e53565b820191906000526020600020905b815481529060010190602001808311610e3657829003601f168201915b5050505050915050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f009061451a565b60405180910390fd5b80915050919050565b7f3057cafc0012aa2ecd513a8c9cf37ec7b37a858ac6d67224d3396a23468918ca610f4481610f3f6117a0565b611e0c565b6002600b541415610f8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f819061465a565b60405180910390fd5b6002600b81905550610fa7610f9e84610e60565b84846001611861565b506001600b81905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101d906144fa565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110756117a0565b73ffffffffffffffffffffffffffffffffffffffff1661109361120a565b73ffffffffffffffffffffffffffffffffffffffff16146110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e09061457a565b60405180910390fd5b6110f3600061206c565b565b6110fd6117a0565b73ffffffffffffffffffffffffffffffffffffffff1661111b61120a565b73ffffffffffffffffffffffffffffffffffffffff1614611171576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111689061457a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61119561120a565b836040518363ffffffff1660e01b81526004016111b392919061431e565b602060405180830381600087803b1580156111cd57600080fd5b505af11580156111e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120591906136b0565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546112ae906149ec565b80601f01602080910402602001604051908101604052809291908181526020018280546112da906149ec565b80156113275780601f106112fc57610100808354040283529160200191611327565b820191906000526020600020905b81548152906001019060200180831161130a57829003601f168201915b5050505050905090565b7f3057cafc0012aa2ecd513a8c9cf37ec7b37a858ac6d67224d3396a23468918ca81565b6000801b81565b61136e6113676117a0565b8383612132565b5050565b61138361137d6117a0565b83611ad2565b6113c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b99061461a565b60405180910390fd5b6113ce8484848461229f565b50505050565b600e6020528060005260406000206000915090505481565b60606113f782611734565b611436576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142d906145ba565b60405180910390fd5b60006114406122fb565b90506000815111611460576040518060200160405280600081525061148b565b8061146a8461238d565b60405160200161147b929190614259565b6040516020818303038152906040525b915050919050565b61149c82610b40565b6114ad816114a86117a0565b611e0c565b6114b78383611f8a565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b611565816115606117a0565b611e0c565b81601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6115b26117a0565b73ffffffffffffffffffffffffffffffffffffffff166115d061120a565b73ffffffffffffffffffffffffffffffffffffffff1614611626576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161d9061457a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168d9061443a565b60405180910390fd5b61169f8161206c565b50565b600080823b905060008111915050919050565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061172d575061172c8261253a565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661181b83610e60565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600060011515611870856125b4565b1515146118b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a9906143ba565b60405180910390fd5b600015156011600085815260200190815260200160002060009054906101000a900460ff16151514611919576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611910906145fa565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401611974919061469a565b60206040518083038186803b15801561198c57600080fd5b505afa1580156119a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c49190613509565b90506119e18682876040518060200160405280600081525061229f565b60006119ed600d6125cf565b9050611a27846119fd5733611a21565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b826125dd565b611a31600d6125fb565b60016011600087815260200190815260200160002060006101000a81548160ff02191690831515021790555080867f0bbde553a3cbd718feb43c5ed7efe834065aa10be700e752811a77d999f44694600e60008a8152602001908152602001600020548888604051611aa5939291906146b5565b60405180910390a384600e6000888152602001908152602001600020819055508092505050949350505050565b6000611add82611734565b611b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b13906144ba565b60405180910390fd5b6000611b2783610e60565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611b9657508373ffffffffffffffffffffffffffffffffffffffff16611b7e846108ae565b73ffffffffffffffffffffffffffffffffffffffff16145b80611ba75750611ba681856114bc565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611bd082610e60565b73ffffffffffffffffffffffffffffffffffffffff1614611c26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1d9061459a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8d9061447a565b60405180910390fd5b611ca1838383612611565b611cac6000826117a8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cfc91906148ce565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d5391906147ed565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611e168282611234565b611ea557611e3b8173ffffffffffffffffffffffffffffffffffffffff166014612725565b611e498360001c6020612725565b604051602001611e5a92919061427d565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9c9190614398565b60405180910390fd5b5050565b611eb38282611234565b611f86576001600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611f2b6117a0565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611f948282611234565b15612068576000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061200d6117a0565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121989061449a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122929190614362565b60405180910390a3505050565b6122aa848484611bb0565b6122b684848484612a1f565b6122f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ec9061441a565b60405180910390fd5b50505050565b6060600f805461230a906149ec565b80601f0160208091040260200160405190810160405280929190818152602001828054612336906149ec565b80156123835780601f1061235857610100808354040283529160200191612383565b820191906000526020600020905b81548152906001019060200180831161236657829003601f168201915b5050505050905090565b606060008214156123d5576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612535565b600082905060005b600082146124075780806123f090614a1e565b915050600a826124009190614843565b91506123dd565b60008167ffffffffffffffff811115612449577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561247b5781602001600182028036833780820191505090505b5090505b6000851461252e5760018261249491906148ce565b9150600a856124a39190614a67565b60306124af91906147ed565b60f81b8183815181106124eb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125279190614843565b945061247f565b8093505050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806125ad57506125ac82612bb6565b5b9050919050565b600061270f821180156125c8575061271582105b9050919050565b600081600001549050919050565b6125f7828260405180602001604052806000815250612c98565b5050565b6001816000016000828254019250508190555050565b61261c8383836116b5565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561265f5761265a81612cf3565b61269e565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461269d5761269c8382612d3c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126e1576126dc81612ea9565b612720565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461271f5761271e8282612fec565b5b5b505050565b6060600060028360026127389190614874565b61274291906147ed565b67ffffffffffffffff811115612781577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127b35781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612811577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061289b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026128db9190614874565b6128e591906147ed565b90505b60018111156129d1577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061294d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b82828151811061298a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806129ca906149c2565b90506128e8565b5060008414612a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0c906143da565b60405180910390fd5b8091505092915050565b6000612a408473ffffffffffffffffffffffffffffffffffffffff166116a2565b15612ba9578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a696117a0565b8786866040518563ffffffff1660e01b8152600401612a8b94939291906142d2565b602060405180830381600087803b158015612aa557600080fd5b505af1925050508015612ad657506040513d601f19601f82011682018060405250810190612ad39190613767565b60015b612b59573d8060008114612b06576040519150601f19603f3d011682016040523d82523d6000602084013e612b0b565b606091505b50600081511415612b51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b489061441a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612bae565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c8157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612c915750612c908261306b565b5b9050919050565b612ca283836130d5565b612caf6000848484612a1f565b612cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce59061441a565b60405180910390fd5b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612d4984610fb5565b612d5391906148ce565b9050600060076000848152602001908152602001600020549050818114612e38576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612ebd91906148ce565b9050600060096000848152602001908152602001600020549050600060088381548110612f13577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110612f5b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612fd0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612ff783610fb5565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313c9061453a565b60405180910390fd5b61314e81611734565b1561318e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131859061445a565b60405180910390fd5b61319a60008383612611565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131ea91906147ed565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6040518060a00160405280600590602082028036833780820191505090505090565b8280546132d1906149ec565b90600052602060002090601f0160209004810192826132f3576000855561333a565b82601f1061330c57805160ff191683800117855561333a565b8280016001018555821561333a579182015b8281111561333957825182559160200191906001019061331e565b5b509050613347919061334b565b5090565b5b8082111561336457600081600090555060010161334c565b5090565b600061337b6133768461471d565b6146ec565b90508281526020810184848401111561339357600080fd5b61339e848285614980565b509392505050565b60006133b96133b48461474d565b6146ec565b9050828152602081018484840111156133d157600080fd5b6133dc848285614980565b509392505050565b6000813590506133f381614b65565b92915050565b60008151905061340881614b65565b92915050565b60008135905061341d81614b7c565b92915050565b60008151905061343281614b7c565b92915050565b60008135905061344781614b93565b92915050565b60008135905061345c81614baa565b92915050565b60008151905061347181614baa565b92915050565b600082601f83011261348857600080fd5b8135613498848260208601613368565b91505092915050565b600082601f8301126134b257600080fd5b81356134c28482602086016133a6565b91505092915050565b6000813590506134da81614bc1565b92915050565b6000602082840312156134f257600080fd5b6000613500848285016133e4565b91505092915050565b60006020828403121561351b57600080fd5b6000613529848285016133f9565b91505092915050565b6000806040838503121561354557600080fd5b6000613553858286016133e4565b9250506020613564858286016133e4565b9150509250929050565b60008060006060848603121561358357600080fd5b6000613591868287016133e4565b93505060206135a2868287016133e4565b92505060406135b3868287016134cb565b9150509250925092565b600080600080608085870312156135d357600080fd5b60006135e1878288016133e4565b94505060206135f2878288016133e4565b9350506040613603878288016134cb565b925050606085013567ffffffffffffffff81111561362057600080fd5b61362c87828801613477565b91505092959194509250565b6000806040838503121561364b57600080fd5b6000613659858286016133e4565b925050602061366a8582860161340e565b9150509250929050565b6000806040838503121561368757600080fd5b6000613695858286016133e4565b92505060206136a6858286016134cb565b9150509250929050565b6000602082840312156136c257600080fd5b60006136d084828501613423565b91505092915050565b6000602082840312156136eb57600080fd5b60006136f984828501613438565b91505092915050565b6000806040838503121561371557600080fd5b600061372385828601613438565b9250506020613734858286016133e4565b9150509250929050565b60006020828403121561375057600080fd5b600061375e8482850161344d565b91505092915050565b60006020828403121561377957600080fd5b600061378784828501613462565b91505092915050565b6000602082840312156137a257600080fd5b600082013567ffffffffffffffff8111156137bc57600080fd5b6137c8848285016134a1565b91505092915050565b6000602082840312156137e357600080fd5b60006137f1848285016134cb565b91505092915050565b6000806040838503121561380d57600080fd5b600061381b858286016134cb565b925050602061382c858286016134cb565b9150509250929050565b6000613842838361384e565b60208301905092915050565b61385781614902565b82525050565b61386681614902565b82525050565b61387581614787565b61387f81846147b5565b925061388a8261477d565b8060005b838110156138bb5781516138a28782613836565b96506138ad836147a8565b92505060018101905061388e565b505050505050565b6138cc81614914565b82525050565b6138db81614920565b82525050565b60006138ec82614792565b6138f681856147c0565b935061390681856020860161498f565b61390f81614b54565b840191505092915050565b60006139258261479d565b61392f81856147d1565b935061393f81856020860161498f565b61394881614b54565b840191505092915050565b600061395e8261479d565b61396881856147e2565b935061397881856020860161498f565b80840191505092915050565b60006139916038836147d1565b91507f54726176656c696e6743726561747572653a2043616e6e6f742073656e64206160008301527f206e6f6e2d74726176656c696e672d63726561747572652100000000000000006020830152604082019050919050565b60006139f76020836147d1565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b6000613a37602b836147d1565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613a9d6032836147d1565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613b036026836147d1565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b69601c836147d1565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613ba96024836147d1565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613c0f6019836147d1565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000613c4f602c836147d1565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613cb56038836147d1565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613d1b602a836147d1565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d816029836147d1565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613de76020836147d1565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613e27602c836147d1565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613e8d6020836147d1565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613ecd6029836147d1565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613f33602f836147d1565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000613f996021836147d1565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613fff603a836147d1565b91507f54726176656c696e6743726561747572653a205468697320437265617475726560008301527f2068617320616c7265616479206265656e2076697369746564210000000000006020830152604082019050919050565b60006140656031836147d1565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b60006140cb602c836147d1565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b60006141316017836147e2565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000614171601f836147d1565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b60006141b16011836147e2565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b60006141f1602f836147d1565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b61425381614976565b82525050565b60006142658285613953565b91506142718284613953565b91508190509392505050565b600061428882614124565b91506142948285613953565b915061429f826141a4565b91506142ab8284613953565b91508190509392505050565b60006020820190506142cc600083018461385d565b92915050565b60006080820190506142e7600083018761385d565b6142f4602083018661385d565b614301604083018561424a565b818103606083015261431381846138e1565b905095945050505050565b6000604082019050614333600083018561385d565b614340602083018461424a565b9392505050565b600060a08201905061435c600083018461386c565b92915050565b600060208201905061437760008301846138c3565b92915050565b600060208201905061439260008301846138d2565b92915050565b600060208201905081810360008301526143b2818461391a565b905092915050565b600060208201905081810360008301526143d381613984565b9050919050565b600060208201905081810360008301526143f3816139ea565b9050919050565b6000602082019050818103600083015261441381613a2a565b9050919050565b6000602082019050818103600083015261443381613a90565b9050919050565b6000602082019050818103600083015261445381613af6565b9050919050565b6000602082019050818103600083015261447381613b5c565b9050919050565b6000602082019050818103600083015261449381613b9c565b9050919050565b600060208201905081810360008301526144b381613c02565b9050919050565b600060208201905081810360008301526144d381613c42565b9050919050565b600060208201905081810360008301526144f381613ca8565b9050919050565b6000602082019050818103600083015261451381613d0e565b9050919050565b6000602082019050818103600083015261453381613d74565b9050919050565b6000602082019050818103600083015261455381613dda565b9050919050565b6000602082019050818103600083015261457381613e1a565b9050919050565b6000602082019050818103600083015261459381613e80565b9050919050565b600060208201905081810360008301526145b381613ec0565b9050919050565b600060208201905081810360008301526145d381613f26565b9050919050565b600060208201905081810360008301526145f381613f8c565b9050919050565b6000602082019050818103600083015261461381613ff2565b9050919050565b6000602082019050818103600083015261463381614058565b9050919050565b60006020820190508181036000830152614653816140be565b9050919050565b6000602082019050818103600083015261467381614164565b9050919050565b60006020820190508181036000830152614693816141e4565b9050919050565b60006020820190506146af600083018461424a565b92915050565b60006060820190506146ca600083018661424a565b6146d7602083018561424a565b6146e460408301846138c3565b949350505050565b6000604051905081810181811067ffffffffffffffff8211171561471357614712614b25565b5b8060405250919050565b600067ffffffffffffffff82111561473857614737614b25565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561476857614767614b25565b5b601f19601f8301169050602081019050919050565b6000819050919050565b600060059050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006147f882614976565b915061480383614976565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561483857614837614a98565b5b828201905092915050565b600061484e82614976565b915061485983614976565b92508261486957614868614ac7565b5b828204905092915050565b600061487f82614976565b915061488a83614976565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148c3576148c2614a98565b5b828202905092915050565b60006148d982614976565b91506148e483614976565b9250828210156148f7576148f6614a98565b5b828203905092915050565b600061490d82614956565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156149ad578082015181840152602081019050614992565b838111156149bc576000848401525b50505050565b60006149cd82614976565b915060008214156149e1576149e0614a98565b5b600182039050919050565b60006002820490506001821680614a0457607f821691505b60208210811415614a1857614a17614af6565b5b50919050565b6000614a2982614976565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a5c57614a5b614a98565b5b600182019050919050565b6000614a7282614976565b9150614a7d83614976565b925082614a8d57614a8c614ac7565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b614b6e81614902565b8114614b7957600080fd5b50565b614b8581614914565b8114614b9057600080fd5b50565b614b9c81614920565b8114614ba757600080fd5b50565b614bb38161492a565b8114614bbe57600080fd5b50565b614bca81614976565b8114614bd557600080fd5b5056fea26469706673582212206e3ed1656e7d9cd51e831dab94bce19881c59a6356a50c178c162bbbc6834db864736f6c63430008000033000000000000000000000000c92ceddfb8dd984a89fb494c376f9a48b999aafc000000000000000000000000feaf4d8ba2772bc225e6c940f1d002f8460c51be000000000000000000000000a14f0c4ed666194de6a55f8ec4137d8a4a4d84d8000000000000000000000000e2c16dc2610ff536bb0eb8f50771d3a65f8029bf0000000000000000000000001dc09501ae209f8cc15b3b7090084c72855d95bd0000000000000000000000000e4c15047fd4da8cf2bd4d9656719afb779611e70000000000000000000000000000000000000000000000000000000000000cc000000000000000000000000000000000000000000000000000000000000011280000000000000000000000000000000000000000000000000000000000000da600000000000000000000000000000000000000000000000000000000000025c300000000000000000000000000000000000000000000000000000000000019350000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f63726561747572652e74726176656c2f6170692f746f6b656e2f000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102055760003560e01c80636b35832c1161011a578063a217fddf116100ad578063c87b56dd1161007c578063c87b56dd1461060e578063d547741f1461063e578063e985e9c51461065a578063e9ccf9e61461068a578063f2fde38b146106a657610205565b8063a217fddf14610588578063a22cb465146105a6578063b88d4fde146105c2578063c52d81c7146105de57610205565b80638da5cb5b116100e95780638da5cb5b146104fe57806391d148541461051c57806395d89b411461054c578063a1b8ed271461056a57610205565b80636b35832c1461048c57806370a08231146104a8578063715018a6146104d85780638980f11f146104e257610205565b806323b872dd1161019d57806336568abe1161016c57806336568abe146103c457806342842e0e146103e05780634f6ccce7146103fc57806355f804b31461042c5780636352211e1461045c57610205565b806323b872dd1461032c578063248a9ca3146103485780632f2ff15d146103785780632f745c591461039457610205565b8063095ea7b3116101d9578063095ea7b3146102a657806314cf9ffc146102c257806318160ddd146102de5780631a481503146102fc57610205565b8062885ccf1461020a57806301ffc9a71461022857806306fdde0314610258578063081812fc14610276575b600080fd5b6102126106c2565b60405161021f9190614347565b60405180910390f35b610242600480360381019061023d919061373e565b61080a565b60405161024f9190614362565b60405180910390f35b61026061081c565b60405161026d9190614398565b60405180910390f35b610290600480360381019061028b91906137d1565b6108ae565b60405161029d91906142b7565b60405180910390f35b6102c060048036038101906102bb9190613674565b610933565b005b6102dc60048036038101906102d791906137fa565b610a4b565b005b6102e6610ab3565b6040516102f3919061469a565b60405180910390f35b610316600480360381019061031191906137d1565b610ac0565b6040516103239190614362565b60405180910390f35b6103466004803603810190610341919061356e565b610ae0565b005b610362600480360381019061035d91906136d9565b610b40565b60405161036f919061437d565b60405180910390f35b610392600480360381019061038d9190613702565b610b60565b005b6103ae60048036038101906103a99190613674565b610b89565b6040516103bb919061469a565b60405180910390f35b6103de60048036038101906103d99190613702565b610c2e565b005b6103fa60048036038101906103f5919061356e565b610cb1565b005b610416600480360381019061041191906137d1565b610cd1565b604051610423919061469a565b60405180910390f35b61044660048036038101906104419190613790565b610d68565b6040516104539190614398565b60405180910390f35b610476600480360381019061047191906137d1565b610e60565b60405161048391906142b7565b60405180910390f35b6104a660048036038101906104a191906137fa565b610f12565b005b6104c260048036038101906104bd91906134e0565b610fb5565b6040516104cf919061469a565b60405180910390f35b6104e061106d565b005b6104fc60048036038101906104f79190613674565b6110f5565b005b61050661120a565b60405161051391906142b7565b60405180910390f35b61053660048036038101906105319190613702565b611234565b6040516105439190614362565b60405180910390f35b61055461129f565b6040516105619190614398565b60405180910390f35b610572611331565b60405161057f919061437d565b60405180910390f35b610590611355565b60405161059d919061437d565b60405180910390f35b6105c060048036038101906105bb9190613638565b61135c565b005b6105dc60048036038101906105d791906135bd565b611372565b005b6105f860048036038101906105f391906137d1565b6113d4565b604051610605919061469a565b60405180910390f35b610628600480360381019061062391906137d1565b6113ec565b6040516106359190614398565b60405180910390f35b61065860048036038101906106539190613702565b611493565b005b610674600480360381019061066f9190613532565b6114bc565b6040516106819190614362565b60405180910390f35b6106a4600480360381019061069f91906134e0565b611550565b005b6106c060048036038101906106bb91906134e0565b6115aa565b005b6106ca6132a3565b60006040518060a001604052806106e2612710610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200161071e612711610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200161075a612712610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001610796612713610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016107d2612714610e60565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525090508091505090565b6000610815826116ba565b9050919050565b60606000805461082b906149ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610857906149ec565b80156108a45780601f10610879576101008083540402835291602001916108a4565b820191906000526020600020905b81548152906001019060200180831161088757829003601f168201915b5050505050905090565b60006108b982611734565b6108f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ef9061455a565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061093e82610e60565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a6906145da565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109ce6117a0565b73ffffffffffffffffffffffffffffffffffffffff1614806109fd57506109fc816109f76117a0565b6114bc565b5b610a3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a33906144da565b60405180910390fd5b610a4683836117a8565b505050565b6002600b541415610a91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a889061465a565b60405180910390fd5b6002600b81905550610aa63383836000611861565b506001600b819055505050565b6000600880549050905090565b60116020528060005260406000206000915054906101000a900460ff1681565b610af1610aeb6117a0565b82611ad2565b610b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b279061461a565b60405180910390fd5b610b3b838383611bb0565b505050565b6000600a6000838152602001908152602001600020600101549050919050565b610b6982610b40565b610b7a81610b756117a0565b611e0c565b610b848383611ea9565b505050565b6000610b9483610fb5565b8210610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcc906143fa565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c366117a0565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9a9061467a565b60405180910390fd5b610cad8282611f8a565b5050565b610ccc83838360405180602001604052806000815250611372565b505050565b6000610cdb610ab3565b8210610d1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d139061463a565b60405180910390fd5b60088281548110610d56577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b60606000801b610d7f81610d7a6117a0565b611e0c565b82600f9080519060200190610d959291906132c5565b507fafa35f42f46f5052816d7c6a2e9406eca98294b20726677862d83b4a7418d8d583604051610dc59190614398565b60405180910390a1600f8054610dda906149ec565b80601f0160208091040260200160405190810160405280929190818152602001828054610e06906149ec565b8015610e535780601f10610e2857610100808354040283529160200191610e53565b820191906000526020600020905b815481529060010190602001808311610e3657829003601f168201915b5050505050915050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f009061451a565b60405180910390fd5b80915050919050565b7f3057cafc0012aa2ecd513a8c9cf37ec7b37a858ac6d67224d3396a23468918ca610f4481610f3f6117a0565b611e0c565b6002600b541415610f8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f819061465a565b60405180910390fd5b6002600b81905550610fa7610f9e84610e60565b84846001611861565b506001600b81905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101d906144fa565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110756117a0565b73ffffffffffffffffffffffffffffffffffffffff1661109361120a565b73ffffffffffffffffffffffffffffffffffffffff16146110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e09061457a565b60405180910390fd5b6110f3600061206c565b565b6110fd6117a0565b73ffffffffffffffffffffffffffffffffffffffff1661111b61120a565b73ffffffffffffffffffffffffffffffffffffffff1614611171576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111689061457a565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61119561120a565b836040518363ffffffff1660e01b81526004016111b392919061431e565b602060405180830381600087803b1580156111cd57600080fd5b505af11580156111e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120591906136b0565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546112ae906149ec565b80601f01602080910402602001604051908101604052809291908181526020018280546112da906149ec565b80156113275780601f106112fc57610100808354040283529160200191611327565b820191906000526020600020905b81548152906001019060200180831161130a57829003601f168201915b5050505050905090565b7f3057cafc0012aa2ecd513a8c9cf37ec7b37a858ac6d67224d3396a23468918ca81565b6000801b81565b61136e6113676117a0565b8383612132565b5050565b61138361137d6117a0565b83611ad2565b6113c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b99061461a565b60405180910390fd5b6113ce8484848461229f565b50505050565b600e6020528060005260406000206000915090505481565b60606113f782611734565b611436576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142d906145ba565b60405180910390fd5b60006114406122fb565b90506000815111611460576040518060200160405280600081525061148b565b8061146a8461238d565b60405160200161147b929190614259565b6040516020818303038152906040525b915050919050565b61149c82610b40565b6114ad816114a86117a0565b611e0c565b6114b78383611f8a565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b611565816115606117a0565b611e0c565b81601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6115b26117a0565b73ffffffffffffffffffffffffffffffffffffffff166115d061120a565b73ffffffffffffffffffffffffffffffffffffffff1614611626576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161d9061457a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611696576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168d9061443a565b60405180910390fd5b61169f8161206c565b50565b600080823b905060008111915050919050565b505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061172d575061172c8261253a565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661181b83610e60565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600060011515611870856125b4565b1515146118b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a9906143ba565b60405180910390fd5b600015156011600085815260200190815260200160002060009054906101000a900460ff16151514611919576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611910906145fa565b60405180910390fd5b60007f000000000000000000000000c92ceddfb8dd984a89fb494c376f9a48b999aafc73ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401611974919061469a565b60206040518083038186803b15801561198c57600080fd5b505afa1580156119a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c49190613509565b90506119e18682876040518060200160405280600081525061229f565b60006119ed600d6125cf565b9050611a27846119fd5733611a21565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b826125dd565b611a31600d6125fb565b60016011600087815260200190815260200160002060006101000a81548160ff02191690831515021790555080867f0bbde553a3cbd718feb43c5ed7efe834065aa10be700e752811a77d999f44694600e60008a8152602001908152602001600020548888604051611aa5939291906146b5565b60405180910390a384600e6000888152602001908152602001600020819055508092505050949350505050565b6000611add82611734565b611b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b13906144ba565b60405180910390fd5b6000611b2783610e60565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611b9657508373ffffffffffffffffffffffffffffffffffffffff16611b7e846108ae565b73ffffffffffffffffffffffffffffffffffffffff16145b80611ba75750611ba681856114bc565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611bd082610e60565b73ffffffffffffffffffffffffffffffffffffffff1614611c26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1d9061459a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8d9061447a565b60405180910390fd5b611ca1838383612611565b611cac6000826117a8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cfc91906148ce565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d5391906147ed565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611e168282611234565b611ea557611e3b8173ffffffffffffffffffffffffffffffffffffffff166014612725565b611e498360001c6020612725565b604051602001611e5a92919061427d565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9c9190614398565b60405180910390fd5b5050565b611eb38282611234565b611f86576001600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611f2b6117a0565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611f948282611234565b15612068576000600a600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061200d6117a0565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121989061449a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122929190614362565b60405180910390a3505050565b6122aa848484611bb0565b6122b684848484612a1f565b6122f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ec9061441a565b60405180910390fd5b50505050565b6060600f805461230a906149ec565b80601f0160208091040260200160405190810160405280929190818152602001828054612336906149ec565b80156123835780601f1061235857610100808354040283529160200191612383565b820191906000526020600020905b81548152906001019060200180831161236657829003601f168201915b5050505050905090565b606060008214156123d5576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612535565b600082905060005b600082146124075780806123f090614a1e565b915050600a826124009190614843565b91506123dd565b60008167ffffffffffffffff811115612449577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561247b5781602001600182028036833780820191505090505b5090505b6000851461252e5760018261249491906148ce565b9150600a856124a39190614a67565b60306124af91906147ed565b60f81b8183815181106124eb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125279190614843565b945061247f565b8093505050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806125ad57506125ac82612bb6565b5b9050919050565b600061270f821180156125c8575061271582105b9050919050565b600081600001549050919050565b6125f7828260405180602001604052806000815250612c98565b5050565b6001816000016000828254019250508190555050565b61261c8383836116b5565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561265f5761265a81612cf3565b61269e565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461269d5761269c8382612d3c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126e1576126dc81612ea9565b612720565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461271f5761271e8282612fec565b5b5b505050565b6060600060028360026127389190614874565b61274291906147ed565b67ffffffffffffffff811115612781577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127b35781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612811577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061289b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026128db9190614874565b6128e591906147ed565b90505b60018111156129d1577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061294d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b82828151811061298a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806129ca906149c2565b90506128e8565b5060008414612a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0c906143da565b60405180910390fd5b8091505092915050565b6000612a408473ffffffffffffffffffffffffffffffffffffffff166116a2565b15612ba9578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a696117a0565b8786866040518563ffffffff1660e01b8152600401612a8b94939291906142d2565b602060405180830381600087803b158015612aa557600080fd5b505af1925050508015612ad657506040513d601f19601f82011682018060405250810190612ad39190613767565b60015b612b59573d8060008114612b06576040519150601f19603f3d011682016040523d82523d6000602084013e612b0b565b606091505b50600081511415612b51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b489061441a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612bae565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c8157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612c915750612c908261306b565b5b9050919050565b612ca283836130d5565b612caf6000848484612a1f565b612cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce59061441a565b60405180910390fd5b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612d4984610fb5565b612d5391906148ce565b9050600060076000848152602001908152602001600020549050818114612e38576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612ebd91906148ce565b9050600060096000848152602001908152602001600020549050600060088381548110612f13577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110612f5b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612fd0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612ff783610fb5565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313c9061453a565b60405180910390fd5b61314e81611734565b1561318e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131859061445a565b60405180910390fd5b61319a60008383612611565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131ea91906147ed565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6040518060a00160405280600590602082028036833780820191505090505090565b8280546132d1906149ec565b90600052602060002090601f0160209004810192826132f3576000855561333a565b82601f1061330c57805160ff191683800117855561333a565b8280016001018555821561333a579182015b8281111561333957825182559160200191906001019061331e565b5b509050613347919061334b565b5090565b5b8082111561336457600081600090555060010161334c565b5090565b600061337b6133768461471d565b6146ec565b90508281526020810184848401111561339357600080fd5b61339e848285614980565b509392505050565b60006133b96133b48461474d565b6146ec565b9050828152602081018484840111156133d157600080fd5b6133dc848285614980565b509392505050565b6000813590506133f381614b65565b92915050565b60008151905061340881614b65565b92915050565b60008135905061341d81614b7c565b92915050565b60008151905061343281614b7c565b92915050565b60008135905061344781614b93565b92915050565b60008135905061345c81614baa565b92915050565b60008151905061347181614baa565b92915050565b600082601f83011261348857600080fd5b8135613498848260208601613368565b91505092915050565b600082601f8301126134b257600080fd5b81356134c28482602086016133a6565b91505092915050565b6000813590506134da81614bc1565b92915050565b6000602082840312156134f257600080fd5b6000613500848285016133e4565b91505092915050565b60006020828403121561351b57600080fd5b6000613529848285016133f9565b91505092915050565b6000806040838503121561354557600080fd5b6000613553858286016133e4565b9250506020613564858286016133e4565b9150509250929050565b60008060006060848603121561358357600080fd5b6000613591868287016133e4565b93505060206135a2868287016133e4565b92505060406135b3868287016134cb565b9150509250925092565b600080600080608085870312156135d357600080fd5b60006135e1878288016133e4565b94505060206135f2878288016133e4565b9350506040613603878288016134cb565b925050606085013567ffffffffffffffff81111561362057600080fd5b61362c87828801613477565b91505092959194509250565b6000806040838503121561364b57600080fd5b6000613659858286016133e4565b925050602061366a8582860161340e565b9150509250929050565b6000806040838503121561368757600080fd5b6000613695858286016133e4565b92505060206136a6858286016134cb565b9150509250929050565b6000602082840312156136c257600080fd5b60006136d084828501613423565b91505092915050565b6000602082840312156136eb57600080fd5b60006136f984828501613438565b91505092915050565b6000806040838503121561371557600080fd5b600061372385828601613438565b9250506020613734858286016133e4565b9150509250929050565b60006020828403121561375057600080fd5b600061375e8482850161344d565b91505092915050565b60006020828403121561377957600080fd5b600061378784828501613462565b91505092915050565b6000602082840312156137a257600080fd5b600082013567ffffffffffffffff8111156137bc57600080fd5b6137c8848285016134a1565b91505092915050565b6000602082840312156137e357600080fd5b60006137f1848285016134cb565b91505092915050565b6000806040838503121561380d57600080fd5b600061381b858286016134cb565b925050602061382c858286016134cb565b9150509250929050565b6000613842838361384e565b60208301905092915050565b61385781614902565b82525050565b61386681614902565b82525050565b61387581614787565b61387f81846147b5565b925061388a8261477d565b8060005b838110156138bb5781516138a28782613836565b96506138ad836147a8565b92505060018101905061388e565b505050505050565b6138cc81614914565b82525050565b6138db81614920565b82525050565b60006138ec82614792565b6138f681856147c0565b935061390681856020860161498f565b61390f81614b54565b840191505092915050565b60006139258261479d565b61392f81856147d1565b935061393f81856020860161498f565b61394881614b54565b840191505092915050565b600061395e8261479d565b61396881856147e2565b935061397881856020860161498f565b80840191505092915050565b60006139916038836147d1565b91507f54726176656c696e6743726561747572653a2043616e6e6f742073656e64206160008301527f206e6f6e2d74726176656c696e672d63726561747572652100000000000000006020830152604082019050919050565b60006139f76020836147d1565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b6000613a37602b836147d1565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613a9d6032836147d1565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613b036026836147d1565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b69601c836147d1565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613ba96024836147d1565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613c0f6019836147d1565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000613c4f602c836147d1565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613cb56038836147d1565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613d1b602a836147d1565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d816029836147d1565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613de76020836147d1565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613e27602c836147d1565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613e8d6020836147d1565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613ecd6029836147d1565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613f33602f836147d1565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000613f996021836147d1565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613fff603a836147d1565b91507f54726176656c696e6743726561747572653a205468697320437265617475726560008301527f2068617320616c7265616479206265656e2076697369746564210000000000006020830152604082019050919050565b60006140656031836147d1565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b60006140cb602c836147d1565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b60006141316017836147e2565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b6000614171601f836147d1565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b60006141b16011836147e2565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b60006141f1602f836147d1565b91507f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008301527f20726f6c657320666f722073656c6600000000000000000000000000000000006020830152604082019050919050565b61425381614976565b82525050565b60006142658285613953565b91506142718284613953565b91508190509392505050565b600061428882614124565b91506142948285613953565b915061429f826141a4565b91506142ab8284613953565b91508190509392505050565b60006020820190506142cc600083018461385d565b92915050565b60006080820190506142e7600083018761385d565b6142f4602083018661385d565b614301604083018561424a565b818103606083015261431381846138e1565b905095945050505050565b6000604082019050614333600083018561385d565b614340602083018461424a565b9392505050565b600060a08201905061435c600083018461386c565b92915050565b600060208201905061437760008301846138c3565b92915050565b600060208201905061439260008301846138d2565b92915050565b600060208201905081810360008301526143b2818461391a565b905092915050565b600060208201905081810360008301526143d381613984565b9050919050565b600060208201905081810360008301526143f3816139ea565b9050919050565b6000602082019050818103600083015261441381613a2a565b9050919050565b6000602082019050818103600083015261443381613a90565b9050919050565b6000602082019050818103600083015261445381613af6565b9050919050565b6000602082019050818103600083015261447381613b5c565b9050919050565b6000602082019050818103600083015261449381613b9c565b9050919050565b600060208201905081810360008301526144b381613c02565b9050919050565b600060208201905081810360008301526144d381613c42565b9050919050565b600060208201905081810360008301526144f381613ca8565b9050919050565b6000602082019050818103600083015261451381613d0e565b9050919050565b6000602082019050818103600083015261453381613d74565b9050919050565b6000602082019050818103600083015261455381613dda565b9050919050565b6000602082019050818103600083015261457381613e1a565b9050919050565b6000602082019050818103600083015261459381613e80565b9050919050565b600060208201905081810360008301526145b381613ec0565b9050919050565b600060208201905081810360008301526145d381613f26565b9050919050565b600060208201905081810360008301526145f381613f8c565b9050919050565b6000602082019050818103600083015261461381613ff2565b9050919050565b6000602082019050818103600083015261463381614058565b9050919050565b60006020820190508181036000830152614653816140be565b9050919050565b6000602082019050818103600083015261467381614164565b9050919050565b60006020820190508181036000830152614693816141e4565b9050919050565b60006020820190506146af600083018461424a565b92915050565b60006060820190506146ca600083018661424a565b6146d7602083018561424a565b6146e460408301846138c3565b949350505050565b6000604051905081810181811067ffffffffffffffff8211171561471357614712614b25565b5b8060405250919050565b600067ffffffffffffffff82111561473857614737614b25565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561476857614767614b25565b5b601f19601f8301169050602081019050919050565b6000819050919050565b600060059050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006147f882614976565b915061480383614976565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561483857614837614a98565b5b828201905092915050565b600061484e82614976565b915061485983614976565b92508261486957614868614ac7565b5b828204905092915050565b600061487f82614976565b915061488a83614976565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148c3576148c2614a98565b5b828202905092915050565b60006148d982614976565b91506148e483614976565b9250828210156148f7576148f6614a98565b5b828203905092915050565b600061490d82614956565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156149ad578082015181840152602081019050614992565b838111156149bc576000848401525b50505050565b60006149cd82614976565b915060008214156149e1576149e0614a98565b5b600182039050919050565b60006002820490506001821680614a0457607f821691505b60208210811415614a1857614a17614af6565b5b50919050565b6000614a2982614976565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a5c57614a5b614a98565b5b600182019050919050565b6000614a7282614976565b9150614a7d83614976565b925082614a8d57614a8c614ac7565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b614b6e81614902565b8114614b7957600080fd5b50565b614b8581614914565b8114614b9057600080fd5b50565b614b9c81614920565b8114614ba757600080fd5b50565b614bb38161492a565b8114614bbe57600080fd5b50565b614bca81614976565b8114614bd557600080fd5b5056fea26469706673582212206e3ed1656e7d9cd51e831dab94bce19881c59a6356a50c178c162bbbc6834db864736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c92ceddfb8dd984a89fb494c376f9a48b999aafc000000000000000000000000feaf4d8ba2772bc225e6c940f1d002f8460c51be000000000000000000000000a14f0c4ed666194de6a55f8ec4137d8a4a4d84d8000000000000000000000000e2c16dc2610ff536bb0eb8f50771d3a65f8029bf0000000000000000000000001dc09501ae209f8cc15b3b7090084c72855d95bd0000000000000000000000000e4c15047fd4da8cf2bd4d9656719afb779611e70000000000000000000000000000000000000000000000000000000000000cc000000000000000000000000000000000000000000000000000000000000011280000000000000000000000000000000000000000000000000000000000000da600000000000000000000000000000000000000000000000000000000000025c300000000000000000000000000000000000000000000000000000000000019350000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f63726561747572652e74726176656c2f6170692f746f6b656e2f000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : creatureWorld_ (address): 0xc92cedDfb8dd984A89fb494c376f9A48b999aAFc
Arg [1] : initialOwners (address[5]): 0xfEAF4D8ba2772BC225e6C940F1D002F8460c51bE,0xa14f0C4ed666194dE6A55f8Ec4137d8a4a4D84d8,0xe2c16dc2610fF536bb0EB8f50771d3A65F8029Bf,0x1DC09501Ae209F8CC15b3b7090084C72855D95Bd,0x0E4c15047fd4DA8cF2bD4d9656719AFb779611E7
Arg [2] : initialCreatures (uint256[5]): 3264,4392,3494,9667,6453
Arg [3] : baseURIExtended_ (string): https://creature.travel/api/token/
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 000000000000000000000000c92ceddfb8dd984a89fb494c376f9a48b999aafc
Arg [1] : 000000000000000000000000feaf4d8ba2772bc225e6c940f1d002f8460c51be
Arg [2] : 000000000000000000000000a14f0c4ed666194de6a55f8ec4137d8a4a4d84d8
Arg [3] : 000000000000000000000000e2c16dc2610ff536bb0eb8f50771d3a65f8029bf
Arg [4] : 0000000000000000000000001dc09501ae209f8cc15b3b7090084c72855d95bd
Arg [5] : 0000000000000000000000000e4c15047fd4da8cf2bd4d9656719afb779611e7
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000cc0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000001128
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000da6
Arg [9] : 00000000000000000000000000000000000000000000000000000000000025c3
Arg [10] : 0000000000000000000000000000000000000000000000000000000000001935
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [13] : 68747470733a2f2f63726561747572652e74726176656c2f6170692f746f6b65
Arg [14] : 6e2f000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.