ETH Price: $2,448.63 (-0.95%)

Contract

0x913E93Eaa164e6795d2f535D12Dba9e697fB6Fa3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint Group209550012024-10-13 6:54:1112 hrs ago1728802451IN
0x913E93Ea...697fB6Fa3
0.03 ETH0.004713928.49153872
Mint Group198981132024-05-18 16:47:11148 days ago1716050831IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.001816474.19365647
Mint Group183559082023-10-15 12:54:47364 days ago1697374487IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.002520346.05765426
Mint Group179861182023-08-24 17:42:11416 days ago1692898931IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.012150328.0503962
Mint Group177091642023-07-16 23:37:35454 days ago1689550655IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0054502412.58253046
Mint Group176033642023-07-02 2:29:47469 days ago1688264987IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.006497415
Mint Group175427182023-06-23 13:59:23478 days ago1687528763IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0077873418.71796726
Mint Group174349322023-06-08 10:14:47493 days ago1686219287IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0083257519.22150588
Mint Group174308172023-06-07 20:19:59493 days ago1686169199IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0104877724.2135842
Mint Group174098052023-06-04 21:08:47496 days ago1685912927IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0106317523.61248154
Mint Group174089682023-06-04 18:19:59497 days ago1685902799IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0095866723.04158001
Mint Group174079012023-06-04 14:42:59497 days ago1685889779IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.010065423.23715749
Mint Group174039492023-06-04 1:19:47497 days ago1685841587IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0092457421.34487175
Mint Group173329322023-05-25 1:35:35507 days ago1684978535IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0122979329.55894162
Mint Group172597932023-05-14 18:12:11518 days ago1684087931IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0152385635.18
Mint Group170957132023-04-21 15:41:11541 days ago1682091671IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0184655344.38189915
Mint Group170952642023-04-21 14:09:47541 days ago1682086187IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0164606538.0013276
Mint Group169687562023-04-03 13:20:59559 days ago1680528059IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.012088927.91018123
Mint Group168778502023-03-21 18:41:23572 days ago1679424083IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0087836821.11157353
Mint Group168727402023-03-21 1:26:23572 days ago1679361983IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0061139314.69483376
Mint Group167972772023-03-10 10:56:47583 days ago1678445807IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0129175331.04818688
Mint Group167811092023-03-08 4:17:35585 days ago1678249055IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0094814221.05823189
Mint Group167542682023-03-04 9:44:23589 days ago1677923063IN
0x913E93Ea...697fB6Fa3
0.03 ETH0.0103470618.08344965
Mint Group167460502023-03-03 5:57:59590 days ago1677823079IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.0080827918.66110447
Mint Group167379042023-03-02 2:25:23591 days ago1677723923IN
0x913E93Ea...697fB6Fa3
0.02 ETH0.009157721.14395405
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
209550012024-10-13 6:54:1112 hrs ago1728802451
0x913E93Ea...697fB6Fa3
0.03 ETH
198981132024-05-18 16:47:11148 days ago1716050831
0x913E93Ea...697fB6Fa3
0.02 ETH
183559082023-10-15 12:54:47364 days ago1697374487
0x913E93Ea...697fB6Fa3
0.02 ETH
179861182023-08-24 17:42:11416 days ago1692898931
0x913E93Ea...697fB6Fa3
0.02 ETH
177091642023-07-16 23:37:35454 days ago1689550655
0x913E93Ea...697fB6Fa3
0.02 ETH
176033642023-07-02 2:29:47469 days ago1688264987
0x913E93Ea...697fB6Fa3
0.02 ETH
175427182023-06-23 13:59:23478 days ago1687528763
0x913E93Ea...697fB6Fa3
0.02 ETH
174349322023-06-08 10:14:47493 days ago1686219287
0x913E93Ea...697fB6Fa3
0.02 ETH
174308172023-06-07 20:19:59493 days ago1686169199
0x913E93Ea...697fB6Fa3
0.02 ETH
174098052023-06-04 21:08:47496 days ago1685912927
0x913E93Ea...697fB6Fa3
0.02 ETH
174089682023-06-04 18:19:59497 days ago1685902799
0x913E93Ea...697fB6Fa3
0.02 ETH
174079012023-06-04 14:42:59497 days ago1685889779
0x913E93Ea...697fB6Fa3
0.02 ETH
174039492023-06-04 1:19:47497 days ago1685841587
0x913E93Ea...697fB6Fa3
0.02 ETH
173329322023-05-25 1:35:35507 days ago1684978535
0x913E93Ea...697fB6Fa3
0.02 ETH
172597932023-05-14 18:12:11518 days ago1684087931
0x913E93Ea...697fB6Fa3
0.02 ETH
170957132023-04-21 15:41:11541 days ago1682091671
0x913E93Ea...697fB6Fa3
0.02 ETH
170952642023-04-21 14:09:47541 days ago1682086187
0x913E93Ea...697fB6Fa3
0.02 ETH
169687562023-04-03 13:20:59559 days ago1680528059
0x913E93Ea...697fB6Fa3
0.02 ETH
168778502023-03-21 18:41:23572 days ago1679424083
0x913E93Ea...697fB6Fa3
0.02 ETH
168727402023-03-21 1:26:23572 days ago1679361983
0x913E93Ea...697fB6Fa3
0.02 ETH
167972772023-03-10 10:56:47583 days ago1678445807
0x913E93Ea...697fB6Fa3
0.02 ETH
167811092023-03-08 4:17:35585 days ago1678249055
0x913E93Ea...697fB6Fa3
0.02 ETH
167542682023-03-04 9:44:23589 days ago1677923063
0x913E93Ea...697fB6Fa3
0.03 ETH
167460502023-03-03 5:57:59590 days ago1677823079
0x913E93Ea...697fB6Fa3
0.02 ETH
167379042023-03-02 2:25:23591 days ago1677723923
0x913E93Ea...697fB6Fa3
0.02 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GroupDecagon

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : GroupDecagon.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "./GroupErrors.sol";

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

interface IPassport {
  function mintPassport(address to) external returns (uint256);
}

interface ITokenHashes {
  function storeTokenHash(uint256 tokenId) external;
}

interface IColourHashes {
  function storeColourHash(uint256 tokenId, bytes32 colourHash) external;
}

