ETH Price: $3,326.95 (+2.54%)

Contract

0xA8A425864dB32fCBB459Bf527BdBb8128e6abF21
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...214039022024-12-14 23:01:118 days ago1734217271IN
0xA8A42586...28e6abF21
0 ETH0.000189857.84132447
Transfer From213877742024-12-12 16:59:1111 days ago1734022751IN
0xA8A42586...28e6abF21
0 ETH0.0025899929.94805354
Set Approval For...212991332024-11-30 7:54:2323 days ago1732953263IN
0xA8A42586...28e6abF21
0 ETH0.000405238.7856722
Safe Transfer Fr...212946062024-11-29 16:41:5924 days ago1732898519IN
0xA8A42586...28e6abF21
0 ETH0.0017195919.24665304
Set Approval For...212193612024-11-19 4:23:1134 days ago1731990191IN
0xA8A42586...28e6abF21
0 ETH0.0005438611.79127431
Set Approval For...211855732024-11-14 11:15:2339 days ago1731582923IN
0xA8A42586...28e6abF21
0 ETH0.0015820434.23743927
Set Approval For...211693042024-11-12 4:45:5941 days ago1731386759IN
0xA8A42586...28e6abF21
0 ETH0.0010095521.88785385
Safe Transfer Fr...211322952024-11-07 0:48:5946 days ago1730940539IN
0xA8A42586...28e6abF21
0 ETH0.0012332917.0681807
Set Approval For...210665762024-10-28 20:40:1155 days ago1730148011IN
0xA8A42586...28e6abF21
0 ETH0.0005450611.81728041
Set Approval For...210663192024-10-28 19:48:2355 days ago1730144903IN
0xA8A42586...28e6abF21
0 ETH0.0006089413.20229503
Set Approval For...210655932024-10-28 17:22:2356 days ago1730136143IN
0xA8A42586...28e6abF21
0 ETH0.0010008721.69967097
Set Approval For...210440302024-10-25 17:09:3559 days ago1729876175IN
0xA8A42586...28e6abF21
0 ETH0.0006674414.47060236
Set Approval For...210413732024-10-25 8:16:1159 days ago1729844171IN
0xA8A42586...28e6abF21
0 ETH0.000380638.25251877
Set Approval For...210237402024-10-22 21:15:3561 days ago1729631735IN
0xA8A42586...28e6abF21
0 ETH0.000225729.31344425
Set Approval For...210220492024-10-22 15:35:1162 days ago1729611311IN
0xA8A42586...28e6abF21
0 ETH0.0005541912.01533317
Set Approval For...209784502024-10-16 13:34:1168 days ago1729085651IN
0xA8A42586...28e6abF21
0 ETH0.0007032115.24625341
Set Approval For...209628402024-10-14 9:12:5970 days ago1728897179IN
0xA8A42586...28e6abF21
0 ETH0.0005249111.38055286
Set Approval For...209445872024-10-11 19:53:1172 days ago1728676391IN
0xA8A42586...28e6abF21
0 ETH0.0003490214.40124771
Set Approval For...209339412024-10-10 8:13:3574 days ago1728548015IN
0xA8A42586...28e6abF21
0 ETH0.0004822410.45533598
Set Approval For...209220612024-10-08 16:29:1176 days ago1728404951IN
0xA8A42586...28e6abF21
0 ETH0.0018616140.36117682
Set Approval For...208455152024-09-28 0:21:5986 days ago1727482919IN
0xA8A42586...28e6abF21
0 ETH0.000711915.43455364
Set Approval For...208096452024-09-23 0:16:3591 days ago1727050595IN
0xA8A42586...28e6abF21
0 ETH0.000369668
Set Approval For...207065142024-09-08 14:33:23106 days ago1725806003IN
0xA8A42586...28e6abF21
0 ETH0.000071741.55544436
Transfer From206890692024-09-06 4:09:11108 days ago1725595751IN
0xA8A42586...28e6abF21
0 ETH0.000165641.91557462
Set Approval For...205907472024-08-23 10:36:59122 days ago1724409419IN
0xA8A42586...28e6abF21
0 ETH0.00004560.98871127
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
168380882023-03-16 4:38:23648 days ago1678941503
0xA8A42586...28e6abF21
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FellowshipPatronPass

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 3: FellowshipPatronPass.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2023 Fellowship

/*

███████ ███████ ██      ██       ██████  ██     ██ ███████ ██   ██ ██ ██████
██      ██      ██      ██      ██    ██ ██     ██ ██      ██   ██ ██ ██   ██
█████   █████   ██      ██      ██    ██ ██  █  ██ ███████ ███████ ██ ██████
██      ██      ██      ██      ██    ██ ██ ███ ██      ██ ██   ██ ██ ██
██      ███████ ███████ ███████  ██████   ███ ███  ███████ ██   ██ ██ ██


██████   █████  ████████ ██████   ██████  ███    ██
██   ██ ██   ██    ██    ██   ██ ██    ██ ████   ██
██████  ███████    ██    ██████  ██    ██ ██ ██  ██
██      ██   ██    ██    ██   ██ ██    ██ ██  ██ ██
██      ██   ██    ██    ██   ██  ██████  ██   ████


██████   █████  ███████ ███████
██   ██ ██   ██ ██      ██
██████  ███████ ███████ ███████
██      ██   ██      ██      ██
██      ██   ██ ███████ ███████


contract + token art by steviep.eth

*/


pragma solidity ^0.8.17;

import "./Dependencies.sol";
import "./FellowshipTokenURI.sol";


contract FellowshipPatronPass is ERC721, ERC721Burnable, Ownable {
  uint256 private constant _maxSupply = 1000;
  uint256 private _totalSupply;
  address public minter;

  address private _royaltyBeneficiary;
  uint16 private _royaltyBasisPoints = 750;

  mapping(uint256 => uint256[]) _tokenIdToTransactions;
  mapping(uint256 => uint256) _tokenIdToTransactionOverflow;

  uint256 public totalProjects;

  struct ProjectInfo {
    address minter;
    address base;
    string name;
    bool locked;
  }

  mapping(uint256 => ProjectInfo) private _projectIdToInfo;
  mapping(uint256 => mapping(uint256 => uint256)) private _tokenIdToPassUses;

  FellowshipTokenURI public tokenURIContract;

  /// @notice Emitted when a token's metadata is updated
  /// @param _tokenId The ID of the updated token
  /// @dev See EIP-4906: https://eips.ethereum.org/EIPS/eip-4906
  event MetadataUpdate(uint256 _tokenId);

  constructor () ERC721('Fellowship Patron Pass', 'FPP') {
    minter = msg.sender;
    _royaltyBeneficiary = msg.sender;
    tokenURIContract = new FellowshipTokenURI();
  }

  /// @notice Current total supply of collection
  /// @return Total supply
  function totalSupply() external view returns (uint256) {
    return _totalSupply;
  }

  /// @notice Checks if given token ID exists
  /// @param tokenId Token to run existence check on
  /// @return True if token exists
  function exists(uint256 tokenId) external view returns (bool) {
    return _exists(tokenId);
  }

  /// @notice Mints a new token
  /// @param to Address to receive new token
  function mint(address to) external {
    require(minter == msg.sender, 'Caller is not the minting address');
    require(_totalSupply < _maxSupply, 'Cannot exceed max supply');

    _mint(to, _totalSupply);

    _totalSupply += 1;
  }

  /// @notice Mints a batch of new tokens to a single address
  /// @param to Address to receive all new tokens
  /// @param amount Amount of tokens to mint
  function mintBatch(address to, uint256 amount) external {
    require(minter == msg.sender, 'Caller is not the minting address');
    require(_totalSupply + amount <= _maxSupply, 'Cannot exceed max supply');

    for (uint256 i; i < amount; i++) {
      _mint(to, _totalSupply + i);
    }
    _totalSupply += amount;
  }

  /// @notice Stores information related to the token transfer + emits a metadata update
  /// @dev This information is needed to render the token thumbnail
  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
    if (_tokenIdToTransactions[tokenId].length <= 300) {
      _tokenIdToTransactions[tokenId].push(
        uint256(keccak256(abi.encodePacked(
          from, to, tokenId, block.difficulty
        )))
      );
    } else {
      _tokenIdToTransactionOverflow[tokenId]++;
    }
    emit MetadataUpdate(tokenId);
  }

  /// @notice Retrieves the list of transaction hashes for a given tokenId
  /// @param tokenId Token ID
  function tokenIdToTransactions(uint256 tokenId) external view returns (uint256[] memory) {
    return _tokenIdToTransactions[tokenId];
  }

  /// @notice Retrieves the number of times that a token has been transferred, including its mint
  /// @param tokenId Token ID
  function tokenTransactionCount(uint256 tokenId) external view returns (uint256) {
    return _tokenIdToTransactions[tokenId].length + _tokenIdToTransactionOverflow[tokenId];
  }

  /// @notice Token URI
  /// @param tokenId Token ID to look up URI of
  /// @return Token URI
  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    require(tokenId < _totalSupply, "ERC721Metadata: URI query for nonexistent token");
    return tokenURIContract.tokenURI(tokenId);
  }

  /// @notice Adds a project that the mint pass can be used on
  /// @param minterAddress Address of the minter contract that will use the mint pass
  /// @param baseAddress Address of the target project's contract
  /// @param projectName Name to be used in the attributes of the mint pass
  /// @dev Each project will be assigned a project id, which increments by 1
  /// @dev Up to 20 different projects may be added
  function addProjectInfo(
    address minterAddress,
    address baseAddress,
    string memory projectName
  ) external onlyOwner {
    require(totalProjects < 20, 'Project max exceeded');
    uint256 projectId = totalProjects;
    _projectIdToInfo[projectId].minter = minterAddress;
    _projectIdToInfo[projectId].base = baseAddress;
    _projectIdToInfo[projectId].name = projectName;
    totalProjects++;
  }

  /// @notice Updates the info for a project
  /// @param minterAddress Address of the minter contract that will use the mint pass
  /// @param baseAddress Address of the target project's contract
  /// @param projectName Name to be used in the attributes of the mint pass
  function updateProjectInfo(
    uint256 projectId,
    address minterAddress,
    address baseAddress,
    string memory projectName
  ) external onlyOwner {
    require(projectId < totalProjects, 'Project does not exist');
    require(!_projectIdToInfo[projectId].locked, 'Project has been locked');

    _projectIdToInfo[projectId].minter = minterAddress;
    _projectIdToInfo[projectId].base = baseAddress;
    _projectIdToInfo[projectId].name = projectName;
  }

  /// @notice Returns the info for the project
  /// @param projectId Project ID
  /// @return minter address, project address, project name, locked status
  function projectInfo(uint256 projectId) public view returns (address, address, string memory, bool) {
    return (
      _projectIdToInfo[projectId].minter,
      _projectIdToInfo[projectId].base,
      _projectIdToInfo[projectId].name,
      _projectIdToInfo[projectId].locked
    );
  }

  function lockProjectInfo(uint256 projectId) external onlyOwner {
    require(projectId < totalProjects, 'Project does not exist');
    _projectIdToInfo[projectId].locked = true;
  }

  /// @notice Logs the fact that a specific mint pass has been used to mint a project
  /// @param tokenId Token ID
  /// @param projectId Project ID
  /// @dev This can only be called by the designated project minter contract
  function logPassUse(uint256 tokenId, uint256 projectId) external {
    require(msg.sender == _projectIdToInfo[projectId].minter, 'Sender not permissioned');
    require(!_projectIdToInfo[projectId].locked, 'Project has been locked');

    _tokenIdToPassUses[tokenId][projectId] += 1;
    emit MetadataUpdate(tokenId);
  }

  /// @notice Returns the number of times a pass has been used on a specific project
  /// @param tokenId Token ID
  /// @param projectId Project ID
  /// @return Pass uses
  function passUses(uint256 tokenId, uint256 projectId) public view returns (uint256) {
    return _tokenIdToPassUses[tokenId][projectId];
  }


  /// @notice Set the Token URI contract
  /// @param newContract Address of the new Token URI contract
  function setTokenURIContract(address newContract) external onlyOwner {
    tokenURIContract = FellowshipTokenURI(newContract);
  }

  /// @notice Reassigns the minter permission
  /// @param newMinter Address of new minter
  function setMinter(address newMinter) external onlyOwner {
    minter = newMinter;
  }

  /// @notice Sets royalty info for the collection
  /// @param royaltyBeneficiary Address to receive royalties
  /// @param royaltyBasisPoints Basis points of royalty commission
  /// @dev See EIP-2981: https://eips.ethereum.org/EIPS/eip-2981
  function setRoyaltyInfo(
    address royaltyBeneficiary,
    uint16 royaltyBasisPoints
  ) external onlyOwner {
    _royaltyBeneficiary = royaltyBeneficiary;
    _royaltyBasisPoints = royaltyBasisPoints;
  }

  /// @notice Called with the sale price to determine how much royalty is owed and to whom.
  /// @param (unused)
  /// @param _salePrice The sale price of the NFT asset specified by _tokenId
  /// @return receiver Address of who should be sent the royalty payment
  /// @return royaltyAmount The royalty payment amount for _salePrice
  /// @dev See EIP-2981: https://eips.ethereum.org/EIPS/eip-2981
  function royaltyInfo(uint256, uint256 _salePrice) external view returns (address, uint256) {
    return (_royaltyBeneficiary, _salePrice * _royaltyBasisPoints / 10000);
  }

  /// @notice Query if a contract implements an interface
  /// @param interfaceId The interface identifier, as specified in ERC-165
  /// @return `true` if the contract implements `interfaceId` and
  ///         `interfaceId` is not 0xffffffff, `false` otherwise
  /// @dev Interface identification is specified in ERC-165. This function
  ///      uses less than 30,000 gas. See: https://eips.ethereum.org/EIPS/eip-165
  ///      See EIP-2981: https://eips.ethereum.org/EIPS/eip-2981
  ///      See EIP-4906: https://eips.ethereum.org/EIPS/eip-4906
  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721) returns (bool) {
    return interfaceId == bytes4(0x2a55205a) || interfaceId == bytes4(0x49064906) || super.supportsInterface(interfaceId);
  }
}

