Contract 0x303Fd791674D67e1288f769B54699c170eEdE5e7

 
Txn Hash
Method
Block
From
To
Value
0xf411568c01c68ba62189cfcb840c3926dcb82e9a291c3f70bdc8ec7ca4a4c84aSet Approval For...153553732022-08-16 23:47:298 hrs 47 mins ago0x909816b88b20706a07692de404206cc53afcfad5 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00015744 6.‍47814689
0x15f44a6201b163367edb21b1f81720f6a66fbb8ce460746ca73ef6a4c6b12733Set Approval For...153541772022-08-16 19:19:0913 hrs 15 mins ago0x909816b88b20706a07692de404206cc53afcfad5 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00052068 11.‍26639194
0xa38f61c588e62bc1ac69df1155ed0563d5f420689895dd12715cca7a398c89c4Mint153181182022-08-11 2:34:316 days 6 hrs ago0x6c59db35f4f31e2f14627bb527f0997400cec3d0 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00191257 18.‍85866136
0xf98a6d9e54b67aaf8329b87d554bd4d6d5aceae54ce32182ac56706ac5fc742dMint153121482022-08-10 3:59:567 days 4 hrs ago0xab69b3c138e9252d6b5f0021240620a2e5e40524 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00096155 9.‍48127062
0x690bf013645f4890189907a7cf3877a7511281e3407654f330f155745f65d471Safe Transfer Fr...153117412022-08-10 2:30:087 days 6 hrs ago0x266b07b0d0add7f66d245eaa542841e7ac4cdae5 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00060903 11.‍73959148
0x8c4a224eeae140c59780cf770922f8a13f73dab80abcc1fab77575f275fea2fdSet Approval For...153029572022-08-08 17:42:308 days 14 hrs agoENS Name x03688.eth IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00100203 21.‍72110704
0x1e38c1c2bc2bb61560c9099484f69e532cc3a9f1c5a0b3c3034f6a6203da5a2bMint152892432022-08-06 14:22:1310 days 18 hrs ago0xc21d6ffe022d14d17484030deb08c738956ad003 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00177722 17.‍52415195
0xeb64cc96ab339479a8b0d859e3509d840a31307f5aaa43cec30033d6cdc9363cMint152867412022-08-06 4:55:4311 days 3 hrs ago0x8f10cb3fc04213e4acf80ed8df72f972695a6ba9 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00078097.‍7
0xda6e654b22ecf5cbb942dbaf2ccef3fbad6f1af8db9dd7911d1d79ab3d39a2c1Safe Transfer Fr...152820722022-08-05 11:36:2511 days 20 hrs ago0x238948f7539d04738f32cd50aba95b12773b5bca IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00152116 29.‍32138053
0xc493ab0731311bb7ff147db85bb42cd41e3c5cd14c77825609db291889d64610Mint152712072022-08-03 19:05:5713 days 13 hrs ago0x4805922885c4d6aa033fa2bf34c5243fb09ad82c IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍002941 28.‍99946133
0xf2b6b8aaaeffe0a6341b839b03c265106c55d83416e3eb9078da935d82f7cb6fSet Approval For...152468382022-07-30 23:42:5717 days 8 hrs ago0x8b972577f77d994323aa6ef60afdc8e160686d44 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00036434 7.‍89779996
0x64c091ea192c2b8220a155ed920eb58675fdfa02d571931086e32d2788a4cff9Mint152131512022-07-25 17:51:1122 days 14 hrs ago0xf417d3b939d03b2ecbac76184cd966e6be59f5ac IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00242418 23.‍90336203
0x9358ec163dc38dbf1688f014fb60fa50278ae498bb2b6301083791a4c36090a5Mint152091592022-07-25 2:55:4923 days 5 hrs ago0x8a8e588ccda9c38984c11c9671f725b772066802 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00081132 8
0xd4c8e1ea37559f4babfaf9e79092b28d3f02b3f7f823fa100cf05453bab2d5eaSet Approval For...152085692022-07-25 0:38:1723 days 7 hrs agoENS Name borednfts.eth IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00059889 12.‍98210944
0x1376ee54e2aba12c4909593e38f9d99d6de46621ca3664bca628de079f6f9a31Set Approval For...152071152022-07-24 19:13:0723 days 13 hrs agoENS Name goingconcern.eth IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00047531 10.‍3033662
0xc39e3f18d875f82a50c31a1bdc0889cb92e2324763263fa443bbb3bffc93254cMint152058152022-07-24 14:22:4123 days 18 hrs ago0xa3a593f6d5a35e54759e22efcc204cd6ce0193fe IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00197821 19.‍50590286
0xc7643792f7ed15d2655ebd6bb439917b0d21ead6e9c4aee79f61739b34793013Mint151953162022-07-22 23:03:3325 days 9 hrs ago0x37e704f7f8bb3cd38aee8c168a6844b12ab07d34 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00261449 8.‍82813676
0xab36d296b1949928f3ff7245bb58cbab59b6a0f65f69130d065a1911e0bc58cdMint151672402022-07-18 14:41:0229 days 17 hrs ago0x238948f7539d04738f32cd50aba95b12773b5bca IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00581265 57.‍31492817
0x23f6f76985557e0e02bd0faacb3238bcca9a8ca4381a93b917b60b7081c65fa4Mint151506302022-07-16 1:01:2032 days 7 hrs ago0x1c04ac42d0a373cc95c3abcec5c2707a7a359174 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00209044 20.‍61258516
0x43f38f12f8042d69a17c29215693789b30fb84c86eb1345d8b52815c821cf2e0Mint151329042022-07-13 7:16:2635 days 1 hr ago0x48fde26389472bee41cbad9f0feecbfc703846de IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00195755 19.‍30219294
0x1edf618775427f664c435666f812e4bb03d69ba973becec48078a6f802676ea2Mint151324462022-07-13 5:33:4735 days 3 hrs ago0x2199f675a61f703c476d18d1bf22a1fe12eaf39a IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00144825 14.‍28031161
0xf7d86a4aed70565e004f155002f659b1351ac5b1513e131d5c5666221a84a9ebMint151324182022-07-13 5:28:0135 days 3 hrs ago0x07aae442bc5c68d3d5ee49456f27775ebc7867de IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00146104 14.‍40642149
0x7f3ba99bf1097125035e66564f9b9d08e9793b7916f4fdceaa65427b8d6c041eMint151318602022-07-13 3:21:2435 days 5 hrs ago0xb95a5bf4e976ad77c2ff8f1dcbcfa338a2bdbc36 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00057844 14.‍30412123
0x2a3cd775d8d99e7e08a85edfcbc9f5d0b551ebddcbbe8a6b4a034aba1cbb7896Mint151318582022-07-13 3:20:5235 days 5 hrs ago0xb95a5bf4e976ad77c2ff8f1dcbcfa338a2bdbc36 IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍00142341 14.‍03542683
0x0729d03e73ad625634257192406dd1f475cc0d00370cbaf168559851fef5b516Mint151317182022-07-13 2:49:1735 days 5 hrs agoENS Name vault.speckyroggins21.eth IN  0x303fd791674d67e1288f769b54699c170eede5e70 Ether0.‍0026087 25.‍72280358
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CyberHornetsComic

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : CyberHornetsComic.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

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

