ETH Price: $3,407.18 (+1.12%)

Contract

0x5B42A2eb3b141ee3cfb6Bcc4484E68c7Fdf259Ef
 

Overview

ETH Balance

0.5 ETH

Eth Value

$1,703.59 (@ $3,407.18/ETH)
Transaction Hash
Method
Block
From
To
Set Approval For...195592822024-04-01 6:43:23270 days ago1711953803IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0004297917.70223238
Set Approval For...192657752024-02-20 1:55:11311 days ago1708394111IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0005674423.37189322
Set Approval For...191583502024-02-04 23:56:47326 days ago1707091007IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0003792315.62751959
Set Approval For...188911052023-12-29 12:01:47363 days ago1703851307IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0004423218.2185438
Set Approval For...187038172023-12-03 5:34:47390 days ago1701581687IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0013576629.40005195
Set Approval For...181549192023-09-17 9:37:35467 days ago1694943455IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.000190727.85551871
Set Approval For...178465972023-08-05 5:11:11510 days ago1691212271IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0006512814.11812019
Set Approval For...175099172023-06-18 23:25:47557 days ago1687130747IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0005733412.42852575
Set Approval For...170405522023-04-13 19:49:23623 days ago1681415363IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.001228326.64041051
Set Approval For...169829782023-04-05 13:48:59631 days ago1680702539IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0008655235.6490524
Transfer From169134922023-03-26 18:50:47641 days ago1679856647IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0007498518.77183316
Set Approval For...169042132023-03-25 11:34:47642 days ago1679744087IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0006099213.22856048
Set Approval For...167463702023-03-03 7:02:11665 days ago1677826931IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0010437322.63730777
Set Approval For...167298122023-02-28 23:07:23667 days ago1677625643IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0010120621.95030277
Set Approval For...166008492023-02-10 20:48:59685 days ago1676062139IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.000518321.3478945
Set Approval For...166008472023-02-10 20:48:35685 days ago1676062115IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0005342122.00316369
Set Approval For...166008472023-02-10 20:48:35685 days ago1676062115IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0005342122.00316369
Set Approval For...166008462023-02-10 20:48:23685 days ago1676062103IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0005313721.9619884
Transfer From165284962023-01-31 18:07:47695 days ago1675188467IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0020091150.29565892
Transfer From165284732023-01-31 18:03:11695 days ago1675188191IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0030160963.81925007
Safe Transfer Fr...164474142023-01-20 10:27:23707 days ago1674210443IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0007984617.29335559
Safe Transfer Fr...164474142023-01-20 10:27:23707 days ago1674210443IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0007984617.29335559
Safe Transfer Fr...164474142023-01-20 10:27:23707 days ago1674210443IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0007984617.29335559
Safe Transfer Fr...164304872023-01-18 1:45:23709 days ago1674006323IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0008515519.63367369
Safe Transfer Fr...164304872023-01-18 1:45:23709 days ago1674006323IN
0x5B42A2eb...7Fdf259Ef
0 ETH0.0008515519.63367369
View all transactions

Latest 17 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
147678752022-05-13 14:18:15958 days ago1652451495
0x5B42A2eb...7Fdf259Ef
0.1875 ETH
144564852022-03-25 16:23:461007 days ago1648225426
0x5B42A2eb...7Fdf259Ef
0.7125 ETH
141404412022-02-04 15:50:151056 days ago1643989815
0x5B42A2eb...7Fdf259Ef
1.425 ETH
141204922022-02-01 13:52:341059 days ago1643723554
0x5B42A2eb...7Fdf259Ef
1.425 ETH
140957942022-01-28 18:28:371063 days ago1643394517
0x5B42A2eb...7Fdf259Ef
0.4375 ETH
140887482022-01-27 16:24:501064 days ago1643300690
0x5B42A2eb...7Fdf259Ef
2.6125 ETH
140372942022-01-19 17:25:321072 days ago1642613132
0x5B42A2eb...7Fdf259Ef
2.1375 ETH
140358572022-01-19 11:59:041072 days ago1642593544
0x5B42A2eb...7Fdf259Ef
2.85 ETH
139015462021-12-29 17:18:111093 days ago1640798291
0x5B42A2eb...7Fdf259Ef
1.9 ETH
138561642021-12-22 16:51:221100 days ago1640191882
0x5B42A2eb...7Fdf259Ef
0.4 ETH
137659872021-12-08 17:02:281114 days ago1638982948
0x5B42A2eb...7Fdf259Ef
6.175 ETH
136840892021-11-25 14:44:531127 days ago1637851493
0x5B42A2eb...7Fdf259Ef
13.3 ETH
136830392021-11-25 10:55:011128 days ago1637837701
0x5B42A2eb...7Fdf259Ef
1.2 ETH
136532782021-11-20 17:40:361132 days ago1637430036
0x5B42A2eb...7Fdf259Ef
6.4125 ETH
136447132021-11-19 8:59:571134 days ago1637312397
0x5B42A2eb...7Fdf259Ef
25.8875 ETH
136411052021-11-18 19:12:081134 days ago1637262728
0x5B42A2eb...7Fdf259Ef
3 ETH
136361992021-11-18 0:39:061135 days ago1637195946
0x5B42A2eb...7Fdf259Ef
34.4375 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DualWorldFusion

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.8.6;

/****************************************
 * @author: squeebo_nft                 *
 * @team:   GoldenX.eth                 *
 ****************************************
 *   Blimpie-ERC721 provides low-gas    *
 *           mints + transfers          *
 ****************************************/

import './Blimpie/Delegated.sol';
import './Blimpie/ERC721EnumerableB.sol';
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";