contract GroupDecagon is AccessControl, ReentrancyGuard {
  event GroupMintToggled();
  event OnePerGroupToggled();
  event SignerSet(address indexed newSigner);
  event MaxFriendsSet(uint256 indexed newMaxFriends);
  event TokenHashesSet(address indexed newTokenHashes);
  event GroupFeeSet(uint256 indexed newFee);
  event TreasuryAddressSet(address indexed newTreasuryAddress);
  event ColourHashesSet(address indexed newIColourHashesAddress);
  event GroupMinted(
    address[] friends,
    uint256[] ids,
    bytes32 indexed colourHash
  );

  uint256 public fee;

  uint256 public maxFriends;

  address public signerAddress;

  address payable public treasury;

  IPassport public decagon;

  ITokenHashes public tokenHashes;

  IColourHashes public colourHashes;

  bool public groupMintEnabled;

  bool public onePerGroupEnabled;

  mapping(bytes32 => bool) public minted;

  mapping(bytes => bool) public usedSignature;

  constructor(
    uint256 _fee,
    address payable _treasury,
    address _decagon,
    address _tokenHashes,
    address _colourHashes,
    address _signerAddress
  ) {
    if (
      _treasury == address(0) ||
      _decagon == address(0) ||
      _tokenHashes == address(0) ||
      _colourHashes == address(0) ||
      _signerAddress == address(0)
    ) revert AddressNotSet();
    _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    fee = _fee;
    treasury = _treasury;
    decagon = IPassport(_decagon);
    tokenHashes = ITokenHashes(_tokenHashes);
    colourHashes = IColourHashes(_colourHashes);
    signerAddress = _signerAddress;
    maxFriends = 2;
    groupMintEnabled = false;
    onePerGroupEnabled = false;
  }

  function generateGroupHash(
    address[] memory _friends
  ) public pure returns (bytes32 groupHash) {
    groupHash = keccak256(abi.encode(_friends));
  }

  function generateColourHash(
    address[] memory _address,
    uint256 _tokenId1
  ) public pure returns (bytes32 colourHash) {
    colourHash = keccak256(abi.encode(_address, _tokenId1));
  }

  function toggleGroupMint() external onlyRole(DEFAULT_ADMIN_ROLE) {
    groupMintEnabled = !groupMintEnabled;
    emit GroupMintToggled();
  }

  function toggleOnePerGroup() external onlyRole(DEFAULT_ADMIN_ROLE) {
    onePerGroupEnabled = !onePerGroupEnabled;
    emit OnePerGroupToggled();
  }

  function setFee(uint256 _newFee) external onlyRole(DEFAULT_ADMIN_ROLE) {
    fee = _newFee;
    emit GroupFeeSet(_newFee);
  }

  function setMaxFriends(
    uint256 _newMaxFriends
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    maxFriends = _newMaxFriends;
    emit MaxFriendsSet(_newMaxFriends);
  }

  function setTokenHashes(
    address _newTokenHashesAddress
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    if (_newTokenHashesAddress == address(0)) revert AddressNotSet();
    tokenHashes = ITokenHashes(_newTokenHashesAddress);
    emit TokenHashesSet(_newTokenHashesAddress);
  }

  function setColourHashes(
    address _newColourHashesAddress
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    if (_newColourHashesAddress == address(0)) revert AddressNotSet();
    colourHashes = IColourHashes(_newColourHashesAddress);
    emit ColourHashesSet(_newColourHashesAddress);
  }

  function setTreasury(
    address payable _newTreasury
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    if (_newTreasury == address(0)) revert AddressNotSet();
    treasury = _newTreasury;
    emit TreasuryAddressSet(_newTreasury);
  }

  function setSigner(
    address _signerAddress
  ) external onlyRole(DEFAULT_ADMIN_ROLE) {
    if (_signerAddress == address(0)) revert AddressNotSet();
    signerAddress = _signerAddress;
    emit SignerSet(_signerAddress);
  }

  function mintGroup(
    address[] calldata _friends,
    uint256 _expiryBlock,
    bytes calldata _signature
  ) external payable nonReentrant returns (uint256[] memory ids) {
    if (!groupMintEnabled) revert GroupMintingDisabled();
    if (usedSignature[_signature]) revert SignatureAlreadyUsed();
    bytes32 groupHash = generateGroupHash(_friends);
    if (onePerGroupEnabled && minted[groupHash]) revert GroupHashAlreadyUsed();
    uint256 numberOfFriends = _friends.length;
    if (numberOfFriends < 2) revert NoFriends();
    if (numberOfFriends > maxFriends) revert ExceedsMaxFriends();
    if (block.number > _expiryBlock) revert ExpiredSignature();
    if (msg.value < (fee * numberOfFriends)) revert NotEnoughEth();
    if (
      !verify(
        keccak256(
          abi.encodePacked(msg.sender, _friends, _expiryBlock, address(this))
        ),
        _signature
      )
    ) revert InvalidSignature();
    usedSignature[_signature] = true;
    minted[groupHash] = true;
    ids = _mint(_friends);
    (bool sentTreasury, ) = treasury.call{value: msg.value}("");
    if (!sentTreasury) revert TransferFailed();
  }

  function _mint(
    address[] memory _friends
  ) internal returns (uint256[] memory) {
    uint256[] memory ids = new uint256[](_friends.length);
    ids[0] = decagon.mintPassport(_friends[0]);
    bytes32 colourHash = generateColourHash(_friends, ids[0]);
    colourHashes.storeColourHash(ids[0], colourHash);
    tokenHashes.storeTokenHash(ids[0]);
    for (uint256 i = 1; i < _friends.length; i++) {
      ids[i] = decagon.mintPassport(_friends[i]);
      colourHashes.storeColourHash(ids[i], colourHash);
      tokenHashes.storeTokenHash(ids[i]);
    }
    emit GroupMinted(_friends, ids, colourHash);
    return ids;
  }

  function verify(
    bytes32 messageHash,
    bytes memory signature
  ) internal view returns (bool) {
    return
      signerAddress ==
      ECDSA.recover(ECDSA.toEthSignedMessageHash(messageHash), signature);
  }
}

File 2 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 3 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

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

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

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

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 5 of 11 : GroupErrors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

error GroupMintingDisabled();
error NotEnoughEth();
error TransferFailed();
error AddressNotSet();
error NoFriends();
error SignatureAlreadyUsed();
error ExpiredSignature();
error InvalidSignature();
error ExceedsMaxFriends();
error GroupHashAlreadyUsed();

