ETH Price: $2,910.30 (-3.92%)
Gas: 1 Gwei

Token

Art Bridge (BEAMS)
 

Overview

Max Total Supply

241 BEAMS

Holders

48

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
10 BEAMS
0x7c361828849293684ddf7212fd1d2cb5f0aade70
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
ArtBridge

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : ArtBridge.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./BridgeContext.sol";

///
///
///  █████╗ ██████╗ ████████╗
/// ██╔══██╗██╔══██╗╚══██╔══╝
/// ███████║██████╔╝   ██║
/// ██╔══██║██╔══██╗   ██║
/// ██║  ██║██║  ██║   ██║
/// ╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝
///
/// ██████╗ ██████╗ ██╗██████╗  ██████╗ ███████╗
/// ██╔══██╗██╔══██╗██║██╔══██╗██╔════╝ ██╔════╝
/// ██████╔╝██████╔╝██║██║  ██║██║  ███╗█████╗
/// ██╔══██╗██╔══██╗██║██║  ██║██║   ██║██╔══╝
/// ██████╔╝██║  ██║██║██████╔╝╚██████╔╝███████╗
/// ╚═════╝ ╚═╝  ╚═╝╚═╝╚═════╝  ╚═════╝ ╚══════╝
///
///
/// @title Art Bridge NFT Platform Token
/// @author artbridge.eth
/// @notice ArtBridge controls all project metadata and financial parameters
contract ArtBridge is ERC721Enumerable, ERC721Burnable, BridgeContext {
  using Strings for uint256;

  event Mint(
    address indexed _to,
    uint256 indexed _id,
    uint256 indexed _tokenId
  );
  event RegisterProject(uint256 indexed _id);

  mapping(uint256 => BridgeBeams.Project) public projects;
  mapping(address => bool) public minters;
  mapping(uint256 => address) public projectToArtistAddress;
  mapping(uint256 => uint256) public projectToTokenPrice;
  mapping(uint256 => string) public projectToBaseURI;

  uint256 public constant MAX_PROJECT_TOKENS = 1_000_000;
  uint256 public nextProjectId = 0;
  string public bridgeAPI;

  /// @param _id target bridge project id
  modifier onlyUnreleased(uint256 _id) {
    require(_id < nextProjectId, "invalid _id");
    require(!BridgeBeams.isReleased(projects[_id]), "released");
    _;
  }

  modifier onlyMinter() {
    require(minters[msg.sender], "!minter");
    _;
  }

  constructor(
    string memory _name,
    string memory _symbol,
    string memory _api
  ) ERC721(_name, _symbol) {
    bridgeAPI = _api;
  }

  /// @param _minter address to add as minter
  function addMinter(address _minter) external onlyOwner {
    minters[_minter] = true;
  }

  /// @param _minter address to remove as minter
  function removeMinter(address _minter) external onlyOwner {
    minters[_minter] = false;
  }

  /// @param _name project name
  /// @param _artist artist payment address
  /// @param _maxSupply maximum mintable tokens
  function registerProject(
    string memory _name,
    address _artist,
    uint256 _maxSupply
  ) external onlyOwner {
    require(_maxSupply > 0, "max supply must be at least one");
    require(_maxSupply <= MAX_PROJECT_TOKENS, "exceed max project tokens");
    uint256 projectId = nextProjectId;
    BridgeBeams.Project memory project = BridgeBeams.Project({
      id: projectId,
      name: _name,
      artist: "",
      description: "",
      website: "",
      supply: 0,
      maxSupply: _maxSupply,
      startBlock: 0
    });
    projects[projectId] = project;
    projectToArtistAddress[projectId] = _artist;
    nextProjectId = nextProjectId + 1;
    emit RegisterProject(projectId);
  }

  /// @param _id target bridge project id
  /// @param _artist artist name
  /// @param _description project description
  /// @param _website artist personal website url
  function setArtistData(
    uint256 _id,
    string memory _artist,
    string memory _description,
    string memory _website
  ) external onlyUnreleased(_id) onlyOwner {
    require(bytes(_artist).length > 0, "empty artist");
    require(bytes(_description).length > 0, "empty description");
    BridgeBeams.Project memory project = projects[_id];
    project.artist = _artist;
    project.description = _description;
    project.website = _website;
    projects[_id] = project;
  }

  /// @param _id target bridge project id
  /// @param _price token price in wei
  function setProjectTokenPrice(uint256 _id, uint256 _price)
    external
    onlyUnreleased(_id)
    onlyOwner
  {
    projectToTokenPrice[_id] = _price;
  }

  /// @param _id target bridge project id
  /// @param _name project name
  function setProjectName(uint256 _id, string memory _name)
    external
    onlyUnreleased(_id)
    onlyOwner
  {
    require(bytes(_name).length > 0, "empty name");
    projects[_id].name = _name;
  }

  /// @param _id target bridge project id
  /// @param _artist artist name
  function setArtist(uint256 _id, string memory _artist)
    external
    onlyUnreleased(_id)
    onlyOwner
  {
    require(bytes(_artist).length > 0, "empty artist");
    projects[_id].artist = _artist;
  }

  /// @param _id target bridge project id
  /// @param _description project description
  function setDescription(uint256 _id, string memory _description)
    external
    onlyUnreleased(_id)
    onlyOwner
  {
    require(bytes(_description).length > 0, "empty description");
    projects[_id].description = _description;
  }

  /// @param _id target bridge project id
  /// @param _website artist personal website url
  function setWebsite(uint256 _id, string memory _website)
    external
    onlyUnreleased(_id)
    onlyOwner
  {
    projects[_id].website = _website;
  }

  /// @param _id target bridge project id
  /// @param _startBlock network block project activates at
  function setStartBlock(uint256 _id, uint256 _startBlock)
    external
    onlyUnreleased(_id)
    onlyOwner
  {
    require(_startBlock > block.number, "block must be in the future");
    projects[_id].startBlock = _startBlock;
  }

  /// @notice sets the start block to the current block, activating the project
  /// @param _id target bridge project id
  function setActive(uint256 _id) external onlyUnreleased(_id) onlyOwner {
    projects[_id].startBlock = block.number;
  }

  /// @notice sets the max supply to current supply, making the project not mintable
  /// @param _id target bridge project id
  function setComplete(uint256 _id) external onlyOwner {
    require(_id < nextProjectId, "invalid _id");
    require(BridgeBeams.isMintable(projects[_id]), "!mintable");
    projects[_id].maxSupply = projects[_id].supply;
  }

  /// @param _id target bridge project id
  /// @param _maxSupply maximum mintable tokens
  function setMaxSupply(uint256 _id, uint256 _maxSupply)
    external
    onlyUnreleased(_id)
    onlyOwner
  {
    require(_maxSupply > 0, "max supply must be at least one");
    require(_maxSupply <= MAX_PROJECT_TOKENS, "exceed max project tokens");
    projects[_id].maxSupply = _maxSupply;
  }

  /// @param _id target bridge project id
  /// @param _baseURI custom token base URI
  function setTokenURI(uint256 _id, string memory _baseURI) external onlyOwner {
    projectToBaseURI[_id] = _baseURI;
  }

  /// @param _api art bridge external API url
  function setBridgeAPI(string memory _api) external onlyOwner {
    require(bytes(_api).length > 0, "empty api");
    bridgeAPI = _api;
  }

  /// @param _id target bridge project id
  /// @param _amount number of tokens to mint
  /// @param _to address to mint tokens for
  function mint(
    uint256 _id,
    uint256 _amount,
    address _to
  ) external onlyMinter {
    require(BridgeBeams.isMintable(projects[_id]), "!mintable");
    _mint(_id, _amount, _to);
  }

  /// @param _id target bridge project id
  /// @param _amount number of tokens to mint
  /// @param _to address to mint tokens for
  function reserve(
    uint256 _id,
    uint256 _amount,
    address _to
  ) external onlyMinter {
    require(BridgeBeams.isInitialized(projects[_id]), "!initialized");
    _mint(_id, _amount, _to);
  }

  /// @param _id target bridge project id
  /// @param _amount number of tokens to mint
  /// @param _to address to mint tokens for
  function _mint(
    uint256 _id,
    uint256 _amount,
    address _to
  ) private {
    BridgeBeams.Project memory project = projects[_id];
    require(
      project.supply + _amount <= project.maxSupply,
      "not enough tokens to mint"
    );
    uint256 baseTokenId = _id * MAX_PROJECT_TOKENS + project.supply;
    for (uint256 i = 0; i < _amount; i++) {
      _mint(_to, baseTokenId + i);
      emit Mint(_to, _id, baseTokenId + i);
    }
    projects[_id].supply += _amount;
  }

  /// @param _id target bridge project id
  /// @return token associated project id
  function tokenToProject(uint256 _id) public view returns (uint256) {
    require(_exists(_id), "invalid _id");
    return _id / MAX_PROJECT_TOKENS;
  }

  /// @param _id target bridge project id
  /// @return all minted project token ids
  function projectToTokens(uint256 _id) public view returns (uint256[] memory) {
    require(_id < nextProjectId, "invalid _id");
    uint256[] memory tokenIds = new uint256[](projects[_id].supply);
    uint256 baseTokenId = _id * MAX_PROJECT_TOKENS;
    for (uint256 i = 0; i < tokenIds.length; i++) {
      tokenIds[i] = baseTokenId + i;
    }
    return tokenIds;
  }

  /// @param _id target bridge project id
  /// @return project state struct derived from given input
  function projectState(uint256 _id)
    external
    view
    returns (BridgeBeams.ProjectState memory)
  {
    require(_id < nextProjectId, "invalid _id");
    return BridgeBeams.projectState(projects[_id]);
  }

  /// @param _tokenId target bridge project token id
  /// @return URI containing token metadata
  function tokenURI(uint256 _tokenId)
    public
    view
    override
    returns (string memory)
  {
    require(_exists(_tokenId), "!token");
    string memory baseURI = projectToBaseURI[tokenToProject(_tokenId)];
    string memory tokenBaseURI = bytes(baseURI).length == 0
      ? bridgeAPI
      : baseURI;
    return string(abi.encodePacked(tokenBaseURI, _tokenId.toString()));
  }

  /// @param _owner token owner address
  /// @return array of token ids belonging to the requested owner
  function tokensOfOwner(address _owner)
    external
    view
    returns (uint256[] memory)
  {
    uint256[] memory tokenIds = new uint256[](balanceOf(_owner));
    for (uint256 i = 0; i < tokenIds.length; i++) {
      tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
    }
    return tokenIds;
  }

  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(ERC721, ERC721Enumerable)
    returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
  ) internal virtual override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }
}

