Overview
ETH Balance
29.723333333333333448 ETH
Eth Value
$74,998.96 (@ $2,523.24/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 845 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Generator Withdr... | 13780240 | 994 days ago | IN | 0 ETH | 0.00399178 | ||||
Generator Withdr... | 13084760 | 1103 days ago | IN | 0 ETH | 0.00206882 | ||||
Generator Withdr... | 13067320 | 1106 days ago | IN | 0 ETH | 0.00101528 | ||||
Generator Withdr... | 13047527 | 1109 days ago | IN | 0 ETH | 0.00117546 | ||||
Generator Withdr... | 13047527 | 1109 days ago | IN | 0 ETH | 0.00117546 | ||||
Generator Withdr... | 13047527 | 1109 days ago | IN | 0 ETH | 0.00117546 | ||||
Generator Withdr... | 13047527 | 1109 days ago | IN | 0 ETH | 0.00114159 | ||||
Generator Withdr... | 13047527 | 1109 days ago | IN | 0 ETH | 0.00114123 | ||||
Generator Withdr... | 13047527 | 1109 days ago | IN | 0 ETH | 0.00114159 | ||||
Generator Withdr... | 13047527 | 1109 days ago | IN | 0 ETH | 0.00114159 | ||||
Generator Withdr... | 13047527 | 1109 days ago | IN | 0 ETH | 0.00114159 | ||||
Generator Withdr... | 13019267 | 1113 days ago | IN | 0 ETH | 0.0025194 | ||||
Generator Withdr... | 13018599 | 1113 days ago | IN | 0 ETH | 0.00219129 | ||||
Generator Withdr... | 13018593 | 1113 days ago | IN | 0 ETH | 0.00214337 | ||||
Generator Withdr... | 13018588 | 1113 days ago | IN | 0 ETH | 0.00206816 | ||||
Generator Withdr... | 13018580 | 1113 days ago | IN | 0 ETH | 0.00229378 | ||||
Generator Withdr... | 13018404 | 1113 days ago | IN | 0 ETH | 0.00149229 | ||||
Generator Withdr... | 13018393 | 1113 days ago | IN | 0 ETH | 0.00169267 | ||||
Generator Withdr... | 13018387 | 1113 days ago | IN | 0 ETH | 0.00165506 | ||||
Generator Withdr... | 13018379 | 1113 days ago | IN | 0 ETH | 0.00173029 | ||||
Generator Withdr... | 13018316 | 1113 days ago | IN | 0 ETH | 0.00197501 | ||||
Generator Withdr... | 13007974 | 1115 days ago | IN | 0 ETH | 0.00191836 | ||||
Generator Withdr... | 13007965 | 1115 days ago | IN | 0 ETH | 0.00191836 | ||||
Generator Withdr... | 13007961 | 1115 days ago | IN | 0 ETH | 0.00191836 | ||||
Generator Withdr... | 13007956 | 1115 days ago | IN | 0 ETH | 0.00229451 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
13780240 | 994 days ago | 0.4 ETH | ||||
13084760 | 1103 days ago | 0.2 ETH | ||||
13067320 | 1106 days ago | 0.6 ETH | ||||
13047527 | 1109 days ago | 0.8 ETH | ||||
13047527 | 1109 days ago | 0.4 ETH | ||||
13047527 | 1109 days ago | 0.2 ETH | ||||
13047527 | 1109 days ago | 0.6 ETH | ||||
13047527 | 1109 days ago | 0.19666666 ETH | ||||
13047527 | 1109 days ago | 0.2 ETH | ||||
13047527 | 1109 days ago | 0.8 ETH | ||||
13047527 | 1109 days ago | 0.59666666 ETH | ||||
13019267 | 1113 days ago | 1 ETH | ||||
13018599 | 1113 days ago | 0.79666666 ETH | ||||
13018593 | 1113 days ago | 0.39666666 ETH | ||||
13018588 | 1113 days ago | 0.4 ETH | ||||
13018580 | 1113 days ago | 1 ETH | ||||
13018404 | 1113 days ago | 0.59666666 ETH | ||||
13018393 | 1113 days ago | 0.2 ETH | ||||
13018387 | 1113 days ago | 0.59333333 ETH | ||||
13018379 | 1113 days ago | 0.2 ETH | ||||
13018316 | 1113 days ago | 4.58999999 ETH | ||||
13007974 | 1115 days ago | 0.2 ETH | ||||
13007965 | 1115 days ago | 0.39666666 ETH | ||||
13007961 | 1115 days ago | 0.59666666 ETH | ||||
13007956 | 1115 days ago | 1.4 ETH |
Loading...
Loading
Contract Name:
AvidlinesMinter
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./AvidlinesCore.sol"; uint256 constant TOTAL_MAX = 500; uint256 constant TOTAL_PUBLIC_MAX = 425; uint256 constant MAX_PRICE = 2*10**18; //init auction price 2 eth uint256 constant MIN_PRICE = 0; uint256 constant AUCTION_DURATION = 5*60*1; //~1h in blocks uint256 constant ADMIN_SHARE = 80; // in percentage uint256 constant FP_SHARE = 10; uint256 constant GEN_SHARE = 10; uint32 constant PRECISION = 10*6; contract AvidlinesMinter is Pausable { using SafeMath for uint256; address internal coreAddress; address internal adminAddress; address internal fpAddress; address internal GLYPH_CONTRACT; uint256 public totalTokenMints; mapping(uint256 => bool) public isGlyphAllowed; uint256[] private _allWhitelisted; mapping(uint256 => uint256) private _allWhitelistedIndex; uint256 public pendingFpWithdrawals; uint256 public pendingAdminWithdrawals; mapping(uint256 => uint256) public pendingGlyphTokenWithdrawals; uint256 public auctionStart = 0; bool public auctionStarted = false; event MintFromToken(address indexed from, uint256 tokenId); event WhitelistedGlyph(uint256 tokenId); event RemovedWhitelistedGlyph(uint256 tokenId); modifier onlyAdmin() { require(_msgSender() == adminAddress, "Only the admin can do this"); _; } constructor(address core, address admin, address glyphContract) { coreAddress = core; adminAddress = admin; GLYPH_CONTRACT = glyphContract; _pause(); } function pause() public onlyAdmin { _pause(); } function unpause() public onlyAdmin { _unpause(); } function setFpAdress(address _fpAddress) public onlyAdmin { fpAddress = _fpAddress; } function currentPrice() public view returns (uint256) { if (!auctionStarted) return MAX_PRICE; if ((block.number-auctionStart).mul(PRECISION).div(AUCTION_DURATION) > PRECISION) return 0; return MAX_PRICE.mul(PRECISION-(block.number-auctionStart).mul(PRECISION).div(AUCTION_DURATION)).div(PRECISION); } function whitelist(uint256 tokenId) public { require(!isGlyphAllowed[tokenId], "token already whitelisted"); address owner = IERC721(GLYPH_CONTRACT).ownerOf(tokenId); require(owner == msg.sender, "Caller should own the tokenId"); isGlyphAllowed[tokenId] = true; _addTokenToWhitelistEnumeration(tokenId); emit WhitelistedGlyph(tokenId); } function removeWhitelist(uint256 tokenId) public { require(isGlyphAllowed[tokenId], "token is not whitelisted"); address owner = IERC721(GLYPH_CONTRACT).ownerOf(tokenId); require(owner == msg.sender, "Caller should own the tokenId"); isGlyphAllowed[tokenId] = false; _removeTokenFromWhitelistEnumeration(tokenId); emit RemovedWhitelistedGlyph(tokenId); } function allowedGlyphsCount() public view returns (uint256) { return _allWhitelisted.length; } function allowedGlyphs(uint256 index) public view returns (uint256) { return _allWhitelisted[index]; } function _addTokenToWhitelistEnumeration(uint256 tokenId) private { _allWhitelistedIndex[tokenId] = _allWhitelisted.length; _allWhitelisted.push(tokenId); } function fpWithdrawal() public { require(msg.sender == fpAddress, "Only fp account can withdrawl"); require(pendingFpWithdrawals > 0, "Account has no funds to claim"); uint amount = pendingFpWithdrawals; pendingFpWithdrawals = 0; if (address(this).balance < amount) amount = address(this).balance; payable(msg.sender).transfer(amount); } function adminWithdrawal() public { require(msg.sender == adminAddress, "Only fp account can withdrawl"); require(pendingAdminWithdrawals > 0, "Account has no funds to claim"); uint amount = pendingAdminWithdrawals; pendingAdminWithdrawals = 0; if (address(this).balance < amount) amount = address(this).balance; payable(msg.sender).transfer(amount); } function generatorWithdrawal(uint256 tokenId) public { require(msg.sender == IERC721(GLYPH_CONTRACT).ownerOf(tokenId), "Only the token owner account can withdrawl"); require(pendingGlyphTokenWithdrawals[tokenId] > 0, "Account has no funds to claim"); uint amount = pendingGlyphTokenWithdrawals[tokenId]; pendingGlyphTokenWithdrawals[tokenId] = 0; if (address(this).balance < amount) amount = address(this).balance; payable(msg.sender).transfer(amount); } function _removeTokenFromWhitelistEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allWhitelisted.length - 1; uint256 tokenIndex = _allWhitelistedIndex[tokenId]; uint256 lastTokenId = _allWhitelisted[lastTokenIndex]; _allWhitelisted[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allWhitelistedIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allWhitelistedIndex[tokenId]; _allWhitelisted.pop(); } function startAuction() public whenNotPaused onlyAdmin{ require(!auctionStarted, "Auction already started"); auctionStart = block.number; auctionStarted = true; } function mintFromGlyph(uint256 tokenId) payable public whenNotPaused { require(totalTokenMints < TOTAL_PUBLIC_MAX, "Maximum public mints reached"); require(isGlyphAllowed[tokenId], "This glyph is not whitelisted to mint"); require (msg.value >= currentPrice(), "Insuficient ether sent"); pendingAdminWithdrawals = pendingAdminWithdrawals.add(msg.value.mul(ADMIN_SHARE).div(100)); pendingFpWithdrawals= pendingFpWithdrawals.add(msg.value.mul(FP_SHARE).div(100)); pendingGlyphTokenWithdrawals[tokenId] = pendingGlyphTokenWithdrawals[tokenId].add(msg.value.mul(GEN_SHARE).div(100)); totalTokenMints += 1; AvidlinesCore(coreAddress).mintGenesis(msg.sender, tokenId); emit MintFromToken(msg.sender, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `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}. * ==== */ 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 { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract AvidlinesCore is ERC721Enumerable, AccessControl, Ownable { using SafeMath for uint256; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); string public scriptArweave; string public scriptIPFS; string public p5jsArweave; string public p5jsIPFS; mapping(uint256 => uint256) public baseAutoglyph; uint256 public totalMints = 0; string internal _currentBaseURI = ""; uint256 internal _lastTokenId = 0; constructor(address adminAddress, string memory baseURI) ERC721("Avid Lines", "ALIN") { _currentBaseURI = baseURI; _setupRole(DEFAULT_ADMIN_ROLE, adminAddress); transferOwnership(adminAddress); } function _baseURI() internal view virtual override returns (string memory) { return _currentBaseURI; } function setBaseURI(string memory baseURI) public { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not admin"); _currentBaseURI = baseURI; } function setScriptIPFS(string memory _scriptIPFS) public { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not admin"); scriptIPFS = _scriptIPFS; } function setScriptArweave(string memory _scriptArweave) public { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not admin"); scriptArweave = _scriptArweave; } function setP5jsIPFS(string memory _p5jsIPFS) public { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not admin"); p5jsIPFS = _p5jsIPFS; } function setP5jsArweave(string memory _p5jsArweave) public { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not admin"); p5jsArweave = _p5jsArweave; } function _generateRandomHash() internal view returns (bytes32) { return keccak256(abi.encode(blockhash(block.number-1), block.coinbase, _lastTokenId)); } function _generateNewTokenId() internal view returns (uint256) { bytes32 hashRandom = _generateRandomHash(); uint8 i = 28; uint256 value = uint8(hashRandom[i]); for (i = 29; i < 30; i++) { value = value << 8; value = value + uint8(hashRandom[i]); } value = value << 16; value = value.add(totalMints); return uint256(value); } function mintGenesis(address _receiver, uint256 _baseGlyph) public { require(hasRole(MINTER_ROLE, msg.sender), "Caller is not a minter"); require(totalMints < 500, "Total mint limit is 500"); uint256 token = _generateNewTokenId(); totalMints = totalMints + 1; baseAutoglyph[token] = _baseGlyph; _lastTokenId = token; _safeMint(_receiver, token); } function burn(uint256 tokenId) public { require(hasRole(MINTER_ROLE, msg.sender), "Caller is not a minter"); _burn(tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, AccessControl) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function withdrawEther() public { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not admin"); uint balance = address(this).balance; address payable to; to.transfer(balance); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"core","type":"address"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"glyphContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintFromToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RemovedWhitelistedGlyph","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"WhitelistedGlyph","type":"event"},{"inputs":[],"name":"adminWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"allowedGlyphs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowedGlyphsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fpWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generatorWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isGlyphAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintFromGlyph","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingAdminWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingFpWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pendingGlyphTokenWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fpAddress","type":"address"}],"name":"setFpAdress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalTokenMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600b556000600c60006101000a81548160ff0219169083151502179055503480156200003157600080fd5b506040516200247538038062002475833981810160405281019062000057919062000239565b60008060006101000a81548160ff02191690831515021790555082600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001446200014d60201b60201c565b50505062000380565b6200015d6200020460201b60201c565b15620001a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019790620002ff565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001eb6200021a60201b60201c565b604051620001fa9190620002e2565b60405180910390a1565b60008060009054906101000a900460ff16905090565b600033905090565b600081519050620002338162000366565b92915050565b6000806000606084860312156200024f57600080fd5b60006200025f8682870162000222565b9350506020620002728682870162000222565b9250506040620002858682870162000222565b9150509250925092565b6200029a8162000332565b82525050565b6000620002af60108362000321565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b6000602082019050620002f960008301846200028f565b92915050565b600060208201905081810360008301526200031a81620002a0565b9050919050565b600082825260208201905092915050565b60006200033f8262000346565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b620003718162000332565b81146200037d57600080fd5b50565b6120e580620003906000396000f3fe60806040526004361061012a5760003560e01c80637ebd1b30116100ab578063a6bf6af11161006f578063a6bf6af114610373578063abf97b5c1461039e578063ae865ed7146103db578063e3ca123e14610404578063ee2679bc1461042f578063fb9733161461045a5761012a565b80637ebd1b30146102c357806380d8dcd5146102ec5780638456cb59146103085780639196ba0b1461031f5780639d1b464a146103485761012a565b80635c975abb116100f25780635c975abb146101f057806363ffe7e31461021b5780636b64c7691461023257806371165507146102495780637584f209146102865761012a565b80630f1220011461012f5780633f4ba83a1461015a57806347a7848a146101715780634f245ef71461019c57806352c785c6146101c7575b600080fd5b34801561013b57600080fd5b50610144610471565b6040516101519190611e9a565b60405180910390f35b34801561016657600080fd5b5061016f61047e565b005b34801561017d57600080fd5b5061018661051f565b6040516101939190611e9a565b60405180910390f35b3480156101a857600080fd5b506101b1610525565b6040516101be9190611e9a565b60405180910390f35b3480156101d357600080fd5b506101ee60048036038101906101e991906118b9565b61052b565b005b3480156101fc57600080fd5b50610205610721565b6040516102129190611cdf565b60405180910390f35b34801561022757600080fd5b50610230610737565b005b34801561023e57600080fd5b50610247610871565b005b34801561025557600080fd5b50610270600480360381019061026b91906118b9565b6109c4565b60405161027d9190611e9a565b60405180910390f35b34801561029257600080fd5b506102ad60048036038101906102a891906118b9565b610a12565b6040516102ba9190611cdf565b60405180910390f35b3480156102cf57600080fd5b506102ea60048036038101906102e591906118b9565b610a32565b005b610306600480360381019061030191906118b9565b610c20565b005b34801561031457600080fd5b5061031d610f37565b005b34801561032b57600080fd5b5061034660048036038101906103419190611867565b610fd8565b005b34801561035457600080fd5b5061035d6110b3565b60405161036a9190611e9a565b60405180910390f35b34801561037f57600080fd5b506103886111b1565b6040516103959190611e9a565b60405180910390f35b3480156103aa57600080fd5b506103c560048036038101906103c091906118b9565b6111b7565b6040516103d29190611e9a565b60405180910390f35b3480156103e757600080fd5b5061040260048036038101906103fd91906118b9565b6111cf565b005b34801561041057600080fd5b506104196113bc565b6040516104269190611e9a565b60405180910390f35b34801561043b57600080fd5b506104446113c2565b6040516104519190611cdf565b60405180910390f35b34801561046657600080fd5b5061046f6113d5565b005b6000600680549050905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166104bf61150f565b73ffffffffffffffffffffffffffffffffffffffff1614610515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050c90611e3a565b60405180910390fd5b61051d611517565b565b60095481565b600b5481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b81526004016105869190611e9a565b60206040518083038186803b15801561059e57600080fd5b505afa1580156105b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d69190611890565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610643576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063a90611dba565b60405180910390fd5b6000600a60008381526020019081526020016000205411610699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069090611d5a565b60405180910390fd5b6000600a60008381526020019081526020016000205490506000600a600084815260200190815260200160002081905550804710156106d6574790505b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561071c573d6000803e3d6000fd5b505050565b60008060009054906101000a900460ff16905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107be90611e5a565b60405180910390fd5b60006009541161080c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080390611d5a565b60405180910390fd5b60006009549050600060098190555080471015610827574790505b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561086d573d6000803e3d6000fd5b5050565b610879610721565b156108b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b090611d9a565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fa61150f565b73ffffffffffffffffffffffffffffffffffffffff1614610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094790611e3a565b60405180910390fd5b600c60009054906101000a900460ff16156109a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099790611dfa565b60405180910390fd5b43600b819055506001600c60006101000a81548160ff021916908315150217905550565b600060068281548110610a00577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b60056020528060005260406000206000915054906101000a900460ff1681565b6005600082815260200190815260200160002060009054906101000a900460ff1615610a93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8a90611dda565b60405180910390fd5b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610af09190611e9a565b60206040518083038186803b158015610b0857600080fd5b505afa158015610b1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b409190611890565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba790611d3a565b60405180910390fd5b60016005600084815260200190815260200160002060006101000a81548160ff021916908315150217905550610be5826115b8565b7fc655456e1dcc34cf365cafe608863b5d703771d25086ad81b9db2e0c95cf1d5582604051610c149190611e9a565b60405180910390a15050565b610c28610721565b15610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f90611d9a565b60405180910390fd5b6101a960045410610cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca590611e7a565b60405180910390fd5b6005600082815260200190815260200160002060009054906101000a900460ff16610d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0590611d1a565b60405180910390fd5b610d166110b3565b341015610d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4f90611d7a565b60405180910390fd5b610d93610d826064610d7460503461160190919063ffffffff16565b61161790919063ffffffff16565b60095461162d90919063ffffffff16565b600981905550610dd4610dc36064610db5600a3461160190919063ffffffff16565b61161790919063ffffffff16565b60085461162d90919063ffffffff16565b600881905550610e26610e046064610df6600a3461160190919063ffffffff16565b61161790919063ffffffff16565b600a60008481526020019081526020016000205461162d90919063ffffffff16565b600a600083815260200190815260200160002081905550600160046000828254610e509190611ec6565b92505081905550600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f5414bc633836040518363ffffffff1660e01b8152600401610eb4929190611cb6565b600060405180830381600087803b158015610ece57600080fd5b505af1158015610ee2573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167f888f6b592ee655870722a93012a2d7834b551a23887ad6813388a4eb776ec2d682604051610f2c9190611e9a565b60405180910390a250565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610f7861150f565b73ffffffffffffffffffffffffffffffffffffffff1614610fce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc590611e3a565b60405180910390fd5b610fd6611643565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661101961150f565b73ffffffffffffffffffffffffffffffffffffffff161461106f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106690611e3a565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600c60009054906101000a900460ff166110d957671bc16d674ec8000090506111ae565b603c63ffffffff1661111c61012c61110e603c63ffffffff16600b54436111009190611fa7565b61160190919063ffffffff16565b61161790919063ffffffff16565b111561112b57600090506111ae565b6111ab603c63ffffffff1661119d61117461012c611166603c63ffffffff16600b54436111589190611fa7565b61160190919063ffffffff16565b61161790919063ffffffff16565b603c63ffffffff166111869190611fa7565b671bc16d674ec8000061160190919063ffffffff16565b61161790919063ffffffff16565b90505b90565b60045481565b600a6020528060005260406000206000915090505481565b6005600082815260200190815260200160002060009054906101000a900460ff1661122f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122690611e1a565b60405180910390fd5b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161128c9190611e9a565b60206040518083038186803b1580156112a457600080fd5b505afa1580156112b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dc9190611890565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461134c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134390611d3a565b60405180910390fd5b60006005600084815260200190815260200160002060006101000a81548160ff021916908315150217905550611381826116e5565b7ff2d0f02625611b1d46991cac83292d2f921a3396befc0e43b4a009b77d26a0f5826040516113b09190611e9a565b60405180910390a15050565b60085481565b600c60009054906101000a900460ff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c90611e5a565b60405180910390fd5b6000600854116114aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a190611d5a565b60405180910390fd5b600060085490506000600881905550804710156114c5574790505b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561150b573d6000803e3d6000fd5b5050565b600033905090565b61151f610721565b61155e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155590611cfa565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6115a161150f565b6040516115ae9190611c9b565b60405180910390a1565b6006805490506007600083815260200190815260200160002081905550600681908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000818361160f9190611f4d565b905092915050565b600081836116259190611f1c565b905092915050565b6000818361163b9190611ec6565b905092915050565b61164b610721565b1561168b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168290611d9a565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116ce61150f565b6040516116db9190611c9b565b60405180910390a1565b600060016006805490506116f99190611fa7565b905060006007600084815260200190815260200160002054905060006006838154811061174f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060068381548110611797577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160076000838152602001908152602001600020819055506007600085815260200190815260200160002060009055600680548061180c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60008135905061183781612081565b92915050565b60008151905061184c81612081565b92915050565b60008135905061186181612098565b92915050565b60006020828403121561187957600080fd5b600061188784828501611828565b91505092915050565b6000602082840312156118a257600080fd5b60006118b08482850161183d565b91505092915050565b6000602082840312156118cb57600080fd5b60006118d984828501611852565b91505092915050565b6118eb81611fdb565b82525050565b6118fa81611fed565b82525050565b600061190d601483611eb5565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b600061194d602583611eb5565b91507f5468697320676c797068206973206e6f742077686974656c697374656420746f60008301527f206d696e740000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006119b3601d83611eb5565b91507f43616c6c65722073686f756c64206f776e2074686520746f6b656e49640000006000830152602082019050919050565b60006119f3601d83611eb5565b91507f4163636f756e7420686173206e6f2066756e647320746f20636c61696d0000006000830152602082019050919050565b6000611a33601683611eb5565b91507f496e737566696369656e742065746865722073656e74000000000000000000006000830152602082019050919050565b6000611a73601083611eb5565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b6000611ab3602a83611eb5565b91507f4f6e6c792074686520746f6b656e206f776e6572206163636f756e742063616e60008301527f2077697468647261776c000000000000000000000000000000000000000000006020830152604082019050919050565b6000611b19601983611eb5565b91507f746f6b656e20616c72656164792077686974656c6973746564000000000000006000830152602082019050919050565b6000611b59601783611eb5565b91507f41756374696f6e20616c726561647920737461727465640000000000000000006000830152602082019050919050565b6000611b99601883611eb5565b91507f746f6b656e206973206e6f742077686974656c697374656400000000000000006000830152602082019050919050565b6000611bd9601a83611eb5565b91507f4f6e6c79207468652061646d696e2063616e20646f20746869730000000000006000830152602082019050919050565b6000611c19601d83611eb5565b91507f4f6e6c79206670206163636f756e742063616e2077697468647261776c0000006000830152602082019050919050565b6000611c59601c83611eb5565b91507f4d6178696d756d207075626c6963206d696e74732072656163686564000000006000830152602082019050919050565b611c9581612019565b82525050565b6000602082019050611cb060008301846118e2565b92915050565b6000604082019050611ccb60008301856118e2565b611cd86020830184611c8c565b9392505050565b6000602082019050611cf460008301846118f1565b92915050565b60006020820190508181036000830152611d1381611900565b9050919050565b60006020820190508181036000830152611d3381611940565b9050919050565b60006020820190508181036000830152611d53816119a6565b9050919050565b60006020820190508181036000830152611d73816119e6565b9050919050565b60006020820190508181036000830152611d9381611a26565b9050919050565b60006020820190508181036000830152611db381611a66565b9050919050565b60006020820190508181036000830152611dd381611aa6565b9050919050565b60006020820190508181036000830152611df381611b0c565b9050919050565b60006020820190508181036000830152611e1381611b4c565b9050919050565b60006020820190508181036000830152611e3381611b8c565b9050919050565b60006020820190508181036000830152611e5381611bcc565b9050919050565b60006020820190508181036000830152611e7381611c0c565b9050919050565b60006020820190508181036000830152611e9381611c4c565b9050919050565b6000602082019050611eaf6000830184611c8c565b92915050565b600082825260208201905092915050565b6000611ed182612019565b9150611edc83612019565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611f1157611f10612023565b5b828201905092915050565b6000611f2782612019565b9150611f3283612019565b925082611f4257611f41612052565b5b828204905092915050565b6000611f5882612019565b9150611f6383612019565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611f9c57611f9b612023565b5b828202905092915050565b6000611fb282612019565b9150611fbd83612019565b925082821015611fd057611fcf612023565b5b828203905092915050565b6000611fe682611ff9565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b61208a81611fdb565b811461209557600080fd5b50565b6120a181612019565b81146120ac57600080fd5b5056fea264697066735822122032265857bf0c8a878b8c4eb050f53649cb2d07038f7513524b77610422ec996664736f6c63430008000033000000000000000000000000dfacd840f462c27b0127fc76b63e7925bed0f9d5000000000000000000000000f2de13954cc05c91d4058db09e94100006bf5c9c000000000000000000000000d4e4078ca3495de5b1d4db434bebc5a986197782
Deployed Bytecode
0x60806040526004361061012a5760003560e01c80637ebd1b30116100ab578063a6bf6af11161006f578063a6bf6af114610373578063abf97b5c1461039e578063ae865ed7146103db578063e3ca123e14610404578063ee2679bc1461042f578063fb9733161461045a5761012a565b80637ebd1b30146102c357806380d8dcd5146102ec5780638456cb59146103085780639196ba0b1461031f5780639d1b464a146103485761012a565b80635c975abb116100f25780635c975abb146101f057806363ffe7e31461021b5780636b64c7691461023257806371165507146102495780637584f209146102865761012a565b80630f1220011461012f5780633f4ba83a1461015a57806347a7848a146101715780634f245ef71461019c57806352c785c6146101c7575b600080fd5b34801561013b57600080fd5b50610144610471565b6040516101519190611e9a565b60405180910390f35b34801561016657600080fd5b5061016f61047e565b005b34801561017d57600080fd5b5061018661051f565b6040516101939190611e9a565b60405180910390f35b3480156101a857600080fd5b506101b1610525565b6040516101be9190611e9a565b60405180910390f35b3480156101d357600080fd5b506101ee60048036038101906101e991906118b9565b61052b565b005b3480156101fc57600080fd5b50610205610721565b6040516102129190611cdf565b60405180910390f35b34801561022757600080fd5b50610230610737565b005b34801561023e57600080fd5b50610247610871565b005b34801561025557600080fd5b50610270600480360381019061026b91906118b9565b6109c4565b60405161027d9190611e9a565b60405180910390f35b34801561029257600080fd5b506102ad60048036038101906102a891906118b9565b610a12565b6040516102ba9190611cdf565b60405180910390f35b3480156102cf57600080fd5b506102ea60048036038101906102e591906118b9565b610a32565b005b610306600480360381019061030191906118b9565b610c20565b005b34801561031457600080fd5b5061031d610f37565b005b34801561032b57600080fd5b5061034660048036038101906103419190611867565b610fd8565b005b34801561035457600080fd5b5061035d6110b3565b60405161036a9190611e9a565b60405180910390f35b34801561037f57600080fd5b506103886111b1565b6040516103959190611e9a565b60405180910390f35b3480156103aa57600080fd5b506103c560048036038101906103c091906118b9565b6111b7565b6040516103d29190611e9a565b60405180910390f35b3480156103e757600080fd5b5061040260048036038101906103fd91906118b9565b6111cf565b005b34801561041057600080fd5b506104196113bc565b6040516104269190611e9a565b60405180910390f35b34801561043b57600080fd5b506104446113c2565b6040516104519190611cdf565b60405180910390f35b34801561046657600080fd5b5061046f6113d5565b005b6000600680549050905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166104bf61150f565b73ffffffffffffffffffffffffffffffffffffffff1614610515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050c90611e3a565b60405180910390fd5b61051d611517565b565b60095481565b600b5481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b81526004016105869190611e9a565b60206040518083038186803b15801561059e57600080fd5b505afa1580156105b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d69190611890565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610643576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063a90611dba565b60405180910390fd5b6000600a60008381526020019081526020016000205411610699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069090611d5a565b60405180910390fd5b6000600a60008381526020019081526020016000205490506000600a600084815260200190815260200160002081905550804710156106d6574790505b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561071c573d6000803e3d6000fd5b505050565b60008060009054906101000a900460ff16905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107be90611e5a565b60405180910390fd5b60006009541161080c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080390611d5a565b60405180910390fd5b60006009549050600060098190555080471015610827574790505b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561086d573d6000803e3d6000fd5b5050565b610879610721565b156108b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b090611d9a565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fa61150f565b73ffffffffffffffffffffffffffffffffffffffff1614610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094790611e3a565b60405180910390fd5b600c60009054906101000a900460ff16156109a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099790611dfa565b60405180910390fd5b43600b819055506001600c60006101000a81548160ff021916908315150217905550565b600060068281548110610a00577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b60056020528060005260406000206000915054906101000a900460ff1681565b6005600082815260200190815260200160002060009054906101000a900460ff1615610a93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8a90611dda565b60405180910390fd5b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610af09190611e9a565b60206040518083038186803b158015610b0857600080fd5b505afa158015610b1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b409190611890565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba790611d3a565b60405180910390fd5b60016005600084815260200190815260200160002060006101000a81548160ff021916908315150217905550610be5826115b8565b7fc655456e1dcc34cf365cafe608863b5d703771d25086ad81b9db2e0c95cf1d5582604051610c149190611e9a565b60405180910390a15050565b610c28610721565b15610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f90611d9a565b60405180910390fd5b6101a960045410610cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca590611e7a565b60405180910390fd5b6005600082815260200190815260200160002060009054906101000a900460ff16610d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0590611d1a565b60405180910390fd5b610d166110b3565b341015610d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4f90611d7a565b60405180910390fd5b610d93610d826064610d7460503461160190919063ffffffff16565b61161790919063ffffffff16565b60095461162d90919063ffffffff16565b600981905550610dd4610dc36064610db5600a3461160190919063ffffffff16565b61161790919063ffffffff16565b60085461162d90919063ffffffff16565b600881905550610e26610e046064610df6600a3461160190919063ffffffff16565b61161790919063ffffffff16565b600a60008481526020019081526020016000205461162d90919063ffffffff16565b600a600083815260200190815260200160002081905550600160046000828254610e509190611ec6565b92505081905550600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f5414bc633836040518363ffffffff1660e01b8152600401610eb4929190611cb6565b600060405180830381600087803b158015610ece57600080fd5b505af1158015610ee2573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167f888f6b592ee655870722a93012a2d7834b551a23887ad6813388a4eb776ec2d682604051610f2c9190611e9a565b60405180910390a250565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610f7861150f565b73ffffffffffffffffffffffffffffffffffffffff1614610fce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc590611e3a565b60405180910390fd5b610fd6611643565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661101961150f565b73ffffffffffffffffffffffffffffffffffffffff161461106f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106690611e3a565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600c60009054906101000a900460ff166110d957671bc16d674ec8000090506111ae565b603c63ffffffff1661111c61012c61110e603c63ffffffff16600b54436111009190611fa7565b61160190919063ffffffff16565b61161790919063ffffffff16565b111561112b57600090506111ae565b6111ab603c63ffffffff1661119d61117461012c611166603c63ffffffff16600b54436111589190611fa7565b61160190919063ffffffff16565b61161790919063ffffffff16565b603c63ffffffff166111869190611fa7565b671bc16d674ec8000061160190919063ffffffff16565b61161790919063ffffffff16565b90505b90565b60045481565b600a6020528060005260406000206000915090505481565b6005600082815260200190815260200160002060009054906101000a900460ff1661122f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122690611e1a565b60405180910390fd5b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161128c9190611e9a565b60206040518083038186803b1580156112a457600080fd5b505afa1580156112b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dc9190611890565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461134c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134390611d3a565b60405180910390fd5b60006005600084815260200190815260200160002060006101000a81548160ff021916908315150217905550611381826116e5565b7ff2d0f02625611b1d46991cac83292d2f921a3396befc0e43b4a009b77d26a0f5826040516113b09190611e9a565b60405180910390a15050565b60085481565b600c60009054906101000a900460ff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c90611e5a565b60405180910390fd5b6000600854116114aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a190611d5a565b60405180910390fd5b600060085490506000600881905550804710156114c5574790505b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561150b573d6000803e3d6000fd5b5050565b600033905090565b61151f610721565b61155e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155590611cfa565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6115a161150f565b6040516115ae9190611c9b565b60405180910390a1565b6006805490506007600083815260200190815260200160002081905550600681908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000818361160f9190611f4d565b905092915050565b600081836116259190611f1c565b905092915050565b6000818361163b9190611ec6565b905092915050565b61164b610721565b1561168b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168290611d9a565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116ce61150f565b6040516116db9190611c9b565b60405180910390a1565b600060016006805490506116f99190611fa7565b905060006007600084815260200190815260200160002054905060006006838154811061174f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060068381548110611797577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160076000838152602001908152602001600020819055506007600085815260200190815260200160002060009055600680548061180c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60008135905061183781612081565b92915050565b60008151905061184c81612081565b92915050565b60008135905061186181612098565b92915050565b60006020828403121561187957600080fd5b600061188784828501611828565b91505092915050565b6000602082840312156118a257600080fd5b60006118b08482850161183d565b91505092915050565b6000602082840312156118cb57600080fd5b60006118d984828501611852565b91505092915050565b6118eb81611fdb565b82525050565b6118fa81611fed565b82525050565b600061190d601483611eb5565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b600061194d602583611eb5565b91507f5468697320676c797068206973206e6f742077686974656c697374656420746f60008301527f206d696e740000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006119b3601d83611eb5565b91507f43616c6c65722073686f756c64206f776e2074686520746f6b656e49640000006000830152602082019050919050565b60006119f3601d83611eb5565b91507f4163636f756e7420686173206e6f2066756e647320746f20636c61696d0000006000830152602082019050919050565b6000611a33601683611eb5565b91507f496e737566696369656e742065746865722073656e74000000000000000000006000830152602082019050919050565b6000611a73601083611eb5565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b6000611ab3602a83611eb5565b91507f4f6e6c792074686520746f6b656e206f776e6572206163636f756e742063616e60008301527f2077697468647261776c000000000000000000000000000000000000000000006020830152604082019050919050565b6000611b19601983611eb5565b91507f746f6b656e20616c72656164792077686974656c6973746564000000000000006000830152602082019050919050565b6000611b59601783611eb5565b91507f41756374696f6e20616c726561647920737461727465640000000000000000006000830152602082019050919050565b6000611b99601883611eb5565b91507f746f6b656e206973206e6f742077686974656c697374656400000000000000006000830152602082019050919050565b6000611bd9601a83611eb5565b91507f4f6e6c79207468652061646d696e2063616e20646f20746869730000000000006000830152602082019050919050565b6000611c19601d83611eb5565b91507f4f6e6c79206670206163636f756e742063616e2077697468647261776c0000006000830152602082019050919050565b6000611c59601c83611eb5565b91507f4d6178696d756d207075626c6963206d696e74732072656163686564000000006000830152602082019050919050565b611c9581612019565b82525050565b6000602082019050611cb060008301846118e2565b92915050565b6000604082019050611ccb60008301856118e2565b611cd86020830184611c8c565b9392505050565b6000602082019050611cf460008301846118f1565b92915050565b60006020820190508181036000830152611d1381611900565b9050919050565b60006020820190508181036000830152611d3381611940565b9050919050565b60006020820190508181036000830152611d53816119a6565b9050919050565b60006020820190508181036000830152611d73816119e6565b9050919050565b60006020820190508181036000830152611d9381611a26565b9050919050565b60006020820190508181036000830152611db381611a66565b9050919050565b60006020820190508181036000830152611dd381611aa6565b9050919050565b60006020820190508181036000830152611df381611b0c565b9050919050565b60006020820190508181036000830152611e1381611b4c565b9050919050565b60006020820190508181036000830152611e3381611b8c565b9050919050565b60006020820190508181036000830152611e5381611bcc565b9050919050565b60006020820190508181036000830152611e7381611c0c565b9050919050565b60006020820190508181036000830152611e9381611c4c565b9050919050565b6000602082019050611eaf6000830184611c8c565b92915050565b600082825260208201905092915050565b6000611ed182612019565b9150611edc83612019565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611f1157611f10612023565b5b828201905092915050565b6000611f2782612019565b9150611f3283612019565b925082611f4257611f41612052565b5b828204905092915050565b6000611f5882612019565b9150611f6383612019565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611f9c57611f9b612023565b5b828202905092915050565b6000611fb282612019565b9150611fbd83612019565b925082821015611fd057611fcf612023565b5b828203905092915050565b6000611fe682611ff9565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b61208a81611fdb565b811461209557600080fd5b50565b6120a181612019565b81146120ac57600080fd5b5056fea264697066735822122032265857bf0c8a878b8c4eb050f53649cb2d07038f7513524b77610422ec996664736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dfacd840f462c27b0127fc76b63e7925bed0f9d5000000000000000000000000f2de13954cc05c91d4058db09e94100006bf5c9c000000000000000000000000d4e4078ca3495de5b1d4db434bebc5a986197782
-----Decoded View---------------
Arg [0] : core (address): 0xDFAcD840f462C27b0127FC76b63e7925bEd0F9D5
Arg [1] : admin (address): 0xf2de13954Cc05c91d4058db09e94100006Bf5C9c
Arg [2] : glyphContract (address): 0xd4e4078ca3495DE5B1d4dB434BEbc5a986197782
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000dfacd840f462c27b0127fc76b63e7925bed0f9d5
Arg [1] : 000000000000000000000000f2de13954cc05c91d4058db09e94100006bf5c9c
Arg [2] : 000000000000000000000000d4e4078ca3495de5b1d4db434bebc5a986197782
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,523.74 | 29.7233 | $75,014.04 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.