contract DualWorldFusion is Delegated, ERC721EnumerableB, PaymentSplitter {
  using Strings for uint;

  uint public MAX_ORDER  = 20;
  uint public MAX_SUPPLY = 1400;
  uint public PRICE      = 0.25 ether;

  bool public isActive   = false;
  uint public maxOrder   = 20;

  uint private _supply = 1401;
  string private _baseTokenURI = 'https://us-central1-dual-world-fusion.cloudfunctions.net/app/nft/';
  string private _tokenURISuffix = '';

  address[] private payees = [
    0x91aecdAf903e750A8f89b3aae38552395392DEA2,
    0xB7edf3Cbb58ecb74BdE6298294c7AAb339F3cE4a
  ];

  uint[] private splits = [
    95,
     5
  ];

  constructor()
    ERC721B("Dual World Fusion", "DWF")
    PaymentSplitter( payees, splits ){
    _owners.push(address(0));
  }

  //external

  fallback() external payable {}

  function mintNFT( uint quantity ) external payable {
    require( isActive,                      "Sale is not active"        );
    require( quantity <= MAX_ORDER,         "Order too big"             );
    require( msg.value >= PRICE * quantity, "Ether sent is not correct" );

    uint supply = totalSupply();
    require( supply + quantity <= _supply, "Mint/order exceeds supply" );
    for(uint i; i < quantity; ++i){
      _safeMint( msg.sender, supply++, "" );
    }
  }


  //owner
  function gift(uint[] calldata quantity, address[] calldata recipient) external onlyDelegates{
    require(quantity.length == recipient.length, "Must provide equal quantities and recipients" );

    uint totalQuantity;
    uint supply = totalSupply();
    for(uint i; i < quantity.length; ++i){
      totalQuantity += quantity[i];
    }
    require( supply + totalQuantity <= _supply, "Mint/order exceeds supply" );

    for(uint i; i < recipient.length; ++i){
      for(uint j; j < quantity[i]; ++j){
        _safeMint( recipient[i], supply++, "" );
      }
    }
  }

  function setActive(bool isActive_) external onlyDelegates{
    require( isActive != isActive_, "New value matches old" );
    isActive = isActive_;
  }

  function setMaxOrder(uint maxOrder_) external onlyDelegates{
    require( MAX_ORDER != maxOrder, "New value matches old" );
    MAX_ORDER = maxOrder_;
  }

  function setPrice(uint price ) external onlyDelegates{
    require( PRICE != price, "New value matches old" );
    PRICE = price;
  }

  function setBaseURI(string calldata _newBaseURI, string calldata _newSuffix) external onlyDelegates{
    _baseTokenURI = _newBaseURI;
    _tokenURISuffix = _newSuffix;
  }

  //onlyOwner
  function setMaxSupply(uint maxSupply) external onlyOwner{
    require(MAX_SUPPLY != maxSupply, "New value matches old" );
    require(maxSupply >= totalSupply(), "Specified supply is lower than current balance" );
    MAX_SUPPLY = maxSupply;
    _supply = maxSupply + 1;
  }

  //public
  function tokenURI(uint tokenId) external view virtual override returns (string memory) {
    require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
    return string(abi.encodePacked(_baseTokenURI, tokenId.toString(), _tokenURISuffix));
  }
}

File 2 of 16 : ERC721EnumerableB.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

import "./ERC721B.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableB is ERC721B, IERC721Enumerable {
    mapping(address => uint[]) internal _balances;

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

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

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

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

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


    //internal - costs 20k
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override virtual {
        address zero = address(0);
        if( from != zero || to == zero ){
            //find this token and remove it
            uint length = _balances[from].length;
            for( uint i; i < length; ++i ){
                if( _balances[from][i] == tokenId ){
                    _balances[from][i] = _balances[from][length - 1];
                    _balances[from].pop();
                    break;
                }
            }
        }

        if( from == zero && to != zero )
            _balances[to].push( tokenId );
    }
}

File 3 of 16 : ERC721B.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/********************
* @author: Squeebo *
********************/

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    // 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");

        uint count = 0;
        uint length = _owners.length;
        for( uint i = 0; i < length; ++i ){
          if( owner == _owners[i] )
            ++count;
        }
        return count;
    }

    /**
     * @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 {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721B.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 tokenId < _owners.length && _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 = ERC721B.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);
        _owners.push(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 = ERC721B.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

        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(ERC721B.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);
        _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(ERC721B.ownerOf(tokenId), to, tokenId);
    }


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

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

File 4 of 16 : Delegated.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.0;

/********************
* @author: Squeebo *
********************/

import "@openzeppelin/contracts/access/Ownable.sol";

contract Delegated is Ownable{
  mapping(address => bool) internal _delegates;

  constructor(){
    _delegates[owner()] = true;
  }

  modifier onlyDelegates {
    require(_delegates[msg.sender], "Invalid delegate" );
    _;
  }

  //onlyOwner
  function isDelegate( address addr ) external view onlyOwner returns ( bool ){
    return _delegates[addr];
  }

  function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{
    _delegates[addr] = isDelegate_;
  }
}

File 5 of 16 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 6 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 7 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 8 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 16 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 10 of 16 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 14 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 16 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Address.sol";
import "../utils/Context.sol";
import "../utils/math/SafeMath.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] = _released[account] + payment;
        _totalReleased = _totalReleased + payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_ORDER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxOrder","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","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":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive_","type":"bool"}],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"},{"internalType":"string","name":"_newSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxOrder_","type":"uint256"}],"name":"setMaxOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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"},{"stateMutability":"payable","type":"receive"}]