File 2 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 3 of 18 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../utils/Context.sol";

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 4 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 5 of 18 : BridgeContext.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

import {BridgeBeams} from "./libraries/BridgeBeams.sol";
import "./Extractable.sol";

contract BridgeContext is Extractable {
  using BridgeBeams for BridgeBeams.Project;
  using BridgeBeams for BridgeBeams.ProjectState;
  using BridgeBeams for BridgeBeams.ReserveParameters;
}

File 6 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 7 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 8 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 9 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 11 of 18 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 18 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 13 of 18 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 14 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 15 of 18 : BridgeBeams.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

/// BridgeBeams.sol
/// @title BEAMS token helper functions
/// @author artbridge.eth
/// @dev Library assists requirement checks across contracts
library BridgeBeams {
  struct Project {
    uint256 id;
    string name;
    string artist;
    string description;
    string website;
    uint256 supply;
    uint256 maxSupply;
    uint256 startBlock;
  }

  struct ProjectState {
    bool initialized;
    bool mintable;
    bool released;
    uint256 remaining;
  }

  struct ReserveParameters {
    uint256 maxMintPerInvocation;
    uint256 reservedMints;
    bytes32 reserveRoot;
  }

  /// @param _project Target project struct
  /// @return Project state struct derived from given input
  function projectState(Project memory _project)
    external
    view
    returns (BridgeBeams.ProjectState memory)
  {
    return
      ProjectState({
        initialized: isInitialized(_project),
        mintable: isMintable(_project),
        released: isReleased(_project),
        remaining: _project.maxSupply - _project.supply
      });
  }

  /// @param _project Target project struct
  /// @return True if project has required initial parameters, false if not
  function isInitialized(Project memory _project) internal pure returns (bool) {
    if (
      bytes(_project.artist).length == 0 ||
      bytes(_project.description).length == 0
    ) {
      return false;
    }
    return true;
  }

  /// @param _project Target project struct
  /// @return True if project is past mint start block, false if not
  function isReleased(Project memory _project) internal view returns (bool) {
    return _project.startBlock > 0 && _project.startBlock <= block.number;
  }

  /// @param _project Target project struct
  /// @return True if project is available for public mint, false if not
  function isMintable(Project memory _project) internal view returns (bool) {
    if (!isInitialized(_project)) {
      return false;
    }
    return isReleased(_project) && _project.supply < _project.maxSupply;
  }
}

File 16 of 18 : Extractable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Extractable is Ownable {
  function withdraw() external payable onlyOwner {
    require(payable(owner()).send(address(this).balance), "!transfer");
  }

  function extract(address _token) external onlyOwner {
    IERC20 token = IERC20(_token);
    token.transfer(owner(), token.balanceOf(address(this)));
  }
}