File 6 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 7 of 11 : 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 8 of 11 : 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 9 of 11 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 10 of 11 : 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 11 of 11 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address payable","name":"_treasury","type":"address"},{"internalType":"address","name":"_decagon","type":"address"},{"internalType":"address","name":"_tokenHashes","type":"address"},{"internalType":"address","name":"_colourHashes","type":"address"},{"internalType":"address","name":"_signerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressNotSet","type":"error"},{"inputs":[],"name":"ExceedsMaxFriends","type":"error"},{"inputs":[],"name":"ExpiredSignature","type":"error"},{"inputs":[],"name":"GroupHashAlreadyUsed","type":"error"},{"inputs":[],"name":"GroupMintingDisabled","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"NoFriends","type":"error"},{"inputs":[],"name":"NotEnoughEth","type":"error"},{"inputs":[],"name":"SignatureAlreadyUsed","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newIColourHashesAddress","type":"address"}],"name":"ColourHashesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"GroupFeeSet","type":"event"},{"anonymous":false,"inputs":[],"name":"GroupMintToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"friends","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":true,"internalType":"bytes32","name":"colourHash","type":"bytes32"}],"name":"GroupMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newMaxFriends","type":"uint256"}],"name":"MaxFriendsSet","type":"event"},{"anonymous":false,"inputs":[],"name":"OnePerGroupToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newSigner","type":"address"}],"name":"SignerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newTokenHashes","type":"address"}],"name":"TokenHashesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newTreasuryAddress","type":"address"}],"name":"TreasuryAddressSet","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"colourHashes","outputs":[{"internalType":"contract IColourHashes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decagon","outputs":[{"internalType":"contract IPassport","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_address","type":"address[]"},{"internalType":"uint256","name":"_tokenId1","type":"uint256"}],"name":"generateColourHash","outputs":[{"internalType":"bytes32","name":"colourHash","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address[]","name":"_friends","type":"address[]"}],"name":"generateGroupHash","outputs":[{"internalType":"bytes32","name":"groupHash","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"groupMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFriends","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_friends","type":"address[]"},{"internalType":"uint256","name":"_expiryBlock","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintGroup","outputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"minted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onePerGroupEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newColourHashesAddress","type":"address"}],"name":"setColourHashes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxFriends","type":"uint256"}],"name":"setMaxFriends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTokenHashesAddress","type":"address"}],"name":"setTokenHashes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"toggleGroupMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleOnePerGroup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenHashes","outputs":[{"internalType":"contract ITokenHashes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"usedSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162003cee38038062003cee83398181016040528101906200003791906200057e565b60018081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480620000a65750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b80620000de5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620001165750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b806200014e5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000186576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200019b6000801b336200033160201b60201c565b8560028190555084600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060026003819055506000600860146101000a81548160ff0219169083151502179055506000600860156101000a81548160ff0219169083151502179055505050505050506200061a565b6200034382826200042260201b60201c565b6200041e57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003c36200048c60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600080fd5b6000819050919050565b620004ae8162000499565b8114620004ba57600080fd5b50565b600081519050620004ce81620004a3565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200050182620004d4565b9050919050565b6200051381620004f4565b81146200051f57600080fd5b50565b600081519050620005338162000508565b92915050565b60006200054682620004d4565b9050919050565b620005588162000539565b81146200056457600080fd5b50565b60008151905062000578816200054d565b92915050565b60008060008060008060c087890312156200059e576200059d62000494565b5b6000620005ae89828a01620004bd565b9650506020620005c189828a0162000522565b9550506040620005d489828a0162000567565b9450506060620005e789828a0162000567565b9350506080620005fa89828a0162000567565b92505060a06200060d89828a0162000567565b9150509295509295509295565b6136c4806200062a6000396000f3fe6080604052600436106101c25760003560e01c80638ccc5f80116100f7578063c56e3c5211610095578063ddca3f4311610064578063ddca3f4314610633578063e834bd9b1461065e578063f0f4426014610689578063f103ba21146106b2576101c2565b8063c56e3c521461058b578063cdce9cba146105b6578063d28c5f78146105cd578063d547741f1461060a576101c2565b8063a217fddf116100d1578063a217fddf146104cd578063a28191e8146104f8578063ae370b8c14610535578063bef9ec7414610560576101c2565b80638ccc5f801461042357806391d14854146104605780639a9035641461049d576101c2565b80635b7633d01161016457806369fe0e2d1161013e57806369fe0e2d1461037d5780636c19e783146103a65780637c07bc7a146103cf5780638c631a91146103fa576101c2565b80635b7633d0146102fc5780635ba8a7771461032757806361d027b314610352576101c2565b80632acff374116101a05780632acff3741461026a5780632f2ff15d1461029357806336568abe146102bc578063466c9387146102e5576101c2565b8063014ba601146101c757806301ffc9a7146101f0578063248a9ca31461022d575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e991906122e6565b6106ef565b005b3480156101fc57600080fd5b506102176004803603810190610212919061236b565b6107ea565b60405161022491906123b3565b60405180910390f35b34801561023957600080fd5b50610254600480360381019061024f9190612404565b610864565b6040516102619190612440565b60405180910390f35b34801561027657600080fd5b50610291600480360381019061028c9190612491565b610883565b005b34801561029f57600080fd5b506102ba60048036038101906102b591906124be565b6108c8565b005b3480156102c857600080fd5b506102e360048036038101906102de91906124be565b6108e9565b005b3480156102f157600080fd5b506102fa61096c565b005b34801561030857600080fd5b506103116109d2565b60405161031e919061250d565b60405180910390f35b34801561033357600080fd5b5061033c6109f8565b6040516103499190612537565b60405180910390f35b34801561035e57600080fd5b506103676109fe565b6040516103749190612573565b60405180910390f35b34801561038957600080fd5b506103a4600480360381019061039f9190612491565b610a24565b005b3480156103b257600080fd5b506103cd60048036038101906103c891906122e6565b610a69565b005b3480156103db57600080fd5b506103e4610b64565b6040516103f191906125ed565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c91906122e6565b610b8a565b005b34801561042f57600080fd5b5061044a60048036038101906104459190612404565b610c85565b60405161045791906123b3565b60405180910390f35b34801561046c57600080fd5b50610487600480360381019061048291906124be565b610ca5565b60405161049491906123b3565b60405180910390f35b6104b760048036038101906104b291906126c3565b610d0f565b6040516104c49190612816565b60405180910390f35b3480156104d957600080fd5b506104e26111be565b6040516104ef9190612440565b60405180910390f35b34801561050457600080fd5b5061051f600480360381019061051a9190612987565b6111c5565b60405161052c9190612440565b60405180910390f35b34801561054157600080fd5b5061054a6111f5565b60405161055791906129f1565b60405180910390f35b34801561056c57600080fd5b5061057561121b565b6040516105829190612a2d565b60405180910390f35b34801561059757600080fd5b506105a0611241565b6040516105ad91906123b3565b60405180910390f35b3480156105c257600080fd5b506105cb611254565b005b3480156105d957600080fd5b506105f460048036038101906105ef9190612a48565b6112ba565b6040516106019190612440565b60405180910390f35b34801561061657600080fd5b50610631600480360381019061062c91906124be565b6112ed565b005b34801561063f57600080fd5b5061064861130e565b6040516106559190612537565b60405180910390f35b34801561066a57600080fd5b50610673611314565b60405161068091906123b3565b60405180910390f35b34801561069557600080fd5b506106b060048036038101906106ab9190612ad0565b611327565b005b3480156106be57600080fd5b506106d960048036038101906106d49190612bb2565b611422565b6040516106e691906123b3565b60405180910390f35b6000801b6106fc81611458565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610762576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f64ab85b98bcee677e96663af1e64df0f51d4664eebf0d39532b5a9f9a8c60aaf60405160405180910390a25050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061085d575061085c8261146c565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b6000801b61089081611458565b81600381905550817f80a0cc2c48fae3a7d06cd95e380829ce76b0ab7a2dff9c8547e622c6422d2c9360405160405180910390a25050565b6108d182610864565b6108da81611458565b6108e483836114d6565b505050565b6108f16115b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461095e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095590612c7e565b60405180910390fd5b61096882826115be565b5050565b6000801b61097981611458565b600860149054906101000a900460ff1615600860146101000a81548160ff0219169083151502179055507fab2ae497d1f27a3bbe81e17c25e4c10aca0f787309355732e4eaf14f18d0f68c60405160405180910390a150565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b610a3181611458565b81600281905550817f08d36a2ee019e8abd461a5278c16cf9cae6cbbfdfe249e981b85ffaae2032cc360405160405180910390a25050565b6000801b610a7681611458565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610adc576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f9eaa897564d022fb8c5efaf0acdb5d9d27b440b2aad44400b6e1c702e65b9ed360405160405180910390a25050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b610b9781611458565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610bfd576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f1fd191d0962056f91fe7346755d28e92c4bc96012b1effb9b1ee1ec9c0d1728860405160405180910390a25050565b60096020528060005260406000206000915054906101000a900460ff1681565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060610d1961169f565b600860149054906101000a900460ff16610d5f576040517f296aa7ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a8383604051610d71929190612cce565b908152602001604051809103902060009054906101000a900460ff1615610dc4576040517f900bb2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610e10878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506111c5565b9050600860159054906101000a900460ff168015610e4b57506009600082815260200190815260200160002060009054906101000a900460ff165b15610e82576040517ff2fbe6fb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008787905090506002811015610ec5576040517fca24560a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600354811115610f01576040517f659afaef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85431115610f3b576040517fdf4cc36d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600254610f499190612d16565b341015610f82576040517ff14a42b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ffe3389898930604051602001610f9e959493929190612e7e565b6040516020818303038152906040528051906020012086868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506116ee565b611034576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600a8686604051611048929190612cce565b908152602001604051809103902060006101000a81548160ff02191690831515021790555060016009600084815260200190815260200160002060006101000a81548160ff0219169083151502179055506110e3888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505061175a565b92506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460405161112d90612ef0565b60006040518083038185875af1925050503d806000811461116a576040519150601f19603f3d011682016040523d82523d6000602084013e61116f565b606091505b50509050806111aa576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050506111b5611c8d565b95945050505050565b6000801b81565b6000816040516020016111d89190612fc3565b604051602081830303815290604052805190602001209050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860159054906101000a900460ff1681565b6000801b61126181611458565b600860159054906101000a900460ff1615600860156101000a81548160ff0219169083151502179055507faf26baf137004ce2e3d13017e6a80bea1bb59e2f862efb4a9b2c73a1178fda8260405160405180910390a150565b600082826040516020016112cf929190612fe5565b60405160208183030381529060405280519060200120905092915050565b6112f682610864565b6112ff81611458565b61130983836115be565b505050565b60025481565b600860149054906101000a900460ff1681565b6000801b61133481611458565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361139a576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f5cc4bdb402e519d4921d6bfaca9c17c16ea3a8e658ff5accd29e6080635562ce60405160405180910390a25050565b600a818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b611469816114646115b6565b611c96565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6114e08282610ca5565b6115b257600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115576115b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6115c88282610ca5565b1561169b57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506116406115b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6002600154036116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116db90613061565b60405180910390fd5b6002600181905550565b60006117026116fc84611d1b565b83611d4b565b73ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b60606000825167ffffffffffffffff81111561177957611778612849565b5b6040519080825280602002602001820160405280156117a75781602001602082028036833780820191505090505b509050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd548470846000815181106117fc576117fb613081565b5b60200260200101516040518263ffffffff1660e01b8152600401611820919061250d565b6020604051808303816000875af115801561183f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186391906130c5565b8160008151811061187757611876613081565b5b60200260200101818152505060006118aa848360008151811061189d5761189c613081565b5b60200260200101516112ba565b9050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e345168836000815181106118fe576118fd613081565b5b6020026020010151836040518363ffffffff1660e01b81526004016119249291906130f2565b600060405180830381600087803b15801561193e57600080fd5b505af1158015611952573d6000803e3d6000fd5b50505050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d71a7552836000815181106119a8576119a7613081565b5b60200260200101516040518263ffffffff1660e01b81526004016119cc9190612537565b600060405180830381600087803b1580156119e657600080fd5b505af11580156119fa573d6000803e3d6000fd5b505050506000600190505b8451811015611c4857600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd548470868381518110611a5f57611a5e613081565b5b60200260200101516040518263ffffffff1660e01b8152600401611a83919061250d565b6020604051808303816000875af1158015611aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac691906130c5565b838281518110611ad957611ad8613081565b5b602002602001018181525050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e345168848381518110611b3657611b35613081565b5b6020026020010151846040518363ffffffff1660e01b8152600401611b5c9291906130f2565b600060405180830381600087803b158015611b7657600080fd5b505af1158015611b8a573d6000803e3d6000fd5b50505050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d71a7552848381518110611bdf57611bde613081565b5b60200260200101516040518263ffffffff1660e01b8152600401611c039190612537565b600060405180830381600087803b158015611c1d57600080fd5b505af1158015611c31573d6000803e3d6000fd5b505050508080611c409061311b565b915050611a05565b50807fdf98751a3855743d67da4744f826e2627278fe3dec6bf3ae979358d0183e1d028584604051611c7b929190613163565b60405180910390a28192505050919050565b60018081905550565b611ca08282610ca5565b611d1757611cad81611d72565b611cbb8360001c6020611d9f565b604051602001611ccc9291906132a3565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0e9190613316565b60405180910390fd5b5050565b600081604051602001611d2e91906133a5565b604051602081830303815290604052805190602001209050919050565b6000806000611d5a8585611fdb565b91509150611d678161202c565b819250505092915050565b6060611d988273ffffffffffffffffffffffffffffffffffffffff16601460ff16611d9f565b9050919050565b606060006002836002611db29190612d16565b611dbc91906133cb565b67ffffffffffffffff811115611dd557611dd4612849565b5b6040519080825280601f01601f191660200182016040528015611e075781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611e3f57611e3e613081565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611ea357611ea2613081565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611ee39190612d16565b611eed91906133cb565b90505b6001811115611f8d577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611f2f57611f2e613081565b5b1a60f81b828281518110611f4657611f45613081565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611f86906133ff565b9050611ef0565b5060008414611fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc890613474565b60405180910390fd5b8091505092915050565b600080604183510361201c5760008060006020860151925060408601519150606086015160001a905061201087828585612192565b94509450505050612025565b60006002915091505b9250929050565b600060048111156120405761203f613494565b5b81600481111561205357612052613494565b5b031561218f576001600481111561206d5761206c613494565b5b8160048111156120805761207f613494565b5b036120c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b79061350f565b60405180910390fd5b600260048111156120d4576120d3613494565b5b8160048111156120e7576120e6613494565b5b03612127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211e9061357b565b60405180910390fd5b6003600481111561213b5761213a613494565b5b81600481111561214e5761214d613494565b5b0361218e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121859061360d565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156121cd57600060039150915061226b565b6000600187878787604051600081526020016040526040516121f29493929190613649565b6020604051602081039080840390855afa158015612214573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036122625760006001925092505061226b565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006122b382612288565b9050919050565b6122c3816122a8565b81146122ce57600080fd5b50565b6000813590506122e0816122ba565b92915050565b6000602082840312156122fc576122fb61227e565b5b600061230a848285016122d1565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61234881612313565b811461235357600080fd5b50565b6000813590506123658161233f565b92915050565b6000602082840312156123815761238061227e565b5b600061238f84828501612356565b91505092915050565b60008115159050919050565b6123ad81612398565b82525050565b60006020820190506123c860008301846123a4565b92915050565b6000819050919050565b6123e1816123ce565b81146123ec57600080fd5b50565b6000813590506123fe816123d8565b92915050565b60006020828403121561241a5761241961227e565b5b6000612428848285016123ef565b91505092915050565b61243a816123ce565b82525050565b60006020820190506124556000830184612431565b92915050565b6000819050919050565b61246e8161245b565b811461247957600080fd5b50565b60008135905061248b81612465565b92915050565b6000602082840312156124a7576124a661227e565b5b60006124b58482850161247c565b91505092915050565b600080604083850312156124d5576124d461227e565b5b60006124e3858286016123ef565b92505060206124f4858286016122d1565b9150509250929050565b612507816122a8565b82525050565b600060208201905061252260008301846124fe565b92915050565b6125318161245b565b82525050565b600060208201905061254c6000830184612528565b92915050565b600061255d82612288565b9050919050565b61256d81612552565b82525050565b60006020820190506125886000830184612564565b92915050565b6000819050919050565b60006125b36125ae6125a984612288565b61258e565b612288565b9050919050565b60006125c582612598565b9050919050565b60006125d7826125ba565b9050919050565b6125e7816125cc565b82525050565b600060208201905061260260008301846125de565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261262d5761262c612608565b5b8235905067ffffffffffffffff81111561264a5761264961260d565b5b60208301915083602082028301111561266657612665612612565b5b9250929050565b60008083601f84011261268357612682612608565b5b8235905067ffffffffffffffff8111156126a05761269f61260d565b5b6020830191508360018202830111156126bc576126bb612612565b5b9250929050565b6000806000806000606086880312156126df576126de61227e565b5b600086013567ffffffffffffffff8111156126fd576126fc612283565b5b61270988828901612617565b9550955050602061271c8882890161247c565b935050604086013567ffffffffffffffff81111561273d5761273c612283565b5b6127498882890161266d565b92509250509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61278d8161245b565b82525050565b600061279f8383612784565b60208301905092915050565b6000602082019050919050565b60006127c382612758565b6127cd8185612763565b93506127d883612774565b8060005b838110156128095781516127f08882612793565b97506127fb836127ab565b9250506001810190506127dc565b5085935050505092915050565b6000602082019050818103600083015261283081846127b8565b905092915050565b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61288182612838565b810181811067ffffffffffffffff821117156128a05761289f612849565b5b80604052505050565b60006128b3612274565b90506128bf8282612878565b919050565b600067ffffffffffffffff8211156128df576128de612849565b5b602082029050602081019050919050565b60006129036128fe846128c4565b6128a9565b9050808382526020820190506020840283018581111561292657612925612612565b5b835b8181101561294f578061293b88826122d1565b845260208401935050602081019050612928565b5050509392505050565b600082601f83011261296e5761296d612608565b5b813561297e8482602086016128f0565b91505092915050565b60006020828403121561299d5761299c61227e565b5b600082013567ffffffffffffffff8111156129bb576129ba612283565b5b6129c784828501612959565b91505092915050565b60006129db826125ba565b9050919050565b6129eb816129d0565b82525050565b6000602082019050612a0660008301846129e2565b92915050565b6000612a17826125ba565b9050919050565b612a2781612a0c565b82525050565b6000602082019050612a426000830184612a1e565b92915050565b60008060408385031215612a5f57612a5e61227e565b5b600083013567ffffffffffffffff811115612a7d57612a7c612283565b5b612a8985828601612959565b9250506020612a9a8582860161247c565b9150509250929050565b612aad81612552565b8114612ab857600080fd5b50565b600081359050612aca81612aa4565b92915050565b600060208284031215612ae657612ae561227e565b5b6000612af484828501612abb565b91505092915050565b600080fd5b600067ffffffffffffffff821115612b1d57612b1c612849565b5b612b2682612838565b9050602081019050919050565b82818337600083830152505050565b6000612b55612b5084612b02565b6128a9565b905082815260208101848484011115612b7157612b70612afd565b5b612b7c848285612b33565b509392505050565b600082601f830112612b9957612b98612608565b5b8135612ba9848260208601612b42565b91505092915050565b600060208284031215612bc857612bc761227e565b5b600082013567ffffffffffffffff811115612be657612be5612283565b5b612bf284828501612b84565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612c68602f83612bfb565b9150612c7382612c0c565b604082019050919050565b60006020820190508181036000830152612c9781612c5b565b9050919050565b600081905092915050565b6000612cb58385612c9e565b9350612cc2838584612b33565b82840190509392505050565b6000612cdb828486612ca9565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612d218261245b565b9150612d2c8361245b565b9250828202612d3a8161245b565b91508282048414831517612d5157612d50612ce7565b5b5092915050565b60008160601b9050919050565b6000612d7082612d58565b9050919050565b6000612d8282612d65565b9050919050565b612d9a612d95826122a8565b612d77565b82525050565b600081905092915050565b6000819050919050565b612dbe816122a8565b82525050565b6000612dd08383612db5565b60208301905092915050565b6000612deb60208401846122d1565b905092915050565b6000602082019050919050565b6000612e0c8385612da0565b9350612e1782612dab565b8060005b85811015612e5057612e2d8284612ddc565b612e378882612dc4565b9750612e4283612df3565b925050600181019050612e1b565b5085925050509392505050565b6000819050919050565b612e78612e738261245b565b612e5d565b82525050565b6000612e8a8288612d89565b601482019150612e9b828688612e00565b9150612ea78285612e67565b602082019150612eb78284612d89565b6014820191508190509695505050505050565b50565b6000612eda600083612c9e565b9150612ee582612eca565b600082019050919050565b6000612efb82612ecd565b9150819050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612f3a816122a8565b82525050565b6000612f4c8383612f31565b60208301905092915050565b6000602082019050919050565b6000612f7082612f05565b612f7a8185612f10565b9350612f8583612f21565b8060005b83811015612fb6578151612f9d8882612f40565b9750612fa883612f58565b925050600181019050612f89565b5085935050505092915050565b60006020820190508181036000830152612fdd8184612f65565b905092915050565b60006040820190508181036000830152612fff8185612f65565b905061300e6020830184612528565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061304b601f83612bfb565b915061305682613015565b602082019050919050565b6000602082019050818103600083015261307a8161303e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506130bf81612465565b92915050565b6000602082840312156130db576130da61227e565b5b60006130e9848285016130b0565b91505092915050565b60006040820190506131076000830185612528565b6131146020830184612431565b9392505050565b60006131268261245b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361315857613157612ce7565b5b600182019050919050565b6000604082019050818103600083015261317d8185612f65565b9050818103602083015261319181846127b8565b90509392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006131db60178361319a565b91506131e6826131a5565b601782019050919050565b600081519050919050565b60005b8381101561321a5780820151818401526020810190506131ff565b60008484015250505050565b6000613231826131f1565b61323b818561319a565b935061324b8185602086016131fc565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061328d60118361319a565b915061329882613257565b601182019050919050565b60006132ae826131ce565b91506132ba8285613226565b91506132c582613280565b91506132d18284613226565b91508190509392505050565b60006132e8826131f1565b6132f28185612bfb565b93506133028185602086016131fc565b61330b81612838565b840191505092915050565b6000602082019050818103600083015261333081846132dd565b905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061336e601c8361319a565b915061337982613338565b601c82019050919050565b6000819050919050565b61339f61339a826123ce565b613384565b82525050565b60006133b082613361565b91506133bc828461338e565b60208201915081905092915050565b60006133d68261245b565b91506133e18361245b565b92508282019050808211156133f9576133f8612ce7565b5b92915050565b600061340a8261245b565b91506000820361341d5761341c612ce7565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061345e602083612bfb565b915061346982613428565b602082019050919050565b6000602082019050818103600083015261348d81613451565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006134f9601883612bfb565b9150613504826134c3565b602082019050919050565b60006020820190508181036000830152613528816134ec565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000613565601f83612bfb565b91506135708261352f565b602082019050919050565b6000602082019050818103600083015261359481613558565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006135f7602283612bfb565b91506136028261359b565b604082019050919050565b60006020820190508181036000830152613626816135ea565b9050919050565b600060ff82169050919050565b6136438161362d565b82525050565b600060808201905061365e6000830187612431565b61366b602083018661363a565b6136786040830185612431565b6136856060830184612431565b9594505050505056fea264697066735822122075d2b9d5a691bc55ebf33e94f29ed561258420a65f962b9f246df53a75aeceae64736f6c63430008110033000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000099f20bea59ce9f464147b7de92e59684cff14a08000000000000000000000000d93206bd0062cc054e397ecccdb8436c3fa5700e000000000000000000000000a3b92fe58563ce841f50df08293237e4c866e14e000000000000000000000000563df01d07125c33a296de51335ec040517630e400000000000000000000000083d685a90b1aa4c02a376b290956eb384e0f2566

Deployed Bytecode

0x6080604052600436106101c25760003560e01c80638ccc5f80116100f7578063c56e3c5211610095578063ddca3f4311610064578063ddca3f4314610633578063e834bd9b1461065e578063f0f4426014610689578063f103ba21146106b2576101c2565b8063c56e3c521461058b578063cdce9cba146105b6578063d28c5f78146105cd578063d547741f1461060a576101c2565b8063a217fddf116100d1578063a217fddf146104cd578063a28191e8146104f8578063ae370b8c14610535578063bef9ec7414610560576101c2565b80638ccc5f801461042357806391d14854146104605780639a9035641461049d576101c2565b80635b7633d01161016457806369fe0e2d1161013e57806369fe0e2d1461037d5780636c19e783146103a65780637c07bc7a146103cf5780638c631a91146103fa576101c2565b80635b7633d0146102fc5780635ba8a7771461032757806361d027b314610352576101c2565b80632acff374116101a05780632acff3741461026a5780632f2ff15d1461029357806336568abe146102bc578063466c9387146102e5576101c2565b8063014ba601146101c757806301ffc9a7146101f0578063248a9ca31461022d575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e991906122e6565b6106ef565b005b3480156101fc57600080fd5b506102176004803603810190610212919061236b565b6107ea565b60405161022491906123b3565b60405180910390f35b34801561023957600080fd5b50610254600480360381019061024f9190612404565b610864565b6040516102619190612440565b60405180910390f35b34801561027657600080fd5b50610291600480360381019061028c9190612491565b610883565b005b34801561029f57600080fd5b506102ba60048036038101906102b591906124be565b6108c8565b005b3480156102c857600080fd5b506102e360048036038101906102de91906124be565b6108e9565b005b3480156102f157600080fd5b506102fa61096c565b005b34801561030857600080fd5b506103116109d2565b60405161031e919061250d565b60405180910390f35b34801561033357600080fd5b5061033c6109f8565b6040516103499190612537565b60405180910390f35b34801561035e57600080fd5b506103676109fe565b6040516103749190612573565b60405180910390f35b34801561038957600080fd5b506103a4600480360381019061039f9190612491565b610a24565b005b3480156103b257600080fd5b506103cd60048036038101906103c891906122e6565b610a69565b005b3480156103db57600080fd5b506103e4610b64565b6040516103f191906125ed565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c91906122e6565b610b8a565b005b34801561042f57600080fd5b5061044a60048036038101906104459190612404565b610c85565b60405161045791906123b3565b60405180910390f35b34801561046c57600080fd5b50610487600480360381019061048291906124be565b610ca5565b60405161049491906123b3565b60405180910390f35b6104b760048036038101906104b291906126c3565b610d0f565b6040516104c49190612816565b60405180910390f35b3480156104d957600080fd5b506104e26111be565b6040516104ef9190612440565b60405180910390f35b34801561050457600080fd5b5061051f600480360381019061051a9190612987565b6111c5565b60405161052c9190612440565b60405180910390f35b34801561054157600080fd5b5061054a6111f5565b60405161055791906129f1565b60405180910390f35b34801561056c57600080fd5b5061057561121b565b6040516105829190612a2d565b60405180910390f35b34801561059757600080fd5b506105a0611241565b6040516105ad91906123b3565b60405180910390f35b3480156105c257600080fd5b506105cb611254565b005b3480156105d957600080fd5b506105f460048036038101906105ef9190612a48565b6112ba565b6040516106019190612440565b60405180910390f35b34801561061657600080fd5b50610631600480360381019061062c91906124be565b6112ed565b005b34801561063f57600080fd5b5061064861130e565b6040516106559190612537565b60405180910390f35b34801561066a57600080fd5b50610673611314565b60405161068091906123b3565b60405180910390f35b34801561069557600080fd5b506106b060048036038101906106ab9190612ad0565b611327565b005b3480156106be57600080fd5b506106d960048036038101906106d49190612bb2565b611422565b6040516106e691906123b3565b60405180910390f35b6000801b6106fc81611458565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610762576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f64ab85b98bcee677e96663af1e64df0f51d4664eebf0d39532b5a9f9a8c60aaf60405160405180910390a25050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061085d575061085c8261146c565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b6000801b61089081611458565b81600381905550817f80a0cc2c48fae3a7d06cd95e380829ce76b0ab7a2dff9c8547e622c6422d2c9360405160405180910390a25050565b6108d182610864565b6108da81611458565b6108e483836114d6565b505050565b6108f16115b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461095e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095590612c7e565b60405180910390fd5b61096882826115be565b5050565b6000801b61097981611458565b600860149054906101000a900460ff1615600860146101000a81548160ff0219169083151502179055507fab2ae497d1f27a3bbe81e17c25e4c10aca0f787309355732e4eaf14f18d0f68c60405160405180910390a150565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b610a3181611458565b81600281905550817f08d36a2ee019e8abd461a5278c16cf9cae6cbbfdfe249e981b85ffaae2032cc360405160405180910390a25050565b6000801b610a7681611458565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610adc576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f9eaa897564d022fb8c5efaf0acdb5d9d27b440b2aad44400b6e1c702e65b9ed360405160405180910390a25050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b610b9781611458565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610bfd576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f1fd191d0962056f91fe7346755d28e92c4bc96012b1effb9b1ee1ec9c0d1728860405160405180910390a25050565b60096020528060005260406000206000915054906101000a900460ff1681565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060610d1961169f565b600860149054906101000a900460ff16610d5f576040517f296aa7ae00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a8383604051610d71929190612cce565b908152602001604051809103902060009054906101000a900460ff1615610dc4576040517f900bb2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610e10878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506111c5565b9050600860159054906101000a900460ff168015610e4b57506009600082815260200190815260200160002060009054906101000a900460ff165b15610e82576040517ff2fbe6fb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008787905090506002811015610ec5576040517fca24560a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600354811115610f01576040517f659afaef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85431115610f3b576040517fdf4cc36d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600254610f499190612d16565b341015610f82576040517ff14a42b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ffe3389898930604051602001610f9e959493929190612e7e565b6040516020818303038152906040528051906020012086868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506116ee565b611034576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600a8686604051611048929190612cce565b908152602001604051809103902060006101000a81548160ff02191690831515021790555060016009600084815260200190815260200160002060006101000a81548160ff0219169083151502179055506110e3888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505061175a565b92506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163460405161112d90612ef0565b60006040518083038185875af1925050503d806000811461116a576040519150601f19603f3d011682016040523d82523d6000602084013e61116f565b606091505b50509050806111aa576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050506111b5611c8d565b95945050505050565b6000801b81565b6000816040516020016111d89190612fc3565b604051602081830303815290604052805190602001209050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860159054906101000a900460ff1681565b6000801b61126181611458565b600860159054906101000a900460ff1615600860156101000a81548160ff0219169083151502179055507faf26baf137004ce2e3d13017e6a80bea1bb59e2f862efb4a9b2c73a1178fda8260405160405180910390a150565b600082826040516020016112cf929190612fe5565b60405160208183030381529060405280519060200120905092915050565b6112f682610864565b6112ff81611458565b61130983836115be565b505050565b60025481565b600860149054906101000a900460ff1681565b6000801b61133481611458565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361139a576040517f126860a400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f5cc4bdb402e519d4921d6bfaca9c17c16ea3a8e658ff5accd29e6080635562ce60405160405180910390a25050565b600a818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b611469816114646115b6565b611c96565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6114e08282610ca5565b6115b257600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115576115b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6115c88282610ca5565b1561169b57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506116406115b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6002600154036116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116db90613061565b60405180910390fd5b6002600181905550565b60006117026116fc84611d1b565b83611d4b565b73ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b60606000825167ffffffffffffffff81111561177957611778612849565b5b6040519080825280602002602001820160405280156117a75781602001602082028036833780820191505090505b509050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd548470846000815181106117fc576117fb613081565b5b60200260200101516040518263ffffffff1660e01b8152600401611820919061250d565b6020604051808303816000875af115801561183f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186391906130c5565b8160008151811061187757611876613081565b5b60200260200101818152505060006118aa848360008151811061189d5761189c613081565b5b60200260200101516112ba565b9050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e345168836000815181106118fe576118fd613081565b5b6020026020010151836040518363ffffffff1660e01b81526004016119249291906130f2565b600060405180830381600087803b15801561193e57600080fd5b505af1158015611952573d6000803e3d6000fd5b50505050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d71a7552836000815181106119a8576119a7613081565b5b60200260200101516040518263ffffffff1660e01b81526004016119cc9190612537565b600060405180830381600087803b1580156119e657600080fd5b505af11580156119fa573d6000803e3d6000fd5b505050506000600190505b8451811015611c4857600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd548470868381518110611a5f57611a5e613081565b5b60200260200101516040518263ffffffff1660e01b8152600401611a83919061250d565b6020604051808303816000875af1158015611aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac691906130c5565b838281518110611ad957611ad8613081565b5b602002602001018181525050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e345168848381518110611b3657611b35613081565b5b6020026020010151846040518363ffffffff1660e01b8152600401611b5c9291906130f2565b600060405180830381600087803b158015611b7657600080fd5b505af1158015611b8a573d6000803e3d6000fd5b50505050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d71a7552848381518110611bdf57611bde613081565b5b60200260200101516040518263ffffffff1660e01b8152600401611c039190612537565b600060405180830381600087803b158015611c1d57600080fd5b505af1158015611c31573d6000803e3d6000fd5b505050508080611c409061311b565b915050611a05565b50807fdf98751a3855743d67da4744f826e2627278fe3dec6bf3ae979358d0183e1d028584604051611c7b929190613163565b60405180910390a28192505050919050565b60018081905550565b611ca08282610ca5565b611d1757611cad81611d72565b611cbb8360001c6020611d9f565b604051602001611ccc9291906132a3565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0e9190613316565b60405180910390fd5b5050565b600081604051602001611d2e91906133a5565b604051602081830303815290604052805190602001209050919050565b6000806000611d5a8585611fdb565b91509150611d678161202c565b819250505092915050565b6060611d988273ffffffffffffffffffffffffffffffffffffffff16601460ff16611d9f565b9050919050565b606060006002836002611db29190612d16565b611dbc91906133cb565b67ffffffffffffffff811115611dd557611dd4612849565b5b6040519080825280601f01601f191660200182016040528015611e075781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611e3f57611e3e613081565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611ea357611ea2613081565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611ee39190612d16565b611eed91906133cb565b90505b6001811115611f8d577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611f2f57611f2e613081565b5b1a60f81b828281518110611f4657611f45613081565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611f86906133ff565b9050611ef0565b5060008414611fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc890613474565b60405180910390fd5b8091505092915050565b600080604183510361201c5760008060006020860151925060408601519150606086015160001a905061201087828585612192565b94509450505050612025565b60006002915091505b9250929050565b600060048111156120405761203f613494565b5b81600481111561205357612052613494565b5b031561218f576001600481111561206d5761206c613494565b5b8160048111156120805761207f613494565b5b036120c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b79061350f565b60405180910390fd5b600260048111156120d4576120d3613494565b5b8160048111156120e7576120e6613494565b5b03612127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211e9061357b565b60405180910390fd5b6003600481111561213b5761213a613494565b5b81600481111561214e5761214d613494565b5b0361218e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121859061360d565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156121cd57600060039150915061226b565b6000600187878787604051600081526020016040526040516121f29493929190613649565b6020604051602081039080840390855afa158015612214573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036122625760006001925092505061226b565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006122b382612288565b9050919050565b6122c3816122a8565b81146122ce57600080fd5b50565b6000813590506122e0816122ba565b92915050565b6000602082840312156122fc576122fb61227e565b5b600061230a848285016122d1565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61234881612313565b811461235357600080fd5b50565b6000813590506123658161233f565b92915050565b6000602082840312156123815761238061227e565b5b600061238f84828501612356565b91505092915050565b60008115159050919050565b6123ad81612398565b82525050565b60006020820190506123c860008301846123a4565b92915050565b6000819050919050565b6123e1816123ce565b81146123ec57600080fd5b50565b6000813590506123fe816123d8565b92915050565b60006020828403121561241a5761241961227e565b5b6000612428848285016123ef565b91505092915050565b61243a816123ce565b82525050565b60006020820190506124556000830184612431565b92915050565b6000819050919050565b61246e8161245b565b811461247957600080fd5b50565b60008135905061248b81612465565b92915050565b6000602082840312156124a7576124a661227e565b5b60006124b58482850161247c565b91505092915050565b600080604083850312156124d5576124d461227e565b5b60006124e3858286016123ef565b92505060206124f4858286016122d1565b9150509250929050565b612507816122a8565b82525050565b600060208201905061252260008301846124fe565b92915050565b6125318161245b565b82525050565b600060208201905061254c6000830184612528565b92915050565b600061255d82612288565b9050919050565b61256d81612552565b82525050565b60006020820190506125886000830184612564565b92915050565b6000819050919050565b60006125b36125ae6125a984612288565b61258e565b612288565b9050919050565b60006125c582612598565b9050919050565b60006125d7826125ba565b9050919050565b6125e7816125cc565b82525050565b600060208201905061260260008301846125de565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261262d5761262c612608565b5b8235905067ffffffffffffffff81111561264a5761264961260d565b5b60208301915083602082028301111561266657612665612612565b5b9250929050565b60008083601f84011261268357612682612608565b5b8235905067ffffffffffffffff8111156126a05761269f61260d565b5b6020830191508360018202830111156126bc576126bb612612565b5b9250929050565b6000806000806000606086880312156126df576126de61227e565b5b600086013567ffffffffffffffff8111156126fd576126fc612283565b5b61270988828901612617565b9550955050602061271c8882890161247c565b935050604086013567ffffffffffffffff81111561273d5761273c612283565b5b6127498882890161266d565b92509250509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61278d8161245b565b82525050565b600061279f8383612784565b60208301905092915050565b6000602082019050919050565b60006127c382612758565b6127cd8185612763565b93506127d883612774565b8060005b838110156128095781516127f08882612793565b97506127fb836127ab565b9250506001810190506127dc565b5085935050505092915050565b6000602082019050818103600083015261283081846127b8565b905092915050565b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61288182612838565b810181811067ffffffffffffffff821117156128a05761289f612849565b5b80604052505050565b60006128b3612274565b90506128bf8282612878565b919050565b600067ffffffffffffffff8211156128df576128de612849565b5b602082029050602081019050919050565b60006129036128fe846128c4565b6128a9565b9050808382526020820190506020840283018581111561292657612925612612565b5b835b8181101561294f578061293b88826122d1565b845260208401935050602081019050612928565b5050509392505050565b600082601f83011261296e5761296d612608565b5b813561297e8482602086016128f0565b91505092915050565b60006020828403121561299d5761299c61227e565b5b600082013567ffffffffffffffff8111156129bb576129ba612283565b5b6129c784828501612959565b91505092915050565b60006129db826125ba565b9050919050565b6129eb816129d0565b82525050565b6000602082019050612a0660008301846129e2565b92915050565b6000612a17826125ba565b9050919050565b612a2781612a0c565b82525050565b6000602082019050612a426000830184612a1e565b92915050565b60008060408385031215612a5f57612a5e61227e565b5b600083013567ffffffffffffffff811115612a7d57612a7c612283565b5b612a8985828601612959565b9250506020612a9a8582860161247c565b9150509250929050565b612aad81612552565b8114612ab857600080fd5b50565b600081359050612aca81612aa4565b92915050565b600060208284031215612ae657612ae561227e565b5b6000612af484828501612abb565b91505092915050565b600080fd5b600067ffffffffffffffff821115612b1d57612b1c612849565b5b612b2682612838565b9050602081019050919050565b82818337600083830152505050565b6000612b55612b5084612b02565b6128a9565b905082815260208101848484011115612b7157612b70612afd565b5b612b7c848285612b33565b509392505050565b600082601f830112612b9957612b98612608565b5b8135612ba9848260208601612b42565b91505092915050565b600060208284031215612bc857612bc761227e565b5b600082013567ffffffffffffffff811115612be657612be5612283565b5b612bf284828501612b84565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612c68602f83612bfb565b9150612c7382612c0c565b604082019050919050565b60006020820190508181036000830152612c9781612c5b565b9050919050565b600081905092915050565b6000612cb58385612c9e565b9350612cc2838584612b33565b82840190509392505050565b6000612cdb828486612ca9565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612d218261245b565b9150612d2c8361245b565b9250828202612d3a8161245b565b91508282048414831517612d5157612d50612ce7565b5b5092915050565b60008160601b9050919050565b6000612d7082612d58565b9050919050565b6000612d8282612d65565b9050919050565b612d9a612d95826122a8565b612d77565b82525050565b600081905092915050565b6000819050919050565b612dbe816122a8565b82525050565b6000612dd08383612db5565b60208301905092915050565b6000612deb60208401846122d1565b905092915050565b6000602082019050919050565b6000612e0c8385612da0565b9350612e1782612dab565b8060005b85811015612e5057612e2d8284612ddc565b612e378882612dc4565b9750612e4283612df3565b925050600181019050612e1b565b5085925050509392505050565b6000819050919050565b612e78612e738261245b565b612e5d565b82525050565b6000612e8a8288612d89565b601482019150612e9b828688612e00565b9150612ea78285612e67565b602082019150612eb78284612d89565b6014820191508190509695505050505050565b50565b6000612eda600083612c9e565b9150612ee582612eca565b600082019050919050565b6000612efb82612ecd565b9150819050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612f3a816122a8565b82525050565b6000612f4c8383612f31565b60208301905092915050565b6000602082019050919050565b6000612f7082612f05565b612f7a8185612f10565b9350612f8583612f21565b8060005b83811015612fb6578151612f9d8882612f40565b9750612fa883612f58565b925050600181019050612f89565b5085935050505092915050565b60006020820190508181036000830152612fdd8184612f65565b905092915050565b60006040820190508181036000830152612fff8185612f65565b905061300e6020830184612528565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061304b601f83612bfb565b915061305682613015565b602082019050919050565b6000602082019050818103600083015261307a8161303e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000815190506130bf81612465565b92915050565b6000602082840312156130db576130da61227e565b5b60006130e9848285016130b0565b91505092915050565b60006040820190506131076000830185612528565b6131146020830184612431565b9392505050565b60006131268261245b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361315857613157612ce7565b5b600182019050919050565b6000604082019050818103600083015261317d8185612f65565b9050818103602083015261319181846127b8565b90509392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006131db60178361319a565b91506131e6826131a5565b601782019050919050565b600081519050919050565b60005b8381101561321a5780820151818401526020810190506131ff565b60008484015250505050565b6000613231826131f1565b61323b818561319a565b935061324b8185602086016131fc565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061328d60118361319a565b915061329882613257565b601182019050919050565b60006132ae826131ce565b91506132ba8285613226565b91506132c582613280565b91506132d18284613226565b91508190509392505050565b60006132e8826131f1565b6132f28185612bfb565b93506133028185602086016131fc565b61330b81612838565b840191505092915050565b6000602082019050818103600083015261333081846132dd565b905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061336e601c8361319a565b915061337982613338565b601c82019050919050565b6000819050919050565b61339f61339a826123ce565b613384565b82525050565b60006133b082613361565b91506133bc828461338e565b60208201915081905092915050565b60006133d68261245b565b91506133e18361245b565b92508282019050808211156133f9576133f8612ce7565b5b92915050565b600061340a8261245b565b91506000820361341d5761341c612ce7565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061345e602083612bfb565b915061346982613428565b602082019050919050565b6000602082019050818103600083015261348d81613451565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006134f9601883612bfb565b9150613504826134c3565b602082019050919050565b60006020820190508181036000830152613528816134ec565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000613565601f83612bfb565b91506135708261352f565b602082019050919050565b6000602082019050818103600083015261359481613558565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006135f7602283612bfb565b91506136028261359b565b604082019050919050565b60006020820190508181036000830152613626816135ea565b9050919050565b600060ff82169050919050565b6136438161362d565b82525050565b600060808201905061365e6000830187612431565b61366b602083018661363a565b6136786040830185612431565b6136856060830184612431565b9594505050505056fea264697066735822122075d2b9d5a691bc55ebf33e94f29ed561258420a65f962b9f246df53a75aeceae64736f6c63430008110033

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

000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000099f20bea59ce9f464147b7de92e59684cff14a08000000000000000000000000d93206bd0062cc054e397ecccdb8436c3fa5700e000000000000000000000000a3b92fe58563ce841f50df08293237e4c866e14e000000000000000000000000563df01d07125c33a296de51335ec040517630e400000000000000000000000083d685a90b1aa4c02a376b290956eb384e0f2566

-----Decoded View---------------
Arg [0] : _fee (uint256): 10000000000000000
Arg [1] : _treasury (address): 0x99f20BEA59CE9f464147b7De92E59684cfF14a08
Arg [2] : _decagon (address): 0xd93206BD0062cC054E397eCCCdB8436c3fa5700e
Arg [3] : _tokenHashes (address): 0xa3b92fE58563ce841F50Df08293237e4c866E14E
Arg [4] : _colourHashes (address): 0x563Df01D07125c33a296De51335Ec040517630e4
Arg [5] : _signerAddress (address): 0x83d685A90B1Aa4C02a376B290956EB384e0F2566

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [1] : 00000000000000000000000099f20bea59ce9f464147b7de92e59684cff14a08
Arg [2] : 000000000000000000000000d93206bd0062cc054e397ecccdb8436c3fa5700e
Arg [3] : 000000000000000000000000a3b92fe58563ce841f50df08293237e4c866e14e
Arg [4] : 000000000000000000000000563df01d07125c33a296de51335ec040517630e4
Arg [5] : 00000000000000000000000083d685a90b1aa4c02a376b290956eb384e0f2566


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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