File 2 of 3: Dependencies.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);
}



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



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


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



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

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


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



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



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




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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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


/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be 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), "ERC721: caller is not token owner or approved");
        _burn(tokenId);
    }
}




/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 3 of 3: FellowshipTokenURI.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2023 Fellowship

/*

███████ ███████ ██      ██       ██████  ██     ██ ███████ ██   ██ ██ ██████
██      ██      ██      ██      ██    ██ ██     ██ ██      ██   ██ ██ ██   ██
█████   █████   ██      ██      ██    ██ ██  █  ██ ███████ ███████ ██ ██████
██      ██      ██      ██      ██    ██ ██ ███ ██      ██ ██   ██ ██ ██
██      ███████ ███████ ███████  ██████   ███ ███  ███████ ██   ██ ██ ██


██████   █████  ████████ ██████   ██████  ███    ██
██   ██ ██   ██    ██    ██   ██ ██    ██ ████   ██
██████  ███████    ██    ██████  ██    ██ ██ ██  ██
██      ██   ██    ██    ██   ██ ██    ██ ██  ██ ██
██      ██   ██    ██    ██   ██  ██████  ██   ████


██████   █████  ███████ ███████
██   ██ ██   ██ ██      ██
██████  ███████ ███████ ███████
██      ██   ██      ██      ██
██      ██   ██ ███████ ███████


contract + token art by steviep.eth

*/

pragma solidity ^0.8.17;

import "./Dependencies.sol";
import "./FellowshipPatronPass.sol";