File 17 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 18 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {
    "contracts/libraries/BridgeBeams.sol": {
      "BridgeBeams": "0x7955a74bff9899b3095c0e07c209fbdedd7f2ed5"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_api","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"RegisterProject","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":"MAX_PROJECT_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridgeAPI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"extract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextProjectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"projectState","outputs":[{"components":[{"internalType":"bool","name":"initialized","type":"bool"},{"internalType":"bool","name":"mintable","type":"bool"},{"internalType":"bool","name":"released","type":"bool"},{"internalType":"uint256","name":"remaining","type":"uint256"}],"internalType":"struct BridgeBeams.ProjectState","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectToArtistAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectToBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectToTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"projectToTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projects","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"artist","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"website","type":"string"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"startBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_artist","type":"address"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"registerProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setActive","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":"_id","type":"uint256"},{"internalType":"string","name":"_artist","type":"string"}],"name":"setArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_artist","type":"string"},{"internalType":"string","name":"_description","type":"string"},{"internalType":"string","name":"_website","type":"string"}],"name":"setArtistData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_api","type":"string"}],"name":"setBridgeAPI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setComplete","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"setProjectName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setProjectTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"setStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_website","type":"string"}],"name":"setWebsite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenToProject","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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

608060405260006010553480156200001657600080fd5b506040516200507738038062005077833981016040819052620000399162000253565b82518390839062000052906000906020850190620000fa565b50805162000068906001906020840190620000fa565b505050620000856200007f620000a460201b60201c565b620000a8565b80516200009a906011906020840190620000fa565b5050505062000333565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200010890620002e0565b90600052602060002090601f0160209004810192826200012c576000855562000177565b82601f106200014757805160ff191683800117855562000177565b8280016001018555821562000177579182015b82811115620001775782518255916020019190600101906200015a565b506200018592915062000189565b5090565b5b808211156200018557600081556001016200018a565b600082601f830112620001b1578081fd5b81516001600160401b0380821115620001ce57620001ce6200031d565b604051601f8301601f19908116603f01168101908282118183101715620001f957620001f96200031d565b8160405283815260209250868385880101111562000215578485fd5b8491505b8382101562000238578582018301518183018401529082019062000219565b838211156200024957848385830101525b9695505050505050565b60008060006060848603121562000268578283fd5b83516001600160401b03808211156200027f578485fd5b6200028d87838801620001a0565b94506020860151915080821115620002a3578384fd5b620002b187838801620001a0565b93506040860151915080821115620002c7578283fd5b50620002d686828701620001a0565b9150509250925092565b600181811c90821680620002f557607f821691505b602082108114156200031757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b614d3480620003436000396000f3fe6080604052600436106102e45760003560e01c80638462151c11610190578063c7a5d285116100dc578063e985e9c511610095578063f2fde38b1161006f578063f2fde38b14610951578063f46eccc414610971578063f6d5682e146109a1578063fb799044146109c1576102e4565b8063e985e9c5146108d1578063efa1ac671461091a578063f0d5307414610931576102e4565b8063c7a5d28514610805578063c87b56dd14610825578063c9eadc8214610845578063cb33420b1461087b578063e7d3fe6b1461089b578063e935b7b1146108bb576102e4565b8063915596d611610149578063983b2d5611610123578063983b2d56146107855780639e46ad3f146107a5578063a22cb465146107c5578063b88d4fde146107e5576102e4565b8063915596d61461073057806392f7fd4e1461075057806395d89b4114610770576102e4565b80638462151c1461066557806389e8491f146106925780638a796bf6146106b25780638d3ea420146106d25780638da5cb5b146106f2578063911d255214610710576102e4565b806337da577c1161024f5780634a68ff24116102085780636352211e116101e25780636352211e146105e3578063648557651461060357806370a0823114610630578063715018a614610650576102e4565b80634a68ff241461054a5780634f6ccce7146105a35780635225152a146105c3576102e4565b806337da577c146104ad5780633ccfd60b146104cd5780633f3a95db146104d557806342842e0e146104f557806342966c68146105155780634651f4f014610535576102e4565b8063162094c4116102a1578063162094c4146103ee57806318160ddd1461040e57806323b872dd1461042d5780632a6446ca1461044d5780632f745c591461046d5780633092afd51461048d576102e4565b806301ffc9a7146102e9578063023563d81461031e57806306fdde0314610340578063081812fc14610362578063095ea7b31461039a578063107046bd146103ba575b600080fd5b3480156102f557600080fd5b50610309610304366004614555565b6109e1565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b5061033e610339366004614666565b6109f4565b005b34801561034c57600080fd5b50610355610d15565b604051610315919061492c565b34801561036e57600080fd5b5061038261037d366004614666565b610da7565b6040516001600160a01b039091168152602001610315565b3480156103a657600080fd5b5061033e6103b5366004614510565b610e3c565b3480156103c657600080fd5b506103da6103d5366004614666565b610f52565b604051610315989796959493929190614af8565b3480156103fa57600080fd5b5061033e610409366004614696565b6111b3565b34801561041a57600080fd5b506008545b604051908152602001610315565b34801561043957600080fd5b5061033e610448366004614426565b6111fc565b34801561045957600080fd5b5061033e610468366004614696565b61122e565b34801561047957600080fd5b5061041f610488366004614510565b611343565b34801561049957600080fd5b5061033e6104a83660046143da565b6113d9565b3480156104b957600080fd5b5061033e6104c836600461475d565b611424565b61033e61157e565b3480156104e157600080fd5b506103556104f0366004614666565b61160a565b34801561050157600080fd5b5061033e610510366004614426565b6116a4565b34801561052157600080fd5b5061033e610530366004614666565b6116bf565b34801561054157600080fd5b50610355611739565b34801561055657600080fd5b5061056a610565366004614666565b611746565b60405161031591908151151581526020808301511515908201526040808301511515908201526060918201519181019190915260800190565b3480156105af57600080fd5b5061041f6105be366004614666565b611820565b3480156105cf57600080fd5b5061033e6105de36600461458d565b6118c1565b3480156105ef57600080fd5b506103826105fe366004614666565b61193f565b34801561060f57600080fd5b5061041f61061e366004614666565b600e6020526000908152604090205481565b34801561063c57600080fd5b5061041f61064b3660046143da565b6119b6565b34801561065c57600080fd5b5061033e611a3d565b34801561067157600080fd5b506106856106803660046143da565b611a71565b60405161031591906148e8565b34801561069e57600080fd5b5061033e6106ad366004614666565b611b2a565b3480156106be57600080fd5b5061033e6106cd36600461475d565b611e5f565b3480156106de57600080fd5b5061033e6106ed3660046146db565b611f69565b3480156106fe57600080fd5b50600a546001600160a01b0316610382565b34801561071c57600080fd5b5061041f61072b366004614666565b6123ed565b34801561073c57600080fd5b5061068561074b366004614666565b61242e565b34801561075c57600080fd5b5061033e61076b36600461475d565b612522565b34801561077c57600080fd5b506103556125da565b34801561079157600080fd5b5061033e6107a03660046143da565b6125e9565b3480156107b157600080fd5b5061033e6107c0366004614696565b612637565b3480156107d157600080fd5b5061033e6107e03660046144da565b612701565b3480156107f157600080fd5b5061033e610800366004614461565b6127d3565b34801561081157600080fd5b5061033e6108203660046143da565b612805565b34801561083157600080fd5b50610355610840366004614666565b612946565b34801561085157600080fd5b50610382610860366004614666565b600d602052600090815260409020546001600160a01b031681565b34801561088757600080fd5b5061033e610896366004614696565b612b10565b3480156108a757600080fd5b5061033e6108b636600461477e565b612c1a565b3480156108c757600080fd5b5061041f60105481565b3480156108dd57600080fd5b506103096108ec3660046143f4565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561092657600080fd5b5061041f620f424081565b34801561093d57600080fd5b5061033e61094c366004614696565b612ce2565b34801561095d57600080fd5b5061033e61096c3660046143da565b612dea565b34801561097d57600080fd5b5061030961098c3660046143da565b600c6020526000908152604090205460ff1681565b3480156109ad57600080fd5b5061033e6109bc3660046145c0565b612e82565b3480156109cd57600080fd5b5061033e6109dc36600461477e565b6130b3565b60006109ec826133ce565b90505b919050565b806010548110610a1f5760405162461bcd60e51b8152600401610a16906149e8565b60405180910390fd5b610cb6600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8790614c2e565b8015610ad45780601f10610aa957610100808354040283529160200191610ad4565b820191906000526020600020905b815481529060010190602001808311610ab757829003601f168201915b50505050508152602001600282018054610aed90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1990614c2e565b8015610b665780601f10610b3b57610100808354040283529160200191610b66565b820191906000526020600020905b815481529060010190602001808311610b4957829003601f168201915b50505050508152602001600382018054610b7f90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610bab90614c2e565b8015610bf85780601f10610bcd57610100808354040283529160200191610bf8565b820191906000526020600020905b815481529060010190602001808311610bdb57829003601f168201915b50505050508152602001600482018054610c1190614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3d90614c2e565b8015610c8a5780601f10610c5f57610100808354040283529160200191610c8a565b820191906000526020600020905b815481529060010190602001808311610c6d57829003601f168201915b5050505050815260200160058201548152602001600682015481526020016007820154815250506133f3565b15610cd35760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b03163314610cfd5760405162461bcd60e51b8152600401610a16906149b3565b506000908152600b6020526040902043600790910155565b606060008054610d2490614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610d5090614c2e565b8015610d9d5780601f10610d7257610100808354040283529160200191610d9d565b820191906000526020600020905b815481529060010190602001808311610d8057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a16565b506000908152600460205260409020546001600160a01b031690565b6000610e478261193f565b9050806001600160a01b0316836001600160a01b03161415610eb55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a16565b336001600160a01b0382161480610ed15750610ed181336108ec565b610f435760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a16565b610f4d838361340e565b505050565b600b6020526000908152604090208054600182018054919291610f7490614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa090614c2e565b8015610fed5780601f10610fc257610100808354040283529160200191610fed565b820191906000526020600020905b815481529060010190602001808311610fd057829003601f168201915b50505050509080600201805461100290614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461102e90614c2e565b801561107b5780601f106110505761010080835404028352916020019161107b565b820191906000526020600020905b81548152906001019060200180831161105e57829003601f168201915b50505050509080600301805461109090614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546110bc90614c2e565b80156111095780601f106110de57610100808354040283529160200191611109565b820191906000526020600020905b8154815290600101906020018083116110ec57829003601f168201915b50505050509080600401805461111e90614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461114a90614c2e565b80156111975780601f1061116c57610100808354040283529160200191611197565b820191906000526020600020905b81548152906001019060200180831161117a57829003601f168201915b5050505050908060050154908060060154908060070154905088565b600a546001600160a01b031633146111dd5760405162461bcd60e51b8152600401610a16906149b3565b6000828152600f602090815260409091208251610f4d928401906142ac565b611207335b8261347c565b6112235760405162461bcd60e51b8152600401610a1690614a0d565b610f4d838383613573565b8160105481106112505760405162461bcd60e51b8152600401610a16906149e8565b61128c600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b156112a95760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b031633146112d35760405162461bcd60e51b8152600401610a16906149b3565b60008251116113185760405162461bcd60e51b815260206004820152601160248201527032b6b83a3c903232b9b1b934b83a34b7b760791b6044820152606401610a16565b6000838152600b60209081526040909120835161133d926003909201918501906142ac565b50505050565b600061134e836119b6565b82106113b05760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a16565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146114035760405162461bcd60e51b8152600401610a16906149b3565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b8160105481106114465760405162461bcd60e51b8152600401610a16906149e8565b611482600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b1561149f5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b031633146114c95760405162461bcd60e51b8152600401610a16906149b3565b600082116115195760405162461bcd60e51b815260206004820152601f60248201527f6d617820737570706c79206d757374206265206174206c65617374206f6e65006044820152606401610a16565b620f42408211156115685760405162461bcd60e51b8152602060048201526019602482015278657863656564206d61782070726f6a65637420746f6b656e7360381b6044820152606401610a16565b506000918252600b602052604090912060060155565b600a546001600160a01b031633146115a85760405162461bcd60e51b8152600401610a16906149b3565b600a546040516001600160a01b03909116904780156108fc02916000818181858888f193505050506116085760405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b6044820152606401610a16565b565b600f602052600090815260409020805461162390614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461164f90614c2e565b801561169c5780601f106116715761010080835404028352916020019161169c565b820191906000526020600020905b81548152906001019060200180831161167f57829003601f168201915b505050505081565b610f4d838383604051806020016040528060008152506127d3565b6116c833611201565b61172d5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610a16565b6117368161371e565b50565b6011805461162390614c2e565b604080516080810182526000808252602082018190529181018290526060810191909152601054821061178b5760405162461bcd60e51b8152600401610a16906149e8565b6000828152600b602052604090819020905163bcc1cda160e01b8152737955a74bff9899b3095c0e07c209fbdedd7f2ed59163bcc1cda1916117d09190600401614a5e565b60806040518083038186803b1580156117e857600080fd5b505af41580156117fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ec9190614605565b600061182b60085490565b821061188e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a16565b600882815481106118af57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b031633146118eb5760405162461bcd60e51b8152600401610a16906149b3565b60008151116119285760405162461bcd60e51b8152602060048201526009602482015268656d7074792061706960b81b6044820152606401610a16565b805161193b9060119060208401906142ac565b5050565b6000818152600260205260408120546001600160a01b0316806109ec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a16565b60006001600160a01b038216611a215760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a16565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611a675760405162461bcd60e51b8152600401610a16906149b3565b61160860006137c5565b60606000611a7e836119b6565b67ffffffffffffffff811115611aa457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611acd578160200160208202803683370190505b50905060005b8151811015611b2357611ae68482611343565b828281518110611b0657634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611b1b81614c69565b915050611ad3565b5092915050565b600a546001600160a01b03163314611b545760405162461bcd60e51b8152600401610a16906149b3565b6010548110611b755760405162461bcd60e51b8152600401610a16906149e8565b611e0c600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054611bb190614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054611bdd90614c2e565b8015611c2a5780601f10611bff57610100808354040283529160200191611c2a565b820191906000526020600020905b815481529060010190602001808311611c0d57829003601f168201915b50505050508152602001600282018054611c4390614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6f90614c2e565b8015611cbc5780601f10611c9157610100808354040283529160200191611cbc565b820191906000526020600020905b815481529060010190602001808311611c9f57829003601f168201915b50505050508152602001600382018054611cd590614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054611d0190614c2e565b8015611d4e5780601f10611d2357610100808354040283529160200191611d4e565b820191906000526020600020905b815481529060010190602001808311611d3157829003601f168201915b50505050508152602001600482018054611d6790614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054611d9390614c2e565b8015611de05780601f10611db557610100808354040283529160200191611de0565b820191906000526020600020905b815481529060010190602001808311611dc357829003601f168201915b505050505081526020016005820154815260200160068201548152602001600782015481525050613817565b611e445760405162461bcd60e51b8152602060048201526009602482015268216d696e7461626c6560b81b6044820152606401610a16565b6000908152600b602052604090206005810154600690910155565b816010548110611e815760405162461bcd60e51b8152600401610a16906149e8565b611ebd600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b15611eda5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b03163314611f045760405162461bcd60e51b8152600401610a16906149b3565b438211611f535760405162461bcd60e51b815260206004820152601b60248201527f626c6f636b206d75737420626520696e207468652066757475726500000000006044820152606401610a16565b506000918252600b602052604090912060070155565b836010548110611f8b5760405162461bcd60e51b8152600401610a16906149e8565b611fc7600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b15611fe45760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b0316331461200e5760405162461bcd60e51b8152600401610a16906149b3565b600084511161204e5760405162461bcd60e51b815260206004820152600c60248201526b195b5c1d1e48185c9d1a5cdd60a21b6044820152606401610a16565b60008351116120935760405162461bcd60e51b815260206004820152601160248201527032b6b83a3c903232b9b1b934b83a34b7b760791b6044820152606401610a16565b6000600b600087815260200190815260200160002060405180610100016040529081600082015481526020016001820180546120ce90614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546120fa90614c2e565b80156121475780601f1061211c57610100808354040283529160200191612147565b820191906000526020600020905b81548152906001019060200180831161212a57829003601f168201915b5050505050815260200160028201805461216090614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461218c90614c2e565b80156121d95780601f106121ae576101008083540402835291602001916121d9565b820191906000526020600020905b8154815290600101906020018083116121bc57829003601f168201915b505050505081526020016003820180546121f290614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461221e90614c2e565b801561226b5780601f106122405761010080835404028352916020019161226b565b820191906000526020600020905b81548152906001019060200180831161224e57829003601f168201915b5050505050815260200160048201805461228490614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546122b090614c2e565b80156122fd5780601f106122d2576101008083540402835291602001916122fd565b820191906000526020600020905b8154815290600101906020018083116122e057829003601f168201915b505050918352505060058201546020808301919091526006830154604080840191909152600790930154606092830152838301899052908301879052608083018690526000898152600b8252919091208251815582820151805193945084939192612370926001850192909101906142ac565b506040820151805161238c9160028401916020909101906142ac565b50606082015180516123a89160038401916020909101906142ac565b50608082015180516123c49160048401916020909101906142ac565b5060a0820151600582015560c0820151600682015560e090910151600790910155505050505050565b6000818152600260205260408120546001600160a01b03166124215760405162461bcd60e51b8152600401610a16906149e8565b6109ec620f424083614bb8565b606060105482106124515760405162461bcd60e51b8152600401610a16906149e8565b6000828152600b602052604081206005015467ffffffffffffffff81111561248957634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156124b2578160200160208202803683370190505b50905060006124c4620f424085614bcc565b905060005b8251811015612519576124dc8183614ba0565b8382815181106124fc57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061251181614c69565b9150506124c9565b50909392505050565b8160105481106125445760405162461bcd60e51b8152600401610a16906149e8565b612580600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b1561259d5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b031633146125c75760405162461bcd60e51b8152600401610a16906149b3565b506000918252600e602052604090912055565b606060018054610d2490614c2e565b600a546001600160a01b031633146126135760405162461bcd60e51b8152600401610a16906149b3565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b8160105481106126595760405162461bcd60e51b8152600401610a16906149e8565b612695600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b156126b25760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b031633146126dc5760405162461bcd60e51b8152600401610a16906149b3565b6000838152600b60209081526040909120835161133d926004909201918501906142ac565b6001600160a01b03821633141561275a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a16565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127c7911515815260200190565b60405180910390a35050565b6127dd338361347c565b6127f95760405162461bcd60e51b8152600401610a1690614a0d565b61133d8484848461384e565b600a546001600160a01b0316331461282f5760405162461bcd60e51b8152600401610a16906149b3565b806001600160a01b03811663a9059cbb612851600a546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561289057600080fd5b505afa1580156128a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c8919061467e565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561290e57600080fd5b505af1158015612922573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4d9190614539565b6000818152600260205260409020546060906001600160a01b03166129965760405162461bcd60e51b815260206004820152600660248201526510ba37b5b2b760d11b6044820152606401610a16565b6000600f60006129a5856123ed565b815260200190815260200160002080546129be90614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546129ea90614c2e565b8015612a375780601f10612a0c57610100808354040283529160200191612a37565b820191906000526020600020905b815481529060010190602001808311612a1a57829003601f168201915b5050505050905060008151600014612a4f5781612adb565b60118054612a5c90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054612a8890614c2e565b8015612ad55780601f10612aaa57610100808354040283529160200191612ad5565b820191906000526020600020905b815481529060010190602001808311612ab857829003601f168201915b50505050505b905080612ae785613881565b604051602001612af892919061487c565b60405160208183030381529060405292505050919050565b816010548110612b325760405162461bcd60e51b8152600401610a16906149e8565b612b6e600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b15612b8b5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b03163314612bb55760405162461bcd60e51b8152600401610a16906149b3565b6000825111612bf55760405162461bcd60e51b815260206004820152600c60248201526b195b5c1d1e48185c9d1a5cdd60a21b6044820152606401610a16565b6000838152600b60209081526040909120835161133d926002909201918501906142ac565b336000908152600c602052604090205460ff16612c635760405162461bcd60e51b815260206004820152600760248201526610b6b4b73a32b960c91b6044820152606401610a16565b612c9f600b60008581526020019081526020016000206040518061010001604052908160008201548152602001600182018054611bb190614c2e565b612cd75760405162461bcd60e51b8152602060048201526009602482015268216d696e7461626c6560b81b6044820152606401610a16565b610f4d83838361399c565b816010548110612d045760405162461bcd60e51b8152600401610a16906149e8565b612d40600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b15612d5d5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b03163314612d875760405162461bcd60e51b8152600401610a16906149b3565b6000825111612dc55760405162461bcd60e51b815260206004820152600a602482015269656d707479206e616d6560b01b6044820152606401610a16565b6000838152600b60209081526040909120835161133d926001909201918501906142ac565b600a546001600160a01b03163314612e145760405162461bcd60e51b8152600401610a16906149b3565b6001600160a01b038116612e795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a16565b611736816137c5565b600a546001600160a01b03163314612eac5760405162461bcd60e51b8152600401610a16906149b3565b60008111612efc5760405162461bcd60e51b815260206004820152601f60248201527f6d617820737570706c79206d757374206265206174206c65617374206f6e65006044820152606401610a16565b620f4240811115612f4b5760405162461bcd60e51b8152602060048201526019602482015278657863656564206d61782070726f6a65637420746f6b656e7360381b6044820152606401610a16565b601054604080516101008101825282815260208082018781528351808301855260008082528486019190915284518084018652818152606085015284518084018652818152608085015260a0840181905260c0840187905260e08401819052858152600b8352939093208251815592518051929384939092612fd49260018501929101906142ac565b5060408201518051612ff09160028401916020909101906142ac565b506060820151805161300c9160038401916020909101906142ac565b50608082015180516130289160048401916020909101906142ac565b5060a0820151600582015560c0820151600682015560e0909101516007909101556000828152600d6020526040902080546001600160a01b0319166001600160a01b03861617905560105461307e906001614ba0565b60105560405182907f4359077a6239ba1e89ff62881ded14109e5c18abb266b5814e7a2f80caefb2cf90600090a25050505050565b336000908152600c602052604090205460ff166130fc5760405162461bcd60e51b815260206004820152600760248201526610b6b4b73a32b960c91b6044820152606401610a16565b613393600b6000858152602001908152602001600020604051806101000160405290816000820154815260200160018201805461313890614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461316490614c2e565b80156131b15780601f10613186576101008083540402835291602001916131b1565b820191906000526020600020905b81548152906001019060200180831161319457829003601f168201915b505050505081526020016002820180546131ca90614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546131f690614c2e565b80156132435780601f1061321857610100808354040283529160200191613243565b820191906000526020600020905b81548152906001019060200180831161322657829003601f168201915b5050505050815260200160038201805461325c90614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461328890614c2e565b80156132d55780601f106132aa576101008083540402835291602001916132d5565b820191906000526020600020905b8154815290600101906020018083116132b857829003601f168201915b505050505081526020016004820180546132ee90614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461331a90614c2e565b80156133675780601f1061333c57610100808354040283529160200191613367565b820191906000526020600020905b81548152906001019060200180831161334a57829003601f168201915b505050505081526020016005820154815260200160068201548152602001600782015481525050613d51565b612cd75760405162461bcd60e51b815260206004820152600c60248201526b085a5b9a5d1a585b1a5e995960a21b6044820152606401610a16565b60006001600160e01b0319821663780e9d6360e01b14806109ec57506109ec82613d7f565b6000808260e001511180156109ec57505060e0015143101590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906134438261193f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166134f55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a16565b60006135008361193f565b9050806001600160a01b0316846001600160a01b0316148061353b5750836001600160a01b031661353084610da7565b6001600160a01b0316145b8061356b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166135868261193f565b6001600160a01b0316146135ee5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a16565b6001600160a01b0382166136505760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a16565b61365b838383613dcf565b61366660008261340e565b6001600160a01b038316600090815260036020526040812080546001929061368f908490614beb565b90915550506001600160a01b03821660009081526003602052604081208054600192906136bd908490614ba0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006137298261193f565b905061373781600084613dcf565b61374260008361340e565b6001600160a01b038116600090815260036020526040812080546001929061376b908490614beb565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061382282613d51565b61382e575060006109ef565b613837826133f3565b80156109ec57505060c081015160a0909101511090565b613859848484613573565b61386584848484613dda565b61133d5760405162461bcd60e51b8152600401610a169061493f565b6060816138a657506040805180820190915260018152600360fc1b60208201526109ef565b8160005b81156138d057806138ba81614c69565b91506138c99050600a83614bb8565b91506138aa565b60008167ffffffffffffffff8111156138f957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613923576020820181803683370190505b5090505b841561356b57613938600183614beb565b9150613945600a86614c84565b613950906030614ba0565b60f81b81838151811061397357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613995600a86614bb8565b9450613927565b6000600b600085815260200190815260200160002060405180610100016040529081600082015481526020016001820180546139d790614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054613a0390614c2e565b8015613a505780601f10613a2557610100808354040283529160200191613a50565b820191906000526020600020905b815481529060010190602001808311613a3357829003601f168201915b50505050508152602001600282018054613a6990614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054613a9590614c2e565b8015613ae25780601f10613ab757610100808354040283529160200191613ae2565b820191906000526020600020905b815481529060010190602001808311613ac557829003601f168201915b50505050508152602001600382018054613afb90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054613b2790614c2e565b8015613b745780601f10613b4957610100808354040283529160200191613b74565b820191906000526020600020905b815481529060010190602001808311613b5757829003601f168201915b50505050508152602001600482018054613b8d90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054613bb990614c2e565b8015613c065780601f10613bdb57610100808354040283529160200191613c06565b820191906000526020600020905b815481529060010190602001808311613be957829003601f168201915b50505050508152602001600582015481526020016006820154815260200160078201548152505090508060c00151838260a00151613c449190614ba0565b1115613c925760405162461bcd60e51b815260206004820152601960248201527f6e6f7420656e6f75676820746f6b656e7320746f206d696e74000000000000006044820152606401610a16565b60a0810151600090613ca7620f424087614bcc565b613cb19190614ba0565b905060005b84811015613d2357613cd184613ccc8385614ba0565b613ee7565b613cdb8183614ba0565b60405187906001600160a01b038716907f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f90600090a480613d1b81614c69565b915050613cb6565b506000858152600b602052604081206005018054869290613d45908490614ba0565b90915550505050505050565b600081604001515160001480613d6a5750606082015151155b15613d77575060006109ef565b506001919050565b60006001600160e01b031982166380ac58cd60e01b1480613db057506001600160e01b03198216635b5e139f60e01b145b806109ec57506301ffc9a760e01b6001600160e01b03198316146109ec565b610f4d838383614035565b60006001600160a01b0384163b15613edc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e1e9033908990889088906004016148ab565b602060405180830381600087803b158015613e3857600080fd5b505af1925050508015613e68575060408051601f3d908101601f19168201909252613e6591810190614571565b60015b613ec2573d808015613e96576040519150601f19603f3d011682016040523d82523d6000602084013e613e9b565b606091505b508051613eba5760405162461bcd60e51b8152600401610a169061493f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061356b565b506001949350505050565b6001600160a01b038216613f3d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a16565b6000818152600260205260409020546001600160a01b031615613fa25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a16565b613fae60008383613dcf565b6001600160a01b0382166000908152600360205260408120805460019290613fd7908490614ba0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166140905761408b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6140b3565b816001600160a01b0316836001600160a01b0316146140b3576140b383826140f2565b6001600160a01b0382166140cf576140ca8161418f565b610f4d565b826001600160a01b0316826001600160a01b031614610f4d57610f4d8282614268565b600060016140ff846119b6565b6141099190614beb565b60008381526007602052604090205490915080821461415c576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906141a190600190614beb565b600083815260096020526040812054600880549394509092849081106141d757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061420657634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061424c57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614273836119b6565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546142b890614c2e565b90600052602060002090601f0160209004810192826142da5760008555614320565b82601f106142f357805160ff1916838001178555614320565b82800160010185558215614320579182015b82811115614320578251825591602001919060010190614305565b5061432c929150614330565b5090565b5b8082111561432c5760008155600101614331565b600067ffffffffffffffff83111561435f5761435f614cc4565b614372601f8401601f1916602001614b6f565b905082815283838301111561438657600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146109ef57600080fd5b600082601f8301126143c4578081fd5b6143d383833560208501614345565b9392505050565b6000602082840312156143eb578081fd5b6143d38261439d565b60008060408385031215614406578081fd5b61440f8361439d565b915061441d6020840161439d565b90509250929050565b60008060006060848603121561443a578081fd5b6144438461439d565b92506144516020850161439d565b9150604084013590509250925092565b60008060008060808587031215614476578081fd5b61447f8561439d565b935061448d6020860161439d565b925060408501359150606085013567ffffffffffffffff8111156144af578182fd5b8501601f810187136144bf578182fd5b6144ce87823560208401614345565b91505092959194509250565b600080604083850312156144ec578182fd5b6144f58361439d565b9150602083013561450581614cda565b809150509250929050565b60008060408385031215614522578182fd5b61452b8361439d565b946020939093013593505050565b60006020828403121561454a578081fd5b81516143d381614cda565b600060208284031215614566578081fd5b81356143d381614ce8565b600060208284031215614582578081fd5b81516143d381614ce8565b60006020828403121561459e578081fd5b813567ffffffffffffffff8111156145b4578182fd5b61356b848285016143b4565b6000806000606084860312156145d4578283fd5b833567ffffffffffffffff8111156145ea578384fd5b6145f6868287016143b4565b9350506144516020850161439d565b600060808284031215614616578081fd5b6146206080614b6f565b825161462b81614cda565b8152602083015161463b81614cda565b6020820152604083015161464e81614cda565b60408201526060928301519281019290925250919050565b600060208284031215614677578081fd5b5035919050565b60006020828403121561468f578081fd5b5051919050565b600080604083850312156146a8578182fd5b82359150602083013567ffffffffffffffff8111156146c5578182fd5b6146d1858286016143b4565b9150509250929050565b600080600080608085870312156146f0578182fd5b84359350602085013567ffffffffffffffff8082111561470e578384fd5b61471a888389016143b4565b9450604087013591508082111561472f578384fd5b61473b888389016143b4565b93506060870135915080821115614750578283fd5b506144ce878288016143b4565b6000806040838503121561476f578182fd5b50508035926020909101359150565b600080600060608486031215614792578081fd5b83359250602084013591506147a96040850161439d565b90509250925092565b600081518084526147ca816020860160208601614c02565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806147f857607f831692505b602080841082141561481857634e487b7160e01b86526022600452602486fd5b8388526020880182801561483357600181146148445761486f565b60ff1987168252828201975061486f565b60008981526020902060005b8781101561486957815484820152908601908401614850565b83019850505b5050505050505092915050565b6000835161488e818460208801614c02565b8351908301906148a2818360208801614c02565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906148de908301846147b2565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561492057835183529284019291840191600101614904565b50909695505050505050565b6000602082526143d360208301846147b2565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600890820152671c995b19585cd95960c21b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201526a1a5b9d985b1a590817da5960aa1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60006020825282546020830152610100806040840152614a856101208401600186016147de565b601f1980858303016060860152614a9f82600288016147de565b915080858303016080860152614ab882600388016147de565b9150808583030160a086015250614ad281600487016147de565b600586015460c0860152600686015460e086015260079095015491909301525090919050565b60006101008a8352806020840152614b128184018b6147b2565b90508281036040840152614b26818a6147b2565b90508281036060840152614b3a81896147b2565b90508281036080840152614b4e81886147b2565b60a0840196909652505060c081019290925260e09091015295945050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715614b9857614b98614cc4565b604052919050565b60008219821115614bb357614bb3614c98565b500190565b600082614bc757614bc7614cae565b500490565b6000816000190483118215151615614be657614be6614c98565b500290565b600082821015614bfd57614bfd614c98565b500390565b60005b83811015614c1d578181015183820152602001614c05565b8381111561133d5750506000910152565b600181811c90821680614c4257607f821691505b60208210811415614c6357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614c7d57614c7d614c98565b5060010190565b600082614c9357614c93614cae565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461173657600080fd5b6001600160e01b03198116811461173657600080fdfea264697066735822122076b514a2f853a2912d5d0bdf785fb4aa1d7c869a5e5592c7e1fb7d2f571d6f4464736f6c63430008030033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000a417274204272696467650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054245414d53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6170692e6172746272696467652e696f2f746f6b656e733f69643d0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102e45760003560e01c80638462151c11610190578063c7a5d285116100dc578063e985e9c511610095578063f2fde38b1161006f578063f2fde38b14610951578063f46eccc414610971578063f6d5682e146109a1578063fb799044146109c1576102e4565b8063e985e9c5146108d1578063efa1ac671461091a578063f0d5307414610931576102e4565b8063c7a5d28514610805578063c87b56dd14610825578063c9eadc8214610845578063cb33420b1461087b578063e7d3fe6b1461089b578063e935b7b1146108bb576102e4565b8063915596d611610149578063983b2d5611610123578063983b2d56146107855780639e46ad3f146107a5578063a22cb465146107c5578063b88d4fde146107e5576102e4565b8063915596d61461073057806392f7fd4e1461075057806395d89b4114610770576102e4565b80638462151c1461066557806389e8491f146106925780638a796bf6146106b25780638d3ea420146106d25780638da5cb5b146106f2578063911d255214610710576102e4565b806337da577c1161024f5780634a68ff24116102085780636352211e116101e25780636352211e146105e3578063648557651461060357806370a0823114610630578063715018a614610650576102e4565b80634a68ff241461054a5780634f6ccce7146105a35780635225152a146105c3576102e4565b806337da577c146104ad5780633ccfd60b146104cd5780633f3a95db146104d557806342842e0e146104f557806342966c68146105155780634651f4f014610535576102e4565b8063162094c4116102a1578063162094c4146103ee57806318160ddd1461040e57806323b872dd1461042d5780632a6446ca1461044d5780632f745c591461046d5780633092afd51461048d576102e4565b806301ffc9a7146102e9578063023563d81461031e57806306fdde0314610340578063081812fc14610362578063095ea7b31461039a578063107046bd146103ba575b600080fd5b3480156102f557600080fd5b50610309610304366004614555565b6109e1565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b5061033e610339366004614666565b6109f4565b005b34801561034c57600080fd5b50610355610d15565b604051610315919061492c565b34801561036e57600080fd5b5061038261037d366004614666565b610da7565b6040516001600160a01b039091168152602001610315565b3480156103a657600080fd5b5061033e6103b5366004614510565b610e3c565b3480156103c657600080fd5b506103da6103d5366004614666565b610f52565b604051610315989796959493929190614af8565b3480156103fa57600080fd5b5061033e610409366004614696565b6111b3565b34801561041a57600080fd5b506008545b604051908152602001610315565b34801561043957600080fd5b5061033e610448366004614426565b6111fc565b34801561045957600080fd5b5061033e610468366004614696565b61122e565b34801561047957600080fd5b5061041f610488366004614510565b611343565b34801561049957600080fd5b5061033e6104a83660046143da565b6113d9565b3480156104b957600080fd5b5061033e6104c836600461475d565b611424565b61033e61157e565b3480156104e157600080fd5b506103556104f0366004614666565b61160a565b34801561050157600080fd5b5061033e610510366004614426565b6116a4565b34801561052157600080fd5b5061033e610530366004614666565b6116bf565b34801561054157600080fd5b50610355611739565b34801561055657600080fd5b5061056a610565366004614666565b611746565b60405161031591908151151581526020808301511515908201526040808301511515908201526060918201519181019190915260800190565b3480156105af57600080fd5b5061041f6105be366004614666565b611820565b3480156105cf57600080fd5b5061033e6105de36600461458d565b6118c1565b3480156105ef57600080fd5b506103826105fe366004614666565b61193f565b34801561060f57600080fd5b5061041f61061e366004614666565b600e6020526000908152604090205481565b34801561063c57600080fd5b5061041f61064b3660046143da565b6119b6565b34801561065c57600080fd5b5061033e611a3d565b34801561067157600080fd5b506106856106803660046143da565b611a71565b60405161031591906148e8565b34801561069e57600080fd5b5061033e6106ad366004614666565b611b2a565b3480156106be57600080fd5b5061033e6106cd36600461475d565b611e5f565b3480156106de57600080fd5b5061033e6106ed3660046146db565b611f69565b3480156106fe57600080fd5b50600a546001600160a01b0316610382565b34801561071c57600080fd5b5061041f61072b366004614666565b6123ed565b34801561073c57600080fd5b5061068561074b366004614666565b61242e565b34801561075c57600080fd5b5061033e61076b36600461475d565b612522565b34801561077c57600080fd5b506103556125da565b34801561079157600080fd5b5061033e6107a03660046143da565b6125e9565b3480156107b157600080fd5b5061033e6107c0366004614696565b612637565b3480156107d157600080fd5b5061033e6107e03660046144da565b612701565b3480156107f157600080fd5b5061033e610800366004614461565b6127d3565b34801561081157600080fd5b5061033e6108203660046143da565b612805565b34801561083157600080fd5b50610355610840366004614666565b612946565b34801561085157600080fd5b50610382610860366004614666565b600d602052600090815260409020546001600160a01b031681565b34801561088757600080fd5b5061033e610896366004614696565b612b10565b3480156108a757600080fd5b5061033e6108b636600461477e565b612c1a565b3480156108c757600080fd5b5061041f60105481565b3480156108dd57600080fd5b506103096108ec3660046143f4565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561092657600080fd5b5061041f620f424081565b34801561093d57600080fd5b5061033e61094c366004614696565b612ce2565b34801561095d57600080fd5b5061033e61096c3660046143da565b612dea565b34801561097d57600080fd5b5061030961098c3660046143da565b600c6020526000908152604090205460ff1681565b3480156109ad57600080fd5b5061033e6109bc3660046145c0565b612e82565b3480156109cd57600080fd5b5061033e6109dc36600461477e565b6130b3565b60006109ec826133ce565b90505b919050565b806010548110610a1f5760405162461bcd60e51b8152600401610a16906149e8565b60405180910390fd5b610cb6600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8790614c2e565b8015610ad45780601f10610aa957610100808354040283529160200191610ad4565b820191906000526020600020905b815481529060010190602001808311610ab757829003601f168201915b50505050508152602001600282018054610aed90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b1990614c2e565b8015610b665780601f10610b3b57610100808354040283529160200191610b66565b820191906000526020600020905b815481529060010190602001808311610b4957829003601f168201915b50505050508152602001600382018054610b7f90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610bab90614c2e565b8015610bf85780601f10610bcd57610100808354040283529160200191610bf8565b820191906000526020600020905b815481529060010190602001808311610bdb57829003601f168201915b50505050508152602001600482018054610c1190614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3d90614c2e565b8015610c8a5780601f10610c5f57610100808354040283529160200191610c8a565b820191906000526020600020905b815481529060010190602001808311610c6d57829003601f168201915b5050505050815260200160058201548152602001600682015481526020016007820154815250506133f3565b15610cd35760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b03163314610cfd5760405162461bcd60e51b8152600401610a16906149b3565b506000908152600b6020526040902043600790910155565b606060008054610d2490614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610d5090614c2e565b8015610d9d5780601f10610d7257610100808354040283529160200191610d9d565b820191906000526020600020905b815481529060010190602001808311610d8057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a16565b506000908152600460205260409020546001600160a01b031690565b6000610e478261193f565b9050806001600160a01b0316836001600160a01b03161415610eb55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a16565b336001600160a01b0382161480610ed15750610ed181336108ec565b610f435760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a16565b610f4d838361340e565b505050565b600b6020526000908152604090208054600182018054919291610f7490614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa090614c2e565b8015610fed5780601f10610fc257610100808354040283529160200191610fed565b820191906000526020600020905b815481529060010190602001808311610fd057829003601f168201915b50505050509080600201805461100290614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461102e90614c2e565b801561107b5780601f106110505761010080835404028352916020019161107b565b820191906000526020600020905b81548152906001019060200180831161105e57829003601f168201915b50505050509080600301805461109090614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546110bc90614c2e565b80156111095780601f106110de57610100808354040283529160200191611109565b820191906000526020600020905b8154815290600101906020018083116110ec57829003601f168201915b50505050509080600401805461111e90614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461114a90614c2e565b80156111975780601f1061116c57610100808354040283529160200191611197565b820191906000526020600020905b81548152906001019060200180831161117a57829003601f168201915b5050505050908060050154908060060154908060070154905088565b600a546001600160a01b031633146111dd5760405162461bcd60e51b8152600401610a16906149b3565b6000828152600f602090815260409091208251610f4d928401906142ac565b611207335b8261347c565b6112235760405162461bcd60e51b8152600401610a1690614a0d565b610f4d838383613573565b8160105481106112505760405162461bcd60e51b8152600401610a16906149e8565b61128c600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b156112a95760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b031633146112d35760405162461bcd60e51b8152600401610a16906149b3565b60008251116113185760405162461bcd60e51b815260206004820152601160248201527032b6b83a3c903232b9b1b934b83a34b7b760791b6044820152606401610a16565b6000838152600b60209081526040909120835161133d926003909201918501906142ac565b50505050565b600061134e836119b6565b82106113b05760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a16565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b031633146114035760405162461bcd60e51b8152600401610a16906149b3565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b8160105481106114465760405162461bcd60e51b8152600401610a16906149e8565b611482600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b1561149f5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b031633146114c95760405162461bcd60e51b8152600401610a16906149b3565b600082116115195760405162461bcd60e51b815260206004820152601f60248201527f6d617820737570706c79206d757374206265206174206c65617374206f6e65006044820152606401610a16565b620f42408211156115685760405162461bcd60e51b8152602060048201526019602482015278657863656564206d61782070726f6a65637420746f6b656e7360381b6044820152606401610a16565b506000918252600b602052604090912060060155565b600a546001600160a01b031633146115a85760405162461bcd60e51b8152600401610a16906149b3565b600a546040516001600160a01b03909116904780156108fc02916000818181858888f193505050506116085760405162461bcd60e51b815260206004820152600960248201526810ba3930b739b332b960b91b6044820152606401610a16565b565b600f602052600090815260409020805461162390614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461164f90614c2e565b801561169c5780601f106116715761010080835404028352916020019161169c565b820191906000526020600020905b81548152906001019060200180831161167f57829003601f168201915b505050505081565b610f4d838383604051806020016040528060008152506127d3565b6116c833611201565b61172d5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610a16565b6117368161371e565b50565b6011805461162390614c2e565b604080516080810182526000808252602082018190529181018290526060810191909152601054821061178b5760405162461bcd60e51b8152600401610a16906149e8565b6000828152600b602052604090819020905163bcc1cda160e01b8152737955a74bff9899b3095c0e07c209fbdedd7f2ed59163bcc1cda1916117d09190600401614a5e565b60806040518083038186803b1580156117e857600080fd5b505af41580156117fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ec9190614605565b600061182b60085490565b821061188e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a16565b600882815481106118af57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b031633146118eb5760405162461bcd60e51b8152600401610a16906149b3565b60008151116119285760405162461bcd60e51b8152602060048201526009602482015268656d7074792061706960b81b6044820152606401610a16565b805161193b9060119060208401906142ac565b5050565b6000818152600260205260408120546001600160a01b0316806109ec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a16565b60006001600160a01b038216611a215760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a16565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611a675760405162461bcd60e51b8152600401610a16906149b3565b61160860006137c5565b60606000611a7e836119b6565b67ffffffffffffffff811115611aa457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611acd578160200160208202803683370190505b50905060005b8151811015611b2357611ae68482611343565b828281518110611b0657634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611b1b81614c69565b915050611ad3565b5092915050565b600a546001600160a01b03163314611b545760405162461bcd60e51b8152600401610a16906149b3565b6010548110611b755760405162461bcd60e51b8152600401610a16906149e8565b611e0c600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054611bb190614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054611bdd90614c2e565b8015611c2a5780601f10611bff57610100808354040283529160200191611c2a565b820191906000526020600020905b815481529060010190602001808311611c0d57829003601f168201915b50505050508152602001600282018054611c4390614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6f90614c2e565b8015611cbc5780601f10611c9157610100808354040283529160200191611cbc565b820191906000526020600020905b815481529060010190602001808311611c9f57829003601f168201915b50505050508152602001600382018054611cd590614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054611d0190614c2e565b8015611d4e5780601f10611d2357610100808354040283529160200191611d4e565b820191906000526020600020905b815481529060010190602001808311611d3157829003601f168201915b50505050508152602001600482018054611d6790614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054611d9390614c2e565b8015611de05780601f10611db557610100808354040283529160200191611de0565b820191906000526020600020905b815481529060010190602001808311611dc357829003601f168201915b505050505081526020016005820154815260200160068201548152602001600782015481525050613817565b611e445760405162461bcd60e51b8152602060048201526009602482015268216d696e7461626c6560b81b6044820152606401610a16565b6000908152600b602052604090206005810154600690910155565b816010548110611e815760405162461bcd60e51b8152600401610a16906149e8565b611ebd600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b15611eda5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b03163314611f045760405162461bcd60e51b8152600401610a16906149b3565b438211611f535760405162461bcd60e51b815260206004820152601b60248201527f626c6f636b206d75737420626520696e207468652066757475726500000000006044820152606401610a16565b506000918252600b602052604090912060070155565b836010548110611f8b5760405162461bcd60e51b8152600401610a16906149e8565b611fc7600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b15611fe45760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b0316331461200e5760405162461bcd60e51b8152600401610a16906149b3565b600084511161204e5760405162461bcd60e51b815260206004820152600c60248201526b195b5c1d1e48185c9d1a5cdd60a21b6044820152606401610a16565b60008351116120935760405162461bcd60e51b815260206004820152601160248201527032b6b83a3c903232b9b1b934b83a34b7b760791b6044820152606401610a16565b6000600b600087815260200190815260200160002060405180610100016040529081600082015481526020016001820180546120ce90614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546120fa90614c2e565b80156121475780601f1061211c57610100808354040283529160200191612147565b820191906000526020600020905b81548152906001019060200180831161212a57829003601f168201915b5050505050815260200160028201805461216090614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461218c90614c2e565b80156121d95780601f106121ae576101008083540402835291602001916121d9565b820191906000526020600020905b8154815290600101906020018083116121bc57829003601f168201915b505050505081526020016003820180546121f290614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461221e90614c2e565b801561226b5780601f106122405761010080835404028352916020019161226b565b820191906000526020600020905b81548152906001019060200180831161224e57829003601f168201915b5050505050815260200160048201805461228490614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546122b090614c2e565b80156122fd5780601f106122d2576101008083540402835291602001916122fd565b820191906000526020600020905b8154815290600101906020018083116122e057829003601f168201915b505050918352505060058201546020808301919091526006830154604080840191909152600790930154606092830152838301899052908301879052608083018690526000898152600b8252919091208251815582820151805193945084939192612370926001850192909101906142ac565b506040820151805161238c9160028401916020909101906142ac565b50606082015180516123a89160038401916020909101906142ac565b50608082015180516123c49160048401916020909101906142ac565b5060a0820151600582015560c0820151600682015560e090910151600790910155505050505050565b6000818152600260205260408120546001600160a01b03166124215760405162461bcd60e51b8152600401610a16906149e8565b6109ec620f424083614bb8565b606060105482106124515760405162461bcd60e51b8152600401610a16906149e8565b6000828152600b602052604081206005015467ffffffffffffffff81111561248957634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156124b2578160200160208202803683370190505b50905060006124c4620f424085614bcc565b905060005b8251811015612519576124dc8183614ba0565b8382815181106124fc57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061251181614c69565b9150506124c9565b50909392505050565b8160105481106125445760405162461bcd60e51b8152600401610a16906149e8565b612580600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b1561259d5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b031633146125c75760405162461bcd60e51b8152600401610a16906149b3565b506000918252600e602052604090912055565b606060018054610d2490614c2e565b600a546001600160a01b031633146126135760405162461bcd60e51b8152600401610a16906149b3565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b8160105481106126595760405162461bcd60e51b8152600401610a16906149e8565b612695600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b156126b25760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b031633146126dc5760405162461bcd60e51b8152600401610a16906149b3565b6000838152600b60209081526040909120835161133d926004909201918501906142ac565b6001600160a01b03821633141561275a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a16565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127c7911515815260200190565b60405180910390a35050565b6127dd338361347c565b6127f95760405162461bcd60e51b8152600401610a1690614a0d565b61133d8484848461384e565b600a546001600160a01b0316331461282f5760405162461bcd60e51b8152600401610a16906149b3565b806001600160a01b03811663a9059cbb612851600a546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561289057600080fd5b505afa1580156128a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c8919061467e565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561290e57600080fd5b505af1158015612922573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4d9190614539565b6000818152600260205260409020546060906001600160a01b03166129965760405162461bcd60e51b815260206004820152600660248201526510ba37b5b2b760d11b6044820152606401610a16565b6000600f60006129a5856123ed565b815260200190815260200160002080546129be90614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546129ea90614c2e565b8015612a375780601f10612a0c57610100808354040283529160200191612a37565b820191906000526020600020905b815481529060010190602001808311612a1a57829003601f168201915b5050505050905060008151600014612a4f5781612adb565b60118054612a5c90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054612a8890614c2e565b8015612ad55780601f10612aaa57610100808354040283529160200191612ad5565b820191906000526020600020905b815481529060010190602001808311612ab857829003601f168201915b50505050505b905080612ae785613881565b604051602001612af892919061487c565b60405160208183030381529060405292505050919050565b816010548110612b325760405162461bcd60e51b8152600401610a16906149e8565b612b6e600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b15612b8b5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b03163314612bb55760405162461bcd60e51b8152600401610a16906149b3565b6000825111612bf55760405162461bcd60e51b815260206004820152600c60248201526b195b5c1d1e48185c9d1a5cdd60a21b6044820152606401610a16565b6000838152600b60209081526040909120835161133d926002909201918501906142ac565b336000908152600c602052604090205460ff16612c635760405162461bcd60e51b815260206004820152600760248201526610b6b4b73a32b960c91b6044820152606401610a16565b612c9f600b60008581526020019081526020016000206040518061010001604052908160008201548152602001600182018054611bb190614c2e565b612cd75760405162461bcd60e51b8152602060048201526009602482015268216d696e7461626c6560b81b6044820152606401610a16565b610f4d83838361399c565b816010548110612d045760405162461bcd60e51b8152600401610a16906149e8565b612d40600b60008381526020019081526020016000206040518061010001604052908160008201548152602001600182018054610a5b90614c2e565b15612d5d5760405162461bcd60e51b8152600401610a1690614991565b600a546001600160a01b03163314612d875760405162461bcd60e51b8152600401610a16906149b3565b6000825111612dc55760405162461bcd60e51b815260206004820152600a602482015269656d707479206e616d6560b01b6044820152606401610a16565b6000838152600b60209081526040909120835161133d926001909201918501906142ac565b600a546001600160a01b03163314612e145760405162461bcd60e51b8152600401610a16906149b3565b6001600160a01b038116612e795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a16565b611736816137c5565b600a546001600160a01b03163314612eac5760405162461bcd60e51b8152600401610a16906149b3565b60008111612efc5760405162461bcd60e51b815260206004820152601f60248201527f6d617820737570706c79206d757374206265206174206c65617374206f6e65006044820152606401610a16565b620f4240811115612f4b5760405162461bcd60e51b8152602060048201526019602482015278657863656564206d61782070726f6a65637420746f6b656e7360381b6044820152606401610a16565b601054604080516101008101825282815260208082018781528351808301855260008082528486019190915284518084018652818152606085015284518084018652818152608085015260a0840181905260c0840187905260e08401819052858152600b8352939093208251815592518051929384939092612fd49260018501929101906142ac565b5060408201518051612ff09160028401916020909101906142ac565b506060820151805161300c9160038401916020909101906142ac565b50608082015180516130289160048401916020909101906142ac565b5060a0820151600582015560c0820151600682015560e0909101516007909101556000828152600d6020526040902080546001600160a01b0319166001600160a01b03861617905560105461307e906001614ba0565b60105560405182907f4359077a6239ba1e89ff62881ded14109e5c18abb266b5814e7a2f80caefb2cf90600090a25050505050565b336000908152600c602052604090205460ff166130fc5760405162461bcd60e51b815260206004820152600760248201526610b6b4b73a32b960c91b6044820152606401610a16565b613393600b6000858152602001908152602001600020604051806101000160405290816000820154815260200160018201805461313890614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461316490614c2e565b80156131b15780601f10613186576101008083540402835291602001916131b1565b820191906000526020600020905b81548152906001019060200180831161319457829003601f168201915b505050505081526020016002820180546131ca90614c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546131f690614c2e565b80156132435780601f1061321857610100808354040283529160200191613243565b820191906000526020600020905b81548152906001019060200180831161322657829003601f168201915b5050505050815260200160038201805461325c90614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461328890614c2e565b80156132d55780601f106132aa576101008083540402835291602001916132d5565b820191906000526020600020905b8154815290600101906020018083116132b857829003601f168201915b505050505081526020016004820180546132ee90614c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461331a90614c2e565b80156133675780601f1061333c57610100808354040283529160200191613367565b820191906000526020600020905b81548152906001019060200180831161334a57829003601f168201915b505050505081526020016005820154815260200160068201548152602001600782015481525050613d51565b612cd75760405162461bcd60e51b815260206004820152600c60248201526b085a5b9a5d1a585b1a5e995960a21b6044820152606401610a16565b60006001600160e01b0319821663780e9d6360e01b14806109ec57506109ec82613d7f565b6000808260e001511180156109ec57505060e0015143101590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906134438261193f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166134f55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a16565b60006135008361193f565b9050806001600160a01b0316846001600160a01b0316148061353b5750836001600160a01b031661353084610da7565b6001600160a01b0316145b8061356b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166135868261193f565b6001600160a01b0316146135ee5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a16565b6001600160a01b0382166136505760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a16565b61365b838383613dcf565b61366660008261340e565b6001600160a01b038316600090815260036020526040812080546001929061368f908490614beb565b90915550506001600160a01b03821660009081526003602052604081208054600192906136bd908490614ba0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006137298261193f565b905061373781600084613dcf565b61374260008361340e565b6001600160a01b038116600090815260036020526040812080546001929061376b908490614beb565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061382282613d51565b61382e575060006109ef565b613837826133f3565b80156109ec57505060c081015160a0909101511090565b613859848484613573565b61386584848484613dda565b61133d5760405162461bcd60e51b8152600401610a169061493f565b6060816138a657506040805180820190915260018152600360fc1b60208201526109ef565b8160005b81156138d057806138ba81614c69565b91506138c99050600a83614bb8565b91506138aa565b60008167ffffffffffffffff8111156138f957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613923576020820181803683370190505b5090505b841561356b57613938600183614beb565b9150613945600a86614c84565b613950906030614ba0565b60f81b81838151811061397357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613995600a86614bb8565b9450613927565b6000600b600085815260200190815260200160002060405180610100016040529081600082015481526020016001820180546139d790614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054613a0390614c2e565b8015613a505780601f10613a2557610100808354040283529160200191613a50565b820191906000526020600020905b815481529060010190602001808311613a3357829003601f168201915b50505050508152602001600282018054613a6990614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054613a9590614c2e565b8015613ae25780601f10613ab757610100808354040283529160200191613ae2565b820191906000526020600020905b815481529060010190602001808311613ac557829003601f168201915b50505050508152602001600382018054613afb90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054613b2790614c2e565b8015613b745780601f10613b4957610100808354040283529160200191613b74565b820191906000526020600020905b815481529060010190602001808311613b5757829003601f168201915b50505050508152602001600482018054613b8d90614c2e565b80601f0160208091040260200160405190810160405280929190818152602001828054613bb990614c2e565b8015613c065780601f10613bdb57610100808354040283529160200191613c06565b820191906000526020600020905b815481529060010190602001808311613be957829003601f168201915b50505050508152602001600582015481526020016006820154815260200160078201548152505090508060c00151838260a00151613c449190614ba0565b1115613c925760405162461bcd60e51b815260206004820152601960248201527f6e6f7420656e6f75676820746f6b656e7320746f206d696e74000000000000006044820152606401610a16565b60a0810151600090613ca7620f424087614bcc565b613cb19190614ba0565b905060005b84811015613d2357613cd184613ccc8385614ba0565b613ee7565b613cdb8183614ba0565b60405187906001600160a01b038716907f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f90600090a480613d1b81614c69565b915050613cb6565b506000858152600b602052604081206005018054869290613d45908490614ba0565b90915550505050505050565b600081604001515160001480613d6a5750606082015151155b15613d77575060006109ef565b506001919050565b60006001600160e01b031982166380ac58cd60e01b1480613db057506001600160e01b03198216635b5e139f60e01b145b806109ec57506301ffc9a760e01b6001600160e01b03198316146109ec565b610f4d838383614035565b60006001600160a01b0384163b15613edc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e1e9033908990889088906004016148ab565b602060405180830381600087803b158015613e3857600080fd5b505af1925050508015613e68575060408051601f3d908101601f19168201909252613e6591810190614571565b60015b613ec2573d808015613e96576040519150601f19603f3d011682016040523d82523d6000602084013e613e9b565b606091505b508051613eba5760405162461bcd60e51b8152600401610a169061493f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061356b565b506001949350505050565b6001600160a01b038216613f3d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a16565b6000818152600260205260409020546001600160a01b031615613fa25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a16565b613fae60008383613dcf565b6001600160a01b0382166000908152600360205260408120805460019290613fd7908490614ba0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166140905761408b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6140b3565b816001600160a01b0316836001600160a01b0316146140b3576140b383826140f2565b6001600160a01b0382166140cf576140ca8161418f565b610f4d565b826001600160a01b0316826001600160a01b031614610f4d57610f4d8282614268565b600060016140ff846119b6565b6141099190614beb565b60008381526007602052604090205490915080821461415c576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906141a190600190614beb565b600083815260096020526040812054600880549394509092849081106141d757634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061420657634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061424c57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614273836119b6565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546142b890614c2e565b90600052602060002090601f0160209004810192826142da5760008555614320565b82601f106142f357805160ff1916838001178555614320565b82800160010185558215614320579182015b82811115614320578251825591602001919060010190614305565b5061432c929150614330565b5090565b5b8082111561432c5760008155600101614331565b600067ffffffffffffffff83111561435f5761435f614cc4565b614372601f8401601f1916602001614b6f565b905082815283838301111561438657600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146109ef57600080fd5b600082601f8301126143c4578081fd5b6143d383833560208501614345565b9392505050565b6000602082840312156143eb578081fd5b6143d38261439d565b60008060408385031215614406578081fd5b61440f8361439d565b915061441d6020840161439d565b90509250929050565b60008060006060848603121561443a578081fd5b6144438461439d565b92506144516020850161439d565b9150604084013590509250925092565b60008060008060808587031215614476578081fd5b61447f8561439d565b935061448d6020860161439d565b925060408501359150606085013567ffffffffffffffff8111156144af578182fd5b8501601f810187136144bf578182fd5b6144ce87823560208401614345565b91505092959194509250565b600080604083850312156144ec578182fd5b6144f58361439d565b9150602083013561450581614cda565b809150509250929050565b60008060408385031215614522578182fd5b61452b8361439d565b946020939093013593505050565b60006020828403121561454a578081fd5b81516143d381614cda565b600060208284031215614566578081fd5b81356143d381614ce8565b600060208284031215614582578081fd5b81516143d381614ce8565b60006020828403121561459e578081fd5b813567ffffffffffffffff8111156145b4578182fd5b61356b848285016143b4565b6000806000606084860312156145d4578283fd5b833567ffffffffffffffff8111156145ea578384fd5b6145f6868287016143b4565b9350506144516020850161439d565b600060808284031215614616578081fd5b6146206080614b6f565b825161462b81614cda565b8152602083015161463b81614cda565b6020820152604083015161464e81614cda565b60408201526060928301519281019290925250919050565b600060208284031215614677578081fd5b5035919050565b60006020828403121561468f578081fd5b5051919050565b600080604083850312156146a8578182fd5b82359150602083013567ffffffffffffffff8111156146c5578182fd5b6146d1858286016143b4565b9150509250929050565b600080600080608085870312156146f0578182fd5b84359350602085013567ffffffffffffffff8082111561470e578384fd5b61471a888389016143b4565b9450604087013591508082111561472f578384fd5b61473b888389016143b4565b93506060870135915080821115614750578283fd5b506144ce878288016143b4565b6000806040838503121561476f578182fd5b50508035926020909101359150565b600080600060608486031215614792578081fd5b83359250602084013591506147a96040850161439d565b90509250925092565b600081518084526147ca816020860160208601614c02565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806147f857607f831692505b602080841082141561481857634e487b7160e01b86526022600452602486fd5b8388526020880182801561483357600181146148445761486f565b60ff1987168252828201975061486f565b60008981526020902060005b8781101561486957815484820152908601908401614850565b83019850505b5050505050505092915050565b6000835161488e818460208801614c02565b8351908301906148a2818360208801614c02565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906148de908301846147b2565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561492057835183529284019291840191600101614904565b50909695505050505050565b6000602082526143d360208301846147b2565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600890820152671c995b19585cd95960c21b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201526a1a5b9d985b1a590817da5960aa1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60006020825282546020830152610100806040840152614a856101208401600186016147de565b601f1980858303016060860152614a9f82600288016147de565b915080858303016080860152614ab882600388016147de565b9150808583030160a086015250614ad281600487016147de565b600586015460c0860152600686015460e086015260079095015491909301525090919050565b60006101008a8352806020840152614b128184018b6147b2565b90508281036040840152614b26818a6147b2565b90508281036060840152614b3a81896147b2565b90508281036080840152614b4e81886147b2565b60a0840196909652505060c081019290925260e09091015295945050505050565b604051601f8201601f1916810167ffffffffffffffff81118282101715614b9857614b98614cc4565b604052919050565b60008219821115614bb357614bb3614c98565b500190565b600082614bc757614bc7614cae565b500490565b6000816000190483118215151615614be657614be6614c98565b500290565b600082821015614bfd57614bfd614c98565b500390565b60005b83811015614c1d578181015183820152602001614c05565b8381111561133d5750506000910152565b600181811c90821680614c4257607f821691505b60208210811415614c6357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614c7d57614c7d614c98565b5060010190565b600082614c9357614c93614cae565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461173657600080fd5b6001600160e01b03198116811461173657600080fdfea264697066735822122076b514a2f853a2912d5d0bdf785fb4aa1d7c869a5e5592c7e1fb7d2f571d6f4464736f6c63430008030033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000a417274204272696467650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054245414d53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6170692e6172746272696467652e696f2f746f6b656e733f69643d0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Art Bridge
Arg [1] : _symbol (string): BEAMS
Arg [2] : _api (string): https://api.artbridge.io/tokens?id=

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 4172742042726964676500000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 4245414d53000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [8] : 68747470733a2f2f6170692e6172746272696467652e696f2f746f6b656e733f
Arg [9] : 69643d0000000000000000000000000000000000000000000000000000000000


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.