ETH Price: $3,355.91 (+0.94%)

Contract

0x7E761780B78717E297314AA0bEb83B5B53f4Ee89
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040145732422022-04-12 21:36:48955 days ago1649799408IN
 Create: Forwarder
0 ETH0.1807377769.32582789

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Forwarder

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : Forwarder.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.10;
import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol';
import './ERC20Interface.sol';
import './TransferHelper.sol';
import './IForwarder.sol';

/**
 * Contract that will forward any incoming Ether to the creator of the contract
 *
 */
contract Forwarder is IERC721Receiver, ERC1155Receiver, IForwarder {
  // Address to which any funds sent to this contract will be forwarded
  address public parentAddress;
  bool public autoFlush721 = true;
  bool public autoFlush1155 = true;

  event ForwarderDeposited(address from, uint256 value, bytes data);

  /**
   * Initialize the contract, and sets the destination address to that of the creator
   */
  function init(
    address _parentAddress,
    bool _autoFlush721,
    bool _autoFlush1155
  ) external onlyUninitialized {
    parentAddress = _parentAddress;
    uint256 value = address(this).balance;

    // set whether we want to automatically flush erc721/erc1155 tokens or not
    autoFlush721 = _autoFlush721;
    autoFlush1155 = _autoFlush1155;

    if (value == 0) {
      return;
    }

    (bool success, ) = parentAddress.call{ value: value }('');
    require(success, 'Flush failed');

    // NOTE: since we are forwarding on initialization,
    // we don't have the context of the original sender.
    // We still emit an event about the forwarding but set
    // the sender to the forwarder itself
    emit ForwarderDeposited(address(this), value, msg.data);
  }

  /**
   * Modifier that will execute internal code block only if the sender is the parent address
   */
  modifier onlyParent {
    require(msg.sender == parentAddress, 'Only Parent');
    _;
  }

  /**
   * Modifier that will execute internal code block only if the contract has not been initialized yet
   */
  modifier onlyUninitialized {
    require(parentAddress == address(0x0), 'Already initialized');
    _;
  }

  /**
   * Default function; Gets called when data is sent but does not match any other function
   */
  fallback() external payable {
    flush();
  }

  /**
   * Default function; Gets called when Ether is deposited with no data, and forwards it to the parent address
   */
  receive() external payable {
    flush();
  }

  /**
   * @inheritdoc IForwarder
   */
  function setAutoFlush721(bool autoFlush)
    external
    virtual
    override
    onlyParent
  {
    autoFlush721 = autoFlush;
  }

  /**
   * @inheritdoc IForwarder
   */
  function setAutoFlush1155(bool autoFlush)
    external
    virtual
    override
    onlyParent
  {
    autoFlush1155 = autoFlush;
  }

  /**
   * ERC721 standard callback function for when a ERC721 is transfered. The forwarder will send the nft
   * to the base wallet once the nft contract invokes this method after transfering the nft.
   *
   * @param _operator The address which called `safeTransferFrom` function
   * @param _from The address of the sender
   * @param _tokenId The token id of the nft
   * @param data Additional data with no specified format, sent in call to `_to`
   */
  function onERC721Received(
    address _operator,
    address _from,
    uint256 _tokenId,
    bytes memory data
  ) external virtual override returns (bytes4) {
    if (autoFlush721) {
      IERC721 instance = IERC721(msg.sender);
      require(
        instance.supportsInterface(type(IERC721).interfaceId),
        'The caller does not support the ERC721 interface'
      );
      // this won't work for ERC721 re-entrancy
      instance.safeTransferFrom(address(this), parentAddress, _tokenId, data);
    }

    return this.onERC721Received.selector;
  }

  function callFromParent(
    address target,
    uint256 value,
    bytes calldata data
  ) external onlyParent returns (bytes memory) {
    (bool success, bytes memory returnedData) = target.call{ value: value }(
      data
    );
    require(success, 'Parent call execution failed');

    return returnedData;
  }

  /**
   * @inheritdoc IERC1155Receiver
   */
  function onERC1155Received(
    address _operator,
    address _from,
    uint256 id,
    uint256 value,
    bytes calldata data
  ) external virtual override returns (bytes4) {
    IERC1155 instance = IERC1155(msg.sender);
    require(
      instance.supportsInterface(type(IERC1155).interfaceId),
      'The caller does not support the IERC1155 interface'
    );

    if (autoFlush1155) {
      instance.safeTransferFrom(address(this), parentAddress, id, value, data);
    }

    return this.onERC1155Received.selector;
  }

  /**
   * @inheritdoc IERC1155Receiver
   */
  function onERC1155BatchReceived(
    address _operator,
    address _from,
    uint256[] calldata ids,
    uint256[] calldata values,
    bytes calldata data
  ) external virtual override returns (bytes4) {
    IERC1155 instance = IERC1155(msg.sender);
    require(
      instance.supportsInterface(type(IERC1155).interfaceId),
      'The caller does not support the IERC1155 interface'
    );

    if (autoFlush1155) {
      instance.safeBatchTransferFrom(
        address(this),
        parentAddress,
        ids,
        values,
        data
      );
    }

    return this.onERC1155BatchReceived.selector;
  }

  /**
   * @inheritdoc IForwarder
   */
  function flushTokens(address tokenContractAddress)
    external
    virtual
    override
    onlyParent
  {
    ERC20Interface instance = ERC20Interface(tokenContractAddress);
    address forwarderAddress = address(this);
    uint256 forwarderBalance = instance.balanceOf(forwarderAddress);
    if (forwarderBalance == 0) {
      return;
    }

    TransferHelper.safeTransfer(
      tokenContractAddress,
      parentAddress,
      forwarderBalance
    );
  }

  /**
   * @inheritdoc IForwarder
   */
  function flushERC721Token(address tokenContractAddress, uint256 tokenId)
    external
    virtual
    override
    onlyParent
  {
    IERC721 instance = IERC721(tokenContractAddress);
    require(
      instance.supportsInterface(type(IERC721).interfaceId),
      'The tokenContractAddress does not support the ERC721 interface'
    );

    address ownerAddress = instance.ownerOf(tokenId);
    instance.transferFrom(ownerAddress, parentAddress, tokenId);
  }

  /**
   * @inheritdoc IForwarder
   */
  function flushERC1155Tokens(address tokenContractAddress, uint256 tokenId)
    external
    virtual
    override
    onlyParent
  {
    IERC1155 instance = IERC1155(tokenContractAddress);
    require(
      instance.supportsInterface(type(IERC1155).interfaceId),
      'The caller does not support the IERC1155 interface'
    );

    address forwarderAddress = address(this);
    uint256 forwarderBalance = instance.balanceOf(forwarderAddress, tokenId);

    instance.safeTransferFrom(
      forwarderAddress,
      parentAddress,
      tokenId,
      forwarderBalance,
      ''
    );
  }

  /**
   * @inheritdoc IForwarder
   */
  function batchFlushERC1155Tokens(
    address tokenContractAddress,
    uint256[] calldata tokenIds
  ) external virtual override onlyParent {
    IERC1155 instance = IERC1155(tokenContractAddress);
    require(
      instance.supportsInterface(type(IERC1155).interfaceId),
      'The caller does not support the IERC1155 interface'
    );

    address forwarderAddress = address(this);
    uint256[] memory amounts = new uint256[](tokenIds.length);
    for (uint256 i = 0; i < tokenIds.length; i++) {
      amounts[i] = instance.balanceOf(forwarderAddress, tokenIds[i]);
    }

    instance.safeBatchTransferFrom(
      forwarderAddress,
      parentAddress,
      tokenIds,
      amounts,
      ''
    );
  }

  /**
   * Flush the entire balance of the contract to the parent address.
   */
  function flush() public {
    uint256 value = address(this).balance;

    if (value == 0) {
      return;
    }

    (bool success, ) = parentAddress.call{ value: value }('');
    require(success, 'Flush failed');
    emit ForwarderDeposited(msg.sender, value, msg.data);
  }

  /**
   * @inheritdoc IERC165
   */
  function supportsInterface(bytes4 interfaceId)
    public
    virtual
    override(ERC1155Receiver, IERC165)
    view
    returns (bool)
  {
    return
      interfaceId == type(IForwarder).interfaceId ||
      super.supportsInterface(interfaceId);
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 3 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
    }
}