import './Blimpie/Delegated.sol';
import './Blimpie/PaymentSplitterMod.sol';
import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';

interface ICyberHornets {
	function balanceOf( address account ) external view returns (uint256);
}

contract CyberHornetsComic is Delegated, ERC1155, PaymentSplitterMod {
  uint public MAX_SUPPLY = 3000;

  uint public PRESALE_PRICE = 0 ether;
  uint public PRESALE_MAX_TX = 1;
  mapping( address => bool ) public presaleClaimed;

  uint public PUBLIC_MAX_TX = 4;
  uint public PUBLIC_PRICE = 0.02 ether;

  string public name = "Cyber Hornets: Comics";
  string public symbol = "CH:C";
  
  struct Token{
    string name;
    string uri;
    uint16 balance;
    uint16 supply;
  }

  Token[] public tokens;

  enum SaleState {
    paused,
    presale,
    publicSale
  }

  SaleState public saleState;

  ICyberHornets public CyberHornetsColonyClubProxy = ICyberHornets(0x821043B51Bd384f2CaA0d09dc136181870B2beA2);
  ICyberHornets public CyberHornetsAnimusProxy = ICyberHornets(0x6c37F6cfE665c22B8a407430651e9EE31d71D1cf);

  constructor()
    Delegated()
    ERC1155( "" ){
    _addPayee(0xed386149321FBd84f0c4e27a1701Ad05eCA32f8A, 11);
    _addPayee(0x01c7812a88b221766C445fb5dBDE43C95d5c6494, 89);

    tokens.push(Token("Cover 1", "https://cyberhornetscolony.com/digital-comic/metadata/0.json", 0, 1000));
    tokens.push(Token("Cover 2", "https://cyberhornetscolony.com/digital-comic/metadata/1.json", 0, 1000));
    tokens.push(Token("Cover 3", "https://cyberhornetscolony.com/digital-comic/metadata/2.json", 0, 1000));
  }

  function exists(uint id) external view returns (bool) {
    return id < tokens.length;
  }

  function tokenSupply( uint id ) external view returns( uint ){
    require(id < tokens.length, "Specified token (id) does not exist" );
    return tokens[id].balance;
  }

  function totalSupply () public view returns ( uint ){
    uint sum;
    for( uint i; i < tokens.length; ++i ) {
      sum += tokens[i].balance;
    }
    return sum;
  }

  function uri( uint id ) public override view returns ( string memory ){
    require(id < tokens.length, "Specified token (id) does not exist" );
    return tokens[id].uri;
  }


  function mint( uint quantity ) external payable{
    require( saleState > SaleState.paused, "Sale is not active" );
    require( totalSupply() + quantity <= MAX_SUPPLY, "Cannot exceed max supply" );

    if( saleState == SaleState.presale ){
      require( msg.value >= PRESALE_PRICE * quantity,  "Ether sent is not correct" );
      require( presaleClaimed[msg.sender] != true, "Only one comic per account" );
      if( address(CyberHornetsColonyClubProxy) == address(0)
        || address(CyberHornetsAnimusProxy) == address(0) ){
        revert( "Invalid proxy configuraiton" );
      }

      if( CyberHornetsColonyClubProxy.balanceOf( msg.sender ) > 0
        || CyberHornetsAnimusProxy.balanceOf( msg.sender ) > 0 ){
        
        presaleClaimed[msg.sender] = true;
        uint id = randomMintId();
        ++tokens[id].balance;
        _mint( msg.sender, id, 1, "" );
      }
      else{
        revert( "Must own a CHCC or CH Animus to claim during presale" );
      }
    }
    else if ( saleState == SaleState.publicSale ){
      require( msg.value >= PUBLIC_PRICE * quantity,  "Ether sent is not correct" );
      require( quantity <= PUBLIC_MAX_TX && quantity > 0, "Invalid quantity");

      uint id;
      for( uint i; i < quantity; ++i ) {
        id = randomMintId();
        ++tokens[id].balance;
        _mint( msg.sender, id, 1, "" );
      }
    }
  }

  function mintTo( address[] calldata accounts, uint[] calldata quantities ) external payable onlyDelegates {
    require( accounts.length == quantities.length, "Must provide equal accounts and quantities");

    uint sum;
    for(uint k; k < quantities.length; ++k ){
      sum += quantities[k];
    }
    require( totalSupply() + sum <= MAX_SUPPLY, "Cannot exceed max supply");
 
    uint id;
    for(uint i; i < quantities.length; ++i ){
      for( uint j; j < quantities[i]; ++j ) {
        id = randomMintId();
        ++tokens[id].balance;
        _mint( accounts[i], id, 1, "" );
      }
    }
  }

  function randomMintId() internal view returns ( uint ) {
    uint currentId = uint(keccak256(abi.encodePacked(block.timestamp, msg.sender, totalSupply()))) % tokens.length;
    for( uint i; i < tokens.length;  ++i ){
      currentId = currentId + i % tokens.length;
      if (tokens[currentId].balance < tokens[currentId].supply)
        return currentId;
    }

    revert( "No available supply" );
  }

  function setToken(uint id, uint16 supply_, string calldata uri_ ) public onlyDelegates{
    require( id < tokens.length || id == tokens.length, "Invalid token id" );

    if( id == tokens.length ){
      tokens.push();
    }

    Token storage token = tokens[id];
    token.uri = uri_;

    require( supply_ >= token.balance, "Supply is lower than balance" );
    token.supply = supply_;
  }

  function setPrice ( uint _presalePrice, uint _publicPrice ) external onlyDelegates {
    PRESALE_PRICE = _presalePrice;
    PUBLIC_PRICE = _publicPrice;
  }

  function setCHCCContract( address _cyberHornetsColonyClubProxy ) external onlyDelegates {
    require( address(CyberHornetsColonyClubProxy) != _cyberHornetsColonyClubProxy );
    CyberHornetsColonyClubProxy = ICyberHornets(_cyberHornetsColonyClubProxy);
  }

  function setCHAnimusContract( address _cyberHornetsAnimusProxy ) external onlyDelegates {
    require( address(CyberHornetsAnimusProxy) != _cyberHornetsAnimusProxy );
    CyberHornetsAnimusProxy = ICyberHornets(_cyberHornetsAnimusProxy);
  }

  function setMaxSupply ( uint _newMaxSupply ) external onlyDelegates { 
    require( totalSupply() <= _newMaxSupply, "New supply must meet or exceed current supply");
    MAX_SUPPLY = _newMaxSupply;
  }

  function setSaleState(SaleState _state) external onlyDelegates {
    saleState = _state;
  }
}

