ERC-721
Overview
Max Total Supply
5,291 EveraiBanner
Holders
1,661
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
9 EveraiBannerLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EveraiBanner
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "erc721a/contracts/ERC721A.sol"; import "erc721a/contracts/IERC721A.sol"; interface IEveraiMemoryCore is IERC721A { function mint(address to, uint256 quantity) external; } contract EveraiBanner is ERC721A, Ownable, ReentrancyGuard { address public authorizedBurnContractAddress; address public authorizedUpgradeContractAddress; string private _baseTokenURI; uint256[40] claimedBitMap; bool public claimActive; mapping(uint256 => uint8) public levels; // 0 - 255 mapping(uint256 => uint16) public types; // 0 - 65 535 IERC721A public immutable everaiDuo; IEveraiMemoryCore public everaiMemoryCore; constructor(address everaiDuoAddress, address everaiMemoryCoreAddress) ERC721A("EveraiBanner", "EveraiBanner") { everaiDuo = IERC721A(everaiDuoAddress); everaiMemoryCore = IEveraiMemoryCore(everaiMemoryCoreAddress); } function setEveraiMemoryCardAddress(address everaiMemoryCoreAddress) external onlyOwner { everaiMemoryCore = IEveraiMemoryCore(everaiMemoryCoreAddress); } function setAuthorizedUpgradeContractAddress( address authorizedUpgradeContractAddress_ ) external onlyOwner { authorizedUpgradeContractAddress = authorizedUpgradeContractAddress_; } function setAuthorizedBurnContractAddress( address authorizedBurnContractAddress_ ) external onlyOwner { authorizedBurnContractAddress = authorizedBurnContractAddress_; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string( abi.encodePacked( baseURI, _toString(types[tokenId]), "/", _toString(levels[tokenId]) ) ) : ""; } function setClaimActive(bool claimActive_) external onlyOwner { claimActive = claimActive_; } function isClaimed(uint256 tokenId) public view returns (bool) { uint256 claimedWordIndex = tokenId / 256; uint256 claimedBitIndex = tokenId % 256; uint256 claimedWord = claimedBitMap[claimedWordIndex]; uint256 mask = (1 << claimedBitIndex); return claimedWord & mask == mask; } function _setClaimed(uint256 tokenId) internal { uint256 claimedWordIndex = tokenId / 256; uint256 claimedBitIndex = tokenId % 256; claimedBitMap[claimedWordIndex] = claimedBitMap[claimedWordIndex] | (1 << claimedBitIndex); } function claim(uint256[] memory tokenIds) public nonReentrant { require(claimActive, "Claim is not active."); uint256 numTokensClaimed; for (uint256 i; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; address owner = everaiDuo.ownerOf(tokenId); require(owner == msg.sender, "Owner does not match"); if (!isClaimed(tokenId)) { _setClaimed(tokenId); numTokensClaimed++; } } everaiMemoryCore.mint(msg.sender, numTokensClaimed); _safeMint(msg.sender, numTokensClaimed); } function upgrade(uint256 tokenId, uint16 memoryCoreType) external { require( msg.sender == owner() || msg.sender == authorizedUpgradeContractAddress, "Authorization required" ); types[tokenId] = memoryCoreType; levels[tokenId] = levels[tokenId] + 1; } function burn(uint256 tokenId) external { require( authorizedBurnContractAddress == msg.sender, "Authorization required" ); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 // OpenZeppelin Contracts (last updated v4.5.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 virtual 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 virtual { 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 virtual 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.1 (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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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 { _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 { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "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":"address","name":"everaiDuoAddress","type":"address"},{"internalType":"address","name":"everaiMemoryCoreAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"authorizedBurnContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"authorizedUpgradeContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"everaiDuo","outputs":[{"internalType":"contract IERC721A","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"everaiMemoryCore","outputs":[{"internalType":"contract IEveraiMemoryCore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"levels","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizedBurnContractAddress_","type":"address"}],"name":"setAuthorizedBurnContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizedUpgradeContractAddress_","type":"address"}],"name":"setAuthorizedUpgradeContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"claimActive_","type":"bool"}],"name":"setClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"everaiMemoryCoreAddress","type":"address"}],"name":"setEveraiMemoryCardAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"types","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint16","name":"memoryCoreType","type":"uint16"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162003cb238038062003cb283398181016040528101906200003791906200032f565b6040518060400160405280600c81526020017f45766572616942616e6e657200000000000000000000000000000000000000008152506040518060400160405280600c81526020017f45766572616942616e6e657200000000000000000000000000000000000000008152508160029080519060200190620000bb92919062000268565b508060039080519060200190620000d492919062000268565b50620000e56200019560201b60201c565b60008190555050506200010d620001016200019a60201b60201c565b620001a260201b60201c565b60016009819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505080603860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000423565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200027690620003a4565b90600052602060002090601f0160209004810192826200029a5760008555620002e6565b82601f10620002b557805160ff1916838001178555620002e6565b82800160010185558215620002e6579182015b82811115620002e5578251825591602001919060010190620002c8565b5b509050620002f59190620002f9565b5090565b5b8082111562000314576000816000905550600101620002fa565b5090565b600081519050620003298162000409565b92915050565b600080604083850312156200034357600080fd5b6000620003538582860162000318565b9250506020620003668582860162000318565b9150509250929050565b60006200037d8262000384565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006002820490506001821680620003bd57607f821691505b60208210811415620003d457620003d3620003da565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b620004148162000370565b81146200042057600080fd5b50565b60805160601c6138696200044960003960008181610b620152610e7201526138696000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063b88d4fde116100ad578063df9f6a081161007c578063df9f6a08146105ac578063e985e9c5146105ca578063f2fde38b146105fa578063f3ed1d0f14610616578063f8b04c2f14610632576101fb565b8063b88d4fde14610512578063c87b56dd1461052e578063cefbfa361461055e578063d4a6a2fd1461058e576101fb565b806395d89b41116100e957806395d89b41146104785780639e34070f14610496578063a22cb465146104c6578063b2596a67146104e2576101fb565b8063715018a61461041857806373417b09146104225780637bc61ddd1461043e5780638da5cb5b1461045a576101fb565b806342966c681161019257806355f804b31161016157806355f804b3146103805780636352211e1461039c5780636ba4c138146103cc57806370a08231146103e8576101fb565b806342966c681461030e57806346394f551461032a57806348565ab3146103465780634d7aa4c014610364576101fb565b806318160ddd116101ce57806318160ddd1461029a57806323b872dd146102b85780633912a227146102d457806342842e0e146102f2576101fb565b806301ffc9a71461020057806306fdde0314610230578063081812fc1461024e578063095ea7b31461027e575b600080fd5b61021a60048036038101906102159190612d3e565b610650565b6040516102279190613107565b60405180910390f35b6102386106e2565b6040516102459190613158565b60405180910390f35b61026860048036038101906102639190612dd5565b610774565b6040516102759190613077565b60405180910390f35b61029860048036038101906102939190612c98565b6107f0565b005b6102a2610997565b6040516102af9190613255565b60405180910390f35b6102d260048036038101906102cd9190612b92565b6109ae565b005b6102dc6109be565b6040516102e9919061313d565b60405180910390f35b61030c60048036038101906103079190612b92565b6109e4565b005b61032860048036038101906103239190612dd5565b610a04565b005b610344600480360381019061033f9190612b04565b610aa0565b005b61034e610b60565b60405161035b9190613122565b60405180910390f35b61037e60048036038101906103799190612dfe565b610b84565b005b61039a60048036038101906103959190612d90565b610cdb565b005b6103b660048036038101906103b19190612dd5565b610d6d565b6040516103c39190613077565b60405180910390f35b6103e660048036038101906103e19190612cd4565b610d7f565b005b61040260048036038101906103fd9190612b04565b611069565b60405161040f9190613255565b60405180910390f35b610420611122565b005b61043c60048036038101906104379190612d15565b6111aa565b005b61045860048036038101906104539190612b04565b611243565b005b610462611303565b60405161046f9190613077565b60405180910390f35b61048061132d565b60405161048d9190613158565b60405180910390f35b6104b060048036038101906104ab9190612dd5565b6113bf565b6040516104bd9190613107565b60405180910390f35b6104e060048036038101906104db9190612c5c565b61143d565b005b6104fc60048036038101906104f79190612dd5565b6115b5565b6040516105099190613270565b60405180910390f35b61052c60048036038101906105279190612be1565b6115d5565b005b61054860048036038101906105439190612dd5565b611648565b6040516105559190613158565b60405180910390f35b61057860048036038101906105739190612dd5565b611739565b604051610585919061323a565b60405180910390f35b61059661175a565b6040516105a39190613107565b60405180910390f35b6105b461176d565b6040516105c19190613077565b60405180910390f35b6105e460048036038101906105df9190612b56565b611793565b6040516105f19190613107565b60405180910390f35b610614600480360381019061060f9190612b04565b611827565b005b610630600480360381019061062b9190612b04565b61191f565b005b61063a6119df565b6040516106479190613077565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106ab57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106db5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546106f1906134d1565b80601f016020809104026020016040519081016040528092919081815260200182805461071d906134d1565b801561076a5780601f1061073f5761010080835404028352916020019161076a565b820191906000526020600020905b81548152906001019060200180831161074d57829003601f168201915b5050505050905090565b600061077f82611a05565b6107b5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107fb82611a64565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610863576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610882611b32565b73ffffffffffffffffffffffffffffffffffffffff16146108e5576108ae816108a9611b32565b611793565b6108e4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006109a1611b3a565b6001546000540303905090565b6109b9838383611b3f565b505050565b603860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109ff838383604051806020016040528060008152506115d5565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8b9061317a565b60405180910390fd5b610a9d81611ee9565b50565b610aa8611ef7565b73ffffffffffffffffffffffffffffffffffffffff16610ac6611303565b73ffffffffffffffffffffffffffffffffffffffff1614610b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b13906131da565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610b8c611303565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610c125750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c489061317a565b60405180910390fd5b806037600084815260200190815260200160002060006101000a81548161ffff021916908361ffff16021790555060016036600084815260200190815260200160002060009054906101000a900460ff16610cac9190613350565b6036600084815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505050565b610ce3611ef7565b73ffffffffffffffffffffffffffffffffffffffff16610d01611303565b73ffffffffffffffffffffffffffffffffffffffff1614610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e906131da565b60405180910390fd5b8181600c9190610d68929190612886565b505050565b6000610d7882611a64565b9050919050565b60026009541415610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc9061321a565b60405180910390fd5b6002600981905550603560009054906101000a900460ff16610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e13906131ba565b60405180910390fd5b6000805b8251811015610fc3576000838281518110610e64577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610ec99190613255565b60206040518083038186803b158015610ee157600080fd5b505afa158015610ef5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f199190612b2d565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f80906131fa565b60405180910390fd5b610f92826113bf565b610fae57610f9f82611eff565b8380610faa90613534565b9450505b50508080610fbb90613534565b915050610e20565b50603860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b81526004016110219291906130de565b600060405180830381600087803b15801561103b57600080fd5b505af115801561104f573d6000803e3d6000fd5b5050505061105d3382611fa9565b50600160098190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110d1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61112a611ef7565b73ffffffffffffffffffffffffffffffffffffffff16611148611303565b73ffffffffffffffffffffffffffffffffffffffff161461119e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611195906131da565b60405180910390fd5b6111a86000611fc7565b565b6111b2611ef7565b73ffffffffffffffffffffffffffffffffffffffff166111d0611303565b73ffffffffffffffffffffffffffffffffffffffff1614611226576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121d906131da565b60405180910390fd5b80603560006101000a81548160ff02191690831515021790555050565b61124b611ef7565b73ffffffffffffffffffffffffffffffffffffffff16611269611303565b73ffffffffffffffffffffffffffffffffffffffff16146112bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b6906131da565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461133c906134d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611368906134d1565b80156113b55780601f1061138a576101008083540402835291602001916113b5565b820191906000526020600020905b81548152906001019060200180831161139857829003601f168201915b5050505050905090565b600080610100836113d09190613387565b90506000610100846113e2919061357d565b90506000600d8360288110611420577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b015490506000826001901b90508081831614945050505050919050565b611445611b32565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114aa576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006114b7611b32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611564611b32565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115a99190613107565b60405180910390a35050565b60366020528060005260406000206000915054906101000a900460ff1681565b6115e0848484611b3f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116425761160b8484848461208d565b611641576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061165382611a05565b611689576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006116936121ed565b90506000815114156116b45760405180602001604052806000815250611731565b806116e36037600086815260200190815260200160002060009054906101000a900461ffff1661ffff1661227f565b61170f6036600087815260200190815260200160002060009054906101000a900460ff1660ff1661227f565b6040516020016117219392919061303b565b6040516020818303038152906040525b915050919050565b60376020528060005260406000206000915054906101000a900461ffff1681565b603560009054906101000a900460ff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61182f611ef7565b73ffffffffffffffffffffffffffffffffffffffff1661184d611303565b73ffffffffffffffffffffffffffffffffffffffff16146118a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189a906131da565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611913576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190a9061319a565b60405180910390fd5b61191c81611fc7565b50565b611927611ef7565b73ffffffffffffffffffffffffffffffffffffffff16611945611303565b73ffffffffffffffffffffffffffffffffffffffff161461199b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611992906131da565b60405180910390fd5b80603860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600081611a10611b3a565b11158015611a1f575060005482105b8015611a5d575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60008082905080611a73611b3a565b11611afb57600054811015611afa5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611af8575b6000811415611aee576004600083600190039350838152602001908152602001600020549050611ac3565b8092505050611b2d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600090565b6000611b4a82611a64565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611bb1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611bd2611b32565b73ffffffffffffffffffffffffffffffffffffffff161480611c015750611c0085611bfb611b32565b611793565b5b80611c465750611c0f611b32565b73ffffffffffffffffffffffffffffffffffffffff16611c2e84610774565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611c7f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ce6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cf385858560016122d9565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b611df0866122df565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415611e7a576000600184019050600060046000838152602001908152602001600020541415611e78576000548114611e77578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ee285858560016122e9565b5050505050565b611ef48160006122ef565b50565b600033905090565b600061010082611f0f9190613387565b9050600061010083611f21919061357d565b9050806001901b600d8360288110611f62577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b015417600d8360288110611f9f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0181905550505050565b611fc38282604051806020016040528060008152506125c7565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026120b3611b32565b8786866040518563ffffffff1660e01b81526004016120d59493929190613092565b602060405180830381600087803b1580156120ef57600080fd5b505af192505050801561212057506040513d601f19601f8201168201806040525081019061211d9190612d67565b60015b61219a573d8060008114612150576040519150601f19603f3d011682016040523d82523d6000602084013e612155565b606091505b50600081511415612192576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c80546121fc906134d1565b80601f0160208091040260200160405190810160405280929190818152602001828054612228906134d1565b80156122755780601f1061224a57610100808354040283529160200191612275565b820191906000526020600020905b81548152906001019060200180831161225857829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b80156122c557600183039250600a81066030018353600a810490506122a5565b508181036020830392508083525050919050565b50505050565b6000819050919050565b50505050565b60006122fa83611a64565b9050600081905082156123d75760008173ffffffffffffffffffffffffffffffffffffffff16612328611b32565b73ffffffffffffffffffffffffffffffffffffffff161480612357575061235682612351611b32565b611793565b5b8061239c5750612365611b32565b73ffffffffffffffffffffffffffffffffffffffff1661238486610774565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806123d5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b6123e58160008660016122d9565b6006600085815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160806001901b03600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055507c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000060a042901b6124ba846122df565b171717600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415612545576000600185019050600060046000838152602001908152602001600020541415612543576000548114612542578260046000838152602001908152602001600020819055505b5b505b83600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125af8160008660016122e9565b60016000815480929190600101919050555050505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612634576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083141561266f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61267c60008583866122d9565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e16126e16001851461287c565b901b60a042901b6126f1866122df565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146127f5575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127a5600087848060010195508761208d565b6127db576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106127365782600054146127f057600080fd5b612860565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106127f6575b81600081905550505061287660008583866122e9565b50505050565b6000819050919050565b828054612892906134d1565b90600052602060002090601f0160209004810192826128b457600085556128fb565b82601f106128cd57803560ff19168380011785556128fb565b828001600101855582156128fb579182015b828111156128fa5782358255916020019190600101906128df565b5b509050612908919061290c565b5090565b5b8082111561292557600081600090555060010161290d565b5090565b600061293c612937846132b0565b61328b565b9050808382526020820190508285602086028201111561295b57600080fd5b60005b8581101561298b57816129718882612aef565b84526020840193506020830192505060018101905061295e565b5050509392505050565b60006129a86129a3846132dc565b61328b565b9050828152602081018484840111156129c057600080fd5b6129cb84828561348f565b509392505050565b6000813590506129e2816137c0565b92915050565b6000815190506129f7816137c0565b92915050565b600082601f830112612a0e57600080fd5b8135612a1e848260208601612929565b91505092915050565b600081359050612a36816137d7565b92915050565b600081359050612a4b816137ee565b92915050565b600081519050612a60816137ee565b92915050565b600082601f830112612a7757600080fd5b8135612a87848260208601612995565b91505092915050565b60008083601f840112612aa257600080fd5b8235905067ffffffffffffffff811115612abb57600080fd5b602083019150836001820283011115612ad357600080fd5b9250929050565b600081359050612ae981613805565b92915050565b600081359050612afe8161381c565b92915050565b600060208284031215612b1657600080fd5b6000612b24848285016129d3565b91505092915050565b600060208284031215612b3f57600080fd5b6000612b4d848285016129e8565b91505092915050565b60008060408385031215612b6957600080fd5b6000612b77858286016129d3565b9250506020612b88858286016129d3565b9150509250929050565b600080600060608486031215612ba757600080fd5b6000612bb5868287016129d3565b9350506020612bc6868287016129d3565b9250506040612bd786828701612aef565b9150509250925092565b60008060008060808587031215612bf757600080fd5b6000612c05878288016129d3565b9450506020612c16878288016129d3565b9350506040612c2787828801612aef565b925050606085013567ffffffffffffffff811115612c4457600080fd5b612c5087828801612a66565b91505092959194509250565b60008060408385031215612c6f57600080fd5b6000612c7d858286016129d3565b9250506020612c8e85828601612a27565b9150509250929050565b60008060408385031215612cab57600080fd5b6000612cb9858286016129d3565b9250506020612cca85828601612aef565b9150509250929050565b600060208284031215612ce657600080fd5b600082013567ffffffffffffffff811115612d0057600080fd5b612d0c848285016129fd565b91505092915050565b600060208284031215612d2757600080fd5b6000612d3584828501612a27565b91505092915050565b600060208284031215612d5057600080fd5b6000612d5e84828501612a3c565b91505092915050565b600060208284031215612d7957600080fd5b6000612d8784828501612a51565b91505092915050565b60008060208385031215612da357600080fd5b600083013567ffffffffffffffff811115612dbd57600080fd5b612dc985828601612a90565b92509250509250929050565b600060208284031215612de757600080fd5b6000612df584828501612aef565b91505092915050565b60008060408385031215612e1157600080fd5b6000612e1f85828601612aef565b9250506020612e3085828601612ada565b9150509250929050565b612e43816133b8565b82525050565b612e52816133ca565b82525050565b6000612e638261330d565b612e6d8185613323565b9350612e7d81856020860161349e565b612e868161366a565b840191505092915050565b612e9a81613447565b82525050565b612ea98161346b565b82525050565b6000612eba82613318565b612ec48185613334565b9350612ed481856020860161349e565b612edd8161366a565b840191505092915050565b6000612ef382613318565b612efd8185613345565b9350612f0d81856020860161349e565b80840191505092915050565b6000612f26601683613334565b9150612f318261367b565b602082019050919050565b6000612f49602683613334565b9150612f54826136a4565b604082019050919050565b6000612f6c601483613334565b9150612f77826136f3565b602082019050919050565b6000612f8f602083613334565b9150612f9a8261371c565b602082019050919050565b6000612fb2601483613334565b9150612fbd82613745565b602082019050919050565b6000612fd5601f83613334565b9150612fe08261376e565b602082019050919050565b6000612ff8600183613345565b915061300382613797565b600182019050919050565b61301781613402565b82525050565b61302681613430565b82525050565b6130358161343a565b82525050565b60006130478286612ee8565b91506130538285612ee8565b915061305e82612feb565b915061306a8284612ee8565b9150819050949350505050565b600060208201905061308c6000830184612e3a565b92915050565b60006080820190506130a76000830187612e3a565b6130b46020830186612e3a565b6130c1604083018561301d565b81810360608301526130d38184612e58565b905095945050505050565b60006040820190506130f36000830185612e3a565b613100602083018461301d565b9392505050565b600060208201905061311c6000830184612e49565b92915050565b60006020820190506131376000830184612e91565b92915050565b60006020820190506131526000830184612ea0565b92915050565b600060208201905081810360008301526131728184612eaf565b905092915050565b6000602082019050818103600083015261319381612f19565b9050919050565b600060208201905081810360008301526131b381612f3c565b9050919050565b600060208201905081810360008301526131d381612f5f565b9050919050565b600060208201905081810360008301526131f381612f82565b9050919050565b6000602082019050818103600083015261321381612fa5565b9050919050565b6000602082019050818103600083015261323381612fc8565b9050919050565b600060208201905061324f600083018461300e565b92915050565b600060208201905061326a600083018461301d565b92915050565b6000602082019050613285600083018461302c565b92915050565b60006132956132a6565b90506132a18282613503565b919050565b6000604051905090565b600067ffffffffffffffff8211156132cb576132ca61363b565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156132f7576132f661363b565b5b6133008261366a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061335b8261343a565b91506133668361343a565b92508260ff0382111561337c5761337b6135ae565b5b828201905092915050565b600061339282613430565b915061339d83613430565b9250826133ad576133ac6135dd565b5b828204905092915050565b60006133c382613410565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061345282613459565b9050919050565b600061346482613410565b9050919050565b60006134768261347d565b9050919050565b600061348882613410565b9050919050565b82818337600083830152505050565b60005b838110156134bc5780820151818401526020810190506134a1565b838111156134cb576000848401525b50505050565b600060028204905060018216806134e957607f821691505b602082108114156134fd576134fc61360c565b5b50919050565b61350c8261366a565b810181811067ffffffffffffffff8211171561352b5761352a61363b565b5b80604052505050565b600061353f82613430565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613572576135716135ae565b5b600182019050919050565b600061358882613430565b915061359383613430565b9250826135a3576135a26135dd565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f417574686f72697a6174696f6e20726571756972656400000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f436c61696d206973206e6f74206163746976652e000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4f776e657220646f6573206e6f74206d61746368000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6137c9816133b8565b81146137d457600080fd5b50565b6137e0816133ca565b81146137eb57600080fd5b50565b6137f7816133d6565b811461380257600080fd5b50565b61380e81613402565b811461381957600080fd5b50565b61382581613430565b811461383057600080fd5b5056fea26469706673582212203bc8ec5ea8c42a00e3129581ebcf31ae0bf3ed92934c670e8f2655770253ff6a64736f6c634300080400330000000000000000000000009a38dec0590abc8c883d72e52391090e948ddf120000000000000000000000002d3e3def08848d405df3418bf91aa6876a057cd7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063b88d4fde116100ad578063df9f6a081161007c578063df9f6a08146105ac578063e985e9c5146105ca578063f2fde38b146105fa578063f3ed1d0f14610616578063f8b04c2f14610632576101fb565b8063b88d4fde14610512578063c87b56dd1461052e578063cefbfa361461055e578063d4a6a2fd1461058e576101fb565b806395d89b41116100e957806395d89b41146104785780639e34070f14610496578063a22cb465146104c6578063b2596a67146104e2576101fb565b8063715018a61461041857806373417b09146104225780637bc61ddd1461043e5780638da5cb5b1461045a576101fb565b806342966c681161019257806355f804b31161016157806355f804b3146103805780636352211e1461039c5780636ba4c138146103cc57806370a08231146103e8576101fb565b806342966c681461030e57806346394f551461032a57806348565ab3146103465780634d7aa4c014610364576101fb565b806318160ddd116101ce57806318160ddd1461029a57806323b872dd146102b85780633912a227146102d457806342842e0e146102f2576101fb565b806301ffc9a71461020057806306fdde0314610230578063081812fc1461024e578063095ea7b31461027e575b600080fd5b61021a60048036038101906102159190612d3e565b610650565b6040516102279190613107565b60405180910390f35b6102386106e2565b6040516102459190613158565b60405180910390f35b61026860048036038101906102639190612dd5565b610774565b6040516102759190613077565b60405180910390f35b61029860048036038101906102939190612c98565b6107f0565b005b6102a2610997565b6040516102af9190613255565b60405180910390f35b6102d260048036038101906102cd9190612b92565b6109ae565b005b6102dc6109be565b6040516102e9919061313d565b60405180910390f35b61030c60048036038101906103079190612b92565b6109e4565b005b61032860048036038101906103239190612dd5565b610a04565b005b610344600480360381019061033f9190612b04565b610aa0565b005b61034e610b60565b60405161035b9190613122565b60405180910390f35b61037e60048036038101906103799190612dfe565b610b84565b005b61039a60048036038101906103959190612d90565b610cdb565b005b6103b660048036038101906103b19190612dd5565b610d6d565b6040516103c39190613077565b60405180910390f35b6103e660048036038101906103e19190612cd4565b610d7f565b005b61040260048036038101906103fd9190612b04565b611069565b60405161040f9190613255565b60405180910390f35b610420611122565b005b61043c60048036038101906104379190612d15565b6111aa565b005b61045860048036038101906104539190612b04565b611243565b005b610462611303565b60405161046f9190613077565b60405180910390f35b61048061132d565b60405161048d9190613158565b60405180910390f35b6104b060048036038101906104ab9190612dd5565b6113bf565b6040516104bd9190613107565b60405180910390f35b6104e060048036038101906104db9190612c5c565b61143d565b005b6104fc60048036038101906104f79190612dd5565b6115b5565b6040516105099190613270565b60405180910390f35b61052c60048036038101906105279190612be1565b6115d5565b005b61054860048036038101906105439190612dd5565b611648565b6040516105559190613158565b60405180910390f35b61057860048036038101906105739190612dd5565b611739565b604051610585919061323a565b60405180910390f35b61059661175a565b6040516105a39190613107565b60405180910390f35b6105b461176d565b6040516105c19190613077565b60405180910390f35b6105e460048036038101906105df9190612b56565b611793565b6040516105f19190613107565b60405180910390f35b610614600480360381019061060f9190612b04565b611827565b005b610630600480360381019061062b9190612b04565b61191f565b005b61063a6119df565b6040516106479190613077565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106ab57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106db5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546106f1906134d1565b80601f016020809104026020016040519081016040528092919081815260200182805461071d906134d1565b801561076a5780601f1061073f5761010080835404028352916020019161076a565b820191906000526020600020905b81548152906001019060200180831161074d57829003601f168201915b5050505050905090565b600061077f82611a05565b6107b5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107fb82611a64565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610863576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610882611b32565b73ffffffffffffffffffffffffffffffffffffffff16146108e5576108ae816108a9611b32565b611793565b6108e4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006109a1611b3a565b6001546000540303905090565b6109b9838383611b3f565b505050565b603860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109ff838383604051806020016040528060008152506115d5565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8b9061317a565b60405180910390fd5b610a9d81611ee9565b50565b610aa8611ef7565b73ffffffffffffffffffffffffffffffffffffffff16610ac6611303565b73ffffffffffffffffffffffffffffffffffffffff1614610b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b13906131da565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f0000000000000000000000009a38dec0590abc8c883d72e52391090e948ddf1281565b610b8c611303565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610c125750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c489061317a565b60405180910390fd5b806037600084815260200190815260200160002060006101000a81548161ffff021916908361ffff16021790555060016036600084815260200190815260200160002060009054906101000a900460ff16610cac9190613350565b6036600084815260200190815260200160002060006101000a81548160ff021916908360ff1602179055505050565b610ce3611ef7565b73ffffffffffffffffffffffffffffffffffffffff16610d01611303565b73ffffffffffffffffffffffffffffffffffffffff1614610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e906131da565b60405180910390fd5b8181600c9190610d68929190612886565b505050565b6000610d7882611a64565b9050919050565b60026009541415610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc9061321a565b60405180910390fd5b6002600981905550603560009054906101000a900460ff16610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e13906131ba565b60405180910390fd5b6000805b8251811015610fc3576000838281518110610e64577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060007f0000000000000000000000009a38dec0590abc8c883d72e52391090e948ddf1273ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610ec99190613255565b60206040518083038186803b158015610ee157600080fd5b505afa158015610ef5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f199190612b2d565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f80906131fa565b60405180910390fd5b610f92826113bf565b610fae57610f9f82611eff565b8380610faa90613534565b9450505b50508080610fbb90613534565b915050610e20565b50603860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b81526004016110219291906130de565b600060405180830381600087803b15801561103b57600080fd5b505af115801561104f573d6000803e3d6000fd5b5050505061105d3382611fa9565b50600160098190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110d1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61112a611ef7565b73ffffffffffffffffffffffffffffffffffffffff16611148611303565b73ffffffffffffffffffffffffffffffffffffffff161461119e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611195906131da565b60405180910390fd5b6111a86000611fc7565b565b6111b2611ef7565b73ffffffffffffffffffffffffffffffffffffffff166111d0611303565b73ffffffffffffffffffffffffffffffffffffffff1614611226576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121d906131da565b60405180910390fd5b80603560006101000a81548160ff02191690831515021790555050565b61124b611ef7565b73ffffffffffffffffffffffffffffffffffffffff16611269611303565b73ffffffffffffffffffffffffffffffffffffffff16146112bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b6906131da565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461133c906134d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611368906134d1565b80156113b55780601f1061138a576101008083540402835291602001916113b5565b820191906000526020600020905b81548152906001019060200180831161139857829003601f168201915b5050505050905090565b600080610100836113d09190613387565b90506000610100846113e2919061357d565b90506000600d8360288110611420577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b015490506000826001901b90508081831614945050505050919050565b611445611b32565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114aa576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006114b7611b32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611564611b32565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115a99190613107565b60405180910390a35050565b60366020528060005260406000206000915054906101000a900460ff1681565b6115e0848484611b3f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116425761160b8484848461208d565b611641576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061165382611a05565b611689576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006116936121ed565b90506000815114156116b45760405180602001604052806000815250611731565b806116e36037600086815260200190815260200160002060009054906101000a900461ffff1661ffff1661227f565b61170f6036600087815260200190815260200160002060009054906101000a900460ff1660ff1661227f565b6040516020016117219392919061303b565b6040516020818303038152906040525b915050919050565b60376020528060005260406000206000915054906101000a900461ffff1681565b603560009054906101000a900460ff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61182f611ef7565b73ffffffffffffffffffffffffffffffffffffffff1661184d611303565b73ffffffffffffffffffffffffffffffffffffffff16146118a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189a906131da565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611913576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190a9061319a565b60405180910390fd5b61191c81611fc7565b50565b611927611ef7565b73ffffffffffffffffffffffffffffffffffffffff16611945611303565b73ffffffffffffffffffffffffffffffffffffffff161461199b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611992906131da565b60405180910390fd5b80603860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600081611a10611b3a565b11158015611a1f575060005482105b8015611a5d575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60008082905080611a73611b3a565b11611afb57600054811015611afa5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611af8575b6000811415611aee576004600083600190039350838152602001908152602001600020549050611ac3565b8092505050611b2d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600090565b6000611b4a82611a64565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611bb1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611bd2611b32565b73ffffffffffffffffffffffffffffffffffffffff161480611c015750611c0085611bfb611b32565b611793565b5b80611c465750611c0f611b32565b73ffffffffffffffffffffffffffffffffffffffff16611c2e84610774565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611c7f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ce6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cf385858560016122d9565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b611df0866122df565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415611e7a576000600184019050600060046000838152602001908152602001600020541415611e78576000548114611e77578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ee285858560016122e9565b5050505050565b611ef48160006122ef565b50565b600033905090565b600061010082611f0f9190613387565b9050600061010083611f21919061357d565b9050806001901b600d8360288110611f62577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b015417600d8360288110611f9f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0181905550505050565b611fc38282604051806020016040528060008152506125c7565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026120b3611b32565b8786866040518563ffffffff1660e01b81526004016120d59493929190613092565b602060405180830381600087803b1580156120ef57600080fd5b505af192505050801561212057506040513d601f19601f8201168201806040525081019061211d9190612d67565b60015b61219a573d8060008114612150576040519150601f19603f3d011682016040523d82523d6000602084013e612155565b606091505b50600081511415612192576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c80546121fc906134d1565b80601f0160208091040260200160405190810160405280929190818152602001828054612228906134d1565b80156122755780601f1061224a57610100808354040283529160200191612275565b820191906000526020600020905b81548152906001019060200180831161225857829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b80156122c557600183039250600a81066030018353600a810490506122a5565b508181036020830392508083525050919050565b50505050565b6000819050919050565b50505050565b60006122fa83611a64565b9050600081905082156123d75760008173ffffffffffffffffffffffffffffffffffffffff16612328611b32565b73ffffffffffffffffffffffffffffffffffffffff161480612357575061235682612351611b32565b611793565b5b8061239c5750612365611b32565b73ffffffffffffffffffffffffffffffffffffffff1661238486610774565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806123d5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b6123e58160008660016122d9565b6006600085815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160806001901b03600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055507c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000060a042901b6124ba846122df565b171717600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415612545576000600185019050600060046000838152602001908152602001600020541415612543576000548114612542578260046000838152602001908152602001600020819055505b5b505b83600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125af8160008660016122e9565b60016000815480929190600101919050555050505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612634576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083141561266f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61267c60008583866122d9565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e16126e16001851461287c565b901b60a042901b6126f1866122df565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146127f5575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127a5600087848060010195508761208d565b6127db576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106127365782600054146127f057600080fd5b612860565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106127f6575b81600081905550505061287660008583866122e9565b50505050565b6000819050919050565b828054612892906134d1565b90600052602060002090601f0160209004810192826128b457600085556128fb565b82601f106128cd57803560ff19168380011785556128fb565b828001600101855582156128fb579182015b828111156128fa5782358255916020019190600101906128df565b5b509050612908919061290c565b5090565b5b8082111561292557600081600090555060010161290d565b5090565b600061293c612937846132b0565b61328b565b9050808382526020820190508285602086028201111561295b57600080fd5b60005b8581101561298b57816129718882612aef565b84526020840193506020830192505060018101905061295e565b5050509392505050565b60006129a86129a3846132dc565b61328b565b9050828152602081018484840111156129c057600080fd5b6129cb84828561348f565b509392505050565b6000813590506129e2816137c0565b92915050565b6000815190506129f7816137c0565b92915050565b600082601f830112612a0e57600080fd5b8135612a1e848260208601612929565b91505092915050565b600081359050612a36816137d7565b92915050565b600081359050612a4b816137ee565b92915050565b600081519050612a60816137ee565b92915050565b600082601f830112612a7757600080fd5b8135612a87848260208601612995565b91505092915050565b60008083601f840112612aa257600080fd5b8235905067ffffffffffffffff811115612abb57600080fd5b602083019150836001820283011115612ad357600080fd5b9250929050565b600081359050612ae981613805565b92915050565b600081359050612afe8161381c565b92915050565b600060208284031215612b1657600080fd5b6000612b24848285016129d3565b91505092915050565b600060208284031215612b3f57600080fd5b6000612b4d848285016129e8565b91505092915050565b60008060408385031215612b6957600080fd5b6000612b77858286016129d3565b9250506020612b88858286016129d3565b9150509250929050565b600080600060608486031215612ba757600080fd5b6000612bb5868287016129d3565b9350506020612bc6868287016129d3565b9250506040612bd786828701612aef565b9150509250925092565b60008060008060808587031215612bf757600080fd5b6000612c05878288016129d3565b9450506020612c16878288016129d3565b9350506040612c2787828801612aef565b925050606085013567ffffffffffffffff811115612c4457600080fd5b612c5087828801612a66565b91505092959194509250565b60008060408385031215612c6f57600080fd5b6000612c7d858286016129d3565b9250506020612c8e85828601612a27565b9150509250929050565b60008060408385031215612cab57600080fd5b6000612cb9858286016129d3565b9250506020612cca85828601612aef565b9150509250929050565b600060208284031215612ce657600080fd5b600082013567ffffffffffffffff811115612d0057600080fd5b612d0c848285016129fd565b91505092915050565b600060208284031215612d2757600080fd5b6000612d3584828501612a27565b91505092915050565b600060208284031215612d5057600080fd5b6000612d5e84828501612a3c565b91505092915050565b600060208284031215612d7957600080fd5b6000612d8784828501612a51565b91505092915050565b60008060208385031215612da357600080fd5b600083013567ffffffffffffffff811115612dbd57600080fd5b612dc985828601612a90565b92509250509250929050565b600060208284031215612de757600080fd5b6000612df584828501612aef565b91505092915050565b60008060408385031215612e1157600080fd5b6000612e1f85828601612aef565b9250506020612e3085828601612ada565b9150509250929050565b612e43816133b8565b82525050565b612e52816133ca565b82525050565b6000612e638261330d565b612e6d8185613323565b9350612e7d81856020860161349e565b612e868161366a565b840191505092915050565b612e9a81613447565b82525050565b612ea98161346b565b82525050565b6000612eba82613318565b612ec48185613334565b9350612ed481856020860161349e565b612edd8161366a565b840191505092915050565b6000612ef382613318565b612efd8185613345565b9350612f0d81856020860161349e565b80840191505092915050565b6000612f26601683613334565b9150612f318261367b565b602082019050919050565b6000612f49602683613334565b9150612f54826136a4565b604082019050919050565b6000612f6c601483613334565b9150612f77826136f3565b602082019050919050565b6000612f8f602083613334565b9150612f9a8261371c565b602082019050919050565b6000612fb2601483613334565b9150612fbd82613745565b602082019050919050565b6000612fd5601f83613334565b9150612fe08261376e565b602082019050919050565b6000612ff8600183613345565b915061300382613797565b600182019050919050565b61301781613402565b82525050565b61302681613430565b82525050565b6130358161343a565b82525050565b60006130478286612ee8565b91506130538285612ee8565b915061305e82612feb565b915061306a8284612ee8565b9150819050949350505050565b600060208201905061308c6000830184612e3a565b92915050565b60006080820190506130a76000830187612e3a565b6130b46020830186612e3a565b6130c1604083018561301d565b81810360608301526130d38184612e58565b905095945050505050565b60006040820190506130f36000830185612e3a565b613100602083018461301d565b9392505050565b600060208201905061311c6000830184612e49565b92915050565b60006020820190506131376000830184612e91565b92915050565b60006020820190506131526000830184612ea0565b92915050565b600060208201905081810360008301526131728184612eaf565b905092915050565b6000602082019050818103600083015261319381612f19565b9050919050565b600060208201905081810360008301526131b381612f3c565b9050919050565b600060208201905081810360008301526131d381612f5f565b9050919050565b600060208201905081810360008301526131f381612f82565b9050919050565b6000602082019050818103600083015261321381612fa5565b9050919050565b6000602082019050818103600083015261323381612fc8565b9050919050565b600060208201905061324f600083018461300e565b92915050565b600060208201905061326a600083018461301d565b92915050565b6000602082019050613285600083018461302c565b92915050565b60006132956132a6565b90506132a18282613503565b919050565b6000604051905090565b600067ffffffffffffffff8211156132cb576132ca61363b565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156132f7576132f661363b565b5b6133008261366a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061335b8261343a565b91506133668361343a565b92508260ff0382111561337c5761337b6135ae565b5b828201905092915050565b600061339282613430565b915061339d83613430565b9250826133ad576133ac6135dd565b5b828204905092915050565b60006133c382613410565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061345282613459565b9050919050565b600061346482613410565b9050919050565b60006134768261347d565b9050919050565b600061348882613410565b9050919050565b82818337600083830152505050565b60005b838110156134bc5780820151818401526020810190506134a1565b838111156134cb576000848401525b50505050565b600060028204905060018216806134e957607f821691505b602082108114156134fd576134fc61360c565b5b50919050565b61350c8261366a565b810181811067ffffffffffffffff8211171561352b5761352a61363b565b5b80604052505050565b600061353f82613430565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613572576135716135ae565b5b600182019050919050565b600061358882613430565b915061359383613430565b9250826135a3576135a26135dd565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f417574686f72697a6174696f6e20726571756972656400000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f436c61696d206973206e6f74206163746976652e000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4f776e657220646f6573206e6f74206d61746368000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6137c9816133b8565b81146137d457600080fd5b50565b6137e0816133ca565b81146137eb57600080fd5b50565b6137f7816133d6565b811461380257600080fd5b50565b61380e81613402565b811461381957600080fd5b50565b61382581613430565b811461383057600080fd5b5056fea26469706673582212203bc8ec5ea8c42a00e3129581ebcf31ae0bf3ed92934c670e8f2655770253ff6a64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009a38dec0590abc8c883d72e52391090e948ddf120000000000000000000000002d3e3def08848d405df3418bf91aa6876a057cd7
-----Decoded View---------------
Arg [0] : everaiDuoAddress (address): 0x9a38DEC0590aBC8c883d72E52391090e948DdF12
Arg [1] : everaiMemoryCoreAddress (address): 0x2d3e3deF08848d405DF3418bf91aa6876a057cD7
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009a38dec0590abc8c883d72e52391090e948ddf12
Arg [1] : 0000000000000000000000002d3e3def08848d405df3418bf91aa6876a057cd7
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.