File 6 of 12 : ERC20Interface.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

/**
 * Contract that exposes the needed erc20 token functions
 */

abstract contract ERC20Interface {
  // Send _value amount of tokens to address _to
  function transfer(address _to, uint256 _value)
    public
    virtual
    returns (bool success);

  // Get the account balance of another account with address _owner
  function balanceOf(address _owner)
    public
    virtual
    view
    returns (uint256 balance);
}

File 7 of 12 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later
// source: https://github.com/Uniswap/solidity-lib/blob/master/contracts/libraries/TransferHelper.sol
pragma solidity 0.8.10;

import '@openzeppelin/contracts/utils/Address.sol';

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
  function safeTransfer(
    address token,
    address to,
    uint256 value
  ) internal {
    // bytes4(keccak256(bytes('transfer(address,uint256)')));
    (bool success, bytes memory data) = token.call(
      abi.encodeWithSelector(0xa9059cbb, to, value)
    );
    require(
      success && (data.length == 0 || abi.decode(data, (bool))),
      'TransferHelper::safeTransfer: transfer failed'
    );
  }

  function safeTransferFrom(
    address token,
    address from,
    address to,
    uint256 value
  ) internal {
    // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
    (bool success, bytes memory returndata) = token.call(
      abi.encodeWithSelector(0x23b872dd, from, to, value)
    );
    Address.verifyCallResult(
      success,
      returndata,
      'TransferHelper::transferFrom: transferFrom failed'
    );
  }
}

File 8 of 12 : IForwarder.sol
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/utils/introspection/IERC165.sol';

interface IForwarder is IERC165 {
  /**
   * Sets the autoflush721 parameter.
   *
   * @param autoFlush whether to autoflush erc721 tokens
   */
  function setAutoFlush721(bool autoFlush) external;

  /**
   * Sets the autoflush1155 parameter.
   *
   * @param autoFlush whether to autoflush erc1155 tokens
   */
  function setAutoFlush1155(bool autoFlush) external;

  /**
   * Execute a token transfer of the full balance from the forwarder token to the parent address
   *
   * @param tokenContractAddress the address of the erc20 token contract
   */
  function flushTokens(address tokenContractAddress) external;

  /**
   * Execute a nft transfer from the forwarder to the parent address
   *
   * @param tokenContractAddress the address of the ERC721 NFT contract
   * @param tokenId The token id of the nft
   */
  function flushERC721Token(address tokenContractAddress, uint256 tokenId)
    external;

  /**
   * Execute a nft transfer from the forwarder to the parent address.
   *
   * @param tokenContractAddress the address of the ERC1155 NFT contract
   * @param tokenId The token id of the nft
   */
  function flushERC1155Tokens(address tokenContractAddress, uint256 tokenId)
    external;

