ETH Price: $2,934.38 (-4.34%)
Gas: 2 Gwei

Token

Ephimera (EPH)
 

Overview

Max Total Supply

410 EPH

Holders

145

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
anestidhima.eth
Balance
2 EPH
0x3b0aa499cc6acde1d4a7433da6968d7bb8bd8509
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Ephimera is the tokenized art marketplace dedicated to museum quality lens-based art. This includes photography, video art, photogrammetry, photo animation, photographic collage and any artwork which incorporates real-world captures in some capacity.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
EphimeraToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-19
*/

// SPDX-License-Identifier: MIT

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/introspection/IERC165.sol

pragma solidity ^0.6.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);
}

// File: @openzeppelin/contracts/introspection/ERC165.sol

pragma solidity ^0.6.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.6.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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }

    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: contracts/interfaces/IERC721Token.sol

/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.6.12;


interface IERC721Token {

    /// @dev This emits when ownership of any NFT changes by any mechanism.
    ///      This event emits when NFTs are created (`from` == 0) and destroyed
    ///      (`to` == 0). Exception: during contract creation, any number of NFTs
    ///      may be created and assigned without emitting Transfer. At the time of
    ///      any transfer, the approved address for that NFT (if any) is reset to none.
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed tokenId
    );

    /// @dev This emits when the approved address for an NFT is changed or
    ///      reaffirmed. The zero address indicates there is no approved address.
    ///      When a Transfer event emits, this also indicates that the approved
    ///      address for that NFT (if any) is reset to none.
    event Approval(
        address indexed owner,
        address indexed approved,
        uint256 indexed tokenId
    );

    /// @dev This emits when an operator is enabled or disabled for an owner.
    ///      The operator can manage all NFTs of the owner.
    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev This works identically to the other function with an extra data parameter,
    ///      except this function just sets data to "".
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _tokenId
    )
    external;

    /// @notice Transfers the ownership of an NFT from one address to another address
    /// @dev Throws unless `msg.sender` is the current owner, an authorized
    ///      perator, or the approved address for this NFT. Throws if `_from` is
    ///      not the current owner. Throws if `_to` is the zero address. Throws if
    ///      `_tokenId` is not a valid NFT. When transfer is complete, this function
    ///      checks if `_to` is a smart contract (code size > 0). If so, it calls
    ///      `onERC721Received` on `_to` and throws if the return value is not
    ///      `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    /// @param _data Additional data with no specified format, sent in call to `_to`
    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _tokenId,
        bytes calldata _data
    )
    external;

    /// @notice Change or reaffirm the approved address for an NFT
    /// @dev The zero address indicates there is no approved address.
    ///      Throws unless `msg.sender` is the current NFT owner, or an authorized
    ///      operator of the current owner.
    /// @param _approved The new approved NFT controller
    /// @param _tokenId The NFT to approve
    function approve(address _approved, uint256 _tokenId)
    external;

    /// @notice Enable or disable approval for a third party ("operator") to manage
    ///         all of `msg.sender`'s assets
    /// @dev Emits the ApprovalForAll event. The contract MUST allow
    ///      multiple operators per owner.
    /// @param _operator Address to add to the set of authorized operators
    /// @param _approved True if the operator is approved, false to revoke approval
    function setApprovalForAll(address _operator, bool _approved)
    external;

    /// @notice Count all NFTs assigned to an owner
    /// @dev NFTs assigned to the zero address are considered invalid, and this
    ///      function throws for queries about the zero address.
    /// @param _owner An address for whom to query the balance
    /// @return The number of NFTs owned by `_owner`, possibly zero
    function balanceOf(address _owner)
    external
    view
    returns (uint256);

    /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE
    ///         TO CONFIRM THAT `_to` IS CAPABLE OF RECEIVING NFTS OR ELSE
    ///         THEY MAY BE PERMANENTLY LOST
    /// @dev Throws unless `msg.sender` is the current owner, an authorized
    ///      operator, or the approved address for this NFT. Throws if `_from` is
    ///      not the current owner. Throws if `_to` is the zero address. Throws if
    ///      `_tokenId` is not a valid NFT.
    /// @param _from The current owner of the NFT
    /// @param _to The new owner
    /// @param _tokenId The NFT to transfer
    function transferFrom(
        address _from,
        address _to,
        uint256 _tokenId
    )
    external;

    /// @notice Find the owner of an NFT
    /// @dev NFTs assigned to zero address are considered invalid, and queries
    ///      about them do throw.
    /// @param _tokenId The identifier for an NFT
    /// @return The address of the owner of the NFT
    function ownerOf(uint256 _tokenId)
    external
    view
    returns (address);

    /// @notice Get the approved address for a single NFT
    /// @dev Throws if `_tokenId` is not a valid NFT.
    /// @param _tokenId The NFT to find the approved address for
    /// @return The approved address for this NFT, or the zero address if there is none
    function getApproved(uint256 _tokenId)
    external
    view
    returns (address);

    /// @notice Query if an address is an authorized operator for another address
    /// @param _owner The address that owns the NFTs
    /// @param _operator The address that acts on behalf of the owner
    /// @return True if `_operator` is an approved operator for `_owner`, false otherwise
    function isApprovedForAll(address _owner, address _operator)
    external
    view
    returns (bool);
}

// File: contracts/interfaces/IERC721Receiver.sol

/*

  Copyright 2019 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity 0.6.12;


interface IERC721Receiver {

    /// @notice Handle the receipt of an NFT
    /// @dev The ERC721 smart contract calls this function on the recipient
    ///  after a `transfer`. This function MAY throw to revert and reject the
    ///  transfer. Return of other than the magic value MUST result in the
    ///  transaction being reverted.
    ///  Note: the contract address is always the message sender.
    /// @param _operator The address which called `safeTransferFrom` function
    /// @param _from The address which previously owned the token
    /// @param _tokenId The NFT identifier which is being transferred
    /// @param _data Additional data with no specified format
    /// @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    ///  unless throwing
    function onERC721Received(
        address _operator,
        address _from,
        uint256 _tokenId,
        bytes calldata _data
    )
    external
    returns (bytes4);
}

// File: @openzeppelin/contracts/utils/EnumerableSet.sol

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * As of v2.5.0, only `address` sets are supported.
 *
 * Include with `using EnumerableSet for EnumerableSet.AddressSet;`.
 *
 * @author Alberto Cuesta Cañada
 */