6014600d819055610578600e556703782dace9d90000600f556010805460ff1916905560115561057960125561010060405260416080818152906200326760a0398051620000569160139160209091019062000633565b50604080516020810191829052600090819052620000779160149162000633565b50604080518082019091527391aecdaf903e750a8f89b3aae38552395392dea2815273b7edf3cbb58ecb74bde6298294c7aab339f3ce4a6020820152620000c3906015906002620006c2565b5060408051808201909152605f815260056020820152620000e99060169060026200071a565b50348015620000f757600080fd5b5060158054806020026020016040519081016040528092919081815260200182805480156200015057602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162000131575b50505050506016805480602002602001604051908101604052809291908181526020018280548015620001a357602002820191906000526020600020905b8154815260200190600101908083116200018e575b505050505060405180604001604052806011815260200170223ab0b6102bb7b9363210233ab9b4b7b760791b81525060405180604001604052806003815260200162222ba360e91b8152506200020862000202620003f160201b60201c565b620003f5565b6001806000620002206000546001600160a01b031690565b6001600160a01b03168152602080820192909252604001600020805460ff19169215159290921790915582516200025e916002919085019062000633565b5080516200027490600390602084019062000633565b5050508051825114620002e95760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b60008251116200033c5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620002e0565b60005b8251811015620003a8576200039383828151811062000362576200036262000774565b60200260200101518383815181106200037f576200037f62000774565b60200260200101516200044560201b60201c565b806200039f81620007a0565b9150506200033f565b5050600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b03191690555062000816565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620004b25760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620002e0565b60008111620005045760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620002e0565b6001600160a01b0382166000908152600a602052604090205415620005805760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620002e0565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a60205260409020819055600854620005ea908290620007be565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b8280546200064190620007d9565b90600052602060002090601f016020900481019282620006655760008555620006b0565b82601f106200068057805160ff1916838001178555620006b0565b82800160010185558215620006b0579182015b82811115620006b057825182559160200191906001019062000693565b50620006be9291506200075d565b5090565b828054828255906000526020600020908101928215620006b0579160200282015b82811115620006b057825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620006e3565b828054828255906000526020600020908101928215620006b0579160200282015b82811115620006b0578251829060ff169055916020019190600101906200073b565b5b80821115620006be57600081556001016200075e565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620007b757620007b76200078a565b5060010190565b60008219821115620007d457620007d46200078a565b500190565b600181811c90821680620007ee57607f821691505b602082108114156200081057634e487b7160e01b600052602260045260246000fd5b50919050565b612a4180620008266000396000f3fe60806040526004361061021b5760003560e01c80636f8b44b0116101225780639852595c116100a5578063ce7c2ac21161006c578063ce7c2ac214610690578063dde3d313146106c6578063e33b7de3146106e6578063e985e9c5146106fb578063f2fde38b1461074457005b80639852595c146105da578063a22cb46514610610578063acec338a14610630578063b88d4fde14610650578063c87b56dd1461067057005b80638da5cb5b116100e95780638da5cb5b1461055457806391b7f5ed14610572578063926427441461059257806395d89b41146105a557806396ea3a47146105ba57005b80636f8b44b0146104c957806370a08231146104e9578063715018a6146105095780638b83209b1461051e5780638d859f3e1461053e57005b806323b872dd116101aa5780634a994eef116101715780634a994eef146104335780634f6ccce71461045357806350c5a00c146104735780636352211e146104895780636790a9de146104a957005b806323b872dd146103a85780632f745c59146103c857806332cb6b0c146103e85780633a98ef39146103fe57806342842e0e1461041357005b8063081812fc116101ee578063081812fc14610301578063095ea7b31461033957806318160ddd14610359578063191655871461036e57806322f3e2d41461038e57005b80624510261461026657806301ffc9a71461028f57806306fdde03146102bf57806307779627146102e157005b36610264577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b005b34801561027257600080fd5b5061027c60115481565b6040519081526020015b60405180910390f35b34801561029b57600080fd5b506102af6102aa366004612215565b610764565b6040519015158152602001610286565b3480156102cb57600080fd5b506102d461078f565b6040516102869190612291565b3480156102ed57600080fd5b506102af6102fc3660046122b9565b610821565b34801561030d57600080fd5b5061032161031c3660046122d6565b610878565b6040516001600160a01b039091168152602001610286565b34801561034557600080fd5b506102646103543660046122ef565b610900565b34801561036557600080fd5b5060045461027c565b34801561037a57600080fd5b506102646103893660046122b9565b610a16565b34801561039a57600080fd5b506010546102af9060ff1681565b3480156103b457600080fd5b506102646103c336600461231b565b610be7565b3480156103d457600080fd5b5061027c6103e33660046122ef565b610c18565b3480156103f457600080fd5b5061027c600e5481565b34801561040a57600080fd5b5060085461027c565b34801561041f57600080fd5b5061026461042e36600461231b565b610cc2565b34801561043f57600080fd5b5061026461044e36600461236c565b610cdd565b34801561045f57600080fd5b5061027c61046e3660046122d6565b610d32565b34801561047f57600080fd5b5061027c600d5481565b34801561049557600080fd5b506103216104a43660046122d6565b610da4565b3480156104b557600080fd5b506102646104c43660046123ea565b610e30565b3480156104d557600080fd5b506102646104e43660046122d6565b610e7f565b3480156104f557600080fd5b5061027c6105043660046122b9565b610f4a565b34801561051557600080fd5b50610264610f8e565b34801561052a57600080fd5b506103216105393660046122d6565b610fc4565b34801561054a57600080fd5b5061027c600f5481565b34801561056057600080fd5b506000546001600160a01b0316610321565b34801561057e57600080fd5b5061026461058d3660046122d6565b610ff4565b6102646105a03660046122d6565b61104a565b3480156105b157600080fd5b506102d46111d5565b3480156105c657600080fd5b506102646105d536600461249b565b6111e4565b3480156105e657600080fd5b5061027c6105f53660046122b9565b6001600160a01b03166000908152600b602052604090205490565b34801561061c57600080fd5b5061026461062b36600461236c565b6113c1565b34801561063c57600080fd5b5061026461064b3660046124fb565b611486565b34801561065c57600080fd5b5061026461066b36600461252c565b6114f1565b34801561067c57600080fd5b506102d461068b3660046122d6565b611529565b34801561069c57600080fd5b5061027c6106ab3660046122b9565b6001600160a01b03166000908152600a602052604090205490565b3480156106d257600080fd5b506102646106e13660046122d6565b6115cd565b3480156106f257600080fd5b5060095461027c565b34801561070757600080fd5b506102af61071636600461260c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561075057600080fd5b5061026461075f3660046122b9565b611625565b60006001600160e01b0319821663780e9d6360e01b14806107895750610789826116c0565b92915050565b60606002805461079e90612645565b80601f01602080910402602001604051908101604052809291908181526020018280546107ca90612645565b80156108175780601f106107ec57610100808354040283529160200191610817565b820191906000526020600020905b8154815290600101906020018083116107fa57829003601f168201915b5050505050905090565b600080546001600160a01b031633146108555760405162461bcd60e51b815260040161084c90612680565b60405180910390fd5b506001600160a01b03811660009081526001602052604090205460ff165b919050565b600061088382611710565b6108e45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084c565b506000908152600560205260409020546001600160a01b031690565b600061090b82610da4565b9050806001600160a01b0316836001600160a01b031614156109795760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161084c565b336001600160a01b038216148061099557506109958133610716565b610a075760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161084c565b610a11838361175a565b505050565b6001600160a01b0381166000908152600a6020526040902054610a8a5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b606482015260840161084c565b600060095447610a9a91906126cb565b6001600160a01b0383166000908152600b6020908152604080832054600854600a909352908320549394509192610ad190856126e3565b610adb9190612718565b610ae5919061272c565b905080610b485760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b606482015260840161084c565b6001600160a01b0383166000908152600b6020526040902054610b6c9082906126cb565b6001600160a01b0384166000908152600b6020526040902055600954610b939082906126cb565b600955610ba083826117c8565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610bf133826118e1565b610c0d5760405162461bcd60e51b815260040161084c90612743565b610a118383836119cb565b6000610c2383611b2c565b8210610c855760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161084c565b6001600160a01b0383166000908152600760205260409020805483908110610caf57610caf612794565b9060005260206000200154905092915050565b610a11838383604051806020016040528060008152506114f1565b6000546001600160a01b03163314610d075760405162461bcd60e51b815260040161084c90612680565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6000610d3d60045490565b8210610da05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161084c565b5090565b60008060048381548110610dba57610dba612794565b6000918252602090912001546001600160a01b03169050806107895760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161084c565b3360009081526001602052604090205460ff16610e5f5760405162461bcd60e51b815260040161084c906127aa565b610e6b6013858561216f565b50610e786014838361216f565b5050505050565b6000546001600160a01b03163314610ea95760405162461bcd60e51b815260040161084c90612680565b80600e541415610ecb5760405162461bcd60e51b815260040161084c906127d4565b600454811015610f345760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b606482015260840161084c565b600e819055610f448160016126cb565b60125550565b60006001600160a01b038216610f725760405162461bcd60e51b815260040161084c90612803565b506001600160a01b031660009081526007602052604090205490565b6000546001600160a01b03163314610fb85760405162461bcd60e51b815260040161084c90612680565b610fc26000611bbb565b565b6000600c8281548110610fd957610fd9612794565b6000918252602090912001546001600160a01b031692915050565b3360009081526001602052604090205460ff166110235760405162461bcd60e51b815260040161084c906127aa565b80600f5414156110455760405162461bcd60e51b815260040161084c906127d4565b600f55565b60105460ff166110915760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b604482015260640161084c565b600d548111156110d35760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b604482015260640161084c565b80600f546110e191906126e3565b3410156111305760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604482015260640161084c565b600061113b60045490565b60125490915061114b83836126cb565b11156111955760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b604482015260640161084c565b60005b82811015610a11576111c533836111ae8161284d565b945060405180602001604052806000815250611c0b565b6111ce8161284d565b9050611198565b60606003805461079e90612645565b3360009081526001602052604090205460ff166112135760405162461bcd60e51b815260040161084c906127aa565b8281146112775760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b606482015260840161084c565b60008061128360045490565b905060005b858110156112c6578686828181106112a2576112a2612794565b90506020020135836112b491906126cb565b92506112bf8161284d565b9050611288565b506012546112d483836126cb565b111561131e5760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b604482015260640161084c565b60005b838110156113b85760005b87878381811061133e5761133e612794565b905060200201358110156113a75761139786868481811061136157611361612794565b905060200201602081019061137691906122b9565b846113808161284d565b955060405180602001604052806000815250611c0b565b6113a08161284d565b905061132c565b506113b18161284d565b9050611321565b50505050505050565b6001600160a01b03821633141561141a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161084c565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526001602052604090205460ff166114b55760405162461bcd60e51b815260040161084c906127aa565b60105460ff16151581151514156114de5760405162461bcd60e51b815260040161084c906127d4565b6010805460ff1916911515919091179055565b6114fb33836118e1565b6115175760405162461bcd60e51b815260040161084c90612743565b61152384848484611c3e565b50505050565b606061153482611710565b6115985760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161084c565b60136115a383611c71565b60146040516020016115b793929190612902565b6040516020818303038152906040529050919050565b3360009081526001602052604090205460ff166115fc5760405162461bcd60e51b815260040161084c906127aa565b601154600d5414156116205760405162461bcd60e51b815260040161084c906127d4565b600d55565b6000546001600160a01b0316331461164f5760405162461bcd60e51b815260040161084c90612680565b6001600160a01b0381166116b45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084c565b6116bd81611bbb565b50565b60006001600160e01b031982166380ac58cd60e01b14806116f157506001600160e01b03198216635b5e139f60e01b145b8061078957506301ffc9a760e01b6001600160e01b0319831614610789565b60045460009082108015610789575060006001600160a01b03166004838154811061173d5761173d612794565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061178f82610da4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156118185760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161084c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611865576040519150601f19603f3d011682016040523d82523d6000602084013e61186a565b606091505b5050905080610a115760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161084c565b60006118ec82611710565b61194d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084c565b600061195883610da4565b9050806001600160a01b0316846001600160a01b031614806119935750836001600160a01b031661198884610878565b6001600160a01b0316145b806119c357506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166119de82610da4565b6001600160a01b031614611a465760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161084c565b6001600160a01b038216611aa85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161084c565b611ab3838383611d6f565b611abe60008261175a565b8160048281548110611ad257611ad2612794565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006001600160a01b038216611b545760405162461bcd60e51b815260040161084c90612803565b600454600090815b81811015611bb25760048181548110611b7757611b77612794565b6000918252602090912001546001600160a01b0386811691161415611ba257611b9f8361284d565b92505b611bab8161284d565b9050611b5c565b50909392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611c158383611f3d565b611c226000848484612071565b610a115760405162461bcd60e51b815260040161084c90612935565b611c498484846119cb565b611c5584848484612071565b6115235760405162461bcd60e51b815260040161084c90612935565b606081611c955750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cbf5780611ca98161284d565b9150611cb89050600a83612718565b9150611c99565b60008167ffffffffffffffff811115611cda57611cda612516565b6040519080825280601f01601f191660200182016040528015611d04576020820181803683370190505b5090505b84156119c357611d1960018361272c565b9150611d26600a86612987565b611d319060306126cb565b60f81b818381518110611d4657611d46612794565b60200101906001600160f81b031916908160001a905350611d68600a86612718565b9450611d08565b60006001600160a01b038416151580611d995750806001600160a01b0316836001600160a01b0316145b15611ed6576001600160a01b038416600090815260076020526040812054905b81811015611ed3576001600160a01b0386166000908152600760205260409020805485919083908110611dee57611dee612794565b90600052602060002001541415611ec3576001600160a01b0386166000908152600760205260409020611e2260018461272c565b81548110611e3257611e32612794565b906000526020600020015460076000886001600160a01b03166001600160a01b031681526020019081526020016000208281548110611e7357611e73612794565b60009182526020808320909101929092556001600160a01b0388168152600790915260409020805480611ea857611ea861299b565b60019003818190600052602060002001600090559055611ed3565b611ecc8161284d565b9050611db9565b50505b806001600160a01b0316846001600160a01b0316148015611f095750806001600160a01b0316836001600160a01b031614155b1561152357506001600160a01b03919091166000908152600760209081526040822080546001810182559083529120015550565b6001600160a01b038216611f935760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161084c565b611f9c81611710565b15611fe95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161084c565b611ff560008383611d6f565b6004805460018101825560009182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561216457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120b59033908990889088906004016129b1565b6020604051808303816000875af19250505080156120f0575060408051601f3d908101601f191682019092526120ed918101906129ee565b60015b61214a573d80801561211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b5080516121425760405162461bcd60e51b815260040161084c90612935565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119c3565b506001949350505050565b82805461217b90612645565b90600052602060002090601f01602090048101928261219d57600085556121e3565b82601f106121b65782800160ff198235161785556121e3565b828001600101855582156121e3579182015b828111156121e35782358255916020019190600101906121c8565b50610da09291505b80821115610da057600081556001016121eb565b6001600160e01b0319811681146116bd57600080fd5b60006020828403121561222757600080fd5b8135612232816121ff565b9392505050565b60005b8381101561225457818101518382015260200161223c565b838111156115235750506000910152565b6000815180845261227d816020860160208601612239565b601f01601f19169290920160200192915050565b6020815260006122326020830184612265565b6001600160a01b03811681146116bd57600080fd5b6000602082840312156122cb57600080fd5b8135612232816122a4565b6000602082840312156122e857600080fd5b5035919050565b6000806040838503121561230257600080fd5b823561230d816122a4565b946020939093013593505050565b60008060006060848603121561233057600080fd5b833561233b816122a4565b9250602084013561234b816122a4565b929592945050506040919091013590565b8035801515811461087357600080fd5b6000806040838503121561237f57600080fd5b823561238a816122a4565b91506123986020840161235c565b90509250929050565b60008083601f8401126123b357600080fd5b50813567ffffffffffffffff8111156123cb57600080fd5b6020830191508360208285010111156123e357600080fd5b9250929050565b6000806000806040858703121561240057600080fd5b843567ffffffffffffffff8082111561241857600080fd5b612424888389016123a1565b9096509450602087013591508082111561243d57600080fd5b5061244a878288016123a1565b95989497509550505050565b60008083601f84011261246857600080fd5b50813567ffffffffffffffff81111561248057600080fd5b6020830191508360208260051b85010111156123e357600080fd5b600080600080604085870312156124b157600080fd5b843567ffffffffffffffff808211156124c957600080fd5b6124d588838901612456565b909650945060208701359150808211156124ee57600080fd5b5061244a87828801612456565b60006020828403121561250d57600080fd5b6122328261235c565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561254257600080fd5b843561254d816122a4565b9350602085013561255d816122a4565b925060408501359150606085013567ffffffffffffffff8082111561258157600080fd5b818701915087601f83011261259557600080fd5b8135818111156125a7576125a7612516565b604051601f8201601f19908116603f011681019083821181831017156125cf576125cf612516565b816040528281528a60208487010111156125e857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561261f57600080fd5b823561262a816122a4565b9150602083013561263a816122a4565b809150509250929050565b600181811c9082168061265957607f821691505b6020821081141561267a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156126de576126de6126b5565b500190565b60008160001904831182151516156126fd576126fd6126b5565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261272757612727612702565b500490565b60008282101561273e5761273e6126b5565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526015908201527413995dc81d985b1d59481b585d18da195cc81bdb19605a1b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6000600019821415612861576128616126b5565b5060010190565b8054600090600181811c908083168061288257607f831692505b60208084108214156128a457634e487b7160e01b600052602260045260246000fd5b8180156128b857600181146128c9576128f6565b60ff198616895284890196506128f6565b60008881526020902060005b868110156128ee5781548b8201529085019083016128d5565b505084890196505b50505050505092915050565b600061290e8286612868565b845161291e818360208901612239565b61292a81830186612868565b979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261299657612996612702565b500690565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129e490830184612265565b9695505050505050565b600060208284031215612a0057600080fd5b8151612232816121ff56fea264697066735822122098167129a8224f90fc5a149e2a317672d5f0841935d8d133a7d19c00ebd8f63264736f6c634300080a003368747470733a2f2f75732d63656e7472616c312d6475616c2d776f726c642d667573696f6e2e636c6f756466756e6374696f6e732e6e65742f6170702f6e66742f