contract FellowshipTokenURI {
  using Strings for uint256;

  FellowshipPatronPass public baseContract;
  string public description = 'The Fellowship Patron Pass is an annual membership for photography lovers [valid April 1 2023 - March 31 2024]';
  string public externalUrl = 'https://postphotography.xyz/';
  string public license = 'CC BY-NC 4.0';

  constructor() {
    baseContract = FellowshipPatronPass(msg.sender);
  }

  function tokenURI(uint256 tokenId) external view returns (string memory) {
    bytes memory encodedSVG = abi.encodePacked(
      'data:image/svg+xml;base64,',
      Base64.encode(rawSVG(tokenId))
    );

    bytes memory json = abi.encodePacked(
      'data:application/json;utf8,',
      '{"name": "Fellowship Patron Pass #', tokenId.toString(),'",'
      '"description": "', description, '",'
      '"license": "', license, '",'
      '"external_url": "', externalUrl, '",'
      '"attributes": ', attributes(tokenId), ','
      '"image": "', encodedSVG,
      '"}'
    );
    return string(json);

  }

  function rawSVG(uint256 tokenId) public view returns (bytes memory) {
    uint256[] memory txs = baseContract.tokenIdToTransactions(tokenId);
    uint256 txCount = txs.length > 300 ? 300 : txs.length;

    string memory bgColor = baseContract.exists(tokenId) ? '#fff' : '#000';
    string memory strokeColor = baseContract.exists(tokenId) ? '#000' : '#fff';

    bytes memory svg = abi.encodePacked(
      '<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg">'
      '<rect x="0" y="0" width="1000" height="1000" fill="', bgColor, '" />'
    );

    for (uint256 i; i < txCount; i++) {
      uint256 x = txs[i] % 1000;
      uint256 y = (txs[i] % 1000000) / 1000;

      svg = abi.encodePacked(
        svg,
        '<circle cx="', x.toString(), '" cy="', y.toString(), '" r="30" fill="', strokeColor,'" />'
      );
    }

    uint256 totalProjects = baseContract.totalProjects();
    for (uint256 i; i < totalProjects; i++) {
      uint256 passUses = baseContract.passUses(tokenId, i);
      if (passUses > 0) {
        uint256 offset = i*25 + 10;
        svg = abi.encodePacked(
          svg,
          '<rect x="', offset.toString(), '" y="', offset.toString(), '" width="', (1000 - offset*2).toString(),'" height="', (1000 - offset*2).toString(),'" fill="none" stroke-width="3" stroke="', strokeColor,'" />'
        );
      }
    }

    return abi.encodePacked(svg, '</svg>');
  }

  function attributes(uint256 tokenId) public view returns (bytes memory) {
    uint256 txCount = baseContract.tokenTransactionCount(tokenId) - 1;
    uint256 totalProjects = baseContract.totalProjects();

    bytes memory attrs = abi.encodePacked(
      '[{"trait_type": "Transfers", "value": "', txCount.toString(), '"}'
    );

    for (uint256 projectId; projectId < totalProjects; projectId++) {
      uint256 passUses = baseContract.passUses(tokenId, projectId);
      (,,string memory projectName,) = baseContract.projectInfo(projectId);

      attrs = abi.encodePacked(
        attrs, ', {"trait_type": "Mints: ', projectName,'", "value": "', passUses.toString(), '"}'
      );
    }

    return abi.encodePacked(
      attrs, ']'
    );
  }


  function render(uint256 tokenId) external view returns (string memory, string memory) {
    return (string(rawSVG(tokenId)), string(attributes(tokenId)));
  }

  function updateMetadata(string calldata _externalUrl, string calldata _description, string calldata _license) external {
    require(msg.sender == baseContract.owner(), 'Ownable: caller is not the owner');

    externalUrl = _externalUrl;
    description = _description;
    license = _license;
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"minterAddress","type":"address"},{"internalType":"address","name":"baseAddress","type":"address"},{"internalType":"string","name":"projectName","type":"string"}],"name":"addProjectInfo","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"projectId","type":"uint256"}],"name":"lockProjectInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"projectId","type":"uint256"}],"name":"logPassUse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"projectId","type":"uint256"}],"name":"passUses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"projectId","type":"uint256"}],"name":"projectInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"string","name":"","type":"string"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newMinter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyBeneficiary","type":"address"},{"internalType":"uint16","name":"royaltyBasisPoints","type":"uint16"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newContract","type":"address"}],"name":"setTokenURIContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenIdToTransactions","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenTransactionCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIContract","outputs":[{"internalType":"contract FellowshipTokenURI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalProjects","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":[{"internalType":"uint256","name":"projectId","type":"uint256"},{"internalType":"address","name":"minterAddress","type":"address"},{"internalType":"address","name":"baseAddress","type":"address"},{"internalType":"string","name":"projectName","type":"string"}],"name":"updateProjectInfo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526009805461ffff60a01b191661017760a11b1790553480156200002657600080fd5b506040518060400160405280601681526020017f46656c6c6f777368697020506174726f6e2050617373000000000000000000008152506040518060400160405280600381526020016204650560ec1b81525081600090816200008a919062000233565b50600162000099828262000233565b505050620000b6620000b06200012a60201b60201c565b6200012e565b60088054336001600160a01b03199182168117909255600980549091169091179055604051620000e69062000180565b604051809103906000f08015801562000103573d6000803e3d6000fd5b50600f80546001600160a01b0319166001600160a01b0392909216919091179055620002ff565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611c34806200279183390190565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001b957607f821691505b602082108103620001da57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022e57600081815260208120601f850160051c81016020861015620002095750805b601f850160051c820191505b818110156200022a5782815560010162000215565b5050505b505050565b81516001600160401b038111156200024f576200024f6200018e565b6200026781620002608454620001a4565b84620001e0565b602080601f8311600181146200029f5760008415620002865750858301515b600019600386901b1c1916600185901b1785556200022a565b600085815260208120601f198616915b82811015620002d057888601518255948401946001909101908401620002af565b5085821015620002ef5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612482806200030f6000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c8063715018a611610125578063b88d4fde116100ad578063c87b56dd1161007c578063c87b56dd146104c0578063c9acbcf1146104d3578063e985e9c5146104f6578063f2fde38b14610532578063fca3b5aa1461054557600080fd5b8063b88d4fde1461045c578063c02fa2821461046f578063c1aa45851461049a578063c6a5fed1146104ad57600080fd5b80638da5cb5b116100f45780638da5cb5b1461040757806395d89b41146104185780639c361e4e14610420578063a22cb46514610429578063b161255d1461043c57600080fd5b8063715018a6146103c657806372504a24146103ce57806382fc3147146103e15780638c6c4d2d146103f457600080fd5b80632a55205a116101a857806354222d201161017757806354222d20146103675780636352211e1461037a578063698f87be1461038d5780636a627842146103a057806370a08231146103b357600080fd5b80632a55205a146102fc57806342842e0e1461032e57806342966c68146103415780634f558e791461035457600080fd5b8063095ea7b3116101ef578063095ea7b31461029c57806318160ddd146102b157806323b872dd146102c3578063248b71fc146102d657806324ccf81b146102e957600080fd5b806301ffc9a71461022157806306fdde0314610249578063075461721461025e578063081812fc14610289575b600080fd5b61023461022f366004611c05565b610558565b60405190151581526020015b60405180910390f35b61025161059e565b6040516102409190611c79565b600854610271906001600160a01b031681565b6040516001600160a01b039091168152602001610240565b610271610297366004611c8c565b610630565b6102af6102aa366004611cc1565b6106ca565b005b6007545b604051908152602001610240565b6102af6102d1366004611ceb565b6107df565b6102af6102e4366004611cc1565b610811565b6102af6102f7366004611df4565b6108e5565b61030f61030a366004611e52565b6109be565b604080516001600160a01b039093168352602083019190915201610240565b6102af61033c366004611ceb565b6109ff565b6102af61034f366004611c8c565b610a1a565b610234610362366004611c8c565b610a91565b6102af610375366004611c8c565b610ab0565b610271610388366004611c8c565b610b42565b600f54610271906001600160a01b031681565b6102af6103ae366004611e74565b610bb9565b6102b56103c1366004611e74565b610c58565b6102af610cdf565b6102af6103dc366004611e8f565b610d15565b6102af6103ef366004611e74565b610d6f565b6102af610402366004611e52565b610dbb565b6006546001600160a01b0316610271565b610251610ee3565b6102b5600c5481565b6102af610437366004611ecd565b610ef2565b61044f61044a366004611c8c565b610fb6565b6040516102409190611efe565b6102af61046a366004611f42565b611018565b6102b561047d366004611e52565b6000918252600e6020908152604080842092845291905290205490565b6102b56104a8366004611c8c565b611050565b6102af6104bb366004611fbe565b611074565b6102516104ce366004611c8c565b611192565b6104e66104e1366004611c8c565b61126e565b604051610240949392919061201a565b610234610504366004612059565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102af610540366004611e74565b611345565b6102af610553366004611e74565b6113dd565b60006001600160e01b0319821663152a902d60e11b148061058957506001600160e01b03198216632483248360e11b145b80610598575061059882611429565b92915050565b6060600080546105ad9061208c565b80601f01602080910402602001604051908101604052809291908181526020018280546105d99061208c565b80156106265780601f106105fb57610100808354040283529160200191610626565b820191906000526020600020905b81548152906001019060200180831161060957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106ae5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106d582610b42565b9050806001600160a01b0316836001600160a01b0316036107425760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106a5565b336001600160a01b038216148061075e575061075e8133610504565b6107d05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106a5565b6107da8383611479565b505050565b6107ea335b826114e7565b6108065760405162461bcd60e51b81526004016106a5906120c6565b6107da8383836115de565b6008546001600160a01b0316331461083b5760405162461bcd60e51b81526004016106a590612117565b6103e88160075461084c919061216e565b11156108955760405162461bcd60e51b815260206004820152601860248201527743616e6e6f7420657863656564206d617820737570706c7960401b60448201526064016106a5565b60005b818110156108c9576108b783826007546108b2919061216e565b611789565b806108c181612181565b915050610898565b5080600760008282546108dc919061216e565b90915550505050565b6006546001600160a01b0316331461090f5760405162461bcd60e51b81526004016106a59061219a565b6014600c54106109585760405162461bcd60e51b8152602060048201526014602482015273141c9bda9958dd081b585e08195e18d95959195960621b60448201526064016106a5565b600c546000818152600d6020526040902080546001600160a01b038087166001600160a01b0319928316178355600183018054918716919092161790556002016109a2838261221d565b50600c80549060006109b383612181565b919050555050505050565b60095460009081906001600160a01b03811690612710906109ea90600160a01b900461ffff16866122dd565b6109f491906122f4565b915091509250929050565b6107da83838360405180602001604052806000815250611018565b610a23336107e4565b610a855760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b60648201526084016106a5565b610a8e816118d7565b50565b6000818152600260205260408120546001600160a01b03161515610598565b6006546001600160a01b03163314610ada5760405162461bcd60e51b81526004016106a59061219a565b600c548110610b245760405162461bcd60e51b8152602060048201526016602482015275141c9bda9958dd08191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016106a5565b6000908152600d60205260409020600301805460ff19166001179055565b6000818152600260205260408120546001600160a01b0316806105985760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106a5565b6008546001600160a01b03163314610be35760405162461bcd60e51b81526004016106a590612117565b6103e860075410610c315760405162461bcd60e51b815260206004820152601860248201527743616e6e6f7420657863656564206d617820737570706c7960401b60448201526064016106a5565b610c3d81600754611789565b600160076000828254610c50919061216e565b909155505050565b60006001600160a01b038216610cc35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106a5565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610d095760405162461bcd60e51b81526004016106a59061219a565b610d13600061197e565b565b6006546001600160a01b03163314610d3f5760405162461bcd60e51b81526004016106a59061219a565b6009805461ffff909216600160a01b026001600160b01b03199092166001600160a01b0390931692909217179055565b6006546001600160a01b03163314610d995760405162461bcd60e51b81526004016106a59061219a565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600d60205260409020546001600160a01b03163314610e215760405162461bcd60e51b815260206004820152601760248201527f53656e646572206e6f74207065726d697373696f6e656400000000000000000060448201526064016106a5565b6000818152600d602052604090206003015460ff1615610e7d5760405162461bcd60e51b8152602060048201526017602482015276141c9bda9958dd081a185cc81899595b881b1bd8dad959604a1b60448201526064016106a5565b6000828152600e602090815260408083208484529091528120805460019290610ea790849061216e565b90915550506040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a15050565b6060600180546105ad9061208c565b336001600160a01b03831603610f4a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106a5565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000818152600a602090815260409182902080548351818402810184019094528084526060939283018282801561100c57602002820191906000526020600020905b815481526020019060010190808311610ff8575b50505050509050919050565b61102233836114e7565b61103e5760405162461bcd60e51b81526004016106a5906120c6565b61104a848484846119d0565b50505050565b6000818152600b6020908152604080832054600a909252822054610598919061216e565b6006546001600160a01b0316331461109e5760405162461bcd60e51b81526004016106a59061219a565b600c5484106110e85760405162461bcd60e51b8152602060048201526016602482015275141c9bda9958dd08191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016106a5565b6000848152600d602052604090206003015460ff16156111445760405162461bcd60e51b8152602060048201526017602482015276141c9bda9958dd081a185cc81899595b881b1bd8dad959604a1b60448201526064016106a5565b6000848152600d6020526040902080546001600160a01b038086166001600160a01b03199283161783556001830180549186169190921617905560020161118b828261221d565b5050505050565b606060075482106111fd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106a5565b600f5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015611246573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105989190810190612316565b6000818152600d6020526040812080546001820154600383015460029093018054859460609486946001600160a01b0391821694911692909160ff169082906112b69061208c565b80601f01602080910402602001604051908101604052809291908181526020018280546112e29061208c565b801561132f5780601f106113045761010080835404028352916020019161132f565b820191906000526020600020905b81548152906001019060200180831161131257829003601f168201915b5050505050915093509350935093509193509193565b6006546001600160a01b0316331461136f5760405162461bcd60e51b81526004016106a59061219a565b6001600160a01b0381166113d45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a5565b610a8e8161197e565b6006546001600160a01b031633146114075760405162461bcd60e51b81526004016106a59061219a565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061145a57506001600160e01b03198216635b5e139f60e01b145b8061059857506301ffc9a760e01b6001600160e01b0319831614610598565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114ae82610b42565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115605760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a5565b600061156b83610b42565b9050806001600160a01b0316846001600160a01b031614806115a65750836001600160a01b031661159b84610630565b6001600160a01b0316145b806115d657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166115f182610b42565b6001600160a01b0316146116595760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106a5565b6001600160a01b0382166116bb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106a5565b6116c6838383611a03565b6116d1600082611479565b6001600160a01b03831660009081526003602052604081208054600192906116fa90849061238d565b90915550506001600160a01b038216600090815260036020526040812080546001929061172890849061216e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166117df5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106a5565b6000818152600260205260409020546001600160a01b0316156118445760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106a5565b61185060008383611a03565b6001600160a01b038216600090815260036020526040812080546001929061187990849061216e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006118e282610b42565b90506118f081600084611a03565b6118fb600083611479565b6001600160a01b038116600090815260036020526040812080546001929061192490849061238d565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6119db8484846115de565b6119e784848484611aee565b61104a5760405162461bcd60e51b81526004016106a5906123a0565b6000818152600a602052604090205461012c10611a96576000818152600a602090815260409182902091516bffffffffffffffffffffffff19606087811b8216938301939093529185901b90911660348201526048810183905244606882015260880160408051601f19818403018152919052805160209182012082546001810184556000938452919092200155611ab6565b6000818152600b60205260408120805491611ab083612181565b91905055505b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a1505050565b60006001600160a01b0384163b15611be457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b329033908990889088906004016123f2565b6020604051808303816000875af1925050508015611b6d575060408051601f3d908101601f19168201909252611b6a9181019061242f565b60015b611bca573d808015611b9b576040519150601f19603f3d011682016040523d82523d6000602084013e611ba0565b606091505b508051600003611bc25760405162461bcd60e51b81526004016106a5906123a0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115d6565b506001949350505050565b6001600160e01b031981168114610a8e57600080fd5b600060208284031215611c1757600080fd5b8135611c2281611bef565b9392505050565b60005b83811015611c44578181015183820152602001611c2c565b50506000910152565b60008151808452611c65816020860160208601611c29565b601f01601f19169290920160200192915050565b602081526000611c226020830184611c4d565b600060208284031215611c9e57600080fd5b5035919050565b80356001600160a01b0381168114611cbc57600080fd5b919050565b60008060408385031215611cd457600080fd5b611cdd83611ca5565b946020939093013593505050565b600080600060608486031215611d0057600080fd5b611d0984611ca5565b9250611d1760208501611ca5565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611d6657611d66611d27565b604052919050565b600067ffffffffffffffff821115611d8857611d88611d27565b50601f01601f191660200190565b6000611da9611da484611d6e565b611d3d565b9050828152838383011115611dbd57600080fd5b828260208301376000602084830101529392505050565b600082601f830112611de557600080fd5b611c2283833560208501611d96565b600080600060608486031215611e0957600080fd5b611e1284611ca5565b9250611e2060208501611ca5565b9150604084013567ffffffffffffffff811115611e3c57600080fd5b611e4886828701611dd4565b9150509250925092565b60008060408385031215611e6557600080fd5b50508035926020909101359150565b600060208284031215611e8657600080fd5b611c2282611ca5565b60008060408385031215611ea257600080fd5b611eab83611ca5565b9150602083013561ffff81168114611ec257600080fd5b809150509250929050565b60008060408385031215611ee057600080fd5b611ee983611ca5565b915060208301358015158114611ec257600080fd5b6020808252825182820181905260009190848201906040850190845b81811015611f3657835183529284019291840191600101611f1a565b50909695505050505050565b60008060008060808587031215611f5857600080fd5b611f6185611ca5565b9350611f6f60208601611ca5565b925060408501359150606085013567ffffffffffffffff811115611f9257600080fd5b8501601f81018713611fa357600080fd5b611fb287823560208401611d96565b91505092959194509250565b60008060008060808587031215611fd457600080fd5b84359350611fe460208601611ca5565b9250611ff260408601611ca5565b9150606085013567ffffffffffffffff81111561200e57600080fd5b611fb287828801611dd4565b6001600160a01b0385811682528416602082015260806040820181905260009061204690830185611c4d565b9050821515606083015295945050505050565b6000806040838503121561206c57600080fd5b61207583611ca5565b915061208360208401611ca5565b90509250929050565b600181811c908216806120a057607f821691505b6020821081036120c057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526021908201527f43616c6c6572206973206e6f7420746865206d696e74696e67206164647265736040820152607360f81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561059857610598612158565b60006001820161219357612193612158565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f8211156107da57600081815260208120601f850160051c810160208610156121f65750805b601f850160051c820191505b8181101561221557828155600101612202565b505050505050565b815167ffffffffffffffff81111561223757612237611d27565b61224b81612245845461208c565b846121cf565b602080601f83116001811461228057600084156122685750858301515b600019600386901b1c1916600185901b178555612215565b600085815260208120601f198616915b828110156122af57888601518255948401946001909101908401612290565b50858210156122cd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808202811582820484141761059857610598612158565b60008261231157634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561232857600080fd5b815167ffffffffffffffff81111561233f57600080fd5b8201601f8101841361235057600080fd5b805161235e611da482611d6e565b81815285602083850101111561237357600080fd5b612384826020830160208601611c29565b95945050505050565b8181038181111561059857610598612158565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061242590830184611c4d565b9695505050505050565b60006020828403121561244157600080fd5b8151611c2281611bef56fea2646970667358221220cb1bad1ca0df3d23b0f108b1404590ad6b71efd694d692036e93e0e1f30fad0064736f6c63430008120033610120604052606e60808181529062001bc660a03960019062000023908262000166565b5060408051808201909152601c81527f68747470733a2f2f706f737470686f746f6772617068792e78797a2f00000000602082015260029062000067908262000166565b5060408051808201909152600c81526b043432042592d4e4320342e360a41b60208201526003906200009a908262000166565b50348015620000a857600080fd5b50600080546001600160a01b0319163317905562000232565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000ec57607f821691505b6020821081036200010d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200016157600081815260208120601f850160051c810160208610156200013c5750805b601f850160051c820191505b818110156200015d5782815560010162000148565b5050505b505050565b81516001600160401b03811115620001825762000182620000c1565b6200019a81620001938454620000d7565b8462000113565b602080601f831160018114620001d25760008415620001b95750858301515b600019600386901b1c1916600185901b1785556200015d565b600085815260208120601f198616915b828110156200020357888601518255948401946001909101908401620001e2565b5085821015620002225787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61198480620002426000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638fc73484116100665780638fc73484146100fc578063c321118c14610104578063c87b56dd14610125578063d05dcc6a14610138578063db2a45701461014b57600080fd5b80633361f071146100985780635b32619c146100c15780636b87d24c146100ec5780637284e416146100f4575b600080fd5b6100ab6100a6366004610d57565b610160565b6040516100b89190610dc0565b60405180910390f35b6000546100d4906001600160a01b031681565b6040516001600160a01b0390911681526020016100b8565b6100ab610604565b6100ab610692565b6100ab61069f565b610117610112366004610d57565b6106ac565b6040516100b8929190610dda565b6100ab610133366004610d57565b6106ca565b6100ab610146366004610d57565b610748565b61015e610159366004610e51565b6109d9565b005b6000805460405163b161255d60e01b815260048101849052606092916001600160a01b03169063b161255d90602401600060405180830381865afa1580156101ac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101d49190810190610f32565b9050600061012c8251116101e95781516101ed565b61012c5b60008054604051634f558e7960e01b81526004810188905292935090916001600160a01b0390911690634f558e7990602401602060405180830381865afa15801561023c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102609190610fed565b61028657604051806040016040528060048152602001630233030360e41b8152506102a4565b6040518060400160405280600481526020016311b3333360e11b8152505b60008054604051634f558e7960e01b81526004810189905292935090916001600160a01b0390911690634f558e7990602401602060405180830381865afa1580156102f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103179190610fed565b61033d576040518060400160405280600481526020016311b3333360e11b81525061035b565b604051806040016040528060048152602001630233030360e41b8152505b90506000826040516020016103709190611024565b604051602081830303815290604052905060005b8481101561043d5760006103e88783815181106103a3576103a36110df565b60200260200101516103b5919061110b565b905060006103e8620f42408985815181106103d2576103d26110df565b60200260200101516103e4919061110b565b6103ee9190611135565b9050836103fa83610ae4565b61040383610ae4565b876040516020016104179493929190611149565b604051602081830303815290604052935050508080610435906111fa565b915050610384565b5060008060009054906101000a90046001600160a01b03166001600160a01b0316639c361e4e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610492573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b69190611213565b905060005b818110156105d65760008054604051636017d14160e11b8152600481018c9052602481018490526001600160a01b039091169063c02fa28290604401602060405180830381865afa158015610514573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105389190611213565b905080156105c357600061054d83601961122c565b61055890600a611249565b90508461056482610ae4565b61056d83610ae4565b61058c61057b85600261122c565b610587906103e861125c565b610ae4565b61059a61057b86600261122c565b8a6040516020016105b09695949392919061126f565b6040516020818303038152906040529450505b50806105ce816111fa565b9150506104bb565b50816040516020016105e8919061138a565b6040516020818303038152906040529650505050505050919050565b60038054610611906113b4565b80601f016020809104026020016040519081016040528092919081815260200182805461063d906113b4565b801561068a5780601f1061065f5761010080835404028352916020019161068a565b820191906000526020600020905b81548152906001019060200180831161066d57829003601f168201915b505050505081565b60018054610611906113b4565b60028054610611906113b4565b6060806106b883610160565b6106c184610748565b91509150915091565b606060006106df6106da84610160565b610bed565b6040516020016106ef91906113ee565b6040516020818303038152906040529050600061070b84610ae4565b60016003600261071a88610748565b86604051602001610730969594939291906114a6565b60408051601f19818403018152919052949350505050565b6000805460405163c1aa458560e01b815260048101849052606092916001916001600160a01b039091169063c1aa458590602401602060405180830381865afa158015610799573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bd9190611213565b6107c7919061125c565b905060008060009054906101000a90046001600160a01b03166001600160a01b0316639c361e4e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561081d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108419190611213565b9050600061084e83610ae4565b60405160200161085e91906115e9565b604051602081830303815290604052905060005b828110156109ae5760008054604051636017d14160e11b815260048101899052602481018490526001600160a01b039091169063c02fa28290604401602060405180830381865afa1580156108cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ef9190611213565b6000805460405163c9acbcf160e01b81526004810186905292935090916001600160a01b039091169063c9acbcf190602401600060405180830381865afa15801561093e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526109669190810190611661565b5092505050838161097684610ae4565b60405160200161098893929190611728565b6040516020818303038152906040529350505080806109a6906111fa565b915050610872565b50806040516020016109c091906117be565b6040516020818303038152906040529350505050919050565b60008054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4e91906117e3565b6001600160a01b0316336001600160a01b031614610ab25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6002610abf86888361184d565b506001610acd84868361184d565b506003610adb82848361184d565b50505050505050565b606081600003610b0b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610b355780610b1f816111fa565b9150610b2e9050600a83611135565b9150610b0f565b60008167ffffffffffffffff811115610b5057610b50610eeb565b6040519080825280601f01601f191660200182016040528015610b7a576020820181803683370190505b5090505b8415610be557610b8f60018361125c565b9150610b9c600a8661110b565b610ba7906030611249565b60f81b818381518110610bbc57610bbc6110df565b60200101906001600160f81b031916908160001a905350610bde600a86611135565b9450610b7e565b949350505050565b80516060906000819003610c11575050604080516020810190915260008152919050565b60006003610c20836002611249565b610c2a9190611135565b610c3590600461122c565b90506000610c44826020611249565b67ffffffffffffffff811115610c5c57610c5c610eeb565b6040519080825280601f01601f191660200182016040528015610c86576020820181803683370190505b509050600060405180606001604052806040815260200161190f604091399050600181016020830160005b86811015610d12576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101610cb1565b506003860660018114610d2c5760028114610d3d57610d49565b613d3d60f01b600119830152610d49565b603d60f81b6000198301525b505050918152949350505050565b600060208284031215610d6957600080fd5b5035919050565b60005b83811015610d8b578181015183820152602001610d73565b50506000910152565b60008151808452610dac816020860160208601610d70565b601f01601f19169290920160200192915050565b602081526000610dd36020830184610d94565b9392505050565b604081526000610ded6040830185610d94565b8281036020840152610dff8185610d94565b95945050505050565b60008083601f840112610e1a57600080fd5b50813567ffffffffffffffff811115610e3257600080fd5b602083019150836020828501011115610e4a57600080fd5b9250929050565b60008060008060008060608789031215610e6a57600080fd5b863567ffffffffffffffff80821115610e8257600080fd5b610e8e8a838b01610e08565b90985096506020890135915080821115610ea757600080fd5b610eb38a838b01610e08565b90965094506040890135915080821115610ecc57600080fd5b50610ed989828a01610e08565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610f2a57610f2a610eeb565b604052919050565b60006020808385031215610f4557600080fd5b825167ffffffffffffffff80821115610f5d57600080fd5b818501915085601f830112610f7157600080fd5b815181811115610f8357610f83610eeb565b8060051b9150610f94848301610f01565b8181529183018401918481019088841115610fae57600080fd5b938501935b83851015610fcc57845182529385019390850190610fb3565b98975050505050505050565b80518015158114610fe857600080fd5b919050565b600060208284031215610fff57600080fd5b610dd382610fd8565b6000815161101a818560208601610d70565b9290920192915050565b7f3c7376672076696577426f783d22302030203130303020313030302220786d6c81527f6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e60208201527f3c7265637420783d22302220793d2230222077696474683d223130303022206860408201527232b4b3b43a1e911898181811103334b6361e9160691b6060820152600082516110c4816073850160208701610d70565b631110179f60e11b6073939091019283015250607701919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b60008261111a5761111a6110f5565b500690565b634e487b7160e01b600052601160045260246000fd5b600082611144576111446110f5565b500490565b6000855161115b818460208a01610d70565b6b1e31b4b931b6329031bc1e9160a11b908301908152855161118481600c840160208a01610d70565b65111031bc9e9160d11b600c929091019182015284516111ab816012840160208901610d70565b6e1110391e91199811103334b6361e9160891b6012929091019182015283516111db816021840160208801610d70565b631110179f60e11b602192909101918201526025019695505050505050565b60006001820161120c5761120c61111f565b5060010190565b60006020828403121561122557600080fd5b5051919050565b80820281158282048414176112435761124361111f565b92915050565b808201808211156112435761124361111f565b818103818111156112435761124361111f565b60008751611281818460208c01610d70565b681e3932b1ba103c1e9160b91b90830190815287516112a7816009840160208c01610d70565b6411103c9e9160d91b6009929091019182015286516112cd81600e840160208b01610d70565b6811103bb4b23a341e9160b91b600e929091019182015285516112f7816017840160208a01610d70565b6911103432b4b3b43a1e9160b11b601792909101918201528451611322816021840160208901610d70565b7f222066696c6c3d226e6f6e6522207374726f6b652d77696474683d223322207360219290910191820152663a3937b5b29e9160c91b604182015261137d61136d6048830186611008565b631110179f60e11b815260040190565b9998505050505050505050565b6000825161139c818460208701610d70565b651e17b9bb339f60d11b920191825250600601919050565b600181811c908216806113c857607f821691505b6020821081036113e857634e487b7160e01b600052602260045260246000fd5b50919050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081526000825161142681601a850160208701610d70565b91909101601a0192915050565b60008154611440816113b4565b60018281168015611458576001811461146d5761149c565b60ff198416875282151583028701945061149c565b8560005260208060002060005b858110156114935781548a82015290840190820161147a565b50505082870194505b5050505092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c000000000081527f7b226e616d65223a202246656c6c6f777368697020506174726f6e2050617373601b82015261202360f01b603b8201526000875161150f81603d850160208c01610d70565b711116113232b9b1b934b83a34b7b7111d101160711b603d9184019182015261153b604f820189611433565b6d1116113634b1b2b739b2911d101160911b8152905061155e600e820188611433565b7211161132bc3a32b93730b62fbab936111d101160691b815290506115866013820187611433565b6f011161130ba3a3934b13aba32b9911d160851b815285519091506115b2816010840160208901610d70565b6a161134b6b0b3b2911d101160a91b6010929091019182015261137d6115db601b830186611008565b61227d60f01b815260020190565b7f5b7b2274726169745f74797065223a20225472616e7366657273222c20227661815266363ab2911d101160c91b602082015260008251611631816027850160208701610d70565b61227d60f01b6027939091019283015250602901919050565b80516001600160a01b0381168114610fe857600080fd5b6000806000806080858703121561167757600080fd5b6116808561164a565b935061168e6020860161164a565b9250604085015167ffffffffffffffff808211156116ab57600080fd5b818701915087601f8301126116bf57600080fd5b8151818111156116d1576116d1610eeb565b6116e4601f8201601f1916602001610f01565b91508082528860208285010111156116fb57600080fd5b61170c816020840160208601610d70565b50925061171d905060608601610fd8565b905092959194509250565b6000845161173a818460208901610d70565b7f2c207b2274726169745f74797065223a20224d696e74733a20000000000000009083019081528451611774816019840160208901610d70565b6c111610113b30b63ab2911d101160991b6019929091019182015283516117a2816026840160208801610d70565b61227d60f01b6026929091019182015260280195945050505050565b600082516117d0818460208701610d70565b605d60f81b920191825250600101919050565b6000602082840312156117f557600080fd5b610dd38261164a565b601f82111561184857600081815260208120601f850160051c810160208610156118255750805b601f850160051c820191505b8181101561184457828155600101611831565b5050505b505050565b67ffffffffffffffff83111561186557611865610eeb565b6118798361187383546113b4565b836117fe565b6000601f8411600181146118ad57600085156118955750838201355b600019600387901b1c1916600186901b178355611907565b600083815260209020601f19861690835b828110156118de57868501358255602094850194600190920191016118be565b50868210156118fb5760001960f88860031b161c19848701351681555b505060018560011b0183555b505050505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122021aa6c4fcfb3359a78921b89436a4f030f6c9e1572f6d842a0aecd780fc7a8d964736f6c634300081200335468652046656c6c6f777368697020506174726f6e205061737320697320616e20616e6e75616c206d656d6265727368697020666f722070686f746f677261706879206c6f76657273205b76616c696420417072696c20312032303233202d204d6172636820333120323032345d

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021c5760003560e01c8063715018a611610125578063b88d4fde116100ad578063c87b56dd1161007c578063c87b56dd146104c0578063c9acbcf1146104d3578063e985e9c5146104f6578063f2fde38b14610532578063fca3b5aa1461054557600080fd5b8063b88d4fde1461045c578063c02fa2821461046f578063c1aa45851461049a578063c6a5fed1146104ad57600080fd5b80638da5cb5b116100f45780638da5cb5b1461040757806395d89b41146104185780639c361e4e14610420578063a22cb46514610429578063b161255d1461043c57600080fd5b8063715018a6146103c657806372504a24146103ce57806382fc3147146103e15780638c6c4d2d146103f457600080fd5b80632a55205a116101a857806354222d201161017757806354222d20146103675780636352211e1461037a578063698f87be1461038d5780636a627842146103a057806370a08231146103b357600080fd5b80632a55205a146102fc57806342842e0e1461032e57806342966c68146103415780634f558e791461035457600080fd5b8063095ea7b3116101ef578063095ea7b31461029c57806318160ddd146102b157806323b872dd146102c3578063248b71fc146102d657806324ccf81b146102e957600080fd5b806301ffc9a71461022157806306fdde0314610249578063075461721461025e578063081812fc14610289575b600080fd5b61023461022f366004611c05565b610558565b60405190151581526020015b60405180910390f35b61025161059e565b6040516102409190611c79565b600854610271906001600160a01b031681565b6040516001600160a01b039091168152602001610240565b610271610297366004611c8c565b610630565b6102af6102aa366004611cc1565b6106ca565b005b6007545b604051908152602001610240565b6102af6102d1366004611ceb565b6107df565b6102af6102e4366004611cc1565b610811565b6102af6102f7366004611df4565b6108e5565b61030f61030a366004611e52565b6109be565b604080516001600160a01b039093168352602083019190915201610240565b6102af61033c366004611ceb565b6109ff565b6102af61034f366004611c8c565b610a1a565b610234610362366004611c8c565b610a91565b6102af610375366004611c8c565b610ab0565b610271610388366004611c8c565b610b42565b600f54610271906001600160a01b031681565b6102af6103ae366004611e74565b610bb9565b6102b56103c1366004611e74565b610c58565b6102af610cdf565b6102af6103dc366004611e8f565b610d15565b6102af6103ef366004611e74565b610d6f565b6102af610402366004611e52565b610dbb565b6006546001600160a01b0316610271565b610251610ee3565b6102b5600c5481565b6102af610437366004611ecd565b610ef2565b61044f61044a366004611c8c565b610fb6565b6040516102409190611efe565b6102af61046a366004611f42565b611018565b6102b561047d366004611e52565b6000918252600e6020908152604080842092845291905290205490565b6102b56104a8366004611c8c565b611050565b6102af6104bb366004611fbe565b611074565b6102516104ce366004611c8c565b611192565b6104e66104e1366004611c8c565b61126e565b604051610240949392919061201a565b610234610504366004612059565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102af610540366004611e74565b611345565b6102af610553366004611e74565b6113dd565b60006001600160e01b0319821663152a902d60e11b148061058957506001600160e01b03198216632483248360e11b145b80610598575061059882611429565b92915050565b6060600080546105ad9061208c565b80601f01602080910402602001604051908101604052809291908181526020018280546105d99061208c565b80156106265780601f106105fb57610100808354040283529160200191610626565b820191906000526020600020905b81548152906001019060200180831161060957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166106ae5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106d582610b42565b9050806001600160a01b0316836001600160a01b0316036107425760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016106a5565b336001600160a01b038216148061075e575061075e8133610504565b6107d05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016106a5565b6107da8383611479565b505050565b6107ea335b826114e7565b6108065760405162461bcd60e51b81526004016106a5906120c6565b6107da8383836115de565b6008546001600160a01b0316331461083b5760405162461bcd60e51b81526004016106a590612117565b6103e88160075461084c919061216e565b11156108955760405162461bcd60e51b815260206004820152601860248201527743616e6e6f7420657863656564206d617820737570706c7960401b60448201526064016106a5565b60005b818110156108c9576108b783826007546108b2919061216e565b611789565b806108c181612181565b915050610898565b5080600760008282546108dc919061216e565b90915550505050565b6006546001600160a01b0316331461090f5760405162461bcd60e51b81526004016106a59061219a565b6014600c54106109585760405162461bcd60e51b8152602060048201526014602482015273141c9bda9958dd081b585e08195e18d95959195960621b60448201526064016106a5565b600c546000818152600d6020526040902080546001600160a01b038087166001600160a01b0319928316178355600183018054918716919092161790556002016109a2838261221d565b50600c80549060006109b383612181565b919050555050505050565b60095460009081906001600160a01b03811690612710906109ea90600160a01b900461ffff16866122dd565b6109f491906122f4565b915091509250929050565b6107da83838360405180602001604052806000815250611018565b610a23336107e4565b610a855760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b60648201526084016106a5565b610a8e816118d7565b50565b6000818152600260205260408120546001600160a01b03161515610598565b6006546001600160a01b03163314610ada5760405162461bcd60e51b81526004016106a59061219a565b600c548110610b245760405162461bcd60e51b8152602060048201526016602482015275141c9bda9958dd08191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016106a5565b6000908152600d60205260409020600301805460ff19166001179055565b6000818152600260205260408120546001600160a01b0316806105985760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016106a5565b6008546001600160a01b03163314610be35760405162461bcd60e51b81526004016106a590612117565b6103e860075410610c315760405162461bcd60e51b815260206004820152601860248201527743616e6e6f7420657863656564206d617820737570706c7960401b60448201526064016106a5565b610c3d81600754611789565b600160076000828254610c50919061216e565b909155505050565b60006001600160a01b038216610cc35760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016106a5565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610d095760405162461bcd60e51b81526004016106a59061219a565b610d13600061197e565b565b6006546001600160a01b03163314610d3f5760405162461bcd60e51b81526004016106a59061219a565b6009805461ffff909216600160a01b026001600160b01b03199092166001600160a01b0390931692909217179055565b6006546001600160a01b03163314610d995760405162461bcd60e51b81526004016106a59061219a565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600d60205260409020546001600160a01b03163314610e215760405162461bcd60e51b815260206004820152601760248201527f53656e646572206e6f74207065726d697373696f6e656400000000000000000060448201526064016106a5565b6000818152600d602052604090206003015460ff1615610e7d5760405162461bcd60e51b8152602060048201526017602482015276141c9bda9958dd081a185cc81899595b881b1bd8dad959604a1b60448201526064016106a5565b6000828152600e602090815260408083208484529091528120805460019290610ea790849061216e565b90915550506040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a15050565b6060600180546105ad9061208c565b336001600160a01b03831603610f4a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106a5565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000818152600a602090815260409182902080548351818402810184019094528084526060939283018282801561100c57602002820191906000526020600020905b815481526020019060010190808311610ff8575b50505050509050919050565b61102233836114e7565b61103e5760405162461bcd60e51b81526004016106a5906120c6565b61104a848484846119d0565b50505050565b6000818152600b6020908152604080832054600a909252822054610598919061216e565b6006546001600160a01b0316331461109e5760405162461bcd60e51b81526004016106a59061219a565b600c5484106110e85760405162461bcd60e51b8152602060048201526016602482015275141c9bda9958dd08191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016106a5565b6000848152600d602052604090206003015460ff16156111445760405162461bcd60e51b8152602060048201526017602482015276141c9bda9958dd081a185cc81899595b881b1bd8dad959604a1b60448201526064016106a5565b6000848152600d6020526040902080546001600160a01b038086166001600160a01b03199283161783556001830180549186169190921617905560020161118b828261221d565b5050505050565b606060075482106111fd5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016106a5565b600f5460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa158015611246573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105989190810190612316565b6000818152600d6020526040812080546001820154600383015460029093018054859460609486946001600160a01b0391821694911692909160ff169082906112b69061208c565b80601f01602080910402602001604051908101604052809291908181526020018280546112e29061208c565b801561132f5780601f106113045761010080835404028352916020019161132f565b820191906000526020600020905b81548152906001019060200180831161131257829003601f168201915b5050505050915093509350935093509193509193565b6006546001600160a01b0316331461136f5760405162461bcd60e51b81526004016106a59061219a565b6001600160a01b0381166113d45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a5565b610a8e8161197e565b6006546001600160a01b031633146114075760405162461bcd60e51b81526004016106a59061219a565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061145a57506001600160e01b03198216635b5e139f60e01b145b8061059857506301ffc9a760e01b6001600160e01b0319831614610598565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114ae82610b42565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115605760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016106a5565b600061156b83610b42565b9050806001600160a01b0316846001600160a01b031614806115a65750836001600160a01b031661159b84610630565b6001600160a01b0316145b806115d657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166115f182610b42565b6001600160a01b0316146116595760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016106a5565b6001600160a01b0382166116bb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106a5565b6116c6838383611a03565b6116d1600082611479565b6001600160a01b03831660009081526003602052604081208054600192906116fa90849061238d565b90915550506001600160a01b038216600090815260036020526040812080546001929061172890849061216e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166117df5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106a5565b6000818152600260205260409020546001600160a01b0316156118445760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106a5565b61185060008383611a03565b6001600160a01b038216600090815260036020526040812080546001929061187990849061216e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006118e282610b42565b90506118f081600084611a03565b6118fb600083611479565b6001600160a01b038116600090815260036020526040812080546001929061192490849061238d565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6119db8484846115de565b6119e784848484611aee565b61104a5760405162461bcd60e51b81526004016106a5906123a0565b6000818152600a602052604090205461012c10611a96576000818152600a602090815260409182902091516bffffffffffffffffffffffff19606087811b8216938301939093529185901b90911660348201526048810183905244606882015260880160408051601f19818403018152919052805160209182012082546001810184556000938452919092200155611ab6565b6000818152600b60205260408120805491611ab083612181565b91905055505b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a1505050565b60006001600160a01b0384163b15611be457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b329033908990889088906004016123f2565b6020604051808303816000875af1925050508015611b6d575060408051601f3d908101601f19168201909252611b6a9181019061242f565b60015b611bca573d808015611b9b576040519150601f19603f3d011682016040523d82523d6000602084013e611ba0565b606091505b508051600003611bc25760405162461bcd60e51b81526004016106a5906123a0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115d6565b506001949350505050565b6001600160e01b031981168114610a8e57600080fd5b600060208284031215611c1757600080fd5b8135611c2281611bef565b9392505050565b60005b83811015611c44578181015183820152602001611c2c565b50506000910152565b60008151808452611c65816020860160208601611c29565b601f01601f19169290920160200192915050565b602081526000611c226020830184611c4d565b600060208284031215611c9e57600080fd5b5035919050565b80356001600160a01b0381168114611cbc57600080fd5b919050565b60008060408385031215611cd457600080fd5b611cdd83611ca5565b946020939093013593505050565b600080600060608486031215611d0057600080fd5b611d0984611ca5565b9250611d1760208501611ca5565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611d6657611d66611d27565b604052919050565b600067ffffffffffffffff821115611d8857611d88611d27565b50601f01601f191660200190565b6000611da9611da484611d6e565b611d3d565b9050828152838383011115611dbd57600080fd5b828260208301376000602084830101529392505050565b600082601f830112611de557600080fd5b611c2283833560208501611d96565b600080600060608486031215611e0957600080fd5b611e1284611ca5565b9250611e2060208501611ca5565b9150604084013567ffffffffffffffff811115611e3c57600080fd5b611e4886828701611dd4565b9150509250925092565b60008060408385031215611e6557600080fd5b50508035926020909101359150565b600060208284031215611e8657600080fd5b611c2282611ca5565b60008060408385031215611ea257600080fd5b611eab83611ca5565b9150602083013561ffff81168114611ec257600080fd5b809150509250929050565b60008060408385031215611ee057600080fd5b611ee983611ca5565b915060208301358015158114611ec257600080fd5b6020808252825182820181905260009190848201906040850190845b81811015611f3657835183529284019291840191600101611f1a565b50909695505050505050565b60008060008060808587031215611f5857600080fd5b611f6185611ca5565b9350611f6f60208601611ca5565b925060408501359150606085013567ffffffffffffffff811115611f9257600080fd5b8501601f81018713611fa357600080fd5b611fb287823560208401611d96565b91505092959194509250565b60008060008060808587031215611fd457600080fd5b84359350611fe460208601611ca5565b9250611ff260408601611ca5565b9150606085013567ffffffffffffffff81111561200e57600080fd5b611fb287828801611dd4565b6001600160a01b0385811682528416602082015260806040820181905260009061204690830185611c4d565b9050821515606083015295945050505050565b6000806040838503121561206c57600080fd5b61207583611ca5565b915061208360208401611ca5565b90509250929050565b600181811c908216806120a057607f821691505b6020821081036120c057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526021908201527f43616c6c6572206973206e6f7420746865206d696e74696e67206164647265736040820152607360f81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561059857610598612158565b60006001820161219357612193612158565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f8211156107da57600081815260208120601f850160051c810160208610156121f65750805b601f850160051c820191505b8181101561221557828155600101612202565b505050505050565b815167ffffffffffffffff81111561223757612237611d27565b61224b81612245845461208c565b846121cf565b602080601f83116001811461228057600084156122685750858301515b600019600386901b1c1916600185901b178555612215565b600085815260208120601f198616915b828110156122af57888601518255948401946001909101908401612290565b50858210156122cd5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808202811582820484141761059857610598612158565b60008261231157634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561232857600080fd5b815167ffffffffffffffff81111561233f57600080fd5b8201601f8101841361235057600080fd5b805161235e611da482611d6e565b81815285602083850101111561237357600080fd5b612384826020830160208601611c29565b95945050505050565b8181038181111561059857610598612158565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061242590830184611c4d565b9695505050505050565b60006020828403121561244157600080fd5b8151611c2281611bef56fea2646970667358221220cb1bad1ca0df3d23b0f108b1404590ad6b71efd694d692036e93e0e1f30fad0064736f6c63430008120033

Deployed Bytecode Sourcemap

1863:9053:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10687:227;;;;;;:::i;:::-;;:::i;:::-;;;565:14:3;;558:22;540:41;;528:2;513:18;10687:227:1;;;;;;;;22335:98:0;;;:::i;:::-;;;;;;;:::i;2010:21:1:-;;;;;-1:-1:-1;;;;;2010:21:1;;;;;;-1:-1:-1;;;;;1512:32:3;;;1494:51;;1482:2;1467:18;2010:21:1;1348:203:3;23846:217:0;;;;;;:::i;:::-;;:::i;23384:401::-;;;;;;:::i;:::-;;:::i;:::-;;3024:85:1;3092:12;;3024:85;;;2324:25:3;;;2312:2;2297:18;3024:85:1;2178:177:3;24710:330:0;;;;;;:::i;:::-;;:::i;3819:320:1:-;;;;;;:::i;:::-;;:::i;6025:412::-;;;;;;:::i;:::-;;:::i;9960:172::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4787:32:3;;;4769:51;;4851:2;4836:18;;4829:34;;;;4742:18;9960:172:1;4595:274:3;25106:179:0;;;;;;:::i;:::-;;:::i;33501:238::-;;;;;;:::i;:::-;;:::i;3247:96:1:-;;;;;;:::i;:::-;;:::i;7631:181::-;;;;;;:::i;:::-;;:::i;22038:235:0:-;;;;;;:::i;:::-;;:::i;2510:42:1:-;;;;;-1:-1:-1;;;;;2510:42:1;;;3424:234;;;;;;:::i;:::-;;:::i;21776:205:0:-;;;;;;:::i;:::-;;:::i;19616:92::-;;;:::i;9349:207:1:-;;;;;;:::i;:::-;;:::i;8790:130::-;;;;;;:::i;:::-;;:::i;8043:321::-;;;;;;:::i;:::-;;:::i;18984:85:0:-;19056:6;;-1:-1:-1;;;;;19056:6:0;18984:85;;22497:102;;;:::i;2238:28:1:-;;;;;;24130:290:0;;;;;;:::i;:::-;;:::i;4826:138:1:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;25351:320:0:-;;;;;;:::i;:::-;;:::i;8541:140:1:-;;;;;;:::i;:::-;8616:7;8638:27;;;:18;:27;;;;;;;;:38;;;;;;;;;;8541:140;5096:177;;;;;;:::i;:::-;;:::i;6714:465::-;;;;;;:::i;:::-;;:::i;5373:228::-;;;;;;:::i;:::-;;:::i;7339:288::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;24486:162:0:-;;;;;;:::i;:::-;-1:-1:-1;;;;;24606:25:0;;;24583:4;24606:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;24486:162;19857:189;;;;;;:::i;:::-;;:::i;9015:86:1:-;;;;;;:::i;:::-;;:::i;10687:227::-;10780:4;-1:-1:-1;;;;;;10799:33:1;;-1:-1:-1;;;10799:33:1;;:70;;-1:-1:-1;;;;;;;10836:33:1;;-1:-1:-1;;;10836:33:1;10799:70;:110;;;;10873:36;10897:11;10873:23;:36::i;:::-;10792:117;10687:227;-1:-1:-1;;10687:227:1:o;22335:98:0:-;22389:13;22421:5;22414:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22335:98;:::o;23846:217::-;23922:7;27231:16;;;:7;:16;;;;;;-1:-1:-1;;;;;27231:16:0;23941:73;;;;-1:-1:-1;;;23941:73:0;;9214:2:3;23941:73:0;;;9196:21:3;9253:2;9233:18;;;9226:30;9292:34;9272:18;;;9265:62;-1:-1:-1;;;9343:18:3;;;9336:42;9395:19;;23941:73:0;;;;;;;;;-1:-1:-1;24032:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;24032:24:0;;23846:217::o;23384:401::-;23464:13;23480:23;23495:7;23480:14;:23::i;:::-;23464:39;;23527:5;-1:-1:-1;;;;;23521:11:0;:2;-1:-1:-1;;;;;23521:11:0;;23513:57;;;;-1:-1:-1;;;23513:57:0;;9627:2:3;23513:57:0;;;9609:21:3;9666:2;9646:18;;;9639:30;9705:34;9685:18;;;9678:62;-1:-1:-1;;;9756:18:3;;;9749:31;9797:19;;23513:57:0;9425:397:3;23513:57:0;15209:10;-1:-1:-1;;;;;23602:21:0;;;;:62;;-1:-1:-1;23627:37:0;23644:5;15209:10;24486:162;:::i;23627:37::-;23581:165;;;;-1:-1:-1;;;23581:165:0;;10029:2:3;23581:165:0;;;10011:21:3;10068:2;10048:18;;;10041:30;10107:34;10087:18;;;10080:62;10178:26;10158:18;;;10151:54;10222:19;;23581:165:0;9827:420:3;23581:165:0;23757:21;23766:2;23770:7;23757:8;:21::i;:::-;23454:331;23384:401;;:::o;24710:330::-;24899:41;15209:10;24918:12;24932:7;24899:18;:41::i;:::-;24891:103;;;;-1:-1:-1;;;24891:103:0;;;;;;;:::i;:::-;25005:28;25015:4;25021:2;25025:7;25005:9;:28::i;3819:320:1:-;3889:6;;-1:-1:-1;;;;;3889:6:1;3899:10;3889:20;3881:66;;;;-1:-1:-1;;;3881:66:1;;;;;;;:::i;:::-;1970:4;3976:6;3961:12;;:21;;;;:::i;:::-;:35;;3953:72;;;;-1:-1:-1;;;3953:72:1;;11536:2:3;3953:72:1;;;11518:21:3;11575:2;11555:18;;;11548:30;-1:-1:-1;;;11594:18:3;;;11587:54;11658:18;;3953:72:1;11334:348:3;3953:72:1;4037:9;4032:75;4052:6;4048:1;:10;4032:75;;;4073:27;4079:2;4098:1;4083:12;;:16;;;;:::i;:::-;4073:5;:27::i;:::-;4060:3;;;;:::i;:::-;;;;4032:75;;;;4128:6;4112:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;3819:320:1:o;6025:412::-;19056:6:0;;-1:-1:-1;;;;;19056:6:0;15209:10;19196:23;19188:68;;;;-1:-1:-1;;;19188:68:0;;;;;;;:::i;:::-;6185:2:1::1;6169:13;;:18;6161:51;;;::::0;-1:-1:-1;;;6161:51:1;;12390:2:3;6161:51:1::1;::::0;::::1;12372:21:3::0;12429:2;12409:18;;;12402:30;-1:-1:-1;;;12448:18:3;;;12441:50;12508:18;;6161:51:1::1;12188:344:3::0;6161:51:1::1;6238:13;::::0;6218:17:::1;6257:27:::0;;;:16:::1;:27;::::0;;;;:50;;-1:-1:-1;;;;;6257:50:1;;::::1;-1:-1:-1::0;;;;;;6257:50:1;;::::1;;::::0;;;6313:32;::::1;:46:::0;;;;::::1;::::0;;;::::1;;::::0;;6365:32:::1;;:46;6400:11:::0;6365:32;:46:::1;:::i;:::-;-1:-1:-1::0;6417:13:1::1;:15:::0;;;:13:::1;:15;::::0;::::1;:::i;:::-;;;;;;6155:282;6025:412:::0;;;:::o;9960:172::-;10065:19;;10033:7;;;;-1:-1:-1;;;;;10065:19:1;;;10121:5;;10086:32;;-1:-1:-1;;;10099:19:1;;;;10086:10;:32;:::i;:::-;:40;;;;:::i;:::-;10057:70;;;;9960:172;;;;;:::o;25106:179:0:-;25239:39;25256:4;25262:2;25266:7;25239:39;;;;;;;;;;;;:16;:39::i;33501:238::-;33617:41;15209:10;33636:12;15130:96;33617:41;33609:99;;;;-1:-1:-1;;;33609:99:0;;15338:2:3;33609:99:0;;;15320:21:3;15377:2;15357:18;;;15350:30;15416:34;15396:18;;;15389:62;-1:-1:-1;;;15467:18:3;;;15460:43;15520:19;;33609:99:0;15136:409:3;33609:99:0;33718:14;33724:7;33718:5;:14::i;:::-;33501:238;:::o;3247:96:1:-;3303:4;27231:16:0;;;:7;:16;;;;;;-1:-1:-1;;;;;27231:16:0;:30;;3322:16:1;27143:125:0;7631:181:1;19056:6:0;;-1:-1:-1;;;;;19056:6:0;15209:10;19196:23;19188:68;;;;-1:-1:-1;;;19188:68:0;;;;;;;:::i;:::-;7720:13:1::1;;7708:9;:25;7700:60;;;::::0;-1:-1:-1;;;7700:60:1;;15752:2:3;7700:60:1::1;::::0;::::1;15734:21:3::0;15791:2;15771:18;;;15764:30;-1:-1:-1;;;15810:18:3;;;15803:52;15872:18;;7700:60:1::1;15550:346:3::0;7700:60:1::1;7766:27;::::0;;;:16:::1;:27;::::0;;;;:34:::1;;:41:::0;;-1:-1:-1;;7766:41:1::1;7803:4;7766:41;::::0;;7631:181::o;22038:235:0:-;22110:7;22145:16;;;:7;:16;;;;;;-1:-1:-1;;;;;22145:16:0;;22171:73;;;;-1:-1:-1;;;22171:73:0;;16103:2:3;22171:73:0;;;16085:21:3;16142:2;16122:18;;;16115:30;16181:34;16161:18;;;16154:62;-1:-1:-1;;;16232:18:3;;;16225:39;16281:19;;22171:73:0;15901:405:3;3424:234:1;3473:6;;-1:-1:-1;;;;;3473:6:1;3483:10;3473:20;3465:66;;;;-1:-1:-1;;;3465:66:1;;;;;;;:::i;:::-;1970:4;3545:12;;:25;3537:62;;;;-1:-1:-1;;;3537:62:1;;11536:2:3;3537:62:1;;;11518:21:3;11575:2;11555:18;;;11548:30;-1:-1:-1;;;11594:18:3;;;11587:54;11658:18;;3537:62:1;11334:348:3;3537:62:1;3606:23;3612:2;3616:12;;3606:5;:23::i;:::-;3652:1;3636:12;;:17;;;;;;;:::i;:::-;;;;-1:-1:-1;;;3424:234:1:o;21776:205:0:-;21848:7;-1:-1:-1;;;;;21875:19:0;;21867:74;;;;-1:-1:-1;;;21867:74:0;;16513:2:3;21867:74:0;;;16495:21:3;16552:2;16532:18;;;16525:30;16591:34;16571:18;;;16564:62;-1:-1:-1;;;16642:18:3;;;16635:40;16692:19;;21867:74:0;16311:406:3;21867:74:0;-1:-1:-1;;;;;;21958:16:0;;;;;:9;:16;;;;;;;21776:205::o;19616:92::-;19056:6;;-1:-1:-1;;;;;19056:6:0;15209:10;19196:23;19188:68;;;;-1:-1:-1;;;19188:68:0;;;;;;;:::i;:::-;19680:21:::1;19698:1;19680:9;:21::i;:::-;19616:92::o:0;9349:207:1:-;19056:6:0;;-1:-1:-1;;;;;19056:6:0;15209:10;19196:23;19188:68;;;;-1:-1:-1;;;19188:68:0;;;;;;;:::i;:::-;9465:19:1::1;:40:::0;;9511::::1;::::0;;::::1;-1:-1:-1::0;;;9511:40:1::1;-1:-1:-1::0;;;;;;9511:40:1;;;-1:-1:-1;;;;;9465:40:1;;::::1;9511::::0;;;;::::1;::::0;;9349:207::o;8790:130::-;19056:6:0;;-1:-1:-1;;;;;19056:6:0;15209:10;19196:23;19188:68;;;;-1:-1:-1;;;19188:68:0;;;;;;;:::i;:::-;8865:16:1::1;:50:::0;;-1:-1:-1;;;;;;8865:50:1::1;-1:-1:-1::0;;;;;8865:50:1;;;::::1;::::0;;;::::1;::::0;;8790:130::o;8043:321::-;8136:27;;;;:16;:27;;;;;:34;-1:-1:-1;;;;;8136:34:1;8122:10;:48;8114:84;;;;-1:-1:-1;;;8114:84:1;;16924:2:3;8114:84:1;;;16906:21:3;16963:2;16943:18;;;16936:30;17002:25;16982:18;;;16975:53;17045:18;;8114:84:1;16722:347:3;8114:84:1;8213:27;;;;:16;:27;;;;;:34;;;;;8212:35;8204:71;;;;-1:-1:-1;;;8204:71:1;;17276:2:3;8204:71:1;;;17258:21:3;17315:2;17295:18;;;17288:30;-1:-1:-1;;;17334:18:3;;;17327:53;17397:18;;8204:71:1;17074:347:3;8204:71:1;8282:27;;;;:18;:27;;;;;;;;:38;;;;;;;;:43;;8324:1;;8282:27;:43;;8324:1;;8282:43;:::i;:::-;;;;-1:-1:-1;;8336:23:1;;2324:25:3;;;8336:23:1;;2312:2:3;2297:18;8336:23:1;;;;;;;8043:321;;:::o;22497:102:0:-;22553:13;22585:7;22578:14;;;;;:::i;24130:290::-;15209:10;-1:-1:-1;;;;;24232:24:0;;;24224:62;;;;-1:-1:-1;;;24224:62:0;;17628:2:3;24224:62:0;;;17610:21:3;17667:2;17647:18;;;17640:30;17706:27;17686:18;;;17679:55;17751:18;;24224:62:0;17426:349:3;24224:62:0;15209:10;24297:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;24297:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;24297:53:0;;;;;;;;;;24365:48;;540:41:3;;;24297:42:0;;15209:10;24365:48;;513:18:3;24365:48:0;;;;;;;24130:290;;:::o;4826:138:1:-;4928:31;;;;:22;:31;;;;;;;;;4921:38;;;;;;;;;;;;;;;;;4897:16;;4921:38;;;4928:31;4921:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4826:138;;;:::o;25351:320:0:-;25520:41;15209:10;25553:7;25520:18;:41::i;:::-;25512:103;;;;-1:-1:-1;;;25512:103:0;;;;;;;:::i;:::-;25625:39;25639:4;25645:2;25649:7;25658:5;25625:13;:39::i;:::-;25351:320;;;;:::o;5096:177:1:-;5167:7;5230:38;;;:29;:38;;;;;;;;;5189:22;:31;;;;;:38;:79;;5230:38;5189:79;:::i;6714:465::-;19056:6:0;;-1:-1:-1;;;;;19056:6:0;15209:10;19196:23;19188:68;;;;-1:-1:-1;;;19188:68:0;;;;;;;:::i;:::-;6896:13:1::1;;6884:9;:25;6876:60;;;::::0;-1:-1:-1;;;6876:60:1;;15752:2:3;6876:60:1::1;::::0;::::1;15734:21:3::0;15791:2;15771:18;;;15764:30;-1:-1:-1;;;15810:18:3;;;15803:52;15872:18;;6876:60:1::1;15550:346:3::0;6876:60:1::1;6951:27;::::0;;;:16:::1;:27;::::0;;;;:34:::1;;::::0;::::1;;6950:35;6942:71;;;::::0;-1:-1:-1;;;6942:71:1;;17276:2:3;6942:71:1::1;::::0;::::1;17258:21:3::0;17315:2;17295:18;;;17288:30;-1:-1:-1;;;17334:18:3;;;17327:53;17397:18;;6942:71:1::1;17074:347:3::0;6942:71:1::1;7020:27;::::0;;;:16:::1;:27;::::0;;;;:50;;-1:-1:-1;;;;;7020:50:1;;::::1;-1:-1:-1::0;;;;;;7020:50:1;;::::1;;::::0;;;7076:32;::::1;:46:::0;;;;::::1;::::0;;;::::1;;::::0;;7128:32:::1;;:46;7163:11:::0;7128:32;:46:::1;:::i;:::-;;6714:465:::0;;;;:::o;5373:228::-;5446:13;5485:12;;5475:7;:22;5467:82;;;;-1:-1:-1;;;5467:82:1;;17982:2:3;5467:82:1;;;17964:21:3;18021:2;18001:18;;;17994:30;18060:34;18040:18;;;18033:62;-1:-1:-1;;;18111:18:3;;;18104:45;18166:19;;5467:82:1;17780:411:3;5467:82:1;5562:16;;:34;;-1:-1:-1;;;5562:34:1;;;;;2324:25:3;;;-1:-1:-1;;;;;5562:16:1;;;;:25;;2297:18:3;;5562:34:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5562:34:1;;;;;;;;;;;;:::i;7339:288::-;7400:7;7460:27;;;:16;:27;;;;;:34;;;7502:32;;;7582:34;;;;7542:32;;;;7445:177;;7400:7;;7418:13;;7400:7;;-1:-1:-1;;;;;7460:34:1;;;;7502:32;;;7542;;7582:34;;;7542:32;;7445:177;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7339:288;;;;;:::o;19857:189:0:-;19056:6;;-1:-1:-1;;;;;19056:6:0;15209:10;19196:23;19188:68;;;;-1:-1:-1;;;19188:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;19945:22:0;::::1;19937:73;;;::::0;-1:-1:-1;;;19937:73:0;;19052:2:3;19937:73:0::1;::::0;::::1;19034:21:3::0;19091:2;19071:18;;;19064:30;19130:34;19110:18;;;19103:62;-1:-1:-1;;;19181:18:3;;;19174:36;19227:19;;19937:73:0::1;18850:402:3::0;19937:73:0::1;20020:19;20030:8;20020:9;:19::i;9015:86:1:-:0;19056:6:0;;-1:-1:-1;;;;;19056:6:0;15209:10;19196:23;19188:68;;;;-1:-1:-1;;;19188:68:0;;;;;;;:::i;:::-;9078:6:1::1;:18:::0;;-1:-1:-1;;;;;;9078:18:1::1;-1:-1:-1::0;;;;;9078:18:1;;;::::1;::::0;;;::::1;::::0;;9015:86::o;21417:300:0:-;21519:4;-1:-1:-1;;;;;;21554:40:0;;-1:-1:-1;;;21554:40:0;;:104;;-1:-1:-1;;;;;;;21610:48:0;;-1:-1:-1;;;21610:48:0;21554:104;:156;;;-1:-1:-1;;;;;;;;;;18048:40:0;;;21674:36;17940:155;30994:171;31068:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;31068:29:0;-1:-1:-1;;;;;31068:29:0;;;;;;;;:24;;31121:23;31068:24;31121:14;:23::i;:::-;-1:-1:-1;;;;;31112:46:0;;;;;;;;;;;30994:171;;:::o;27426:344::-;27519:4;27231:16;;;:7;:16;;;;;;-1:-1:-1;;;;;27231:16:0;27535:73;;;;-1:-1:-1;;;27535:73:0;;19459:2:3;27535:73:0;;;19441:21:3;19498:2;19478:18;;;19471:30;19537:34;19517:18;;;19510:62;-1:-1:-1;;;19588:18:3;;;19581:42;19640:19;;27535:73:0;19257:408:3;27535:73:0;27618:13;27634:23;27649:7;27634:14;:23::i;:::-;27618:39;;27686:5;-1:-1:-1;;;;;27675:16:0;:7;-1:-1:-1;;;;;27675:16:0;;:51;;;;27719:7;-1:-1:-1;;;;;27695:31:0;:20;27707:7;27695:11;:20::i;:::-;-1:-1:-1;;;;;27695:31:0;;27675:51;:87;;;-1:-1:-1;;;;;;24606:25:0;;;24583:4;24606:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;27730:32;27667:96;27426:344;-1:-1:-1;;;;27426:344:0:o;30323:560::-;30477:4;-1:-1:-1;;;;;30450:31:0;:23;30465:7;30450:14;:23::i;:::-;-1:-1:-1;;;;;30450:31:0;;30442:85;;;;-1:-1:-1;;;30442:85:0;;19872:2:3;30442:85:0;;;19854:21:3;19911:2;19891:18;;;19884:30;19950:34;19930:18;;;19923:62;-1:-1:-1;;;20001:18:3;;;19994:39;20050:19;;30442:85:0;19670:405:3;30442:85:0;-1:-1:-1;;;;;30545:16:0;;30537:65;;;;-1:-1:-1;;;30537:65:0;;20282:2:3;30537:65:0;;;20264:21:3;20321:2;20301:18;;;20294:30;20360:34;20340:18;;;20333:62;-1:-1:-1;;;20411:18:3;;;20404:34;20455:19;;30537:65:0;20080:400:3;30537:65:0;30613:39;30634:4;30640:2;30644:7;30613:20;:39::i;:::-;30714:29;30731:1;30735:7;30714:8;:29::i;:::-;-1:-1:-1;;;;;30754:15:0;;;;;;:9;:15;;;;;:20;;30773:1;;30754:15;:20;;30773:1;;30754:20;:::i;:::-;;;;-1:-1:-1;;;;;;;30784:13:0;;;;;;:9;:13;;;;;:18;;30801:1;;30784:13;:18;;30801:1;;30784:18;:::i;:::-;;;;-1:-1:-1;;30812:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;30812:21:0;-1:-1:-1;;;;;30812:21:0;;;;;;;;;30849:27;;30812:16;;30849:27;;;;;;;30323:560;;;:::o;29062:372::-;-1:-1:-1;;;;;29141:16:0;;29133:61;;;;-1:-1:-1;;;29133:61:0;;20820:2:3;29133:61:0;;;20802:21:3;;;20839:18;;;20832:30;20898:34;20878:18;;;20871:62;20950:18;;29133:61:0;20618:356:3;29133:61:0;27208:4;27231:16;;;:7;:16;;;;;;-1:-1:-1;;;;;27231:16:0;:30;29204:58;;;;-1:-1:-1;;;29204:58:0;;21181:2:3;29204:58:0;;;21163:21:3;21220:2;21200:18;;;21193:30;21259;21239:18;;;21232:58;21307:18;;29204:58:0;20979:352:3;29204:58:0;29273:45;29302:1;29306:2;29310:7;29273:20;:45::i;:::-;-1:-1:-1;;;;;29329:13:0;;;;;;:9;:13;;;;;:18;;29346:1;;29329:13;:18;;29346:1;;29329:18;:::i;:::-;;;;-1:-1:-1;;29357:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;29357:21:0;-1:-1:-1;;;;;29357:21:0;;;;;;;;29394:33;;29357:16;;;29394:33;;29357:16;;29394:33;29062:372;;:::o;29651:348::-;29710:13;29726:23;29741:7;29726:14;:23::i;:::-;29710:39;;29760:48;29781:5;29796:1;29800:7;29760:20;:48::i;:::-;29846:29;29863:1;29867:7;29846:8;:29::i;:::-;-1:-1:-1;;;;;29886:16:0;;;;;;:9;:16;;;;;:21;;29906:1;;29886:16;:21;;29906:1;;29886:21;:::i;:::-;;;;-1:-1:-1;;29924:16:0;;;;:7;:16;;;;;;29917:23;;-1:-1:-1;;;;;;29917:23:0;;;29956:36;29932:7;;29924:16;-1:-1:-1;;;;;29956:36:0;;;;;29924:16;;29956:36;29700:299;29651:348;:::o;20052:169::-;20126:6;;;-1:-1:-1;;;;;20142:17:0;;;-1:-1:-1;;;;;;20142:17:0;;;;;;;20174:40;;20126:6;;;20142:17;20126:6;;20174:40;;20107:16;;20174:40;20097:124;20052:169;:::o;26533:307::-;26684:28;26694:4;26700:2;26704:7;26684:9;:28::i;:::-;26730:48;26753:4;26759:2;26763:7;26772:5;26730:22;:48::i;:::-;26722:111;;;;-1:-1:-1;;;26722:111:0;;;;;;;:::i;4300:417:1:-;4409:31;;;;:22;:31;;;;;:38;4451:3;-1:-1:-1;4405:274:1;;4464:31;;;;:22;:31;;;;;;;;;4528:73;;-1:-1:-1;;22038:2:3;22034:15;;;22030:24;;4528:73:1;;;22018:37:3;;;;22089:15;;;;22085:24;;;22071:12;;;22064:46;22126:12;;;22119:28;;;4575:16:1;22163:12:3;;;22156:28;22200:13;;4528:73:1;;;-1:-1:-1;;4528:73:1;;;;;;;;;4518:84;;4528:73;4518:84;;;;4464:147;;;;;;;4510:93;4464:147;;;;;;;;;4405:274;;;4632:38;;;;:29;:38;;;;;:40;;;;;;:::i;:::-;;;;;;4405:274;4689:23;;2324:25:3;;;4689:23:1;;2312:2:3;2297:18;4689:23:1;;;;;;;4300:417;;;:::o;31718:782:0:-;31868:4;-1:-1:-1;;;;;31888:13:0;;7778:20;7824:8;31884:610;;31923:72;;-1:-1:-1;;;31923:72:0;;-1:-1:-1;;;;;31923:36:0;;;;;:72;;15209:10;;31974:4;;31980:7;;31989:5;;31923:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31923:72:0;;;;;;;;-1:-1:-1;;31923:72:0;;;;;;;;;;;;:::i;:::-;;;31919:523;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32166:6;:13;32183:1;32166:18;32162:266;;32208:60;;-1:-1:-1;;;32208:60:0;;;;;;;:::i;32162:266::-;32380:6;32374:13;32365:6;32361:2;32357:15;32350:38;31919:523;-1:-1:-1;;;;;;32045:55:0;-1:-1:-1;;;32045:55:0;;-1:-1:-1;32038:62:0;;31884:610;-1:-1:-1;32479:4:0;31718:782;;;;;;:::o;14:131:3:-;-1:-1:-1;;;;;;88:32:3;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:3:o;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:3;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:3;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:3:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1556:180::-;1615:6;1668:2;1656:9;1647:7;1643:23;1639:32;1636:52;;;1684:1;1681;1674:12;1636:52;-1:-1:-1;1707:23:3;;1556:180;-1:-1:-1;1556:180:3:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:3;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:3:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:127::-;2754:10;2749:3;2745:20;2742:1;2735:31;2785:4;2782:1;2775:15;2809:4;2806:1;2799:15;2825:275;2896:2;2890:9;2961:2;2942:13;;-1:-1:-1;;2938:27:3;2926:40;;2996:18;2981:34;;3017:22;;;2978:62;2975:88;;;3043:18;;:::i;:::-;3079:2;3072:22;2825:275;;-1:-1:-1;2825:275:3:o;3105:187::-;3154:4;3187:18;3179:6;3176:30;3173:56;;;3209:18;;:::i;:::-;-1:-1:-1;3275:2:3;3254:15;-1:-1:-1;;3250:29:3;3281:4;3246:40;;3105:187::o;3297:338::-;3362:5;3391:53;3407:36;3436:6;3407:36;:::i;:::-;3391:53;:::i;:::-;3382:62;;3467:6;3460:5;3453:21;3507:3;3498:6;3493:3;3489:16;3486:25;3483:45;;;3524:1;3521;3514:12;3483:45;3573:6;3568:3;3561:4;3554:5;3550:16;3537:43;3627:1;3620:4;3611:6;3604:5;3600:18;3596:29;3589:40;3297:338;;;;;:::o;3640:222::-;3683:5;3736:3;3729:4;3721:6;3717:17;3713:27;3703:55;;3754:1;3751;3744:12;3703:55;3776:80;3852:3;3843:6;3830:20;3823:4;3815:6;3811:17;3776:80;:::i;3867:470::-;3954:6;3962;3970;4023:2;4011:9;4002:7;3998:23;3994:32;3991:52;;;4039:1;4036;4029:12;3991:52;4062:29;4081:9;4062:29;:::i;:::-;4052:39;;4110:38;4144:2;4133:9;4129:18;4110:38;:::i;:::-;4100:48;;4199:2;4188:9;4184:18;4171:32;4226:18;4218:6;4215:30;4212:50;;;4258:1;4255;4248:12;4212:50;4281;4323:7;4314:6;4303:9;4299:22;4281:50;:::i;:::-;4271:60;;;3867:470;;;;;:::o;4342:248::-;4410:6;4418;4471:2;4459:9;4450:7;4446:23;4442:32;4439:52;;;4487:1;4484;4477:12;4439:52;-1:-1:-1;;4510:23:3;;;4580:2;4565:18;;;4552:32;;-1:-1:-1;4342:248:3:o;5109:186::-;5168:6;5221:2;5209:9;5200:7;5196:23;5192:32;5189:52;;;5237:1;5234;5227:12;5189:52;5260:29;5279:9;5260:29;:::i;5300:346::-;5367:6;5375;5428:2;5416:9;5407:7;5403:23;5399:32;5396:52;;;5444:1;5441;5434:12;5396:52;5467:29;5486:9;5467:29;:::i;:::-;5457:39;;5546:2;5535:9;5531:18;5518:32;5590:6;5583:5;5579:18;5572:5;5569:29;5559:57;;5612:1;5609;5602:12;5559:57;5635:5;5625:15;;;5300:346;;;;;:::o;5651:347::-;5716:6;5724;5777:2;5765:9;5756:7;5752:23;5748:32;5745:52;;;5793:1;5790;5783:12;5745:52;5816:29;5835:9;5816:29;:::i;:::-;5806:39;;5895:2;5884:9;5880:18;5867:32;5942:5;5935:13;5928:21;5921:5;5918:32;5908:60;;5964:1;5961;5954:12;6003:632;6174:2;6226:21;;;6296:13;;6199:18;;;6318:22;;;6145:4;;6174:2;6397:15;;;;6371:2;6356:18;;;6145:4;6440:169;6454:6;6451:1;6448:13;6440:169;;;6515:13;;6503:26;;6584:15;;;;6549:12;;;;6476:1;6469:9;6440:169;;;-1:-1:-1;6626:3:3;;6003:632;-1:-1:-1;;;;;;6003:632:3:o;6640:667::-;6735:6;6743;6751;6759;6812:3;6800:9;6791:7;6787:23;6783:33;6780:53;;;6829:1;6826;6819:12;6780:53;6852:29;6871:9;6852:29;:::i;:::-;6842:39;;6900:38;6934:2;6923:9;6919:18;6900:38;:::i;:::-;6890:48;;6985:2;6974:9;6970:18;6957:32;6947:42;;7040:2;7029:9;7025:18;7012:32;7067:18;7059:6;7056:30;7053:50;;;7099:1;7096;7089:12;7053:50;7122:22;;7175:4;7167:13;;7163:27;-1:-1:-1;7153:55:3;;7204:1;7201;7194:12;7153:55;7227:74;7293:7;7288:2;7275:16;7270:2;7266;7262:11;7227:74;:::i;:::-;7217:84;;;6640:667;;;;;;;:::o;7312:539::-;7408:6;7416;7424;7432;7485:3;7473:9;7464:7;7460:23;7456:33;7453:53;;;7502:1;7499;7492:12;7453:53;7538:9;7525:23;7515:33;;7567:38;7601:2;7590:9;7586:18;7567:38;:::i;:::-;7557:48;;7624:38;7658:2;7647:9;7643:18;7624:38;:::i;:::-;7614:48;;7713:2;7702:9;7698:18;7685:32;7740:18;7732:6;7729:30;7726:50;;;7772:1;7769;7762:12;7726:50;7795;7837:7;7828:6;7817:9;7813:22;7795:50;:::i;7856:501::-;-1:-1:-1;;;;;8121:15:3;;;8103:34;;8173:15;;8168:2;8153:18;;8146:43;8225:3;8220:2;8205:18;;8198:31;;;8046:4;;8246:46;;8272:19;;8264:6;8246:46;:::i;:::-;8238:54;;8342:6;8335:14;8328:22;8323:2;8312:9;8308:18;8301:50;7856:501;;;;;;;:::o;8362:260::-;8430:6;8438;8491:2;8479:9;8470:7;8466:23;8462:32;8459:52;;;8507:1;8504;8497:12;8459:52;8530:29;8549:9;8530:29;:::i;:::-;8520:39;;8578:38;8612:2;8601:9;8597:18;8578:38;:::i;:::-;8568:48;;8362:260;;;;;:::o;8627:380::-;8706:1;8702:12;;;;8749;;;8770:61;;8824:4;8816:6;8812:17;8802:27;;8770:61;8877:2;8869:6;8866:14;8846:18;8843:38;8840:161;;8923:10;8918:3;8914:20;8911:1;8904:31;8958:4;8955:1;8948:15;8986:4;8983:1;8976:15;8840:161;;8627:380;;;:::o;10252:413::-;10454:2;10436:21;;;10493:2;10473:18;;;10466:30;10532:34;10527:2;10512:18;;10505:62;-1:-1:-1;;;10598:2:3;10583:18;;10576:47;10655:3;10640:19;;10252:413::o;10670:397::-;10872:2;10854:21;;;10911:2;10891:18;;;10884:30;10950:34;10945:2;10930:18;;10923:62;-1:-1:-1;;;11016:2:3;11001:18;;10994:31;11057:3;11042:19;;10670:397::o;11072:127::-;11133:10;11128:3;11124:20;11121:1;11114:31;11164:4;11161:1;11154:15;11188:4;11185:1;11178:15;11204:125;11269:9;;;11290:10;;;11287:36;;;11303:18;;:::i;11687:135::-;11726:3;11747:17;;;11744:43;;11767:18;;:::i;:::-;-1:-1:-1;11814:1:3;11803:13;;11687:135::o;11827:356::-;12029:2;12011:21;;;12048:18;;;12041:30;12107:34;12102:2;12087:18;;12080:62;12174:2;12159:18;;11827:356::o;12663:545::-;12765:2;12760:3;12757:11;12754:448;;;12801:1;12826:5;12822:2;12815:17;12871:4;12867:2;12857:19;12941:2;12929:10;12925:19;12922:1;12918:27;12912:4;12908:38;12977:4;12965:10;12962:20;12959:47;;;-1:-1:-1;13000:4:3;12959:47;13055:2;13050:3;13046:12;13043:1;13039:20;13033:4;13029:31;13019:41;;13110:82;13128:2;13121:5;13118:13;13110:82;;;13173:17;;;13154:1;13143:13;13110:82;;;13114:3;;;12663:545;;;:::o;13384:1352::-;13510:3;13504:10;13537:18;13529:6;13526:30;13523:56;;;13559:18;;:::i;:::-;13588:97;13678:6;13638:38;13670:4;13664:11;13638:38;:::i;:::-;13632:4;13588:97;:::i;:::-;13740:4;;13804:2;13793:14;;13821:1;13816:663;;;;14523:1;14540:6;14537:89;;;-1:-1:-1;14592:19:3;;;14586:26;14537:89;-1:-1:-1;;13341:1:3;13337:11;;;13333:24;13329:29;13319:40;13365:1;13361:11;;;13316:57;14639:81;;13786:944;;13816:663;12610:1;12603:14;;;12647:4;12634:18;;-1:-1:-1;;13852:20:3;;;13970:236;13984:7;13981:1;13978:14;13970:236;;;14073:19;;;14067:26;14052:42;;14165:27;;;;14133:1;14121:14;;;;14000:19;;13970:236;;;13974:3;14234:6;14225:7;14222:19;14219:201;;;14295:19;;;14289:26;-1:-1:-1;;14378:1:3;14374:14;;;14390:3;14370:24;14366:37;14362:42;14347:58;14332:74;;14219:201;-1:-1:-1;;;;;14466:1:3;14450:14;;;14446:22;14433:36;;-1:-1:-1;13384:1352:3:o;14741:168::-;14814:9;;;14845;;14862:15;;;14856:22;;14842:37;14832:71;;14883:18;;:::i;14914:217::-;14954:1;14980;14970:132;;15024:10;15019:3;15015:20;15012:1;15005:31;15059:4;15056:1;15049:15;15087:4;15084:1;15077:15;14970:132;-1:-1:-1;15116:9:3;;14914:217::o;18196:649::-;18276:6;18329:2;18317:9;18308:7;18304:23;18300:32;18297:52;;;18345:1;18342;18335:12;18297:52;18378:9;18372:16;18411:18;18403:6;18400:30;18397:50;;;18443:1;18440;18433:12;18397:50;18466:22;;18519:4;18511:13;;18507:27;-1:-1:-1;18497:55:3;;18548:1;18545;18538:12;18497:55;18577:2;18571:9;18602:49;18618:32;18647:2;18618:32;:::i;18602:49::-;18674:2;18667:5;18660:17;18714:7;18709:2;18704;18700;18696:11;18692:20;18689:33;18686:53;;;18735:1;18732;18725:12;18686:53;18748:67;18812:2;18807;18800:5;18796:14;18791:2;18787;18783:11;18748:67;:::i;:::-;18834:5;18196:649;-1:-1:-1;;;;;18196:649:3:o;20485:128::-;20552:9;;;20573:11;;;20570:37;;;20587:18;;:::i;21336:414::-;21538:2;21520:21;;;21577:2;21557:18;;;21550:30;21616:34;21611:2;21596:18;;21589:62;-1:-1:-1;;;21682:2:3;21667:18;;21660:48;21740:3;21725:19;;21336:414::o;22224:489::-;-1:-1:-1;;;;;22493:15:3;;;22475:34;;22545:15;;22540:2;22525:18;;22518:43;22592:2;22577:18;;22570:34;;;22640:3;22635:2;22620:18;;22613:31;;;22418:4;;22661:46;;22687:19;;22679:6;22661:46;:::i;:::-;22653:54;22224:489;-1:-1:-1;;;;;;22224:489:3:o;22718:249::-;22787:6;22840:2;22828:9;22819:7;22815:23;22811:32;22808:52;;;22856:1;22853;22846:12;22808:52;22888:9;22882:16;22907:30;22931:5;22907:30;:::i

Swarm Source

ipfs://21aa6c4fcfb3359a78921b89436a4f030f6c9e1572f6d842a0aecd780fc7a8d9

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.