library EnumerableSet {

    struct AddressSet {
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (address => uint256) index;
        address[] values;
    }

    /**
     * @dev Add a value to a set. O(1).
     * Returns false if the value was already in the set.
     */
    function add(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        if (!contains(set, value)) {
            set.values.push(value);
            // The element is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set.index[value] = set.values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     * Returns false if the value was not present in the set.
     */
    function remove(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        if (contains(set, value)){
            uint256 toDeleteIndex = set.index[value] - 1;
            uint256 lastIndex = set.values.length - 1;

            // If the element we're deleting is the last one, we can just remove it without doing a swap
            if (lastIndex != toDeleteIndex) {
                address lastValue = set.values[lastIndex];

                // Move the last value to the index where the deleted value is
                set.values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set.index[lastValue] = toDeleteIndex + 1; // All indexes are 1-based
            }

            // Delete the index entry for the deleted value
            delete set.index[value];

            // Delete the old entry for the moved value
            set.values.pop();

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value)
        internal
        view
        returns (bool)
    {
        return set.index[value] != 0;
    }

    /**
     * @dev Returns an array with all values in the set. O(N).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.

     * WARNING: This function may run out of gas on large sets: use {length} and
     * {get} instead in these cases.
     */
    function enumerate(AddressSet storage set)
        internal
        view
        returns (address[] memory)
    {
        address[] memory output = new address[](set.values.length);
        for (uint256 i; i < set.values.length; i++){
            output[i] = set.values[i];
        }
        return output;
    }

    /**
     * @dev Returns the number of elements on the set. O(1).
     */
    function length(AddressSet storage set)
        internal
        view
        returns (uint256)
    {
        return set.values.length;
    }

   /** @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function get(AddressSet storage set, uint256 index)
        internal
        view
        returns (address)
    {
        return set.values[index];
    }
}

// File: @openzeppelin/contracts/access/AccessControl.sol

pragma solidity ^0.6.0;



/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * 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, _msgSender()));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked programatically by calling the `internal`
 * {_grantRole} and {_revokeRole} functions.
 *
 * This can also be achieved dynamically via the `external` {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 {revokeRoke}.
 *
 * 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}.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `grantRole`, it is the admin role bearer
     *   - if using `_grantRole`, its meaning is system-dependent
     */
    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`)
     *   - if using `_renounceRole`, its meaning is system-dependent
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.get(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Calls {_grantRole} internally.
     *
     * Requirements:
     *
     * - the caller must have `role`'s admin role.
     */
    function grantRole(bytes32 role, address account) external virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Calls {_revokeRole} internally.
     *
     * Requirements:
     *
     * - the caller must have `role`'s admin role.
     */
    function revokeRole(bytes32 role, address account) external virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _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).
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external virtual {
        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.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }

    /**
     * @dev Sets `adminRole` as `role`'s admin role.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        _roles[role].adminRole = adminRole;
    }
}

// File: contracts/EphimeraAccessControls.sol

pragma solidity 0.6.12;


contract EphimeraAccessControls is AccessControl {
    // Role definitions
    bytes32 public constant GALLERY_ROLE = keccak256("GALLERY_ROLE");
    bytes32 public constant CREATOR_ROLE = keccak256("CREATOR_ROLE");
    bytes32 public constant CONTRACT_WHITELIST_ROLE = keccak256(
        "CONTRACT_WHITELIST_ROLE"
    );

    // Relationship mappings
    mapping(address => mapping(address => bool)) public galleryToArtistMapping;
    mapping(address => mapping(address => bool))
        public artistToGalleriesMapping;

    // Events
    event ArtistAddedToGallery(
        address indexed gallery,
        address indexed artist,
        address indexed caller
    );

    event ArtistRemovedFromGallery(
        address indexed gallery,
        address indexed artist,
        address indexed caller
    );

    event NewAdminAdded(address indexed admin);

    event AdminRemoved(address indexed admin);

    event NewArtistAdded(address indexed artist);

    event ArtistRemoved(address indexed artist);

    event NewGalleryAdded(address indexed gallery);

    event GalleryRemoved(address indexed gallery);

    constructor() public {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /////////////
    // Lookups //
    /////////////

    function hasGalleryRole(address _address) public view returns (bool) {
        return hasRole(GALLERY_ROLE, _address);
    }

    function hasCreatorRole(address _address) public view returns (bool) {
        return hasRole(CREATOR_ROLE, _address);
    }

    function hasAdminRole(address _address) public view returns (bool) {
        return hasRole(DEFAULT_ADMIN_ROLE, _address);
    }

    function hasContractWhitelistRole(address _address)
        public
        view
        returns (bool)
    {
        return hasRole(CONTRACT_WHITELIST_ROLE, _address);
    }

    function isArtistPartOfGallery(address _gallery, address _artist)
        public
        view
        returns (bool)
    {
        return galleryToArtistMapping[_gallery][_artist];
    }

    ///////////////
    // Modifiers //
    ///////////////

    modifier onlyAdminRole() {
        require(
            hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
            "EphimeraAccessControls: sender must be an admin"
        );
        _;
    }

    function addAdminRole(address _address) public onlyAdminRole {
        require(
            !hasAdminRole(_address),
            "EphimeraAccessControls: Account already has an admin role"
        );
        _grantRole(DEFAULT_ADMIN_ROLE, _address);
        emit NewAdminAdded(_address);
    }

    function removeAdminRole(address _address) public onlyAdminRole {
        require(
            hasAdminRole(_address),
            "EphimeraAccessControls: Account is not an admin"
        );
        _revokeRole(DEFAULT_ADMIN_ROLE, _address);
        emit AdminRemoved(_address);
    }

    function addContractWhitelistRole(address _address) public onlyAdminRole {
        require(
            !hasContractWhitelistRole(_address),
            "EphimeraAccessControls: Address has contractWhitelist role"
        );
        _grantRole(CONTRACT_WHITELIST_ROLE, _address);
    }

    function removeContractWhitelistRole(address _address)
        public
        onlyAdminRole
    {
        require(
            hasContractWhitelistRole(_address),
            "EphimeraAccessControls: Address must have contractWhitelist role"
        );
        _revokeRole(CONTRACT_WHITELIST_ROLE, _address);
    }

    function addGalleryRole(address _address) public onlyAdminRole {
        require(
            !hasCreatorRole(_address),
            "EphimeraAccessControls: Address already has creator role and cannot have gallery role at the same time"
        );
        require(
            !hasGalleryRole(_address),
            "EphimeraAccessControls: Address already has gallery role"
        );

        _grantRole(GALLERY_ROLE, _address);
        emit NewGalleryAdded(_address);
    }

    function removeGalleryRole(address _address) public onlyAdminRole {
        require(
            hasGalleryRole(_address),
            "EphimeraAccessControls: Address must have gallery role"
        );
        _revokeRole(GALLERY_ROLE, _address);
        emit GalleryRemoved(_address);
    }

    function addCreatorRole(address _address) public onlyAdminRole {
        require(
            !hasGalleryRole(_address),
            "EphimeraAccessControls: Address already has gallery role and cannot have creator role at the same time"
        );

        require(
            !hasCreatorRole(_address),
            "EphimeraAccessControls: Address already has creator role"
        );

        _grantRole(CREATOR_ROLE, _address);
        emit NewArtistAdded(_address);
    }

    function removeCreatorRole(address _address) public onlyAdminRole {
        require(
            hasCreatorRole(_address),
            "EphimeraAccessControls: Address must have creator role"
        );
        _revokeRole(CREATOR_ROLE, _address);
        emit ArtistRemoved(_address);
    }

    /* Allows the DEFAULT_ADMIN_ROLE that controls all roles to be overridden thereby creating hierarchies */
    function setRoleAdmin(bytes32 _role, bytes32 _adminRole)
        external
        onlyAdminRole
    {
        _setRoleAdmin(_role, _adminRole);
    }

    function addArtistToGallery(address _gallery, address _artist)
        external
        onlyAdminRole
    {
        require(
            hasRole(GALLERY_ROLE, _gallery),
            "EphimeraAccessControls: Gallery address specified does not have the gallery role"
        );
        require(
            hasRole(CREATOR_ROLE, _artist),
            "EphimeraAccessControls: Artist address specified does not have the creator role"
        );
        require(
            !isArtistPartOfGallery(_gallery, _artist),
            "EphimeraAccessControls: Artist cannot be added twice to one gallery"
        );
        galleryToArtistMapping[_gallery][_artist] = true;
        artistToGalleriesMapping[_artist][_gallery] = true;

        emit ArtistAddedToGallery(_gallery, _artist, _msgSender());
    }

    function removeArtistFromGallery(address _gallery, address _artist)
        external
        onlyAdminRole
    {
        require(
            isArtistPartOfGallery(_gallery, _artist),
            "EphimeraAccessControls: Artist is not part of the gallery"
        );
        galleryToArtistMapping[_gallery][_artist] = false;
        artistToGalleriesMapping[_artist][_gallery] = false;

        emit ArtistRemovedFromGallery(_gallery, _artist, _msgSender());
    }
}

// File: contracts/EphimeraToken.sol

pragma solidity 0.6.12;

/**
 * @title Ephimera Token contract (ephimera.com)
 * @author Ephimera 
 * @dev Ephimera's ERC-721 contract
 */
contract EphimeraToken is IERC721Token, ERC165, Context {
    using SafeMath for uint256;

    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    // Function selector for ERC721Receiver.onERC721Received 0x150b7a02
    bytes4 constant internal ERC721_RECEIVED = bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"));

    /// @dev the first token ID is 1
    uint256 public tokenPointer; 

    // Token name
    string public name = "Ephimera";

    // Token symbol
    string public symbol = "EPH";

    uint256 public totalSupply;

    // Mapping of tokenId => owner
    mapping(uint256 => address) internal owners;

    // Mapping of tokenId => approved address
    mapping(uint256 => address) internal approvals;

    // Mapping of owner => number of tokens owned
    mapping(address => uint256) internal balances;

    // Mapping of owner => operator => approved
    mapping(address => mapping(address => bool)) internal operatorApprovals;

    // Optional mapping for token URIs
    mapping(uint256 => string) internal tokenURIs;

    mapping(uint256 => uint256) public tokenTransferCount;

    EphimeraAccessControls public accessControls;

    constructor (EphimeraAccessControls _accessControls) public {
        accessControls = _accessControls;

        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
    }

    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {codehash := extcodehash(account)}
        return (codehash != accountHash && codehash != 0x0);
    }

    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
    private returns (bool)
    {
        if (!isContract(to)) {
            return true;
        }
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
                IERC721Receiver(to).onERC721Received.selector,
                _msgSender(),
                from,
                tokenId,
                _data
            ));
        if (!success) {
            if (returndata.length > 0) {
                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert("ERC721: transfer to non ERC721Receiver implementer");
            }
        } else {
            bytes4 retval = abi.decode(returndata, (bytes4));
            return (retval == ERC721_RECEIVED);
        }
    }

    /// @notice sets URI of token metadata (e.g. IPFS hash of a token)
    /// @dev links an NFT to metadata URI
    /// @param _tokenId the identifier for an NFT 
    /// @param _uri data that the NFT is representing
    function setTokenURI(uint256 _tokenId, string calldata _uri) external {
        require(owners[_tokenId] != address(0), "EphimeraToken.setTokenURI: token does not exist.");
        require(accessControls.hasAdminRole(_msgSender()), "EphimeraToken.setTokenURI: caller is not a admin.");
        tokenURIs[_tokenId] = _uri;
    }

    /// @notice creates a new Ephimera art piece
    /// @dev mints a new NFT
    /// @param _to the address that the NFT is going to be issued to
    /// @param _uri data that the NFT is representing
    /// @return return an NFT id
    function mint(
        address _to,
        string calldata _uri
    ) external returns (uint256) {
        require(_to != address(0), "ERC721: mint to the zero address");
        require(accessControls.hasContractWhitelistRole(_msgSender()), "EphimeraToken.mint: caller is not whitelisted.");

        tokenPointer = tokenPointer.add(1);
        uint256 tokenId = tokenPointer;

        // Mint
        owners[tokenId] = _to;
        balances[_to] = balances[_to].add(1);

        // MetaData
        tokenURIs[tokenId] = _uri;
        totalSupply = totalSupply.add(1);

        tokenTransferCount[tokenId] = 1;

        // Single Transfer event for a single token
        emit Transfer(address(0), _to, tokenId);

        return tokenId;
    }

    /// @notice gets the data URI of a token
    /// @dev queries an NFT's URI
    /// @param _tokenId the identifier for an NFT
    /// @return return an NFT's tokenURI 
    function tokenURI(uint256 _tokenId) external view returns (string memory) {
        return tokenURIs[_tokenId];
    }

    /// @notice checks if an art exists
    /// @dev checks if an NFT exists
    /// @param _tokenId the identifier for an NFT 
    /// @return returns true if an NFT exists, else returns false
    function exists(uint256 _tokenId) external view returns (bool) {
        return owners[_tokenId] != address(0);
    }

    /// @notice allows owner and only owner of an art piece to delete it. 
    ///     This token will be gone forever; USE WITH CARE
    /// @dev owner can burn an NFT
    /// @param _tokenId the identifier for an NFT 
    function burn(uint256 _tokenId) external {
        require(_msgSender() == ownerOf(_tokenId), 
            "EphimeraToken.burn: Caller must be owner."
        );
        _burn(_tokenId);
    }

    function _burn(uint256 _tokenId)
    internal
    {
        address owner = owners[_tokenId];
        require(
            owner != address(0),
            "ERC721_ZERO_OWNER_ADDRESS"
        );

        owners[_tokenId] = address(0);
        balances[owner] = balances[owner].sub(1);
        totalSupply = totalSupply.sub(1);

        // clear metadata
        if (bytes(tokenURIs[_tokenId]).length != 0) {
            delete tokenURIs[_tokenId];
        }

        emit Transfer(
            owner,
            address(0),
            _tokenId
        );
    }

    /// @notice transfers the ownership of an NFT from one address to another address
    /// @dev wrapper function for the safeTransferFrom function below setting data to "".
    /// @param _from the current owner of the NFT
    /// @param _to the new owner
    /// @param _tokenId the identifier for the NFT to transfer
    function safeTransferFrom(address _from, address _to, uint256 _tokenId) override public {
        safeTransferFrom(_from, _to, _tokenId, "");
    }

    /// @notice transfers the ownership of an NFT from one address to another address
    /// @dev throws unless `msg.sender` is the current owner, an authorized
    ///      operator, or the approved address for this NFT. Throws if `_from` is
    ///      not the current owner. Throws if `_to` is the zero address. Throws if
    ///      `_tokenId` is not a valid NFT. When transfer is complete, this function
    ///      checks if `_to` is a smart contract (code size > 0). If so, it calls
    ///      `onERC721Received` on `_to` and throws if the return value is not
    ///      `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
    /// @param _from the current owner of the NFT
    /// @param _to the new owner
    /// @param _tokenId the identifier for the NFT to transfer
    /// @param _data additional data with no specified format; sent in call to `_to`
    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _tokenId,
        bytes memory _data
    )
    override
    public
    {
        transferFrom(_from, _to, _tokenId);
        require(_checkOnERC721Received(_from, _to, _tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /// @notice change or reaffirm the approved address for an NFT
    /// @dev the zero address indicates there is no approved address.
    ///      Throws unless `msg.sender` is the current NFT owner, or an authorized
    ///      operator of the current owner.
    /// @param _approved the new approved NFT controller
    /// @param _tokenId the identifier of the NFT to approve
    function approve(address _approved, uint256 _tokenId)
    override
    external
    {
        address owner = ownerOf(_tokenId);
        require(_approved != owner, "ERC721: approval to current owner");
        
        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        approvals[_tokenId] = _approved;
        emit Approval(
            owner,
            _approved,
            _tokenId
        );
    }

    /// @notice enable or disable approval for a third party ("operator") to manage
    ///         all of `msg.sender`'s assets
    /// @dev emits the ApprovalForAll event. The contract MUST allow
    ///      multiple operators per owner.
    /// @param _operator address to add to the set of authorized operators
    /// @param _approved true if the operator is approved, false to revoke approval
    function setApprovalForAll(address _operator, bool _approved)
    override
    external
    {
        require(_operator != _msgSender(), "ERC721: approve to caller");

        operatorApprovals[_msgSender()][_operator] = _approved;
        emit ApprovalForAll(
            _msgSender(),
            _operator,
            _approved
        );
    }

    /// @notice count all NFTs assigned to an owner
    /// @dev NFTs assigned to the zero address are considered invalid, and this
    ///      function throws for queries about the zero address.
    /// @param _owner an address to query
    /// @return the number of NFTs owned by `_owner`, possibly zero
    function balanceOf(address _owner)
    override
    external
    view
    returns (uint256)
    {
        require(
            _owner != address(0),
            "ERC721: owner query for nonexistent token"
        );
        return balances[_owner];
    }

    /// @notice transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE
    ///         TO CONFIRM THAT `_to` IS CAPABLE OF RECEIVING NFTS OR ELSE
    ///         THEY MAY BE PERMANENTLY LOST
    /// @dev throws unless `msg.sender` is the current owner, an authorized
    ///      operator, or the approved address for this NFT. Throws if `_from` is
    ///      not the current owner. Throws if `_to` is the zero address. Throws if
    ///      `_tokenId` is not a valid NFT.
    /// @param _from the current owner of the NFT
    /// @param _to the new owner
    /// @param _tokenId the identifier of the NFT to transfer
    function transferFrom(
        address _from,
        address _to,
        uint256 _tokenId
    )
    override
    public
    {
        require(
            _to != address(0),
            "ERC721_ZERO_TO_ADDRESS"
        );

        address owner = ownerOf(_tokenId);
        require(
            _from == owner,
            "ERC721_OWNER_MISMATCH"
        );

        address spender = _msgSender();
        address approvedAddress = getApproved(_tokenId);
        require(
            spender == owner ||
            isApprovedForAll(owner, spender) ||
            approvedAddress == spender,
            "ERC721_INVALID_SPENDER"
        );

        if (approvedAddress != address(0)) {
            approvals[_tokenId] = address(0);
        }

        owners[_tokenId] = _to;
        balances[_from] = balances[_from].sub(1);
        balances[_to] = balances[_to].add(1);

        tokenTransferCount[_tokenId] = tokenTransferCount[_tokenId].add(1);

        emit Transfer(
            _from,
            _to,
            _tokenId
        );
    }

    /// @notice find the owner of an NFT
    /// @dev NFTs assigned to zero address are considered invalid, and queries
    ///      about them do throw.
    /// @param _tokenId the identifier for an NFT
    /// @return the address of the owner of the NFT
    function ownerOf(uint256 _tokenId)
    override
    public
    view
    returns (address)
    {
        address owner = owners[_tokenId];
        require(
            owner != address(0),
            "ERC721: owner query for nonexistent token"
        );
        return owner;
    }

    /// @notice get the approved address for a single NFT
    /// @dev throws if `_tokenId` is not a valid NFT.
    /// @param _tokenId the NFT to find the approved address for
    /// @return the approved address for this NFT, or the zero address if there is none
    function getApproved(uint256 _tokenId)
    override
    public
    view
    returns (address)
    {
        require(owners[_tokenId] != address(0), "ERC721: approved query for nonexistent token");
        return approvals[_tokenId];
    }

    /// @notice query if an address is an authorized operator for another address
    /// @param _owner the address that owns the NFTs
    /// @param _operator the address that acts on behalf of the owner
    /// @return true if `_operator` is an approved operator for `_owner`, false otherwise
    function isApprovedForAll(address _owner, address _operator)
    override
    public
    view
    returns (bool)
    {
        return operatorApprovals[_owner][_operator];
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract EphimeraAccessControls","name":"_accessControls","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"accessControls","outputs":[{"internalType":"contract EphimeraAccessControls","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_approved","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"string","name":"_uri","type":"string"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPointer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenTransferCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526008608081905267457068696d65726160c01b60a09081526200002b916002919062000169565b506040805180820190915260038082526208aa0960eb1b602090920191825262000056918162000169565b503480156200006457600080fd5b5060405162001be038038062001be0833981810160405260208110156200008a57600080fd5b50516200009e6301ffc9a760e01b620000e4565b600b80546001600160a01b0319166001600160a01b038316179055620000cb6380ac58cd60e01b620000e4565b620000dd635b5e139f60e01b620000e4565b5062000205565b6001600160e01b0319808216141562000144576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001ac57805160ff1916838001178555620001dc565b82800160010185558215620001dc579182015b82811115620001dc578251825591602001919060010190620001bf565b50620001ea929150620001ee565b5090565b5b80821115620001ea5760008155600101620001ef565b6119cb80620002156000396000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80634f558e79116100d857806395d89b411161008c578063c87b56dd11610066578063c87b56dd1461053e578063d0def5211461055b578063e985e9c5146105db57610177565b806395d89b4114610442578063a22cb4651461044a578063b88d4fde1461047857610177565b806364126d98116100bd57806364126d98146103f757806370a0823114610414578063748365ef1461043a57610177565b80634f558e79146103bd5780636352211e146103da57610177565b8063162094c41161012f57806323b872dd1161011457806323b872dd1461033457806342842e0e1461036a57806342966c68146103a057610177565b8063162094c4146102b557806318160ddd1461032c57610177565b806306fdde031161016057806306fdde03146101d1578063081812fc1461024e578063095ea7b31461028757610177565b806301ffc9a71461017c57806302831651146101b7575b600080fd5b6101a36004803603602081101561019257600080fd5b50356001600160e01b031916610609565b604080519115158252519081900360200190f35b6101bf610628565b60408051918252519081900360200190f35b6101d961062e565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102135781810151838201526020016101fb565b50505050905090810190601f1680156102405780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61026b6004803603602081101561026457600080fd5b50356106b9565b604080516001600160a01b039092168252519081900360200190f35b6102b36004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610728565b005b6102b3600480360360408110156102cb57600080fd5b813591908101906040810160208201356401000000008111156102ed57600080fd5b8201836020820111156102ff57600080fd5b8035906020019184600183028401116401000000008311171561032157600080fd5b509092509050610850565b6101bf61097f565b6102b36004803603606081101561034a57600080fd5b506001600160a01b03813581169160208101359091169060400135610985565b6102b36004803603606081101561038057600080fd5b506001600160a01b03813581169160208101359091169060400135610c25565b6102b3600480360360208110156103b657600080fd5b5035610c45565b6101a3600480360360208110156103d357600080fd5b5035610cb0565b61026b600480360360208110156103f057600080fd5b5035610ccd565b6101bf6004803603602081101561040d57600080fd5b5035610d27565b6101bf6004803603602081101561042a57600080fd5b50356001600160a01b0316610d39565b61026b610d9c565b6101d9610dab565b6102b36004803603604081101561046057600080fd5b506001600160a01b0381351690602001351515610e06565b6102b36004803603608081101561048e57600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156104c957600080fd5b8201836020820111156104db57600080fd5b803590602001918460018302840111640100000000831117156104fd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f0b945050505050565b6101d96004803603602081101561055457600080fd5b5035610f5d565b6101bf6004803603604081101561057157600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561059c57600080fd5b8201836020820111156105ae57600080fd5b803590602001918460018302840111640100000000831117156105d057600080fd5b509092509050610ffe565b6101a3600480360360408110156105f157600080fd5b506001600160a01b03813581169160200135166111fc565b6001600160e01b03191660009081526020819052604090205460ff1690565b60015481565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156106b15780601f10610686576101008083540402835291602001916106b1565b820191906000526020600020905b81548152906001019060200180831161069457829003601f168201915b505050505081565b6000818152600560205260408120546001600160a01b031661070c5760405162461bcd60e51b815260040180806020018281038252602c8152602001806118c2602c913960400191505060405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061073382610ccd565b9050806001600160a01b0316836001600160a01b031614156107865760405162461bcd60e51b81526004018080602001828103825260218152602001806118ee6021913960400191505060405180910390fd5b806001600160a01b031661079861122a565b6001600160a01b031614806107b957506107b9816107b461122a565b6111fc565b6107f45760405162461bcd60e51b81526004018080602001828103825260388152602001806118306038913960400191505060405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000838152600560205260409020546001600160a01b03166108a35760405162461bcd60e51b81526004018080602001828103825260308152602001806119666030913960400191505060405180910390fd5b600b546001600160a01b031663c395fcb36108bc61122a565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108f957600080fd5b505afa15801561090d573d6000803e3d6000fd5b505050506040513d602081101561092357600080fd5b50516109605760405162461bcd60e51b81526004018080602001828103825260318152602001806118916031913960400191505060405180910390fd5b600083815260096020526040902061097990838361172a565b50505050565b60045481565b6001600160a01b0382166109e0576040805162461bcd60e51b815260206004820152601660248201527f4552433732315f5a45524f5f544f5f4144445245535300000000000000000000604482015290519081900360640190fd5b60006109eb82610ccd565b9050806001600160a01b0316846001600160a01b031614610a53576040805162461bcd60e51b815260206004820152601560248201527f4552433732315f4f574e45525f4d49534d415443480000000000000000000000604482015290519081900360640190fd5b6000610a5d61122a565b90506000610a6a846106b9565b9050826001600160a01b0316826001600160a01b03161480610a915750610a9183836111fc565b80610aad5750816001600160a01b0316816001600160a01b0316145b610afe576040805162461bcd60e51b815260206004820152601660248201527f4552433732315f494e56414c49445f5350454e44455200000000000000000000604482015290519081900360640190fd5b6001600160a01b03811615610b2a57600084815260066020526040902080546001600160a01b03191690555b600084815260056020908152604080832080546001600160a01b0319166001600160a01b038a811691909117909155891683526007909152902054610b7090600161122e565b6001600160a01b038088166000908152600760205260408082209390935590871681522054610ba0906001611277565b6001600160a01b038616600090815260076020908152604080832093909355868252600a90522054610bd3906001611277565b6000858152600a602052604080822092909255905185916001600160a01b0380891692908a16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050505050565b610c4083838360405180602001604052806000815250610f0b565b505050565b610c4e81610ccd565b6001600160a01b0316610c5f61122a565b6001600160a01b031614610ca45760405162461bcd60e51b815260040180806020018281038252602981526020018061193d6029913960400191505060405180910390fd5b610cad816112d1565b50565b6000908152600560205260409020546001600160a01b0316151590565b6000818152600560205260408120546001600160a01b031680610d215760405162461bcd60e51b81526004018080602001828103825260298152602001806118686029913960400191505060405180910390fd5b92915050565b600a6020526000908152604090205481565b60006001600160a01b038216610d805760405162461bcd60e51b81526004018080602001828103825260298152602001806118686029913960400191505060405180910390fd5b506001600160a01b031660009081526007602052604090205490565b600b546001600160a01b031681565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b15780601f10610686576101008083540402835291602001916106b1565b610e0e61122a565b6001600160a01b0316826001600160a01b03161415610e74576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060086000610e8161122a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ec561122a565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610f16848484610985565b610f228484848461141d565b6109795760405162461bcd60e51b81526004018080602001828103825260328152602001806117fe6032913960400191505060405180910390fd5b60008181526009602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610ff25780601f10610fc757610100808354040283529160200191610ff2565b820191906000526020600020905b815481529060010190602001808311610fd557829003601f168201915b50505050509050919050565b60006001600160a01b03841661105b576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b600b546001600160a01b031663134c1d8361107461122a565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156110b157600080fd5b505afa1580156110c5573d6000803e3d6000fd5b505050506040513d60208110156110db57600080fd5b50516111185760405162461bcd60e51b815260040180806020018281038252602e81526020018061190f602e913960400191505060405180910390fd5b6001805461112591611277565b6001818155600082815260056020908152604080832080546001600160a01b0319166001600160a01b038b169081179091558352600790915290205461116a91611277565b6001600160a01b038616600090815260076020908152604080832093909355838252600990522061119c90858561172a565b506004546111ab906001611277565b6004556000818152600a6020526040808220600190555182916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4949350505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3390565b600061127083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061165a565b9392505050565b600082820183811015611270576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000818152600560205260409020546001600160a01b03168061133b576040805162461bcd60e51b815260206004820152601960248201527f4552433732315f5a45524f5f4f574e45525f4144445245535300000000000000604482015290519081900360640190fd5b600082815260056020908152604080832080546001600160a01b03191690556001600160a01b0384168352600790915290205461137990600161122e565b6001600160a01b0382166000908152600760205260409020556004546113a090600161122e565b60045560008281526009602052604090205460026000196101006001841615020190911604156113e15760008281526009602052604081206113e1916117a8565b60405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000611428846116f1565b61143457506001611652565b600060606001600160a01b038616630a85bd0160e11b61145261122a565b89888860405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156114b95781810151838201526020016114a1565b50505050905090810190601f1680156114e65780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b602083106115635780518252601f199092019160209182019101611544565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146115c5576040519150601f19603f3d011682016040523d82523d6000602084013e6115ca565b606091505b50915091508161161b578051156115e45780518082602001fd5b60405162461bcd60e51b81526004018080602001828103825260328152602001806117fe6032913960400191505060405180910390fd5b600081806020019051602081101561163257600080fd5b50516001600160e01b031916630a85bd0160e11b14935061165292505050565b949350505050565b600081848411156116e95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116ae578181015183820152602001611696565b50505050905090810190601f1680156116db5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611652575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061176b5782800160ff19823516178555611798565b82800160010185558215611798579182015b8281111561179857823582559160200191906001019061177d565b506117a49291506117e8565b5090565b50805460018160011615610100020316600290046000825580601f106117ce5750610cad565b601f016020900490600052602060002090810190610cad91905b5b808211156117a457600081556001016117e956fe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e457068696d657261546f6b656e2e736574546f6b656e5552493a2063616c6c6572206973206e6f7420612061646d696e2e4552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e6572457068696d657261546f6b656e2e6d696e743a2063616c6c6572206973206e6f742077686974656c69737465642e457068696d657261546f6b656e2e6275726e3a2043616c6c6572206d757374206265206f776e65722e457068696d657261546f6b656e2e736574546f6b656e5552493a20746f6b656e20646f6573206e6f742065786973742ea2646970667358221220535021afd0f027f4d04d2aaadc92a24d5fa856cf14fa17bed414678da4eb6b6e64736f6c634300060c00330000000000000000000000007b0becd41d3f248d473d247e24f68986358ac76d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101775760003560e01c80634f558e79116100d857806395d89b411161008c578063c87b56dd11610066578063c87b56dd1461053e578063d0def5211461055b578063e985e9c5146105db57610177565b806395d89b4114610442578063a22cb4651461044a578063b88d4fde1461047857610177565b806364126d98116100bd57806364126d98146103f757806370a0823114610414578063748365ef1461043a57610177565b80634f558e79146103bd5780636352211e146103da57610177565b8063162094c41161012f57806323b872dd1161011457806323b872dd1461033457806342842e0e1461036a57806342966c68146103a057610177565b8063162094c4146102b557806318160ddd1461032c57610177565b806306fdde031161016057806306fdde03146101d1578063081812fc1461024e578063095ea7b31461028757610177565b806301ffc9a71461017c57806302831651146101b7575b600080fd5b6101a36004803603602081101561019257600080fd5b50356001600160e01b031916610609565b604080519115158252519081900360200190f35b6101bf610628565b60408051918252519081900360200190f35b6101d961062e565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102135781810151838201526020016101fb565b50505050905090810190601f1680156102405780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61026b6004803603602081101561026457600080fd5b50356106b9565b604080516001600160a01b039092168252519081900360200190f35b6102b36004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610728565b005b6102b3600480360360408110156102cb57600080fd5b813591908101906040810160208201356401000000008111156102ed57600080fd5b8201836020820111156102ff57600080fd5b8035906020019184600183028401116401000000008311171561032157600080fd5b509092509050610850565b6101bf61097f565b6102b36004803603606081101561034a57600080fd5b506001600160a01b03813581169160208101359091169060400135610985565b6102b36004803603606081101561038057600080fd5b506001600160a01b03813581169160208101359091169060400135610c25565b6102b3600480360360208110156103b657600080fd5b5035610c45565b6101a3600480360360208110156103d357600080fd5b5035610cb0565b61026b600480360360208110156103f057600080fd5b5035610ccd565b6101bf6004803603602081101561040d57600080fd5b5035610d27565b6101bf6004803603602081101561042a57600080fd5b50356001600160a01b0316610d39565b61026b610d9c565b6101d9610dab565b6102b36004803603604081101561046057600080fd5b506001600160a01b0381351690602001351515610e06565b6102b36004803603608081101561048e57600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156104c957600080fd5b8201836020820111156104db57600080fd5b803590602001918460018302840111640100000000831117156104fd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610f0b945050505050565b6101d96004803603602081101561055457600080fd5b5035610f5d565b6101bf6004803603604081101561057157600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561059c57600080fd5b8201836020820111156105ae57600080fd5b803590602001918460018302840111640100000000831117156105d057600080fd5b509092509050610ffe565b6101a3600480360360408110156105f157600080fd5b506001600160a01b03813581169160200135166111fc565b6001600160e01b03191660009081526020819052604090205460ff1690565b60015481565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156106b15780601f10610686576101008083540402835291602001916106b1565b820191906000526020600020905b81548152906001019060200180831161069457829003601f168201915b505050505081565b6000818152600560205260408120546001600160a01b031661070c5760405162461bcd60e51b815260040180806020018281038252602c8152602001806118c2602c913960400191505060405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061073382610ccd565b9050806001600160a01b0316836001600160a01b031614156107865760405162461bcd60e51b81526004018080602001828103825260218152602001806118ee6021913960400191505060405180910390fd5b806001600160a01b031661079861122a565b6001600160a01b031614806107b957506107b9816107b461122a565b6111fc565b6107f45760405162461bcd60e51b81526004018080602001828103825260388152602001806118306038913960400191505060405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000838152600560205260409020546001600160a01b03166108a35760405162461bcd60e51b81526004018080602001828103825260308152602001806119666030913960400191505060405180910390fd5b600b546001600160a01b031663c395fcb36108bc61122a565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108f957600080fd5b505afa15801561090d573d6000803e3d6000fd5b505050506040513d602081101561092357600080fd5b50516109605760405162461bcd60e51b81526004018080602001828103825260318152602001806118916031913960400191505060405180910390fd5b600083815260096020526040902061097990838361172a565b50505050565b60045481565b6001600160a01b0382166109e0576040805162461bcd60e51b815260206004820152601660248201527f4552433732315f5a45524f5f544f5f4144445245535300000000000000000000604482015290519081900360640190fd5b60006109eb82610ccd565b9050806001600160a01b0316846001600160a01b031614610a53576040805162461bcd60e51b815260206004820152601560248201527f4552433732315f4f574e45525f4d49534d415443480000000000000000000000604482015290519081900360640190fd5b6000610a5d61122a565b90506000610a6a846106b9565b9050826001600160a01b0316826001600160a01b03161480610a915750610a9183836111fc565b80610aad5750816001600160a01b0316816001600160a01b0316145b610afe576040805162461bcd60e51b815260206004820152601660248201527f4552433732315f494e56414c49445f5350454e44455200000000000000000000604482015290519081900360640190fd5b6001600160a01b03811615610b2a57600084815260066020526040902080546001600160a01b03191690555b600084815260056020908152604080832080546001600160a01b0319166001600160a01b038a811691909117909155891683526007909152902054610b7090600161122e565b6001600160a01b038088166000908152600760205260408082209390935590871681522054610ba0906001611277565b6001600160a01b038616600090815260076020908152604080832093909355868252600a90522054610bd3906001611277565b6000858152600a602052604080822092909255905185916001600160a01b0380891692908a16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050505050565b610c4083838360405180602001604052806000815250610f0b565b505050565b610c4e81610ccd565b6001600160a01b0316610c5f61122a565b6001600160a01b031614610ca45760405162461bcd60e51b815260040180806020018281038252602981526020018061193d6029913960400191505060405180910390fd5b610cad816112d1565b50565b6000908152600560205260409020546001600160a01b0316151590565b6000818152600560205260408120546001600160a01b031680610d215760405162461bcd60e51b81526004018080602001828103825260298152602001806118686029913960400191505060405180910390fd5b92915050565b600a6020526000908152604090205481565b60006001600160a01b038216610d805760405162461bcd60e51b81526004018080602001828103825260298152602001806118686029913960400191505060405180910390fd5b506001600160a01b031660009081526007602052604090205490565b600b546001600160a01b031681565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156106b15780601f10610686576101008083540402835291602001916106b1565b610e0e61122a565b6001600160a01b0316826001600160a01b03161415610e74576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060086000610e8161122a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ec561122a565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b610f16848484610985565b610f228484848461141d565b6109795760405162461bcd60e51b81526004018080602001828103825260328152602001806117fe6032913960400191505060405180910390fd5b60008181526009602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015610ff25780601f10610fc757610100808354040283529160200191610ff2565b820191906000526020600020905b815481529060010190602001808311610fd557829003601f168201915b50505050509050919050565b60006001600160a01b03841661105b576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b600b546001600160a01b031663134c1d8361107461122a565b6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156110b157600080fd5b505afa1580156110c5573d6000803e3d6000fd5b505050506040513d60208110156110db57600080fd5b50516111185760405162461bcd60e51b815260040180806020018281038252602e81526020018061190f602e913960400191505060405180910390fd5b6001805461112591611277565b6001818155600082815260056020908152604080832080546001600160a01b0319166001600160a01b038b169081179091558352600790915290205461116a91611277565b6001600160a01b038616600090815260076020908152604080832093909355838252600990522061119c90858561172a565b506004546111ab906001611277565b6004556000818152600a6020526040808220600190555182916001600160a01b038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4949350505050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3390565b600061127083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061165a565b9392505050565b600082820183811015611270576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000818152600560205260409020546001600160a01b03168061133b576040805162461bcd60e51b815260206004820152601960248201527f4552433732315f5a45524f5f4f574e45525f4144445245535300000000000000604482015290519081900360640190fd5b600082815260056020908152604080832080546001600160a01b03191690556001600160a01b0384168352600790915290205461137990600161122e565b6001600160a01b0382166000908152600760205260409020556004546113a090600161122e565b60045560008281526009602052604090205460026000196101006001841615020190911604156113e15760008281526009602052604081206113e1916117a8565b60405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000611428846116f1565b61143457506001611652565b600060606001600160a01b038616630a85bd0160e11b61145261122a565b89888860405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156114b95781810151838201526020016114a1565b50505050905090810190601f1680156114e65780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b602083106115635780518252601f199092019160209182019101611544565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146115c5576040519150601f19603f3d011682016040523d82523d6000602084013e6115ca565b606091505b50915091508161161b578051156115e45780518082602001fd5b60405162461bcd60e51b81526004018080602001828103825260328152602001806117fe6032913960400191505060405180910390fd5b600081806020019051602081101561163257600080fd5b50516001600160e01b031916630a85bd0160e11b14935061165292505050565b949350505050565b600081848411156116e95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116ae578181015183820152602001611696565b50505050905090810190601f1680156116db5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611652575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061176b5782800160ff19823516178555611798565b82800160010185558215611798579182015b8281111561179857823582559160200191906001019061177d565b506117a49291506117e8565b5090565b50805460018160011615610100020316600290046000825580601f106117ce5750610cad565b601f016020900490600052602060002090810190610cad91905b5b808211156117a457600081556001016117e956fe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e457068696d657261546f6b656e2e736574546f6b656e5552493a2063616c6c6572206973206e6f7420612061646d696e2e4552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e6572457068696d657261546f6b656e2e6d696e743a2063616c6c6572206973206e6f742077686974656c69737465642e457068696d657261546f6b656e2e6275726e3a2043616c6c6572206d757374206265206f776e65722e457068696d657261546f6b656e2e736574546f6b656e5552493a20746f6b656e20646f6573206e6f742065786973742ea2646970667358221220535021afd0f027f4d04d2aaadc92a24d5fa856cf14fa17bed414678da4eb6b6e64736f6c634300060c0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000007b0becd41d3f248d473d247e24f68986358ac76d

-----Decoded View---------------
Arg [0] : _accessControls (address): 0x7b0beCD41D3f248D473d247e24F68986358Ac76D

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007b0becd41d3f248d473d247e24f68986358ac76d


Deployed Bytecode Sourcemap

35352:13823:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7241:144;;;;;;;;;;;;;;;;-1:-1:-1;7241:144:0;-1:-1:-1;;;;;;7241:144:0;;:::i;:::-;;;;;;;;;;;;;;;;;;35820:27;;;:::i;:::-;;;;;;;;;;;;;;;;35876:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48435:246;;;;;;;;;;;;;;;;-1:-1:-1;48435:246:0;;:::i;:::-;;;;-1:-1:-1;;;;;48435:246:0;;;;;;;;;;;;;;43954:549;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;43954:549:0;;;;;;;;:::i;:::-;;38825:331;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38825:331:0;;-1:-1:-1;38825:331:0;-1:-1:-1;38825:331:0;:::i;35974:26::-;;;:::i;46504:1091::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46504:1091:0;;;;;;;;;;;;;;;;;:::i;42156:149::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;42156:149:0;;;;;;;;;;;;;;;;;:::i;41031:197::-;;;;;;;;;;;;;;;;-1:-1:-1;41031:197:0;;:::i;40680:119::-;;;;;;;;;;;;;;;;-1:-1:-1;40680:119:0;;:::i;47864:294::-;;;;;;;;;;;;;;;;-1:-1:-1;47864:294:0;;:::i;36527:53::-;;;;;;;;;;;;;;;;-1:-1:-1;36527:53:0;;:::i;45597:265::-;;;;;;;;;;;;;;;;-1:-1:-1;45597:265:0;-1:-1:-1;;;;;45597:265:0;;:::i;36589:44::-;;;:::i;35937:28::-;;;:::i;44917:360::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;44917:360:0;;;;;;;;;;:::i;43214:344::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;43214:344:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43214:344:0;;-1:-1:-1;43214:344:0;;-1:-1:-1;;;;;43214:344:0:i;40355:119::-;;;;;;;;;;;;;;;;-1:-1:-1;40355:119:0;;:::i;39403:769::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39403:769:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39403:769:0;;-1:-1:-1;39403:769:0;-1:-1:-1;39403:769:0;:::i;48988:184::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;48988:184:0;;;;;;;;;;:::i;7241:144::-;-1:-1:-1;;;;;;7344:33:0;7320:4;7344:33;;;;;;;;;;;;;;7241:144::o;35820:27::-;;;;:::o;35876:31::-;;;;;;;;;;;;;;-1:-1:-1;;35876:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;48435:246::-;48524:7;48557:16;;;:6;:16;;;;;;-1:-1:-1;;;;;48557:16:0;48549:87;;;;-1:-1:-1;;;48549:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48654:19:0;;;;:9;:19;;;;;;-1:-1:-1;;;;;48654:19:0;;48435:246::o;43954:549::-;44052:13;44068:17;44076:8;44068:7;:17::i;:::-;44052:33;;44117:5;-1:-1:-1;;;;;44104:18:0;:9;-1:-1:-1;;;;;44104:18:0;;;44096:64;;;;-1:-1:-1;;;44096:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44219:5;-1:-1:-1;;;;;44203:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;44203:21:0;;:62;;;;44228:37;44245:5;44252:12;:10;:12::i;:::-;44228:16;:37::i;:::-;44181:168;;;;-1:-1:-1;;;44181:168:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44362:19;;;;:9;:19;;;;;;:31;;-1:-1:-1;;;;;;44362:31:0;-1:-1:-1;;;;;44362:31:0;;;;;;;;;44409:86;;44362:19;;44409:86;;;;;;;43954:549;;;:::o;38825:331::-;38942:1;38914:16;;;:6;:16;;;;;;-1:-1:-1;;;;;38914:16:0;38906:91;;;;-1:-1:-1;;;38906:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39016:14;;-1:-1:-1;;;;;39016:14:0;:27;39044:12;:10;:12::i;:::-;39016:41;;;;;;;;;;;;;-1:-1:-1;;;;;39016:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39016:41:0;39008:103;;;;-1:-1:-1;;;39008:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39122:19;;;;:9;:19;;;;;:26;;39144:4;;39122:26;:::i;:::-;;38825:331;;;:::o;35974:26::-;;;;:::o;46504:1091::-;-1:-1:-1;;;;;46670:17:0;;46648:89;;;;;-1:-1:-1;;;46648:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;46750:13;46766:17;46774:8;46766:7;:17::i;:::-;46750:33;;46825:5;-1:-1:-1;;;;;46816:14:0;:5;-1:-1:-1;;;;;46816:14:0;;46794:85;;;;;-1:-1:-1;;;46794:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;46892:15;46910:12;:10;:12::i;:::-;46892:30;;46933:23;46959:21;46971:8;46959:11;:21::i;:::-;46933:47;;47024:5;-1:-1:-1;;;;;47013:16:0;:7;-1:-1:-1;;;;;47013:16:0;;:65;;;;47046:32;47063:5;47070:7;47046:16;:32::i;:::-;47013:108;;;;47114:7;-1:-1:-1;;;;;47095:26:0;:15;-1:-1:-1;;;;;47095:26:0;;47013:108;46991:180;;;;;-1:-1:-1;;;46991:180:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47188:29:0;;;47184:94;;47264:1;47234:19;;;:9;:19;;;;;:32;;-1:-1:-1;;;;;;47234:32:0;;;47184:94;47290:16;;;;:6;:16;;;;;;;;:22;;-1:-1:-1;;;;;;47290:22:0;-1:-1:-1;;;;;47290:22:0;;;;;;;;;;47341:15;;;;:8;:15;;;;;;:22;;-1:-1:-1;47341:19:0;:22::i;:::-;-1:-1:-1;;;;;47323:15:0;;;;;;;:8;:15;;;;;;:40;;;;47390:13;;;;;;;:20;;47408:1;47390:17;:20::i;:::-;-1:-1:-1;;;;;47374:13:0;;;;;;:8;:13;;;;;;;;:36;;;;47454:28;;;:18;:28;;;;:35;;47487:1;47454:32;:35::i;:::-;47423:28;;;;:18;:28;;;;;;:66;;;;47507:80;;47442:8;;-1:-1:-1;;;;;47507:80:0;;;;;;;;;;;46504:1091;;;;;;:::o;42156:149::-;42255:42;42272:5;42279:3;42284:8;42255:42;;;;;;;;;;;;:16;:42::i;:::-;42156:149;;;:::o;41031:197::-;41107:17;41115:8;41107:7;:17::i;:::-;-1:-1:-1;;;;;41091:33:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;41091:33:0;;41083:111;;;;-1:-1:-1;;;41083:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41205:15;41211:8;41205:5;:15::i;:::-;41031:197;:::o;40680:119::-;40737:4;40761:16;;;:6;:16;;;;;;-1:-1:-1;;;;;40761:16:0;:30;;;40680:119::o;47864:294::-;47949:7;47990:16;;;:6;:16;;;;;;-1:-1:-1;;;;;47990:16:0;48039:19;48017:110;;;;-1:-1:-1;;;48017:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48145:5;47864:294;-1:-1:-1;;47864:294:0:o;36527:53::-;;;;;;;;;;;;;:::o;45597:265::-;45684:7;-1:-1:-1;;;;;45731:20:0;;45709:111;;;;-1:-1:-1;;;45709:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;45838:16:0;;;;;:8;:16;;;;;;;45597:265::o;36589:44::-;;;-1:-1:-1;;;;;36589:44:0;;:::o;35937:28::-;;;;;;;;;;;;;;;-1:-1:-1;;35937:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44917:360;45044:12;:10;:12::i;:::-;-1:-1:-1;;;;;45031:25:0;:9;-1:-1:-1;;;;;45031:25:0;;;45023:63;;;;;-1:-1:-1;;;45023:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;45144:9;45099:17;:31;45117:12;:10;:12::i;:::-;-1:-1:-1;;;;;45099:31:0;;;;;;;;;;;;;;;;;-1:-1:-1;45099:31:0;;;:42;;;;;;;;;;;;:54;;-1:-1:-1;;45099:54:0;;;;;;;;;;;45198:12;:10;:12::i;:::-;-1:-1:-1;;;;;45169:100:0;;45249:9;45169:100;;;;;;;;;;;;;;;;;;;;44917:360;;:::o;43214:344::-;43391:34;43404:5;43411:3;43416:8;43391:12;:34::i;:::-;43444:51;43467:5;43474:3;43479:8;43489:5;43444:22;:51::i;:::-;43436:114;;;;-1:-1:-1;;;43436:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40355:119;40447:19;;;;:9;:19;;;;;;;;;40440:26;;;;;;-1:-1:-1;;40440:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40414:13;;40440:26;;;40447:19;40440:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40355:119;;;:::o;39403:769::-;39495:7;-1:-1:-1;;;;;39523:17:0;;39515:62;;;;;-1:-1:-1;;;39515:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39596:14;;-1:-1:-1;;;;;39596:14:0;:39;39636:12;:10;:12::i;:::-;39596:53;;;;;;;;;;;;;-1:-1:-1;;;;;39596:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39596:53:0;39588:112;;;;-1:-1:-1;;;39588:112:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39745:1;39728:12;;:19;;:16;:19::i;:::-;39713:12;:34;;;39758:15;39818;;;:6;:15;;;;;;;;:21;;-1:-1:-1;;;;;;39818:21:0;-1:-1:-1;;;;;39818:21:0;;;;;;;;39866:13;;:8;:13;;;;;;:20;;:17;:20::i;:::-;-1:-1:-1;;;;;39850:13:0;;;;;;:8;:13;;;;;;;;:36;;;;39920:18;;;:9;:18;;;:25;;39941:4;;39920:25;:::i;:::-;-1:-1:-1;39970:11:0;;:18;;39986:1;39970:15;:18::i;:::-;39956:11;:32;40001:27;;;;:18;:27;;;;;;40031:1;40001:31;;40103:34;40020:7;;-1:-1:-1;;;;;40103:34:0;;;;;40001:27;;40103:34;40157:7;39403:769;-1:-1:-1;;;;39403:769:0:o;48988:184::-;-1:-1:-1;;;;;49128:25:0;;;49099:4;49128:25;;;:17;:25;;;;;;;;:36;;;;;;;;;;;;;;;48988:184::o;8804:106::-;8892:10;8804:106;:::o;1404:136::-;1462:7;1489:43;1493:1;1496;1489:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1482:50;1404:136;-1:-1:-1;;;1404:136:0:o;948:181::-;1006:7;1038:5;;;1062:6;;;;1054:46;;;;;-1:-1:-1;;;1054:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;41236:585;41299:13;41315:16;;;:6;:16;;;;;;-1:-1:-1;;;;;41315:16:0;41364:19;41342:94;;;;;-1:-1:-1;;;41342:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;41476:1;41449:16;;;:6;:16;;;;;;;;:29;;-1:-1:-1;;;;;;41449:29:0;;;-1:-1:-1;;;;;41507:15:0;;;;:8;:15;;;;;;:22;;41449:29;41507:19;:22::i;:::-;-1:-1:-1;;;;;41489:15:0;;;;;;:8;:15;;;;;:40;41554:11;;:18;;41570:1;41554:15;:18::i;:::-;41540:11;:32;41622:19;;;;:9;:19;;;;;41616:33;;-1:-1:-1;;41616:33:0;;;;;;;;;;;:38;41612:97;;41678:19;;;;:9;:19;;;;;41671:26;;;:::i;:::-;41726:87;;41794:8;;41777:1;;-1:-1:-1;;;;;41726:87:0;;;;;41777:1;;41726:87;41236:585;;:::o;37499:1096::-;37616:4;37643:14;37654:2;37643:10;:14::i;:::-;37638:59;;-1:-1:-1;37681:4:0;37674:11;;37638:59;37768:12;37782:23;-1:-1:-1;;;;;37809:7:0;;-1:-1:-1;;;37922:12:0;:10;:12::i;:::-;37953:4;37976:7;38002:5;37817:205;;;;;;-1:-1:-1;;;;;37817:205:0;;;;;;-1:-1:-1;;;;;37817:205:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37817:205:0;;;-1:-1:-1;;37817:205:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;37817:205:0;;;;;;;;;37809:214;;;37817:205;;37809:214;;-1:-1:-1;37809:214:0;;-1:-1:-1;37817:205:0;-1:-1:-1;37809:214:0;-1:-1:-1;37809:214:0;;-1:-1:-1;37809:214:0;;-1:-1:-1;37817:205:0;37809:214;;;;;;;;;;-1:-1:-1;;37809:214:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37767:256;;;;38039:7;38034:554;;38067:17;;:21;38063:384;;38235:10;38229:17;38296:15;38283:10;38279:2;38275:19;38268:44;38183:148;38371:60;;-1:-1:-1;;;38371:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38034:554;38479:13;38506:10;38495:32;;;;;;;;;;;;;;;-1:-1:-1;38495:32:0;-1:-1:-1;;;;;;38550:25:0;-1:-1:-1;;;38550:25:0;;-1:-1:-1;38542:34:0;;-1:-1:-1;;;38542:34:0;37499:1096;;;;;;;:::o;1835:192::-;1921:7;1957:12;1949:6;;;;1941:29;;;;-1:-1:-1;;;1941:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1993:5:0;;;1835:192::o;36874:617::-;36934:4;37401:20;;37245:66;37440:23;;;;;;:42;;-1:-1:-1;;37467:15:0;;;37432:51;-1:-1:-1;;36874:617:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://535021afd0f027f4d04d2aaadc92a24d5fa856cf14fa17bed414678da4eb6b6e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.