Deployed Bytecode

0x60806040526004361061021b5760003560e01c80636f8b44b0116101225780639852595c116100a5578063ce7c2ac21161006c578063ce7c2ac214610690578063dde3d313146106c6578063e33b7de3146106e6578063e985e9c5146106fb578063f2fde38b1461074457005b80639852595c146105da578063a22cb46514610610578063acec338a14610630578063b88d4fde14610650578063c87b56dd1461067057005b80638da5cb5b116100e95780638da5cb5b1461055457806391b7f5ed14610572578063926427441461059257806395d89b41146105a557806396ea3a47146105ba57005b80636f8b44b0146104c957806370a08231146104e9578063715018a6146105095780638b83209b1461051e5780638d859f3e1461053e57005b806323b872dd116101aa5780634a994eef116101715780634a994eef146104335780634f6ccce71461045357806350c5a00c146104735780636352211e146104895780636790a9de146104a957005b806323b872dd146103a85780632f745c59146103c857806332cb6b0c146103e85780633a98ef39146103fe57806342842e0e1461041357005b8063081812fc116101ee578063081812fc14610301578063095ea7b31461033957806318160ddd14610359578063191655871461036e57806322f3e2d41461038e57005b80624510261461026657806301ffc9a71461028f57806306fdde03146102bf57806307779627146102e157005b36610264577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b005b34801561027257600080fd5b5061027c60115481565b6040519081526020015b60405180910390f35b34801561029b57600080fd5b506102af6102aa366004612215565b610764565b6040519015158152602001610286565b3480156102cb57600080fd5b506102d461078f565b6040516102869190612291565b3480156102ed57600080fd5b506102af6102fc3660046122b9565b610821565b34801561030d57600080fd5b5061032161031c3660046122d6565b610878565b6040516001600160a01b039091168152602001610286565b34801561034557600080fd5b506102646103543660046122ef565b610900565b34801561036557600080fd5b5060045461027c565b34801561037a57600080fd5b506102646103893660046122b9565b610a16565b34801561039a57600080fd5b506010546102af9060ff1681565b3480156103b457600080fd5b506102646103c336600461231b565b610be7565b3480156103d457600080fd5b5061027c6103e33660046122ef565b610c18565b3480156103f457600080fd5b5061027c600e5481565b34801561040a57600080fd5b5060085461027c565b34801561041f57600080fd5b5061026461042e36600461231b565b610cc2565b34801561043f57600080fd5b5061026461044e36600461236c565b610cdd565b34801561045f57600080fd5b5061027c61046e3660046122d6565b610d32565b34801561047f57600080fd5b5061027c600d5481565b34801561049557600080fd5b506103216104a43660046122d6565b610da4565b3480156104b557600080fd5b506102646104c43660046123ea565b610e30565b3480156104d557600080fd5b506102646104e43660046122d6565b610e7f565b3480156104f557600080fd5b5061027c6105043660046122b9565b610f4a565b34801561051557600080fd5b50610264610f8e565b34801561052a57600080fd5b506103216105393660046122d6565b610fc4565b34801561054a57600080fd5b5061027c600f5481565b34801561056057600080fd5b506000546001600160a01b0316610321565b34801561057e57600080fd5b5061026461058d3660046122d6565b610ff4565b6102646105a03660046122d6565b61104a565b3480156105b157600080fd5b506102d46111d5565b3480156105c657600080fd5b506102646105d536600461249b565b6111e4565b3480156105e657600080fd5b5061027c6105f53660046122b9565b6001600160a01b03166000908152600b602052604090205490565b34801561061c57600080fd5b5061026461062b36600461236c565b6113c1565b34801561063c57600080fd5b5061026461064b3660046124fb565b611486565b34801561065c57600080fd5b5061026461066b36600461252c565b6114f1565b34801561067c57600080fd5b506102d461068b3660046122d6565b611529565b34801561069c57600080fd5b5061027c6106ab3660046122b9565b6001600160a01b03166000908152600a602052604090205490565b3480156106d257600080fd5b506102646106e13660046122d6565b6115cd565b3480156106f257600080fd5b5060095461027c565b34801561070757600080fd5b506102af61071636600461260c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561075057600080fd5b5061026461075f3660046122b9565b611625565b60006001600160e01b0319821663780e9d6360e01b14806107895750610789826116c0565b92915050565b60606002805461079e90612645565b80601f01602080910402602001604051908101604052809291908181526020018280546107ca90612645565b80156108175780601f106107ec57610100808354040283529160200191610817565b820191906000526020600020905b8154815290600101906020018083116107fa57829003601f168201915b5050505050905090565b600080546001600160a01b031633146108555760405162461bcd60e51b815260040161084c90612680565b60405180910390fd5b506001600160a01b03811660009081526001602052604090205460ff165b919050565b600061088382611710565b6108e45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084c565b506000908152600560205260409020546001600160a01b031690565b600061090b82610da4565b9050806001600160a01b0316836001600160a01b031614156109795760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161084c565b336001600160a01b038216148061099557506109958133610716565b610a075760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161084c565b610a11838361175a565b505050565b6001600160a01b0381166000908152600a6020526040902054610a8a5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b606482015260840161084c565b600060095447610a9a91906126cb565b6001600160a01b0383166000908152600b6020908152604080832054600854600a909352908320549394509192610ad190856126e3565b610adb9190612718565b610ae5919061272c565b905080610b485760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b606482015260840161084c565b6001600160a01b0383166000908152600b6020526040902054610b6c9082906126cb565b6001600160a01b0384166000908152600b6020526040902055600954610b939082906126cb565b600955610ba083826117c8565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610bf133826118e1565b610c0d5760405162461bcd60e51b815260040161084c90612743565b610a118383836119cb565b6000610c2383611b2c565b8210610c855760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161084c565b6001600160a01b0383166000908152600760205260409020805483908110610caf57610caf612794565b9060005260206000200154905092915050565b610a11838383604051806020016040528060008152506114f1565b6000546001600160a01b03163314610d075760405162461bcd60e51b815260040161084c90612680565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6000610d3d60045490565b8210610da05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161084c565b5090565b60008060048381548110610dba57610dba612794565b6000918252602090912001546001600160a01b03169050806107895760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161084c565b3360009081526001602052604090205460ff16610e5f5760405162461bcd60e51b815260040161084c906127aa565b610e6b6013858561216f565b50610e786014838361216f565b5050505050565b6000546001600160a01b03163314610ea95760405162461bcd60e51b815260040161084c90612680565b80600e541415610ecb5760405162461bcd60e51b815260040161084c906127d4565b600454811015610f345760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b606482015260840161084c565b600e819055610f448160016126cb565b60125550565b60006001600160a01b038216610f725760405162461bcd60e51b815260040161084c90612803565b506001600160a01b031660009081526007602052604090205490565b6000546001600160a01b03163314610fb85760405162461bcd60e51b815260040161084c90612680565b610fc26000611bbb565b565b6000600c8281548110610fd957610fd9612794565b6000918252602090912001546001600160a01b031692915050565b3360009081526001602052604090205460ff166110235760405162461bcd60e51b815260040161084c906127aa565b80600f5414156110455760405162461bcd60e51b815260040161084c906127d4565b600f55565b60105460ff166110915760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b604482015260640161084c565b600d548111156110d35760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b604482015260640161084c565b80600f546110e191906126e3565b3410156111305760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604482015260640161084c565b600061113b60045490565b60125490915061114b83836126cb565b11156111955760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b604482015260640161084c565b60005b82811015610a11576111c533836111ae8161284d565b945060405180602001604052806000815250611c0b565b6111ce8161284d565b9050611198565b60606003805461079e90612645565b3360009081526001602052604090205460ff166112135760405162461bcd60e51b815260040161084c906127aa565b8281146112775760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b606482015260840161084c565b60008061128360045490565b905060005b858110156112c6578686828181106112a2576112a2612794565b90506020020135836112b491906126cb565b92506112bf8161284d565b9050611288565b506012546112d483836126cb565b111561131e5760405162461bcd60e51b81526020600482015260196024820152784d696e742f6f72646572206578636565647320737570706c7960381b604482015260640161084c565b60005b838110156113b85760005b87878381811061133e5761133e612794565b905060200201358110156113a75761139786868481811061136157611361612794565b905060200201602081019061137691906122b9565b846113808161284d565b955060405180602001604052806000815250611c0b565b6113a08161284d565b905061132c565b506113b18161284d565b9050611321565b50505050505050565b6001600160a01b03821633141561141a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161084c565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526001602052604090205460ff166114b55760405162461bcd60e51b815260040161084c906127aa565b60105460ff16151581151514156114de5760405162461bcd60e51b815260040161084c906127d4565b6010805460ff1916911515919091179055565b6114fb33836118e1565b6115175760405162461bcd60e51b815260040161084c90612743565b61152384848484611c3e565b50505050565b606061153482611710565b6115985760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161084c565b60136115a383611c71565b60146040516020016115b793929190612902565b6040516020818303038152906040529050919050565b3360009081526001602052604090205460ff166115fc5760405162461bcd60e51b815260040161084c906127aa565b601154600d5414156116205760405162461bcd60e51b815260040161084c906127d4565b600d55565b6000546001600160a01b0316331461164f5760405162461bcd60e51b815260040161084c90612680565b6001600160a01b0381166116b45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084c565b6116bd81611bbb565b50565b60006001600160e01b031982166380ac58cd60e01b14806116f157506001600160e01b03198216635b5e139f60e01b145b8061078957506301ffc9a760e01b6001600160e01b0319831614610789565b60045460009082108015610789575060006001600160a01b03166004838154811061173d5761173d612794565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061178f82610da4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b804710156118185760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161084c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611865576040519150601f19603f3d011682016040523d82523d6000602084013e61186a565b606091505b5050905080610a115760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161084c565b60006118ec82611710565b61194d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161084c565b600061195883610da4565b9050806001600160a01b0316846001600160a01b031614806119935750836001600160a01b031661198884610878565b6001600160a01b0316145b806119c357506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166119de82610da4565b6001600160a01b031614611a465760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161084c565b6001600160a01b038216611aa85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161084c565b611ab3838383611d6f565b611abe60008261175a565b8160048281548110611ad257611ad2612794565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006001600160a01b038216611b545760405162461bcd60e51b815260040161084c90612803565b600454600090815b81811015611bb25760048181548110611b7757611b77612794565b6000918252602090912001546001600160a01b0386811691161415611ba257611b9f8361284d565b92505b611bab8161284d565b9050611b5c565b50909392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611c158383611f3d565b611c226000848484612071565b610a115760405162461bcd60e51b815260040161084c90612935565b611c498484846119cb565b611c5584848484612071565b6115235760405162461bcd60e51b815260040161084c90612935565b606081611c955750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cbf5780611ca98161284d565b9150611cb89050600a83612718565b9150611c99565b60008167ffffffffffffffff811115611cda57611cda612516565b6040519080825280601f01601f191660200182016040528015611d04576020820181803683370190505b5090505b84156119c357611d1960018361272c565b9150611d26600a86612987565b611d319060306126cb565b60f81b818381518110611d4657611d46612794565b60200101906001600160f81b031916908160001a905350611d68600a86612718565b9450611d08565b60006001600160a01b038416151580611d995750806001600160a01b0316836001600160a01b0316145b15611ed6576001600160a01b038416600090815260076020526040812054905b81811015611ed3576001600160a01b0386166000908152600760205260409020805485919083908110611dee57611dee612794565b90600052602060002001541415611ec3576001600160a01b0386166000908152600760205260409020611e2260018461272c565b81548110611e3257611e32612794565b906000526020600020015460076000886001600160a01b03166001600160a01b031681526020019081526020016000208281548110611e7357611e73612794565b60009182526020808320909101929092556001600160a01b0388168152600790915260409020805480611ea857611ea861299b565b60019003818190600052602060002001600090559055611ed3565b611ecc8161284d565b9050611db9565b50505b806001600160a01b0316846001600160a01b0316148015611f095750806001600160a01b0316836001600160a01b031614155b1561152357506001600160a01b03919091166000908152600760209081526040822080546001810182559083529120015550565b6001600160a01b038216611f935760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161084c565b611f9c81611710565b15611fe95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161084c565b611ff560008383611d6f565b6004805460018101825560009182527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561216457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906120b59033908990889088906004016129b1565b6020604051808303816000875af19250505080156120f0575060408051601f3d908101601f191682019092526120ed918101906129ee565b60015b61214a573d80801561211e576040519150601f19603f3d011682016040523d82523d6000602084013e612123565b606091505b5080516121425760405162461bcd60e51b815260040161084c90612935565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119c3565b506001949350505050565b82805461217b90612645565b90600052602060002090601f01602090048101928261219d57600085556121e3565b82601f106121b65782800160ff198235161785556121e3565b828001600101855582156121e3579182015b828111156121e35782358255916020019190600101906121c8565b50610da09291505b80821115610da057600081556001016121eb565b6001600160e01b0319811681146116bd57600080fd5b60006020828403121561222757600080fd5b8135612232816121ff565b9392505050565b60005b8381101561225457818101518382015260200161223c565b838111156115235750506000910152565b6000815180845261227d816020860160208601612239565b601f01601f19169290920160200192915050565b6020815260006122326020830184612265565b6001600160a01b03811681146116bd57600080fd5b6000602082840312156122cb57600080fd5b8135612232816122a4565b6000602082840312156122e857600080fd5b5035919050565b6000806040838503121561230257600080fd5b823561230d816122a4565b946020939093013593505050565b60008060006060848603121561233057600080fd5b833561233b816122a4565b9250602084013561234b816122a4565b929592945050506040919091013590565b8035801515811461087357600080fd5b6000806040838503121561237f57600080fd5b823561238a816122a4565b91506123986020840161235c565b90509250929050565b60008083601f8401126123b357600080fd5b50813567ffffffffffffffff8111156123cb57600080fd5b6020830191508360208285010111156123e357600080fd5b9250929050565b6000806000806040858703121561240057600080fd5b843567ffffffffffffffff8082111561241857600080fd5b612424888389016123a1565b9096509450602087013591508082111561243d57600080fd5b5061244a878288016123a1565b95989497509550505050565b60008083601f84011261246857600080fd5b50813567ffffffffffffffff81111561248057600080fd5b6020830191508360208260051b85010111156123e357600080fd5b600080600080604085870312156124b157600080fd5b843567ffffffffffffffff808211156124c957600080fd5b6124d588838901612456565b909650945060208701359150808211156124ee57600080fd5b5061244a87828801612456565b60006020828403121561250d57600080fd5b6122328261235c565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561254257600080fd5b843561254d816122a4565b9350602085013561255d816122a4565b925060408501359150606085013567ffffffffffffffff8082111561258157600080fd5b818701915087601f83011261259557600080fd5b8135818111156125a7576125a7612516565b604051601f8201601f19908116603f011681019083821181831017156125cf576125cf612516565b816040528281528a60208487010111156125e857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561261f57600080fd5b823561262a816122a4565b9150602083013561263a816122a4565b809150509250929050565b600181811c9082168061265957607f821691505b6020821081141561267a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156126de576126de6126b5565b500190565b60008160001904831182151516156126fd576126fd6126b5565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261272757612727612702565b500490565b60008282101561273e5761273e6126b5565b500390565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526015908201527413995dc81d985b1d59481b585d18da195cc81bdb19605a1b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6000600019821415612861576128616126b5565b5060010190565b8054600090600181811c908083168061288257607f831692505b60208084108214156128a457634e487b7160e01b600052602260045260246000fd5b8180156128b857600181146128c9576128f6565b60ff198616895284890196506128f6565b60008881526020902060005b868110156128ee5781548b8201529085019083016128d5565b505084890196505b50505050505092915050565b600061290e8286612868565b845161291e818360208901612239565b61292a81830186612868565b979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261299657612996612702565b500690565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129e490830184612265565b9695505050505050565b600060208284031215612a0057600080fd5b8151612232816121ff56fea264697066735822122098167129a8224f90fc5a149e2a317672d5f0841935d8d133a7d19c00ebd8f63264736f6c634300080a0033

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.