ETH Price: $2,416.99 (-1.27%)

Contract

0xA7e33f1448BC034751193f44B182a01C59D12C4C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Checkout185890652023-11-17 3:57:23302 days ago1700193443IN
0xA7e33f14...C59D12C4C
0 ETH0.0022131619.71796222
Checkout185881132023-11-17 0:46:35302 days ago1700181995IN
0xA7e33f14...C59D12C4C
0 ETH0.0033451823.74745995
Checkout185880562023-11-17 0:35:11302 days ago1700181311IN
0xA7e33f14...C59D12C4C
0 ETH0.0036415926.76126407
Checkout185381822023-11-10 1:11:59309 days ago1699578719IN
0xA7e33f14...C59D12C4C
0 ETH0.006304137.0278356
Checkout185168462023-11-07 1:36:35312 days ago1699320995IN
0xA7e33f14...C59D12C4C
0 ETH0.0032186423.65591616
Checkout185039272023-11-05 6:08:47314 days ago1699164527IN
0xA7e33f14...C59D12C4C
0 ETH0.0026151219.21800788
Checkout184984012023-11-04 11:33:47315 days ago1699097627IN
0xA7e33f14...C59D12C4C
0 ETH0.0019765815.2829131
Checkout184470322023-10-28 6:52:35322 days ago1698475955IN
0xA7e33f14...C59D12C4C
0 ETH0.001212158.9073453
Checkout184464272023-10-28 4:50:35322 days ago1698468635IN
0xA7e33f14...C59D12C4C
0 ETH0.001168539.03454752
Checkout184462052023-10-28 4:05:47322 days ago1698465947IN
0xA7e33f14...C59D12C4C
0 ETH0.001456511.26267306
Checkout184383122023-10-27 1:37:59323 days ago1698370679IN
0xA7e33f14...C59D12C4C
0 ETH0.0026503515.56602961
Checkout184321922023-10-26 5:04:59324 days ago1698296699IN
0xA7e33f14...C59D12C4C
0 ETH0.0022968517.7625454
Checkout184310372023-10-26 1:12:23324 days ago1698282743IN
0xA7e33f14...C59D12C4C
0 ETH0.0028411221.96614372
Checkout184279142023-10-25 14:42:23325 days ago1698244943IN
0xA7e33f14...C59D12C4C
0 ETH0.0053551941.41139141
Checkout184094342023-10-23 0:33:47327 days ago1698021227IN
0xA7e33f14...C59D12C4C
0 ETH0.001020877.89341469
Checkout184062672023-10-22 13:54:47328 days ago1697982887IN
0xA7e33f14...C59D12C4C
0 ETH0.000885056.84325593
Checkout184061602023-10-22 13:33:11328 days ago1697981591IN
0xA7e33f14...C59D12C4C
0 ETH0.000971387.51030015
Checkout184061082023-10-22 13:22:23328 days ago1697980943IN
0xA7e33f14...C59D12C4C
0 ETH0.000898016.94429051
Checkout183999342023-10-21 16:40:23329 days ago1697906423IN
0xA7e33f14...C59D12C4C
0 ETH0.0023624313.87342889
Checkout183999022023-10-21 16:33:59329 days ago1697906039IN
0xA7e33f14...C59D12C4C
0 ETH0.0018592213.19673576
Checkout183998962023-10-21 16:32:47329 days ago1697905967IN
0xA7e33f14...C59D12C4C
0 ETH0.0012079214.48383217
Checkout183998962023-10-21 16:32:47329 days ago1697905967IN
0xA7e33f14...C59D12C4C
0 ETH0.0012079214.48383217
Checkout183998952023-10-21 16:32:35329 days ago1697905955IN
0xA7e33f14...C59D12C4C
0 ETH0.002561314.62990017
Checkout183988022023-10-21 12:52:23329 days ago1697892743IN
0xA7e33f14...C59D12C4C
0 ETH0.001299337.63128006
Checkout183924522023-10-20 15:33:35330 days ago1697816015IN
0xA7e33f14...C59D12C4C
0 ETH0.0036233821.27938337
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TalonPaymentReceiver

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 9999 runs