  /**
   * Execute a batch nft transfer from the forwarder to the parent address.
   *
   * @param tokenContractAddress the address of the ERC1155 NFT contract
   * @param tokenIds The token ids of the nfts
   */
  function batchFlushERC1155Tokens(
    address tokenContractAddress,
    uint256[] calldata tokenIds
  ) external;
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"ForwarderDeposited","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"autoFlush1155","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoFlush721","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContractAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchFlushERC1155Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"callFromParent","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flush","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"flushERC1155Tokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContractAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"flushERC721Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContractAddress","type":"address"}],"name":"flushTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_parentAddress","type":"address"},{"internalType":"bool","name":"_autoFlush721","type":"bool"},{"internalType":"bool","name":"_autoFlush1155","type":"bool"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"parentAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"autoFlush","type":"bool"}],"name":"setAutoFlush1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"autoFlush","type":"bool"}],"name":"setAutoFlush721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526001600060146101000a81548160ff0219169083151502179055506001600060156101000a81548160ff02191690831515021790555034801561004657600080fd5b50612e00806100566000396000f3fe6080604052600436106100f65760003560e01c80638acc01be1161008a578063c59f9f1911610059578063c59f9f191461033d578063c6a2dd2414610366578063f23a6e611461038f578063f684e1ed146103cc57610105565b80638acc01be14610283578063bad23ab9146102ac578063bc197c81146102d7578063bee3e6761461031457610105565b80633ef13367116100c65780633ef13367146101dd5780636b9f96ea1461020657806377e60b351461021d5780638972c17c1461025a57610105565b8062821de31461010f57806301ffc9a71461013a578063150b7a0214610177578063159e44d7146101b457610105565b36610105576101036103f7565b005b61010d6103f7565b005b34801561011b57600080fd5b5061012461051b565b6040516101319190611b77565b60405180910390f35b34801561014657600080fd5b50610161600480360381019061015c9190611bfe565b61053f565b60405161016e9190611c46565b60405180910390f35b34801561018357600080fd5b5061019e60048036038101906101999190611e09565b6105b9565b6040516101ab9190611e9b565b60405180910390f35b3480156101c057600080fd5b506101db60048036038101906101d69190611eb6565b610752565b005b3480156101e957600080fd5b5061020460048036038101906101ff9190611ef6565b6109d1565b005b34801561021257600080fd5b5061021b6103f7565b005b34801561022957600080fd5b50610244600480360381019061023f9190611f83565b610b2a565b604051610251919061207f565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c9190611eb6565b610c79565b005b34801561028f57600080fd5b506102aa60048036038101906102a591906120cd565b610f01565b005b3480156102b857600080fd5b506102c1610fac565b6040516102ce9190611c46565b60405180910390f35b3480156102e357600080fd5b506102fe60048036038101906102f99190612150565b610fbf565b60405161030b9190611e9b565b60405180910390f35b34801561032057600080fd5b5061033b6004803603810190610336919061222c565b611164565b005b34801561034957600080fd5b50610364600480360381019061035f91906120cd565b61138e565b005b34801561037257600080fd5b5061038d6004803603810190610388919061227f565b611439565b005b34801561039b57600080fd5b506103b660048036038101906103b191906122df565b61176a565b6040516103c39190611e9b565b60405180910390f35b3480156103d857600080fd5b506103e1611909565b6040516103ee9190611c46565b60405180910390f35b6000479050600081141561040b5750610519565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051610452906123aa565b60006040518083038185875af1925050503d806000811461048f576040519150601f19603f3d011682016040523d82523d6000602084013e610494565b606091505b50509050806104d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104cf9061241c565b60405180910390fd5b7f69b31548dea9b3b707b4dff357d326e3e9348b24e7a6080a218a6edeeec48f9b338360003660405161050e9493929190612478565b60405180910390a150505b565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f2becf54f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105b257506105b18261191c565b5b9050919050565b60008060149054906101000a900460ff16156107405760003390508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f80ac58cd000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040161062d9190611e9b565b602060405180830381865afa15801561064a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066e91906124cd565b6106ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a49061256c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687876040518563ffffffff1660e01b815260040161070c949392919061258c565b600060405180830381600087803b15801561072657600080fd5b505af115801561073a573d6000803e3d6000fd5b50505050505b63150b7a0260e01b9050949350505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d790612624565b60405180910390fd5b60008290508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f80ac58cd000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040161083e9190611e9b565b602060405180830381865afa15801561085b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087f91906124cd565b6108be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b5906126b6565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016108f991906126d6565b602060405180830381865afa158015610916573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093a9190612706565b90508173ffffffffffffffffffffffffffffffffffffffff166323b872dd8260008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518463ffffffff1660e01b815260040161099993929190612733565b600060405180830381600087803b1580156109b357600080fd5b505af11580156109c7573d6000803e3d6000fd5b5050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5690612624565b60405180910390fd5b6000819050600030905060008273ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610aa49190611b77565b602060405180830381865afa158015610ac1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae5919061277f565b90506000811415610af857505050610b27565b610b238460008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611996565b5050505b50565b606060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb190612624565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16868686604051610be59291906127d1565b60006040518083038185875af1925050503d8060008114610c22576040519150601f19603f3d011682016040523d82523d6000602084013e610c27565b606091505b509150915081610c6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6390612836565b60405180910390fd5b8092505050949350505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfe90612624565b60405180910390fd5b60008290508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77fd9b67a26000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610d659190611e9b565b602060405180830381865afa158015610d82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da691906124cd565b610de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddc906128c8565b60405180910390fd5b600030905060008273ffffffffffffffffffffffffffffffffffffffff1662fdd58e83866040518363ffffffff1660e01b8152600401610e269291906128e8565b602060405180830381865afa158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e67919061277f565b90508273ffffffffffffffffffffffffffffffffffffffff1663f242432a8360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687856040518563ffffffff1660e01b8152600401610ec89493929190612934565b600060405180830381600087803b158015610ee257600080fd5b505af1158015610ef6573d6000803e3d6000fd5b505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8690612624565b60405180910390fd5b80600060156101000a81548160ff02191690831515021790555050565b600060159054906101000a900460ff1681565b6000803390508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77fd9b67a26000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040161101e9190611e9b565b602060405180830381865afa15801561103b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105f91906124cd565b61109e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611095906128c8565b60405180910390fd5b600060159054906101000a900460ff161561114d578073ffffffffffffffffffffffffffffffffffffffff16632eb2c2d63060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff168b8b8b8b8b8b6040518963ffffffff1660e01b815260040161111a9897969594939291906129fe565b600060405180830381600087803b15801561113457600080fd5b505af1158015611148573d6000803e3d6000fd5b505050505b63bc197c8160e01b91505098975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ea90612ab8565b60405180910390fd5b826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600047905082600060146101000a81548160ff02191690831515021790555081600060156101000a81548160ff021916908315150217905550600081141561127b5750611389565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516112c2906123aa565b60006040518083038185875af1925050503d80600081146112ff576040519150601f19603f3d011682016040523d82523d6000602084013e611304565b606091505b5050905080611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f9061241c565b60405180910390fd5b7f69b31548dea9b3b707b4dff357d326e3e9348b24e7a6080a218a6edeeec48f9b308360003660405161137e9493929190612478565b60405180910390a150505b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461141c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141390612624565b60405180910390fd5b80600060146101000a81548160ff02191690831515021790555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114be90612624565b60405180910390fd5b60008390508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77fd9b67a26000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016115259190611e9b565b602060405180830381865afa158015611542573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156691906124cd565b6115a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159c906128c8565b60405180910390fd5b600030905060008484905067ffffffffffffffff8111156115c9576115c8611cde565b5b6040519080825280602002602001820160405280156115f75781602001602082028036833780820191505090505b50905060005b858590508110156116ce578373ffffffffffffffffffffffffffffffffffffffff1662fdd58e8488888581811061163757611636612ad8565b5b905060200201356040518363ffffffff1660e01b815260040161165b9291906128e8565b602060405180830381865afa158015611678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169c919061277f565b8282815181106116af576116ae612ad8565b5b60200260200101818152505080806116c690612b36565b9150506115fd565b508273ffffffffffffffffffffffffffffffffffffffff16632eb2c2d68360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff168888866040518663ffffffff1660e01b8152600401611730959493929190612c2c565b600060405180830381600087803b15801561174a57600080fd5b505af115801561175e573d6000803e3d6000fd5b50505050505050505050565b6000803390508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77fd9b67a26000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016117c99190611e9b565b602060405180830381865afa1580156117e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180a91906124cd565b611849576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611840906128c8565b60405180910390fd5b600060159054906101000a900460ff16156118f4578073ffffffffffffffffffffffffffffffffffffffff1663f242432a3060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16898989896040518763ffffffff1660e01b81526004016118c196959493929190612c94565b600060405180830381600087803b1580156118db57600080fd5b505af11580156118ef573d6000803e3d6000fd5b505050505b63f23a6e6160e01b9150509695505050505050565b600060149054906101000a900460ff1681565b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061198f575061198e82611acc565b5b9050919050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016119c89291906128e8565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611a169190612d21565b6000604051808303816000865af19150503d8060008114611a53576040519150601f19603f3d011682016040523d82523d6000602084013e611a58565b606091505b5091509150818015611a865750600081511480611a85575080806020019051810190611a8491906124cd565b5b5b611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc90612daa565b60405180910390fd5b5050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b6182611b36565b9050919050565b611b7181611b56565b82525050565b6000602082019050611b8c6000830184611b68565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611bdb81611ba6565b8114611be657600080fd5b50565b600081359050611bf881611bd2565b92915050565b600060208284031215611c1457611c13611b9c565b5b6000611c2284828501611be9565b91505092915050565b60008115159050919050565b611c4081611c2b565b82525050565b6000602082019050611c5b6000830184611c37565b92915050565b611c6a81611b56565b8114611c7557600080fd5b50565b600081359050611c8781611c61565b92915050565b6000819050919050565b611ca081611c8d565b8114611cab57600080fd5b50565b600081359050611cbd81611c97565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611d1682611ccd565b810181811067ffffffffffffffff82111715611d3557611d34611cde565b5b80604052505050565b6000611d48611b92565b9050611d548282611d0d565b919050565b600067ffffffffffffffff821115611d7457611d73611cde565b5b611d7d82611ccd565b9050602081019050919050565b82818337600083830152505050565b6000611dac611da784611d59565b611d3e565b905082815260208101848484011115611dc857611dc7611cc8565b5b611dd3848285611d8a565b509392505050565b600082601f830112611df057611def611cc3565b5b8135611e00848260208601611d99565b91505092915050565b60008060008060808587031215611e2357611e22611b9c565b5b6000611e3187828801611c78565b9450506020611e4287828801611c78565b9350506040611e5387828801611cae565b925050606085013567ffffffffffffffff811115611e7457611e73611ba1565b5b611e8087828801611ddb565b91505092959194509250565b611e9581611ba6565b82525050565b6000602082019050611eb06000830184611e8c565b92915050565b60008060408385031215611ecd57611ecc611b9c565b5b6000611edb85828601611c78565b9250506020611eec85828601611cae565b9150509250929050565b600060208284031215611f0c57611f0b611b9c565b5b6000611f1a84828501611c78565b91505092915050565b600080fd5b600080fd5b60008083601f840112611f4357611f42611cc3565b5b8235905067ffffffffffffffff811115611f6057611f5f611f23565b5b602083019150836001820283011115611f7c57611f7b611f28565b5b9250929050565b60008060008060608587031215611f9d57611f9c611b9c565b5b6000611fab87828801611c78565b9450506020611fbc87828801611cae565b935050604085013567ffffffffffffffff811115611fdd57611fdc611ba1565b5b611fe987828801611f2d565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b60005b83811015612031578082015181840152602081019050612016565b83811115612040576000848401525b50505050565b600061205182611ff7565b61205b8185612002565b935061206b818560208601612013565b61207481611ccd565b840191505092915050565b600060208201905081810360008301526120998184612046565b905092915050565b6120aa81611c2b565b81146120b557600080fd5b50565b6000813590506120c7816120a1565b92915050565b6000602082840312156120e3576120e2611b9c565b5b60006120f1848285016120b8565b91505092915050565b60008083601f8401126121105761210f611cc3565b5b8235905067ffffffffffffffff81111561212d5761212c611f23565b5b60208301915083602082028301111561214957612148611f28565b5b9250929050565b60008060008060008060008060a0898b0312156121705761216f611b9c565b5b600061217e8b828c01611c78565b985050602061218f8b828c01611c78565b975050604089013567ffffffffffffffff8111156121b0576121af611ba1565b5b6121bc8b828c016120fa565b9650965050606089013567ffffffffffffffff8111156121df576121de611ba1565b5b6121eb8b828c016120fa565b9450945050608089013567ffffffffffffffff81111561220e5761220d611ba1565b5b61221a8b828c01611f2d565b92509250509295985092959890939650565b60008060006060848603121561224557612244611b9c565b5b600061225386828701611c78565b9350506020612264868287016120b8565b9250506040612275868287016120b8565b9150509250925092565b60008060006040848603121561229857612297611b9c565b5b60006122a686828701611c78565b935050602084013567ffffffffffffffff8111156122c7576122c6611ba1565b5b6122d3868287016120fa565b92509250509250925092565b60008060008060008060a087890312156122fc576122fb611b9c565b5b600061230a89828a01611c78565b965050602061231b89828a01611c78565b955050604061232c89828a01611cae565b945050606061233d89828a01611cae565b935050608087013567ffffffffffffffff81111561235e5761235d611ba1565b5b61236a89828a01611f2d565b92509250509295509295509295565b600081905092915050565b50565b6000612394600083612379565b915061239f82612384565b600082019050919050565b60006123b582612387565b9150819050919050565b600082825260208201905092915050565b7f466c757368206661696c65640000000000000000000000000000000000000000600082015250565b6000612406600c836123bf565b9150612411826123d0565b602082019050919050565b60006020820190508181036000830152612435816123f9565b9050919050565b61244581611c8d565b82525050565b60006124578385612002565b9350612464838584611d8a565b61246d83611ccd565b840190509392505050565b600060608201905061248d6000830187611b68565b61249a602083018661243c565b81810360408301526124ad81848661244b565b905095945050505050565b6000815190506124c7816120a1565b92915050565b6000602082840312156124e3576124e2611b9c565b5b60006124f1848285016124b8565b91505092915050565b7f5468652063616c6c657220646f6573206e6f7420737570706f7274207468652060008201527f45524337323120696e7465726661636500000000000000000000000000000000602082015250565b60006125566030836123bf565b9150612561826124fa565b604082019050919050565b6000602082019050818103600083015261258581612549565b9050919050565b60006080820190506125a16000830187611b68565b6125ae6020830186611b68565b6125bb604083018561243c565b81810360608301526125cd8184612046565b905095945050505050565b7f4f6e6c7920506172656e74000000000000000000000000000000000000000000600082015250565b600061260e600b836123bf565b9150612619826125d8565b602082019050919050565b6000602082019050818103600083015261263d81612601565b9050919050565b7f54686520746f6b656e436f6e74726163744164647265737320646f6573206e6f60008201527f7420737570706f7274207468652045524337323120696e746572666163650000602082015250565b60006126a0603e836123bf565b91506126ab82612644565b604082019050919050565b600060208201905081810360008301526126cf81612693565b9050919050565b60006020820190506126eb600083018461243c565b92915050565b60008151905061270081611c61565b92915050565b60006020828403121561271c5761271b611b9c565b5b600061272a848285016126f1565b91505092915050565b60006060820190506127486000830186611b68565b6127556020830185611b68565b612762604083018461243c565b949350505050565b60008151905061277981611c97565b92915050565b60006020828403121561279557612794611b9c565b5b60006127a38482850161276a565b91505092915050565b60006127b88385612379565b93506127c5838584611d8a565b82840190509392505050565b60006127de8284866127ac565b91508190509392505050565b7f506172656e742063616c6c20657865637574696f6e206661696c656400000000600082015250565b6000612820601c836123bf565b915061282b826127ea565b602082019050919050565b6000602082019050818103600083015261284f81612813565b9050919050565b7f5468652063616c6c657220646f6573206e6f7420737570706f7274207468652060008201527f494552433131353520696e746572666163650000000000000000000000000000602082015250565b60006128b26032836123bf565b91506128bd82612856565b604082019050919050565b600060208201905081810360008301526128e1816128a5565b9050919050565b60006040820190506128fd6000830185611b68565b61290a602083018461243c565b9392505050565b600061291e600083612002565b915061292982612384565b600082019050919050565b600060a0820190506129496000830187611b68565b6129566020830186611b68565b612963604083018561243c565b612970606083018461243c565b818103608083015261298181612911565b905095945050505050565b600082825260208201905092915050565b600080fd5b60006129ae838561298c565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156129e1576129e061299d565b5b6020830292506129f2838584611d8a565b82840190509392505050565b600060a082019050612a13600083018b611b68565b612a20602083018a611b68565b8181036040830152612a3381888a6129a2565b90508181036060830152612a488186886129a2565b90508181036080830152612a5d81848661244b565b90509998505050505050505050565b7f416c726561647920696e697469616c697a656400000000000000000000000000600082015250565b6000612aa26013836123bf565b9150612aad82612a6c565b602082019050919050565b60006020820190508181036000830152612ad181612a95565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612b4182611c8d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612b7457612b73612b07565b5b600182019050919050565b600081519050919050565b6000819050602082019050919050565b612ba381611c8d565b82525050565b6000612bb58383612b9a565b60208301905092915050565b6000602082019050919050565b6000612bd982612b7f565b612be3818561298c565b9350612bee83612b8a565b8060005b83811015612c1f578151612c068882612ba9565b9750612c1183612bc1565b925050600181019050612bf2565b5085935050505092915050565b600060a082019050612c416000830188611b68565b612c4e6020830187611b68565b8181036040830152612c618185876129a2565b90508181036060830152612c758184612bce565b90508181036080830152612c8881612911565b90509695505050505050565b600060a082019050612ca96000830189611b68565b612cb66020830188611b68565b612cc3604083018761243c565b612cd0606083018661243c565b8181036080830152612ce381848661244b565b9050979650505050505050565b6000612cfb82611ff7565b612d058185612379565b9350612d15818560208601612013565b80840191505092915050565b6000612d2d8284612cf0565b915081905092915050565b7f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260008201527f616e73666572206661696c656400000000000000000000000000000000000000602082015250565b6000612d94602d836123bf565b9150612d9f82612d38565b604082019050919050565b60006020820190508181036000830152612dc381612d87565b905091905056fea2646970667358221220a8e36fc11dc3d713039f54e9b629d3b736e7a18862dd0f7b202d7b39f6247ab164736f6c634300080a0033