File 2 of 12 : PaymentSplitterMod.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.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 PaymentSplitterMod 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() payable {}

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






    function _addPayee(address account, uint256 shares_) internal {
        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_);
    }

    function _resetCounters() internal {
        _totalReleased = 0;
        for(uint i; i < _payees.length; ++i ){
            _released[ _payees[i] ] = 0;
        }
    }

    function _setPayee( uint index, address account, uint newShares ) internal {
        _totalShares = _totalShares - _shares[ account ] + newShares;
        _shares[ account ] = newShares;
        _payees[ index ] = account;
    }
}

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

pragma solidity ^0.8.0;

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_;
  }

  function transferOwnership(address newOwner) public virtual override onlyOwner {
    _delegates[newOwner] = true;
    super.transferOwnership( newOwner );
  }
}

File 4 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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 5 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 6 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 7 of 12 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 8 of 12 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 9 of 12 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 10 of 12 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 11 of 12 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 12 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        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":"account","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"CyberHornetsAnimusProxy","outputs":[{"internalType":"contract ICyberHornets","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CyberHornetsColonyClubProxy","outputs":[{"internalType":"contract ICyberHornets","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_MAX_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MAX_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","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":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"mintTo","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":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum CyberHornetsComic.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cyberHornetsAnimusProxy","type":"address"}],"name":"setCHAnimusContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cyberHornetsColonyClubProxy","type":"address"}],"name":"setCHCCContract","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":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presalePrice","type":"uint256"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum CyberHornetsComic.SaleState","name":"_state","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint16","name":"supply_","type":"uint16"},{"internalType":"string","name":"uri_","type":"string"}],"name":"setToken","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":"id","type":"uint256"}],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint16","name":"balance","type":"uint16"},{"internalType":"uint16","name":"supply","type":"uint16"}],"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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

610bb8600a556000600b556001600c556004600e5566470de4df820000600f5560c0604052601560808190527f437962657220486f726e6574733a20436f6d696373000000000000000000000060a09081526200006091601091906200067a565b506040805180820190915260048082526343483a4360e01b60209092019182526200008e916011916200067a565b506013805474821043b51bd384f2caa0d09dc136181870b2bea200610100600160a81b0319909116179055601480546001600160a01b031916736c37f6cfe665c22b8a407430651e9ee31d71d1cf179055348015620000ec57600080fd5b5060408051602081019091526000815262000107336200041f565b60018060006200011f6000546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905562000152816200046f565b506200017473ed386149321fbd84f0c4e27a1701ad05eca32f8a600b62000488565b620001957301c7812a88b221766c445fb5dbde43c95d5c6494605962000488565b6012604051806080016040528060405180604001604052806007815260200166436f766572203160c81b81525081526020016040518060600160405280603c815260200162003bcb603c91398152600060208083018290526103e86040909301929092528354600181018555938152819020825180519394600302909101926200022392849201906200067a565b5060208281015180516200023e92600185019201906200067a565b506040828101516002909201805460609485015161ffff908116620100000263ffffffff1990921694169390931792909217909155805160c0810182526007608082019081526621b7bb32b9101960c91b60a083015281528151928301909152603c8083526012926020808401929062003b53908301398152600060208083018290526103e8604090930192909252835460018101855593815281902082518051939460030290910192620002f792849201906200067a565b5060208281015180516200031292600185019201906200067a565b506040828101516002909201805460609485015161ffff908116620100000263ffffffff1990921694169390931792909217909155805160c08101825260076080820190815266436f766572203360c81b60a083015281528151928301909152603c8083526012926020808401929062003b8f908301398152600060208083018290526103e8604090930192909252835460018101855593815281902082518051939460030290910192620003cb92849201906200067a565b506020828101518051620003e692600185019201906200067a565b5060408201516002909101805460609093015161ffff908116620100000263ffffffff1990941692169190911791909117905562000783565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051620004849060049060208401906200067a565b5050565b6001600160a01b038216620004f95760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084015b60405180910390fd5b600081116200054b5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620004f0565b6001600160a01b03821660009081526007602052604090205415620005c75760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620004f0565b60098054600181019091557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03841690811790915560009081526007602052604090208190556005546200063190829062000720565b600555604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620006889062000747565b90600052602060002090601f016020900481019282620006ac5760008555620006f7565b82601f10620006c757805160ff1916838001178555620006f7565b82800160010185558215620006f7579182015b82811115620006f7578251825591602001919060010190620006da565b506200070592915062000709565b5090565b5b808211156200070557600081556001016200070a565b600082198211156200074257634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200075c57607f821691505b6020821081036200077d57634e487b7160e01b600052602260045260246000fd5b50919050565b6133c080620007936000396000f3fe6080604052600436106102545760003560e01c806369add11d11610139578063a0712d68116100b6578063e33b7de31161007a578063e33b7de31461073e578063e985e9c514610753578063f242432a1461079c578063f2fde38b146107bc578063f7d97577146107dc578063f9765bc1146107fc57600080fd5b8063a0712d681461069f578063a22cb465146106b2578063b9a7691c146106d2578063ce7c2ac2146106e8578063d0d056391461071e57600080fd5b80638b83209b116100fd5780638b83209b146105f65780638da5cb5b1461061657806395d89b411461063457806397c688ce146106495780639852595c1461066957600080fd5b806369add11d146105515780636f8b44b014610564578063715018a61461058457806374060a55146105995780638235b2ba146105d157600080fd5b806332cb6b0c116101d25780634f64b2be116101965780634f64b2be1461049857806353da6a85146104c85780635a67de07146104de578063603f4d52146104fe578063611f3f101461052557806362dc6e211461053b57600080fd5b806332cb6b0c146103fe5780633a98ef39146104145780634a994eef146104295780634e1273f4146104495780634f558e791461047657600080fd5b806318160ddd1161021957806318160ddd14610367578063191655871461037c5780632693ebf21461039e5780632e2edb2f146103be5780632eb2c2d6146103de57600080fd5b8062fdd58e146102a257806301ffc9a7146102d557806306fdde031461030557806307779627146103275780630e89341c1461034757600080fd5b3661029d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156102ae57600080fd5b506102c26102bd36600461284a565b61082c565b6040519081526020015b60405180910390f35b3480156102e157600080fd5b506102f56102f036600461288c565b6108c5565b60405190151581526020016102cc565b34801561031157600080fd5b5061031a610917565b6040516102cc91906128fd565b34801561033357600080fd5b506102f5610342366004612910565b6109a5565b34801561035357600080fd5b5061031a61036236600461292d565b6109ef565b34801561037357600080fd5b506102c2610ac7565b34801561038857600080fd5b5061039c610397366004612910565b610b24565b005b3480156103aa57600080fd5b506102c26103b936600461292d565b610cf8565b3480156103ca57600080fd5b5061039c6103d9366004612946565b610d4d565b3480156103ea57600080fd5b5061039c6103f9366004612b22565b610e99565b34801561040a57600080fd5b506102c2600a5481565b34801561042057600080fd5b506005546102c2565b34801561043557600080fd5b5061039c610444366004612bd0565b610f30565b34801561045557600080fd5b50610469610464366004612c0e565b610f85565b6040516102cc9190612d16565b34801561048257600080fd5b506102f561049136600461292d565b6012541190565b3480156104a457600080fd5b506104b86104b336600461292d565b6110af565b6040516102cc9493929190612d29565b3480156104d457600080fd5b506102c2600c5481565b3480156104ea57600080fd5b5061039c6104f9366004612d6e565b611207565b34801561050a57600080fd5b506013546105189060ff1681565b6040516102cc9190612da5565b34801561053157600080fd5b506102c2600f5481565b34801561054757600080fd5b506102c2600b5481565b61039c61055f366004612e19565b61125d565b34801561057057600080fd5b5061039c61057f36600461292d565b611486565b34801561059057600080fd5b5061039c611527565b3480156105a557600080fd5b506014546105b9906001600160a01b031681565b6040516001600160a01b0390911681526020016102cc565b3480156105dd57600080fd5b506013546105b99061010090046001600160a01b031681565b34801561060257600080fd5b506105b961061136600461292d565b61155d565b34801561062257600080fd5b506000546001600160a01b03166105b9565b34801561064057600080fd5b5061031a61158d565b34801561065557600080fd5b5061039c610664366004612910565b61159a565b34801561067557600080fd5b506102c2610684366004612910565b6001600160a01b031660009081526008602052604090205490565b61039c6106ad36600461292d565b611605565b3480156106be57600080fd5b5061039c6106cd366004612bd0565b611b55565b3480156106de57600080fd5b506102c2600e5481565b3480156106f457600080fd5b506102c2610703366004612910565b6001600160a01b031660009081526007602052604090205490565b34801561072a57600080fd5b5061039c610739366004612910565b611b60565b34801561074a57600080fd5b506006546102c2565b34801561075f57600080fd5b506102f561076e366004612e85565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b3480156107a857600080fd5b5061039c6107b7366004612eb3565b611bd6565b3480156107c857600080fd5b5061039c6107d7366004612910565b611c5d565b3480156107e857600080fd5b5061039c6107f7366004612f1c565b611cb6565b34801561080857600080fd5b506102f5610817366004612910565b600d6020526000908152604090205460ff1681565b60006001600160a01b03831661089d5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526002602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806108f657506001600160e01b031982166303a24d0760e21b145b8061091157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6010805461092490612f3e565b80601f016020809104026020016040519081016040528092919081815260200182805461095090612f3e565b801561099d5780601f106109725761010080835404028352916020019161099d565b820191906000526020600020905b81548152906001019060200180831161098057829003601f168201915b505050505081565b600080546001600160a01b031633146109d05760405162461bcd60e51b815260040161089490612f72565b506001600160a01b031660009081526001602052604090205460ff1690565b6012546060908210610a135760405162461bcd60e51b815260040161089490612fa7565b60128281548110610a2657610a26612fea565b90600052602060002090600302016001018054610a4290612f3e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6e90612f3e565b8015610abb5780601f10610a9057610100808354040283529160200191610abb565b820191906000526020600020905b815481529060010190602001808311610a9e57829003601f168201915b50505050509050919050565b60008060005b601254811015610b1e5760128181548110610aea57610aea612fea565b6000918252602090912060026003909202010154610b0c9061ffff1683613016565b9150610b178161302e565b9050610acd565b50919050565b6001600160a01b038116600090815260076020526040902054610b985760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610894565b600060065447610ba89190613016565b6001600160a01b0383166000908152600860209081526040808320546005546007909352908320549394509192610bdf9085613047565b610be9919061307c565b610bf39190613090565b905080600003610c595760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610894565b6001600160a01b038316600090815260086020526040902054610c7d908290613016565b6001600160a01b038416600090815260086020526040902055600654610ca4908290613016565b600655610cb18382611cf0565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6012546000908210610d1c5760405162461bcd60e51b815260040161089490612fa7565b60128281548110610d2f57610d2f612fea565b600091825260209091206002600390920201015461ffff1692915050565b3360009081526001602052604090205460ff16610d7c5760405162461bcd60e51b8152600401610894906130a7565b601254841080610d8d575060125484145b610dcc5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b881a5960821b6044820152606401610894565b6012548403610de2576012805460010181556000525b600060128581548110610df757610df7612fea565b600091825260209091206003909102019050610e1760018201848461279c565b50600281015461ffff9081169085161015610e745760405162461bcd60e51b815260206004820152601c60248201527f537570706c79206973206c6f776572207468616e2062616c616e6365000000006044820152606401610894565b600201805461ffff909416620100000263ffff00001990941693909317909255505050565b6001600160a01b038516331480610eb55750610eb5853361076e565b610f1c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610894565b610f298585858585611e09565b5050505050565b6000546001600160a01b03163314610f5a5760405162461bcd60e51b815260040161089490612f72565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b60608151835114610fea5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610894565b6000835167ffffffffffffffff811115611006576110066129d6565b60405190808252806020026020018201604052801561102f578160200160208202803683370190505b50905060005b84518110156110a75761107a85828151811061105357611053612fea565b602002602001015185838151811061106d5761106d612fea565b602002602001015161082c565b82828151811061108c5761108c612fea565b60209081029190910101526110a08161302e565b9050611035565b509392505050565b601281815481106110bf57600080fd5b90600052602060002090600302016000915090508060000180546110e290612f3e565b80601f016020809104026020016040519081016040528092919081815260200182805461110e90612f3e565b801561115b5780601f106111305761010080835404028352916020019161115b565b820191906000526020600020905b81548152906001019060200180831161113e57829003601f168201915b50505050509080600101805461117090612f3e565b80601f016020809104026020016040519081016040528092919081815260200182805461119c90612f3e565b80156111e95780601f106111be576101008083540402835291602001916111e9565b820191906000526020600020905b8154815290600101906020018083116111cc57829003601f168201915b5050506002909301549192505061ffff808216916201000090041684565b3360009081526001602052604090205460ff166112365760405162461bcd60e51b8152600401610894906130a7565b6013805482919060ff1916600183600281111561125557611255612d8f565b021790555050565b3360009081526001602052604090205460ff1661128c5760405162461bcd60e51b8152600401610894906130a7565b8281146112ee5760405162461bcd60e51b815260206004820152602a60248201527f4d7573742070726f7669646520657175616c206163636f756e747320616e64206044820152697175616e74697469657360b01b6064820152608401610894565b6000805b828110156113305783838281811061130c5761130c612fea565b905060200201358261131e9190613016565b91506113298161302e565b90506112f2565b50600a548161133d610ac7565b6113479190613016565b11156113905760405162461bcd60e51b815260206004820152601860248201527743616e6e6f7420657863656564206d617820737570706c7960401b6044820152606401610894565b6000805b8381101561147d5760005b8585838181106113b1576113b1612fea565b9050602002013581101561146c576113c7611fe9565b9250601283815481106113dc576113dc612fea565b60009182526020822060026003909202010180549091906114009061ffff166130d1565b91906101000a81548161ffff021916908361ffff16021790555061145c88888481811061142f5761142f612fea565b90506020020160208101906114449190612910565b84600160405180602001604052806000815250612138565b6114658161302e565b905061139f565b506114768161302e565b9050611394565b50505050505050565b3360009081526001602052604090205460ff166114b55760405162461bcd60e51b8152600401610894906130a7565b806114be610ac7565b11156115225760405162461bcd60e51b815260206004820152602d60248201527f4e657720737570706c79206d757374206d656574206f7220657863656564206360448201526c757272656e7420737570706c7960981b6064820152608401610894565b600a55565b6000546001600160a01b031633146115515760405162461bcd60e51b815260040161089490612f72565b61155b6000612245565b565b60006009828154811061157257611572612fea565b6000918252602090912001546001600160a01b031692915050565b6011805461092490612f3e565b3360009081526001602052604090205460ff166115c95760405162461bcd60e51b8152600401610894906130a7565b6014546001600160a01b038083169116036115e357600080fd5b601480546001600160a01b0319166001600160a01b0392909216919091179055565b600060135460ff16600281111561161e5761161e612d8f565b116116605760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610894565b600a548161166c610ac7565b6116769190613016565b11156116bf5760405162461bcd60e51b815260206004820152601860248201527743616e6e6f7420657863656564206d617820737570706c7960401b6044820152606401610894565b600160135460ff1660028111156116d8576116d8612d8f565b036119f45780600b546116eb9190613047565b3410156117365760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610894565b336000908152600d602052604090205460ff16151560010361179a5760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c79206f6e6520636f6d696320706572206163636f756e740000000000006044820152606401610894565b60135461010090046001600160a01b031615806117c057506014546001600160a01b0316155b1561180d5760405162461bcd60e51b815260206004820152601b60248201527f496e76616c69642070726f787920636f6e66696775726169746f6e00000000006044820152606401610894565b6013546040516370a0823160e01b815233600482015260009161010090046001600160a01b0316906370a0823190602401602060405180830381865afa15801561185b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187f91906130f2565b11806118f557506014546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156118cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f391906130f2565b115b1561198f57336000908152600d60205260408120805460ff1916600117905561191c611fe9565b90506012818154811061193157611931612fea565b60009182526020822060026003909202010180549091906119559061ffff166130d1565b91906101000a81548161ffff021916908361ffff16021790555061198b3382600160405180602001604052806000815250612138565b5050565b60405162461bcd60e51b815260206004820152603460248201527f4d757374206f776e20612043484343206f7220434820416e696d757320746f20604482015273636c61696d20647572696e672070726573616c6560601b6064820152608401610894565b600260135460ff166002811115611a0d57611a0d612d8f565b03611b525780600f54611a209190613047565b341015611a6b5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b6044820152606401610894565b600e548111158015611a7d5750600081115b611abc5760405162461bcd60e51b815260206004820152601060248201526f496e76616c6964207175616e7469747960801b6044820152606401610894565b6000805b82811015611b4f57611ad0611fe9565b915060128281548110611ae557611ae5612fea565b6000918252602082206002600390920201018054909190611b099061ffff166130d1565b91906101000a81548161ffff021916908361ffff160217905550611b3f3383600160405180602001604052806000815250612138565b611b488161302e565b9050611ac0565b50505b50565b61198b338383612295565b3360009081526001602052604090205460ff16611b8f5760405162461bcd60e51b8152600401610894906130a7565b6013546001600160a01b038083166101009092041603611bae57600080fd5b601380546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b038516331480611bf25750611bf2853361076e565b611c505760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610894565b610f298585858585612375565b6000546001600160a01b03163314611c875760405162461bcd60e51b815260040161089490612f72565b6001600160a01b0381166000908152600160208190526040909120805460ff19169091179055611b52816124a3565b3360009081526001602052604090205460ff16611ce55760405162461bcd60e51b8152600401610894906130a7565b600b91909155600f55565b80471015611d405760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610894565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611d8d576040519150601f19603f3d011682016040523d82523d6000602084013e611d92565b606091505b5050905080611b4f5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610894565b8151835114611e6b5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610894565b6001600160a01b038416611e915760405162461bcd60e51b81526004016108949061310b565b3360005b8451811015611f7b576000858281518110611eb257611eb2612fea565b602002602001015190506000858381518110611ed057611ed0612fea565b60209081029190910181015160008481526002835260408082206001600160a01b038e168352909352919091205490915081811015611f215760405162461bcd60e51b815260040161089490613150565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611f60908490613016565b9250508190555050505080611f749061302e565b9050611e95565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611fcb92919061319a565b60405180910390a4611fe181878787878761253b565b505050505050565b60125460009081904233611ffb610ac7565b6040516020016120309392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b6040516020818303038152906040528051906020012060001c61205391906131c8565b905060005b6012548110156120f95760125461206f90826131c8565b6120799083613016565b91506012828154811061208e5761208e612fea565b906000526020600020906003020160020160029054906101000a900461ffff1661ffff16601283815481106120c5576120c5612fea565b600091825260209091206002600390920201015461ffff1610156120e95750919050565b6120f28161302e565b9050612058565b5060405162461bcd60e51b81526020600482015260136024820152724e6f20617661696c61626c6520737570706c7960681b6044820152606401610894565b6001600160a01b0384166121985760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610894565b3360006121a485612696565b905060006121b185612696565b905060008681526002602090815260408083206001600160a01b038b168452909152812080548792906121e5908490613016565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461147d836000898989896126e1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036123085760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610894565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661239b5760405162461bcd60e51b81526004016108949061310b565b3360006123a785612696565b905060006123b485612696565b905060008681526002602090815260408083206001600160a01b038c168452909152902054858110156123f95760405162461bcd60e51b815260040161089490613150565b60008781526002602090815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612438908490613016565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612498848a8a8a8a8a6126e1565b505050505050505050565b6000546001600160a01b031633146124cd5760405162461bcd60e51b815260040161089490612f72565b6001600160a01b0381166125325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610894565b611b5281612245565b6001600160a01b0384163b15611fe15760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061257f90899089908890889088906004016131dc565b6020604051808303816000875af19250505080156125ba575060408051601f3d908101601f191682019092526125b79181019061323a565b60015b612666576125c6613257565b806308c379a0036125ff57506125da613273565b806125e55750612601565b8060405162461bcd60e51b815260040161089491906128fd565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610894565b6001600160e01b0319811663bc197c8160e01b1461147d5760405162461bcd60e51b8152600401610894906132fd565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106126d0576126d0612fea565b602090810291909101015292915050565b6001600160a01b0384163b15611fe15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906127259089908990889088908890600401613345565b6020604051808303816000875af1925050508015612760575060408051601f3d908101601f1916820190925261275d9181019061323a565b60015b61276c576125c6613257565b6001600160e01b0319811663f23a6e6160e01b1461147d5760405162461bcd60e51b8152600401610894906132fd565b8280546127a890612f3e565b90600052602060002090601f0160209004810192826127ca5760008555612810565b82601f106127e35782800160ff19823516178555612810565b82800160010185558215612810579182015b828111156128105782358255916020019190600101906127f5565b5061281c929150612820565b5090565b5b8082111561281c5760008155600101612821565b6001600160a01b0381168114611b5257600080fd5b6000806040838503121561285d57600080fd5b823561286881612835565b946020939093013593505050565b6001600160e01b031981168114611b5257600080fd5b60006020828403121561289e57600080fd5b81356128a981612876565b9392505050565b6000815180845260005b818110156128d6576020818501810151868301820152016128ba565b818111156128e8576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006128a960208301846128b0565b60006020828403121561292257600080fd5b81356128a981612835565b60006020828403121561293f57600080fd5b5035919050565b6000806000806060858703121561295c57600080fd5b84359350602085013561ffff8116811461297557600080fd5b9250604085013567ffffffffffffffff8082111561299257600080fd5b818701915087601f8301126129a657600080fd5b8135818111156129b557600080fd5b8860208285010111156129c757600080fd5b95989497505060200194505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612a1257612a126129d6565b6040525050565b600067ffffffffffffffff821115612a3357612a336129d6565b5060051b60200190565b600082601f830112612a4e57600080fd5b81356020612a5b82612a19565b604051612a6882826129ec565b83815260059390931b8501820192828101915086841115612a8857600080fd5b8286015b84811015612aa35780358352918301918301612a8c565b509695505050505050565b600082601f830112612abf57600080fd5b813567ffffffffffffffff811115612ad957612ad96129d6565b604051612af0601f8301601f1916602001826129ec565b818152846020838601011115612b0557600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612b3a57600080fd5b8535612b4581612835565b94506020860135612b5581612835565b9350604086013567ffffffffffffffff80821115612b7257600080fd5b612b7e89838a01612a3d565b94506060880135915080821115612b9457600080fd5b612ba089838a01612a3d565b93506080880135915080821115612bb657600080fd5b50612bc388828901612aae565b9150509295509295909350565b60008060408385031215612be357600080fd5b8235612bee81612835565b915060208301358015158114612c0357600080fd5b809150509250929050565b60008060408385031215612c2157600080fd5b823567ffffffffffffffff80821115612c3957600080fd5b818501915085601f830112612c4d57600080fd5b81356020612c5a82612a19565b604051612c6782826129ec565b83815260059390931b8501820192828101915089841115612c8757600080fd5b948201945b83861015612cae578535612c9f81612835565b82529482019490820190612c8c565b96505086013592505080821115612cc457600080fd5b50612cd185828601612a3d565b9150509250929050565b600081518084526020808501945080840160005b83811015612d0b57815187529582019590820190600101612cef565b509495945050505050565b6020815260006128a96020830184612cdb565b608081526000612d3c60808301876128b0565b8281036020840152612d4e81876128b0565b91505061ffff808516604084015280841660608401525095945050505050565b600060208284031215612d8057600080fd5b8135600381106128a957600080fd5b634e487b7160e01b600052602160045260246000fd5b6020810160038310612dc757634e487b7160e01b600052602160045260246000fd5b91905290565b60008083601f840112612ddf57600080fd5b50813567ffffffffffffffff811115612df757600080fd5b6020830191508360208260051b8501011115612e1257600080fd5b9250929050565b60008060008060408587031215612e2f57600080fd5b843567ffffffffffffffff80821115612e4757600080fd5b612e5388838901612dcd565b90965094506020870135915080821115612e6c57600080fd5b50612e7987828801612dcd565b95989497509550505050565b60008060408385031215612e9857600080fd5b8235612ea381612835565b91506020830135612c0381612835565b600080600080600060a08688031215612ecb57600080fd5b8535612ed681612835565b94506020860135612ee681612835565b93506040860135925060608601359150608086013567ffffffffffffffff811115612f1057600080fd5b612bc388828901612aae565b60008060408385031215612f2f57600080fd5b50508035926020909101359150565b600181811c90821680612f5257607f821691505b602082108103610b1e57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f53706563696669656420746f6b656e202869642920646f6573206e6f742065786040820152621a5cdd60ea1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561302957613029613000565b500190565b60006001820161304057613040613000565b5060010190565b600081600019048311821515161561306157613061613000565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261308b5761308b613066565b500490565b6000828210156130a2576130a2613000565b500390565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b600061ffff8083168181036130e8576130e8613000565b6001019392505050565b60006020828403121561310457600080fd5b5051919050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006131ad6040830185612cdb565b82810360208401526131bf8185612cdb565b95945050505050565b6000826131d7576131d7613066565b500690565b6001600160a01b0386811682528516602082015260a06040820181905260009061320890830186612cdb565b828103606084015261321a8186612cdb565b9050828103608084015261322e81856128b0565b98975050505050505050565b60006020828403121561324c57600080fd5b81516128a981612876565b600060033d11156132705760046000803e5060005160e01c5b90565b600060443d10156132815790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156132b157505050505090565b82850191508151818111156132c95750505050505090565b843d87010160208285010111156132e35750505050505090565b6132f2602082860101876129ec565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061337f908301846128b0565b97965050505050505056fea26469706673582212209ed3916b407f043bdc2c4e7890fb410e75fb8ec7ebea1e227b92d98f269b504764736f6c634300080d003368747470733a2f2f6379626572686f726e657473636f6c6f6e792e636f6d2f6469676974616c2d636f6d69632f6d657461646174612f312e6a736f6e68747470733a2f2f6379626572686f726e657473636f6c6f6e792e636f6d2f6469676974616c2d636f6d69632f6d657461646174612f322e6a736f6e68747470733a2f2f6379626572686f726e657473636f6c6f6e792e636f6d2f6469676974616c2d636f6d69632f6d657461646174612f302e6a736f6e

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.