Other Settings:
london EvmVersion, MIT license
File 1 of 12 : TalonPaymentReceiver.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import { Pausable } from "@openzeppelin/contracts/security/Pausable.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { IHighstreetBrands } from "./IHighstreetBrands.sol";

contract TalonPaymentReceiver is Ownable, Pausable, ReentrancyGuard {

  struct CryptoPaymentRawType {
    uint256 chainId;
    bytes32 paymentId;
    address userWallet;
    uint256 highAmount;
    uint256 option1Amount;
    uint256 option2Amount;
    uint256 deadline;
    uint8 v;
    bytes32 r;
    bytes32 s;
  }

  address immutable public HIGH_TOKEN;
  address immutable public HIGHSTREET_BRANDS;
  uint256 immutable public MAX_SELL_AMOUNT;
  uint256 immutable public OPTION1_TOKENID;
  uint256 immutable public OPTION2_TOKENID;
  address public signer;
  address public paymentReceiver;
  uint256 public option1SoldAmount;
  uint256 public option2SoldAmount;
  mapping(bytes32 => bool) public usedPaymentIds;

  /**
   * @dev Fired in updateSuperOwner()
   *
   * @param paymentReceiver new super owner address
   */
  event UpdateReceiver(address paymentReceiver);

  /**
   * @dev Fired in updateSigner()
   *
   * @param signer new signer address
   */
  event UpdateSigner(address signer);

  /**
   * @dev Fired in Checkout()
   * 
   * @param user user address
   * @param paymentId a random hash to prevent input message collision
   * @param option1Amount a tokenId that minted to user 
   * @param option2Amount a tokenId that minted to user 
   * @param highAmount a number expected to receive
   */
  event Checkout(address indexed user, bytes32 indexed paymentId, uint256 option1Amount, uint256 option2Amount, uint256 highAmount);

  /**
   * @dev Creates/deploys an instance of the TalonPaymentReceiver contract
   * 
   * @param high_ high token address
   * @param brands_ brands nft address
   * @param maxAmount_ max amount of each option
   * @param signer_ signer address
   * @param receiver_ receiver address
   * @param hoodieTokenId_ option token id
   */

  constructor(
    address high_,
    address brands_,
    uint256 maxAmount_,
    address signer_,
    address receiver_,
    uint256[2] memory hoodieTokenId_
  ) {
    require(signer_ != address(0), "Invalid signer");
    require(receiver_ != address(0), "Invalid receiver");
    HIGH_TOKEN = high_;
    HIGHSTREET_BRANDS = brands_;
    MAX_SELL_AMOUNT = maxAmount_;
    signer = signer_;
    paymentReceiver = receiver_;
    OPTION1_TOKENID = hoodieTokenId_[0];
    OPTION2_TOKENID = hoodieTokenId_[1];
  }

  /**
   * @dev Checkout function that receive payment from user and mint nfts to user
   * 
   * @param input_ every input data that user send to this function
   * 
   * @notice this should always be signed by signer to complete the checkout
   */
  function checkout(CryptoPaymentRawType calldata input_) external payable nonReentrant whenNotPaused {
    require(_msgSender() == input_.userWallet, "Invalid sender");
    require(block.timestamp <= input_.deadline, "Execution exceed deadline");
    require(usedPaymentIds[input_.paymentId] == false, "PaymentId already used");
    _verifyInputSignature(input_);
    usedPaymentIds[input_.paymentId] = true;

    SafeERC20.safeTransferFrom(IERC20(HIGH_TOKEN), input_.userWallet, paymentReceiver, input_.highAmount);

    if (input_.option1Amount != 0) {
      require(input_.option1Amount + option1SoldAmount <= MAX_SELL_AMOUNT, "Exceed max sell amount");
      option1SoldAmount += input_.option1Amount;
      IHighstreetBrands(HIGHSTREET_BRANDS).mint(input_.userWallet, OPTION1_TOKENID, input_.option1Amount, "");
    }
    if (input_.option2Amount != 0) {
      require(input_.option2Amount + option2SoldAmount <= MAX_SELL_AMOUNT, "Exceed max sell amount");
      option2SoldAmount += input_.option2Amount;
      IHighstreetBrands(HIGHSTREET_BRANDS).mint(input_.userWallet, OPTION2_TOKENID, input_.option2Amount, "");
    }
    emit Checkout(input_.userWallet, input_.paymentId, input_.option1Amount, input_.option2Amount, input_.highAmount);
  }

  function _verifyInputSignature(CryptoPaymentRawType memory input_) internal view {
    uint chainId;
    assembly {
      chainId := chainid()
    }
    require(input_.chainId == chainId, "Invalid network");
    bytes32 hash_ = keccak256(
      abi.encode(
        input_.chainId,
        input_.paymentId,
        input_.userWallet,
        input_.highAmount,
        input_.option1Amount,
        input_.option2Amount,
        input_.deadline
      )
    );
    bytes32 appendEthSignedMessageHash = ECDSA.toEthSignedMessageHash(hash_);
    address inputSigner = ECDSA.recover(appendEthSignedMessageHash, input_.v, input_.r, input_.s);
    require(signer == inputSigner, "Invalid signer");
  }

  /**
   * @dev update receiver address
   * 
   * @param receiver_ new receiver address
   */
  function updateReceiver(address receiver_) external onlyOwner {
    require(receiver_ != address(0), "Invalid address");
    paymentReceiver = receiver_;
    emit UpdateReceiver(paymentReceiver);
  }

  /**
   * @dev update signer address
   * 
   * @param signer_ new signer address
   */
  function updateSigner(address signer_) external onlyOwner {
    require(signer_ != address(0), "Invalid address");
    signer = signer_;
    emit UpdateSigner(signer);
  }

  /**
   * @dev pause the minting process
   *
   * @notice this function could only call by owner
   */
  function pause() external onlyOwner {
    _pause();
  }

  /**
   * @dev unpause the minting process
   *
   * @notice this function could only call by owner
   */
  function unpause() external onlyOwner {
    _unpause();
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 12 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 5 of 12 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 6 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 8 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 10 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    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");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' 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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        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.
            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 if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } 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;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 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 (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // 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 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 11 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 12 of 12 : IHighstreetBrands.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import { IERC1155 } from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IHighstreetBrands is IERC1155 {
  function setMaxSupply(uint256 id_, uint256 amount_) external;
  function grantMinterRole(address addr_) external;
  function mint(
    address to_,
    uint256 id_,
    uint256 amount_,
    bytes memory data_
  ) external;

  function burn(
    address account,
    uint256 id,
    uint256 amount
  ) external;
  function totalSupply(uint256 id) external view returns (uint256);
}

interface HIGH is IERC20 {
  function faucet(uint256 amount_) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"high_","type":"address"},{"internalType":"address","name":"brands_","type":"address"},{"internalType":"uint256","name":"maxAmount_","type":"uint256"},{"internalType":"address","name":"signer_","type":"address"},{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"uint256[2]","name":"hoodieTokenId_","type":"uint256[2]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"bytes32","name":"paymentId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"option1Amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"option2Amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"highAmount","type":"uint256"}],"name":"Checkout","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"paymentReceiver","type":"address"}],"name":"UpdateReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"signer","type":"address"}],"name":"UpdateSigner","type":"event"},{"inputs":[],"name":"HIGHSTREET_BRANDS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HIGH_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SELL_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPTION1_TOKENID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPTION2_TOKENID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"bytes32","name":"paymentId","type":"bytes32"},{"internalType":"address","name":"userWallet","type":"address"},{"internalType":"uint256","name":"highAmount","type":"uint256"},{"internalType":"uint256","name":"option1Amount","type":"uint256"},{"internalType":"uint256","name":"option2Amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct TalonPaymentReceiver.CryptoPaymentRawType","name":"input_","type":"tuple"}],"name":"checkout","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"option1SoldAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"option2SoldAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver_","type":"address"}],"name":"updateReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedPaymentIds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6101206040523480156200001257600080fd5b5060405162001fe438038062001fe48339810160408190526200003591620001bd565b62000040336200013a565b6000805460ff60a01b19169055600180556001600160a01b0383166200009e5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b4b3b732b960911b60448201526064015b60405180910390fd5b6001600160a01b038216620000e95760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b2103932b1b2b4bb32b960811b604482015260640162000095565b6001600160a01b0395861660805293851660a05260c092909252600280549185166001600160a01b03199283161790556003805492909416911617909155805160e052602001516101005262000297565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001a257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060008060e08789031215620001d757600080fd5b620001e2876200018a565b95506020620001f38189016200018a565b9550604088015194506200020a606089016200018a565b93506200021a608089016200018a565b92508860bf8901126200022c57600080fd5b604080519081016001600160401b0381118282101715620002515762000251620001a7565b6040528060e08a018b8111156200026757600080fd5b60a08b015b818110156200028557805183529184019184016200026c565b50505080925050509295509295509295565b60805160a05160c05160e05161010051611cd76200030d600039600081816101c90152610dd00152600081816102f00152610c220152600081816103ce01528181610af10152610c9f01526000818161040201528181610ba20152610d5001526000818161039a0152610a920152611cd76000f3fe6080604052600436106101445760003560e01c806398a43acb116100c0578063d17db79511610074578063e5eb2c0511610059578063e5eb2c05146103f0578063f21ae12514610424578063f2fde38b1461043a57600080fd5b8063d17db79514610388578063db0e1bdf146103bc57600080fd5b8063ad18e3f4116100a5578063ad18e3f414610332578063c9a8854b14610345578063cb37f3b21461035b57600080fd5b806398a43acb146102de578063a7ecd37e1461031257600080fd5b80635c975abb116101175780637ba2196a116100fc5780637ba2196a1461027e5780638456cb591461029e5780638da5cb5b146102b357600080fd5b80635c975abb14610239578063715018a61461026957600080fd5b8063238ac933146101495780633f4ba83a146101a05780635012a9b2146101b757806352e1e8a7146101f9575b600080fd5b34801561015557600080fd5b506002546101769073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156101ac57600080fd5b506101b561045a565b005b3480156101c357600080fd5b506101eb7f000000000000000000000000000000000000000000000000000000000000000081565b604051908152602001610197565b34801561020557600080fd5b50610229610214366004611a15565b60066020526000908152604090205460ff1681565b6040519015158152602001610197565b34801561024557600080fd5b5060005474010000000000000000000000000000000000000000900460ff16610229565b34801561027557600080fd5b506101b56104d0565b34801561028a57600080fd5b506101b5610299366004611a57565b610541565b3480156102aa57600080fd5b506101b5610685565b3480156102bf57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610176565b3480156102ea57600080fd5b506101eb7f000000000000000000000000000000000000000000000000000000000000000081565b34801561031e57600080fd5b506101b561032d366004611a57565b6106f4565b6101b5610340366004611a72565b610831565b34801561035157600080fd5b506101eb60055481565b34801561036757600080fd5b506003546101769073ffffffffffffffffffffffffffffffffffffffff1681565b34801561039457600080fd5b506101767f000000000000000000000000000000000000000000000000000000000000000081565b3480156103c857600080fd5b506101eb7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103fc57600080fd5b506101767f000000000000000000000000000000000000000000000000000000000000000081565b34801561043057600080fd5b506101eb60045481565b34801561044657600080fd5b506101b5610455366004611a57565b610ecc565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6104ce610fc8565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b6104ce60006110a7565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b73ffffffffffffffffffffffffffffffffffffffff811661060b5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c69642061646472657373000000000000000000000000000000000060448201526064016104bd565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fed372f12d7a4444f7182316b3a21904ed182b1df492066f85a103c4087d59fcb906020015b60405180910390a150565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106ec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b6104ce61111c565b60005473ffffffffffffffffffffffffffffffffffffffff16331461075b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b73ffffffffffffffffffffffffffffffffffffffff81166107be5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c69642061646472657373000000000000000000000000000000000060448201526064016104bd565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fc58fcf255cfb5f40bd578a618869378f650ef76609640fa0818a31e0c6e7102a9060200161067a565b6002600154036108835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104bd565b600260015560005474010000000000000000000000000000000000000000900460ff16156108f35760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016104bd565b6109036060820160408301611a57565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461097d5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c69642073656e64657200000000000000000000000000000000000060448201526064016104bd565b8060c001354211156109d15760405162461bcd60e51b815260206004820152601960248201527f457865637574696f6e2065786365656420646561646c696e650000000000000060448201526064016104bd565b60208082013560009081526006909152604090205460ff1615610a365760405162461bcd60e51b815260206004820152601660248201527f5061796d656e74496420616c726561647920757365640000000000000000000060448201526064016104bd565b610a4d610a4836839003830183611aed565b6111ee565b6020808201356000908152600690915260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610ae5907f000000000000000000000000000000000000000000000000000000000000000090610ac29060608501908501611a57565b60035473ffffffffffffffffffffffffffffffffffffffff1660608501356113b9565b608081013515610c93577f00000000000000000000000000000000000000000000000000000000000000006004548260800135610b229190611b7f565b1115610b705760405162461bcd60e51b815260206004820152601660248201527f457863656564206d61782073656c6c20616d6f756e740000000000000000000060448201526064016104bd565b806080013560046000828254610b869190611b7f565b909155505073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001663731133e9610bd76060840160408501611a57565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff90911660048201527f00000000000000000000000000000000000000000000000000000000000000006024820152608080850135604483015260648201526000608482015260a401600060405180830381600087803b158015610c7a57600080fd5b505af1158015610c8e573d6000803e3d6000fd5b505050505b60a081013515610e42577f00000000000000000000000000000000000000000000000000000000000000006005548260a00135610cd09190611b7f565b1115610d1e5760405162461bcd60e51b815260206004820152601660248201527f457863656564206d61782073656c6c20616d6f756e740000000000000000000060448201526064016104bd565b8060a0013560056000828254610d349190611b7f565b909155505073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001663731133e9610d856060840160408501611a57565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff90911660048201527f0000000000000000000000000000000000000000000000000000000000000000602482015260a08401356044820152608060648201526000608482015260a401600060405180830381600087803b158015610e2957600080fd5b505af1158015610e3d573d6000803e3d6000fd5b505050505b6020810135610e576060830160408401611a57565b73ffffffffffffffffffffffffffffffffffffffff167fc95feddc9a9ede7f518424eff659bee1b008d0c4873def7a09e721400504d62a83608001358460a001358560600135604051610ebd939291909283526020830191909152604082015260600190565b60405180910390a35060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b73ffffffffffffffffffffffffffffffffffffffff8116610fbc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104bd565b610fc5816110a7565b50565b60005474010000000000000000000000000000000000000000900460ff166110325760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016104bd565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005474010000000000000000000000000000000000000000900460ff16156111875760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016104bd565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861107d3390565b8051469081146112405760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206e6574776f726b000000000000000000000000000000000060448201526064016104bd565b81516020808401516040808601516060870151608088015160a089015160c08a015194516000986112b6989097969101968752602087019590955273ffffffffffffffffffffffffffffffffffffffff9390931660408601526060850191909152608084015260a083015260c082015260e00190565b6040516020818303038152906040528051906020012090506000611327826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506000611345828660e00151876101000151886101200151611454565b60025490915073ffffffffffffffffffffffffffffffffffffffff8083169116146113b25760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964207369676e657200000000000000000000000000000000000060448201526064016104bd565b5050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261144e90859061147c565b50505050565b600080600061146587878787611573565b915091506114728161168b565b5095945050505050565b60006114de826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166118779092919063ffffffff16565b80519091501561156e57808060200190518101906114fc9190611bbf565b61156e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104bd565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156115aa5750600090506003611682565b8460ff16601b141580156115c257508460ff16601c14155b156115d35750600090506004611682565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611627573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661167b57600060019250925050611682565b9150600090505b94509492505050565b600081600481111561169f5761169f611be1565b036116a75750565b60018160048111156116bb576116bb611be1565b036117085760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104bd565b600281600481111561171c5761171c611be1565b036117695760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104bd565b600381600481111561177d5761177d611be1565b036117f05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016104bd565b600481600481111561180457611804611be1565b03610fc55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016104bd565b60606118868484600085611890565b90505b9392505050565b6060824710156119085760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104bd565b843b6119565760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104bd565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161197f9190611c34565b60006040518083038185875af1925050503d80600081146119bc576040519150601f19603f3d011682016040523d82523d6000602084013e6119c1565b606091505b50915091506119d18282866119dc565b979650505050505050565b606083156119eb575081611889565b8251156119fb5782518084602001fd5b8160405162461bcd60e51b81526004016104bd9190611c50565b600060208284031215611a2757600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a5257600080fd5b919050565b600060208284031215611a6957600080fd5b61188982611a2e565b60006101408284031215611a8557600080fd5b50919050565b604051610140810167ffffffffffffffff81118282101715611ad6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405290565b803560ff81168114611a5257600080fd5b60006101408284031215611b0057600080fd5b611b08611a8b565b8235815260208301356020820152611b2260408401611a2e565b6040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c0820152611b5b60e08401611adc565b60e08201526101008381013590820152610120928301359281019290925250919050565b80820180821115611bb9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b600060208284031215611bd157600080fd5b8151801515811461188957600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60005b83811015611c2b578181015183820152602001611c13565b50506000910152565b60008251611c46818460208701611c10565b9190910192915050565b6020815260008251806020840152611c6f816040850160208701611c10565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122070eb4c2fb2a914723a376618963817798d390df08d7e56baa9291f94f2e5e9b864736f6c6343000811003300000000000000000000000071ab77b7dbb4fa7e017bc15090b21632214202820000000000000000000000004723c8fa1df38162e531c7677de636261aff09f400000000000000000000000000000000000000000000000000000000000000320000000000000000000000002c1e316113f75d44d73f7e0fa16fe32407bdeede0000000000000000000000004990f605cfb996e86db69e994ec27ac81a3949fb000000000000000000000000000000000000000000000000000000000bebc200000000000000000000000000000000000000000000000000000000000bebc201

Deployed Bytecode

0x6080604052600436106101445760003560e01c806398a43acb116100c0578063d17db79511610074578063e5eb2c0511610059578063e5eb2c05146103f0578063f21ae12514610424578063f2fde38b1461043a57600080fd5b8063d17db79514610388578063db0e1bdf146103bc57600080fd5b8063ad18e3f4116100a5578063ad18e3f414610332578063c9a8854b14610345578063cb37f3b21461035b57600080fd5b806398a43acb146102de578063a7ecd37e1461031257600080fd5b80635c975abb116101175780637ba2196a116100fc5780637ba2196a1461027e5780638456cb591461029e5780638da5cb5b146102b357600080fd5b80635c975abb14610239578063715018a61461026957600080fd5b8063238ac933146101495780633f4ba83a146101a05780635012a9b2146101b757806352e1e8a7146101f9575b600080fd5b34801561015557600080fd5b506002546101769073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156101ac57600080fd5b506101b561045a565b005b3480156101c357600080fd5b506101eb7f000000000000000000000000000000000000000000000000000000000bebc20181565b604051908152602001610197565b34801561020557600080fd5b50610229610214366004611a15565b60066020526000908152604090205460ff1681565b6040519015158152602001610197565b34801561024557600080fd5b5060005474010000000000000000000000000000000000000000900460ff16610229565b34801561027557600080fd5b506101b56104d0565b34801561028a57600080fd5b506101b5610299366004611a57565b610541565b3480156102aa57600080fd5b506101b5610685565b3480156102bf57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610176565b3480156102ea57600080fd5b506101eb7f000000000000000000000000000000000000000000000000000000000bebc20081565b34801561031e57600080fd5b506101b561032d366004611a57565b6106f4565b6101b5610340366004611a72565b610831565b34801561035157600080fd5b506101eb60055481565b34801561036757600080fd5b506003546101769073ffffffffffffffffffffffffffffffffffffffff1681565b34801561039457600080fd5b506101767f00000000000000000000000071ab77b7dbb4fa7e017bc15090b216322142028281565b3480156103c857600080fd5b506101eb7f000000000000000000000000000000000000000000000000000000000000003281565b3480156103fc57600080fd5b506101767f0000000000000000000000004723c8fa1df38162e531c7677de636261aff09f481565b34801561043057600080fd5b506101eb60045481565b34801561044657600080fd5b506101b5610455366004611a57565b610ecc565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6104ce610fc8565b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b6104ce60006110a7565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b73ffffffffffffffffffffffffffffffffffffffff811661060b5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c69642061646472657373000000000000000000000000000000000060448201526064016104bd565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fed372f12d7a4444f7182316b3a21904ed182b1df492066f85a103c4087d59fcb906020015b60405180910390a150565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106ec5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b6104ce61111c565b60005473ffffffffffffffffffffffffffffffffffffffff16331461075b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b73ffffffffffffffffffffffffffffffffffffffff81166107be5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c69642061646472657373000000000000000000000000000000000060448201526064016104bd565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fc58fcf255cfb5f40bd578a618869378f650ef76609640fa0818a31e0c6e7102a9060200161067a565b6002600154036108835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104bd565b600260015560005474010000000000000000000000000000000000000000900460ff16156108f35760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016104bd565b6109036060820160408301611a57565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461097d5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c69642073656e64657200000000000000000000000000000000000060448201526064016104bd565b8060c001354211156109d15760405162461bcd60e51b815260206004820152601960248201527f457865637574696f6e2065786365656420646561646c696e650000000000000060448201526064016104bd565b60208082013560009081526006909152604090205460ff1615610a365760405162461bcd60e51b815260206004820152601660248201527f5061796d656e74496420616c726561647920757365640000000000000000000060448201526064016104bd565b610a4d610a4836839003830183611aed565b6111ee565b6020808201356000908152600690915260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610ae5907f00000000000000000000000071ab77b7dbb4fa7e017bc15090b216322142028290610ac29060608501908501611a57565b60035473ffffffffffffffffffffffffffffffffffffffff1660608501356113b9565b608081013515610c93577f00000000000000000000000000000000000000000000000000000000000000326004548260800135610b229190611b7f565b1115610b705760405162461bcd60e51b815260206004820152601660248201527f457863656564206d61782073656c6c20616d6f756e740000000000000000000060448201526064016104bd565b806080013560046000828254610b869190611b7f565b909155505073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004723c8fa1df38162e531c7677de636261aff09f41663731133e9610bd76060840160408501611a57565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff90911660048201527f000000000000000000000000000000000000000000000000000000000bebc2006024820152608080850135604483015260648201526000608482015260a401600060405180830381600087803b158015610c7a57600080fd5b505af1158015610c8e573d6000803e3d6000fd5b505050505b60a081013515610e42577f00000000000000000000000000000000000000000000000000000000000000326005548260a00135610cd09190611b7f565b1115610d1e5760405162461bcd60e51b815260206004820152601660248201527f457863656564206d61782073656c6c20616d6f756e740000000000000000000060448201526064016104bd565b8060a0013560056000828254610d349190611b7f565b909155505073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004723c8fa1df38162e531c7677de636261aff09f41663731133e9610d856060840160408501611a57565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff90911660048201527f000000000000000000000000000000000000000000000000000000000bebc201602482015260a08401356044820152608060648201526000608482015260a401600060405180830381600087803b158015610e2957600080fd5b505af1158015610e3d573d6000803e3d6000fd5b505050505b6020810135610e576060830160408401611a57565b73ffffffffffffffffffffffffffffffffffffffff167fc95feddc9a9ede7f518424eff659bee1b008d0c4873def7a09e721400504d62a83608001358460a001358560600135604051610ebd939291909283526020830191909152604082015260600190565b60405180910390a35060018055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bd565b73ffffffffffffffffffffffffffffffffffffffff8116610fbc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104bd565b610fc5816110a7565b50565b60005474010000000000000000000000000000000000000000900460ff166110325760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016104bd565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005474010000000000000000000000000000000000000000900460ff16156111875760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016104bd565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861107d3390565b8051469081146112405760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206e6574776f726b000000000000000000000000000000000060448201526064016104bd565b81516020808401516040808601516060870151608088015160a089015160c08a015194516000986112b6989097969101968752602087019590955273ffffffffffffffffffffffffffffffffffffffff9390931660408601526060850191909152608084015260a083015260c082015260e00190565b6040516020818303038152906040528051906020012090506000611327826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90506000611345828660e00151876101000151886101200151611454565b60025490915073ffffffffffffffffffffffffffffffffffffffff8083169116146113b25760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964207369676e657200000000000000000000000000000000000060448201526064016104bd565b5050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261144e90859061147c565b50505050565b600080600061146587878787611573565b915091506114728161168b565b5095945050505050565b60006114de826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166118779092919063ffffffff16565b80519091501561156e57808060200190518101906114fc9190611bbf565b61156e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104bd565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156115aa5750600090506003611682565b8460ff16601b141580156115c257508460ff16601c14155b156115d35750600090506004611682565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611627573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661167b57600060019250925050611682565b9150600090505b94509492505050565b600081600481111561169f5761169f611be1565b036116a75750565b60018160048111156116bb576116bb611be1565b036117085760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104bd565b600281600481111561171c5761171c611be1565b036117695760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104bd565b600381600481111561177d5761177d611be1565b036117f05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016104bd565b600481600481111561180457611804611be1565b03610fc55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016104bd565b60606118868484600085611890565b90505b9392505050565b6060824710156119085760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104bd565b843b6119565760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104bd565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161197f9190611c34565b60006040518083038185875af1925050503d80600081146119bc576040519150601f19603f3d011682016040523d82523d6000602084013e6119c1565b606091505b50915091506119d18282866119dc565b979650505050505050565b606083156119eb575081611889565b8251156119fb5782518084602001fd5b8160405162461bcd60e51b81526004016104bd9190611c50565b600060208284031215611a2757600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a5257600080fd5b919050565b600060208284031215611a6957600080fd5b61188982611a2e565b60006101408284031215611a8557600080fd5b50919050565b604051610140810167ffffffffffffffff81118282101715611ad6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405290565b803560ff81168114611a5257600080fd5b60006101408284031215611b0057600080fd5b611b08611a8b565b8235815260208301356020820152611b2260408401611a2e565b6040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c0820152611b5b60e08401611adc565b60e08201526101008381013590820152610120928301359281019290925250919050565b80820180821115611bb9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b600060208284031215611bd157600080fd5b8151801515811461188957600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60005b83811015611c2b578181015183820152602001611c13565b50506000910152565b60008251611c46818460208701611c10565b9190910192915050565b6020815260008251806020840152611c6f816040850160208701611c10565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122070eb4c2fb2a914723a376618963817798d390df08d7e56baa9291f94f2e5e9b864736f6c63430008110033

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

00000000000000000000000071ab77b7dbb4fa7e017bc15090b21632214202820000000000000000000000004723c8fa1df38162e531c7677de636261aff09f400000000000000000000000000000000000000000000000000000000000000320000000000000000000000002c1e316113f75d44d73f7e0fa16fe32407bdeede0000000000000000000000004990f605cfb996e86db69e994ec27ac81a3949fb000000000000000000000000000000000000000000000000000000000bebc200000000000000000000000000000000000000000000000000000000000bebc201

-----Decoded View---------------
Arg [0] : high_ (address): 0x71Ab77b7dbB4fa7e017BC15090b2163221420282
Arg [1] : brands_ (address): 0x4723C8Fa1dF38162e531C7677De636261afF09f4
Arg [2] : maxAmount_ (uint256): 50
Arg [3] : signer_ (address): 0x2C1E316113F75d44d73f7e0fA16FE32407BdEedE
Arg [4] : receiver_ (address): 0x4990f605CFB996E86DB69E994EC27ac81A3949fb
Arg [5] : hoodieTokenId_ (uint256[2]): 200000000,200000001

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000071ab77b7dbb4fa7e017bc15090b2163221420282
Arg [1] : 0000000000000000000000004723c8fa1df38162e531c7677de636261aff09f4
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [3] : 0000000000000000000000002c1e316113f75d44d73f7e0fa16fe32407bdeede
Arg [4] : 0000000000000000000000004990f605cfb996e86db69e994ec27ac81a3949fb
Arg [5] : 000000000000000000000000000000000000000000000000000000000bebc200
Arg [6] : 000000000000000000000000000000000000000000000000000000000bebc201


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  ]

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.