Deployed Bytecode

0x6080604052600436106100f65760003560e01c80638acc01be1161008a578063c59f9f1911610059578063c59f9f191461033d578063c6a2dd2414610366578063f23a6e611461038f578063f684e1ed146103cc57610105565b80638acc01be14610283578063bad23ab9146102ac578063bc197c81146102d7578063bee3e6761461031457610105565b80633ef13367116100c65780633ef13367146101dd5780636b9f96ea1461020657806377e60b351461021d5780638972c17c1461025a57610105565b8062821de31461010f57806301ffc9a71461013a578063150b7a0214610177578063159e44d7146101b457610105565b36610105576101036103f7565b005b61010d6103f7565b005b34801561011b57600080fd5b5061012461051b565b6040516101319190611b77565b60405180910390f35b34801561014657600080fd5b50610161600480360381019061015c9190611bfe565b61053f565b60405161016e9190611c46565b60405180910390f35b34801561018357600080fd5b5061019e60048036038101906101999190611e09565b6105b9565b6040516101ab9190611e9b565b60405180910390f35b3480156101c057600080fd5b506101db60048036038101906101d69190611eb6565b610752565b005b3480156101e957600080fd5b5061020460048036038101906101ff9190611ef6565b6109d1565b005b34801561021257600080fd5b5061021b6103f7565b005b34801561022957600080fd5b50610244600480360381019061023f9190611f83565b610b2a565b604051610251919061207f565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c9190611eb6565b610c79565b005b34801561028f57600080fd5b506102aa60048036038101906102a591906120cd565b610f01565b005b3480156102b857600080fd5b506102c1610fac565b6040516102ce9190611c46565b60405180910390f35b3480156102e357600080fd5b506102fe60048036038101906102f99190612150565b610fbf565b60405161030b9190611e9b565b60405180910390f35b34801561032057600080fd5b5061033b6004803603810190610336919061222c565b611164565b005b34801561034957600080fd5b50610364600480360381019061035f91906120cd565b61138e565b005b34801561037257600080fd5b5061038d6004803603810190610388919061227f565b611439565b005b34801561039b57600080fd5b506103b660048036038101906103b191906122df565b61176a565b6040516103c39190611e9b565b60405180910390f35b3480156103d857600080fd5b506103e1611909565b6040516103ee9190611c46565b60405180910390f35b6000479050600081141561040b5750610519565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051610452906123aa565b60006040518083038185875af1925050503d806000811461048f576040519150601f19603f3d011682016040523d82523d6000602084013e610494565b606091505b50509050806104d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104cf9061241c565b60405180910390fd5b7f69b31548dea9b3b707b4dff357d326e3e9348b24e7a6080a218a6edeeec48f9b338360003660405161050e9493929190612478565b60405180910390a150505b565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f2becf54f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105b257506105b18261191c565b5b9050919050565b60008060149054906101000a900460ff16156107405760003390508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f80ac58cd000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040161062d9190611e9b565b602060405180830381865afa15801561064a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066e91906124cd565b6106ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a49061256c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687876040518563ffffffff1660e01b815260040161070c949392919061258c565b600060405180830381600087803b15801561072657600080fd5b505af115801561073a573d6000803e3d6000fd5b50505050505b63150b7a0260e01b9050949350505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d790612624565b60405180910390fd5b60008290508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f80ac58cd000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040161083e9190611e9b565b602060405180830381865afa15801561085b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087f91906124cd565b6108be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b5906126b6565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016108f991906126d6565b602060405180830381865afa158015610916573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093a9190612706565b90508173ffffffffffffffffffffffffffffffffffffffff166323b872dd8260008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518463ffffffff1660e01b815260040161099993929190612733565b600060405180830381600087803b1580156109b357600080fd5b505af11580156109c7573d6000803e3d6000fd5b5050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5690612624565b60405180910390fd5b6000819050600030905060008273ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610aa49190611b77565b602060405180830381865afa158015610ac1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae5919061277f565b90506000811415610af857505050610b27565b610b238460008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611996565b5050505b50565b606060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb190612624565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16868686604051610be59291906127d1565b60006040518083038185875af1925050503d8060008114610c22576040519150601f19603f3d011682016040523d82523d6000602084013e610c27565b606091505b509150915081610c6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6390612836565b60405180910390fd5b8092505050949350505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfe90612624565b60405180910390fd5b60008290508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77fd9b67a26000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610d659190611e9b565b602060405180830381865afa158015610d82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da691906124cd565b610de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddc906128c8565b60405180910390fd5b600030905060008273ffffffffffffffffffffffffffffffffffffffff1662fdd58e83866040518363ffffffff1660e01b8152600401610e269291906128e8565b602060405180830381865afa158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e67919061277f565b90508273ffffffffffffffffffffffffffffffffffffffff1663f242432a8360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687856040518563ffffffff1660e01b8152600401610ec89493929190612934565b600060405180830381600087803b158015610ee257600080fd5b505af1158015610ef6573d6000803e3d6000fd5b505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8690612624565b60405180910390fd5b80600060156101000a81548160ff02191690831515021790555050565b600060159054906101000a900460ff1681565b6000803390508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77fd9b67a26000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040161101e9190611e9b565b602060405180830381865afa15801561103b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105f91906124cd565b61109e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611095906128c8565b60405180910390fd5b600060159054906101000a900460ff161561114d578073ffffffffffffffffffffffffffffffffffffffff16632eb2c2d63060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff168b8b8b8b8b8b6040518963ffffffff1660e01b815260040161111a9897969594939291906129fe565b600060405180830381600087803b15801561113457600080fd5b505af1158015611148573d6000803e3d6000fd5b505050505b63bc197c8160e01b91505098975050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ea90612ab8565b60405180910390fd5b826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600047905082600060146101000a81548160ff02191690831515021790555081600060156101000a81548160ff021916908315150217905550600081141561127b5750611389565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516112c2906123aa565b60006040518083038185875af1925050503d80600081146112ff576040519150601f19603f3d011682016040523d82523d6000602084013e611304565b606091505b5050905080611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f9061241c565b60405180910390fd5b7f69b31548dea9b3b707b4dff357d326e3e9348b24e7a6080a218a6edeeec48f9b308360003660405161137e9493929190612478565b60405180910390a150505b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461141c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141390612624565b60405180910390fd5b80600060146101000a81548160ff02191690831515021790555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114be90612624565b60405180910390fd5b60008390508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77fd9b67a26000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016115259190611e9b565b602060405180830381865afa158015611542573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156691906124cd565b6115a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159c906128c8565b60405180910390fd5b600030905060008484905067ffffffffffffffff8111156115c9576115c8611cde565b5b6040519080825280602002602001820160405280156115f75781602001602082028036833780820191505090505b50905060005b858590508110156116ce578373ffffffffffffffffffffffffffffffffffffffff1662fdd58e8488888581811061163757611636612ad8565b5b905060200201356040518363ffffffff1660e01b815260040161165b9291906128e8565b602060405180830381865afa158015611678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169c919061277f565b8282815181106116af576116ae612ad8565b5b60200260200101818152505080806116c690612b36565b9150506115fd565b508273ffffffffffffffffffffffffffffffffffffffff16632eb2c2d68360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff168888866040518663ffffffff1660e01b8152600401611730959493929190612c2c565b600060405180830381600087803b15801561174a57600080fd5b505af115801561175e573d6000803e3d6000fd5b50505050505050505050565b6000803390508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77fd9b67a26000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016117c99190611e9b565b602060405180830381865afa1580156117e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180a91906124cd565b611849576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611840906128c8565b60405180910390fd5b600060159054906101000a900460ff16156118f4578073ffffffffffffffffffffffffffffffffffffffff1663f242432a3060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16898989896040518763ffffffff1660e01b81526004016118c196959493929190612c94565b600060405180830381600087803b1580156118db57600080fd5b505af11580156118ef573d6000803e3d6000fd5b505050505b63f23a6e6160e01b9150509695505050505050565b600060149054906101000a900460ff1681565b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061198f575061198e82611acc565b5b9050919050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016119c89291906128e8565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611a169190612d21565b6000604051808303816000865af19150503d8060008114611a53576040519150601f19603f3d011682016040523d82523d6000602084013e611a58565b606091505b5091509150818015611a865750600081511480611a85575080806020019051810190611a8491906124cd565b5b5b611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc90612daa565b60405180910390fd5b5050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b6182611b36565b9050919050565b611b7181611b56565b82525050565b6000602082019050611b8c6000830184611b68565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611bdb81611ba6565b8114611be657600080fd5b50565b600081359050611bf881611bd2565b92915050565b600060208284031215611c1457611c13611b9c565b5b6000611c2284828501611be9565b91505092915050565b60008115159050919050565b611c4081611c2b565b82525050565b6000602082019050611c5b6000830184611c37565b92915050565b611c6a81611b56565b8114611c7557600080fd5b50565b600081359050611c8781611c61565b92915050565b6000819050919050565b611ca081611c8d565b8114611cab57600080fd5b50565b600081359050611cbd81611c97565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611d1682611ccd565b810181811067ffffffffffffffff82111715611d3557611d34611cde565b5b80604052505050565b6000611d48611b92565b9050611d548282611d0d565b919050565b600067ffffffffffffffff821115611d7457611d73611cde565b5b611d7d82611ccd565b9050602081019050919050565b82818337600083830152505050565b6000611dac611da784611d59565b611d3e565b905082815260208101848484011115611dc857611dc7611cc8565b5b611dd3848285611d8a565b509392505050565b600082601f830112611df057611def611cc3565b5b8135611e00848260208601611d99565b91505092915050565b60008060008060808587031215611e2357611e22611b9c565b5b6000611e3187828801611c78565b9450506020611e4287828801611c78565b9350506040611e5387828801611cae565b925050606085013567ffffffffffffffff811115611e7457611e73611ba1565b5b611e8087828801611ddb565b91505092959194509250565b611e9581611ba6565b82525050565b6000602082019050611eb06000830184611e8c565b92915050565b60008060408385031215611ecd57611ecc611b9c565b5b6000611edb85828601611c78565b9250506020611eec85828601611cae565b9150509250929050565b600060208284031215611f0c57611f0b611b9c565b5b6000611f1a84828501611c78565b91505092915050565b600080fd5b600080fd5b60008083601f840112611f4357611f42611cc3565b5b8235905067ffffffffffffffff811115611f6057611f5f611f23565b5b602083019150836001820283011115611f7c57611f7b611f28565b5b9250929050565b60008060008060608587031215611f9d57611f9c611b9c565b5b6000611fab87828801611c78565b9450506020611fbc87828801611cae565b935050604085013567ffffffffffffffff811115611fdd57611fdc611ba1565b5b611fe987828801611f2d565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b60005b83811015612031578082015181840152602081019050612016565b83811115612040576000848401525b50505050565b600061205182611ff7565b61205b8185612002565b935061206b818560208601612013565b61207481611ccd565b840191505092915050565b600060208201905081810360008301526120998184612046565b905092915050565b6120aa81611c2b565b81146120b557600080fd5b50565b6000813590506120c7816120a1565b92915050565b6000602082840312156120e3576120e2611b9c565b5b60006120f1848285016120b8565b91505092915050565b60008083601f8401126121105761210f611cc3565b5b8235905067ffffffffffffffff81111561212d5761212c611f23565b5b60208301915083602082028301111561214957612148611f28565b5b9250929050565b60008060008060008060008060a0898b0312156121705761216f611b9c565b5b600061217e8b828c01611c78565b985050602061218f8b828c01611c78565b975050604089013567ffffffffffffffff8111156121b0576121af611ba1565b5b6121bc8b828c016120fa565b9650965050606089013567ffffffffffffffff8111156121df576121de611ba1565b5b6121eb8b828c016120fa565b9450945050608089013567ffffffffffffffff81111561220e5761220d611ba1565b5b61221a8b828c01611f2d565b92509250509295985092959890939650565b60008060006060848603121561224557612244611b9c565b5b600061225386828701611c78565b9350506020612264868287016120b8565b9250506040612275868287016120b8565b9150509250925092565b60008060006040848603121561229857612297611b9c565b5b60006122a686828701611c78565b935050602084013567ffffffffffffffff8111156122c7576122c6611ba1565b5b6122d3868287016120fa565b92509250509250925092565b60008060008060008060a087890312156122fc576122fb611b9c565b5b600061230a89828a01611c78565b965050602061231b89828a01611c78565b955050604061232c89828a01611cae565b945050606061233d89828a01611cae565b935050608087013567ffffffffffffffff81111561235e5761235d611ba1565b5b61236a89828a01611f2d565b92509250509295509295509295565b600081905092915050565b50565b6000612394600083612379565b915061239f82612384565b600082019050919050565b60006123b582612387565b9150819050919050565b600082825260208201905092915050565b7f466c757368206661696c65640000000000000000000000000000000000000000600082015250565b6000612406600c836123bf565b9150612411826123d0565b602082019050919050565b60006020820190508181036000830152612435816123f9565b9050919050565b61244581611c8d565b82525050565b60006124578385612002565b9350612464838584611d8a565b61246d83611ccd565b840190509392505050565b600060608201905061248d6000830187611b68565b61249a602083018661243c565b81810360408301526124ad81848661244b565b905095945050505050565b6000815190506124c7816120a1565b92915050565b6000602082840312156124e3576124e2611b9c565b5b60006124f1848285016124b8565b91505092915050565b7f5468652063616c6c657220646f6573206e6f7420737570706f7274207468652060008201527f45524337323120696e7465726661636500000000000000000000000000000000602082015250565b60006125566030836123bf565b9150612561826124fa565b604082019050919050565b6000602082019050818103600083015261258581612549565b9050919050565b60006080820190506125a16000830187611b68565b6125ae6020830186611b68565b6125bb604083018561243c565b81810360608301526125cd8184612046565b905095945050505050565b7f4f6e6c7920506172656e74000000000000000000000000000000000000000000600082015250565b600061260e600b836123bf565b9150612619826125d8565b602082019050919050565b6000602082019050818103600083015261263d81612601565b9050919050565b7f54686520746f6b656e436f6e74726163744164647265737320646f6573206e6f60008201527f7420737570706f7274207468652045524337323120696e746572666163650000602082015250565b60006126a0603e836123bf565b91506126ab82612644565b604082019050919050565b600060208201905081810360008301526126cf81612693565b9050919050565b60006020820190506126eb600083018461243c565b92915050565b60008151905061270081611c61565b92915050565b60006020828403121561271c5761271b611b9c565b5b600061272a848285016126f1565b91505092915050565b60006060820190506127486000830186611b68565b6127556020830185611b68565b612762604083018461243c565b949350505050565b60008151905061277981611c97565b92915050565b60006020828403121561279557612794611b9c565b5b60006127a38482850161276a565b91505092915050565b60006127b88385612379565b93506127c5838584611d8a565b82840190509392505050565b60006127de8284866127ac565b91508190509392505050565b7f506172656e742063616c6c20657865637574696f6e206661696c656400000000600082015250565b6000612820601c836123bf565b915061282b826127ea565b602082019050919050565b6000602082019050818103600083015261284f81612813565b9050919050565b7f5468652063616c6c657220646f6573206e6f7420737570706f7274207468652060008201527f494552433131353520696e746572666163650000000000000000000000000000602082015250565b60006128b26032836123bf565b91506128bd82612856565b604082019050919050565b600060208201905081810360008301526128e1816128a5565b9050919050565b60006040820190506128fd6000830185611b68565b61290a602083018461243c565b9392505050565b600061291e600083612002565b915061292982612384565b600082019050919050565b600060a0820190506129496000830187611b68565b6129566020830186611b68565b612963604083018561243c565b612970606083018461243c565b818103608083015261298181612911565b905095945050505050565b600082825260208201905092915050565b600080fd5b60006129ae838561298c565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156129e1576129e061299d565b5b6020830292506129f2838584611d8a565b82840190509392505050565b600060a082019050612a13600083018b611b68565b612a20602083018a611b68565b8181036040830152612a3381888a6129a2565b90508181036060830152612a488186886129a2565b90508181036080830152612a5d81848661244b565b90509998505050505050505050565b7f416c726561647920696e697469616c697a656400000000000000000000000000600082015250565b6000612aa26013836123bf565b9150612aad82612a6c565b602082019050919050565b60006020820190508181036000830152612ad181612a95565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612b4182611c8d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612b7457612b73612b07565b5b600182019050919050565b600081519050919050565b6000819050602082019050919050565b612ba381611c8d565b82525050565b6000612bb58383612b9a565b60208301905092915050565b6000602082019050919050565b6000612bd982612b7f565b612be3818561298c565b9350612bee83612b8a565b8060005b83811015612c1f578151612c068882612ba9565b9750612c1183612bc1565b925050600181019050612bf2565b5085935050505092915050565b600060a082019050612c416000830188611b68565b612c4e6020830187611b68565b8181036040830152612c618185876129a2565b90508181036060830152612c758184612bce565b90508181036080830152612c8881612911565b90509695505050505050565b600060a082019050612ca96000830189611b68565b612cb66020830188611b68565b612cc3604083018761243c565b612cd0606083018661243c565b8181036080830152612ce381848661244b565b9050979650505050505050565b6000612cfb82611ff7565b612d058185612379565b9350612d15818560208601612013565b80840191505092915050565b6000612d2d8284612cf0565b915081905092915050565b7f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260008201527f616e73666572206661696c656400000000000000000000000000000000000000602082015250565b6000612d94602d836123bf565b9150612d9f82612d38565b604082019050919050565b60006020820190508181036000830152612dc381612d87565b905091905056fea2646970667358221220a8e36fc11dc3d713039f54e9b629d3b736e7a18862dd0f7b202d7b39f6247ab164736f6c634300080a0033

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.