Contract 0x3cbc0b5AF6A1F9B197bbC7F33B982b740e58065f

 
 
Txn Hash
Method
Block
From
To
Value
0x2f1bb82092354e5998a01ec138f3ddd05b451f8c1998335dc786a3eface01120Purchase For126288762021-06-13 22:40:50534 days 9 hrs ago0xfac7b0e807d6d57f360f814d721a6f4baa89b4ce IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0002726810
0x1e8bb27f8579aaca7784844528e25a70a8ab972ae500010e6f530e2607a37e31Purchase For125361532021-05-30 14:02:44548 days 17 hrs ago0xae4435bea89c7fa8e75c2db2f5b07607d6d5bdce IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0009271134
0x7a4ad9a2011fab2a39fa38f2160c4da31891ecd50a3799030763600317dc2b7cPurchase For125128452021-05-26 23:20:57552 days 8 hrs ago0xfac7b0e807d6d57f360f814d721a6f4baa89b4ce IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0022905184
0x44f206e0d8b6663566fe93a41fb4a0a9595961c126a3e34dc3ccd9d2ebc03b1cPause124969162021-05-24 12:10:18554 days 19 hrs agoTower: Deployer IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0041676385
0x859d769c193acddaf40bd68e6c9a80d4fef7ee0dfffd9c155c91cc5292f5b74ePurchase For124967342021-05-24 11:28:59554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0029408632
0xc7d5b0e7568d0a43f03e4e3f8d1613e70d484fc6bfcf9a4638ec581e88dd8e79Purchase For124967282021-05-24 11:28:08554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0029456332
0x2a92d2df5473bab0f80f9d3f676ed40881f69d55d88642a8aaca5723e80be49bPurchase For124967262021-05-24 11:28:01554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0035277633
0x7252b39948146d8d9a7b3943a271c865a755b0b33e3c13a55742232762e0343bPurchase For124967242021-05-24 11:27:23554 days 20 hrs ago0x0a8b69f86ecc0fdd978f70cbcd6f7be4f78a22c6 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0048360739
0xbc6b2a55fc055eb53ca7a171bae5bd36328dbe9b5a952917e80d3051d5781714Purchase For124967162021-05-24 11:25:56554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0042760840
0x76a3626635a977a0e6443bdbf49ad12879cca1c42dac075e573722a1eaf2e88aPurchase For124967142021-05-24 11:25:26554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0042760840
0x4ce3318efa71129ff9899dce260b592ae70cd0467a0ef73b2655473af285c64aPurchase For124967092021-05-24 11:24:47554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0042760840
0xfe034cf85f535064bf2980160793aea62a9b505f496875e079c963a37e042183Purchase For124967082021-05-24 11:24:39554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0042760840
0x4abf28ca7fef6667f226f7ee4a6de0b9a9474f4af722de07bc3a766f5f9a590ePurchase For124967062021-05-24 11:24:28554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0042760840
0x58428001eb7fd7aafb1afeccf36256f82dadaebadd087f64c21e12d1514c8da9Purchase For124967062021-05-24 11:24:28554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0042760840
0x4ee893ab7d45d39c551103568a398911193e400cdb3d9c547ca2d1ed6b1246fcPurchase For124966872021-05-24 11:20:44554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0036346634
0xd09c7e2ac4cd58b96404130c10f3e6c09f605e35fd6be6d521d15d341c77995aPurchase For124966872021-05-24 11:20:44554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0036346634
0xf3f90b98d35cfd053a0b215b2f504aeaacc3c2bf750b12faea36a9e14e4a1cdaPurchase For124966712021-05-24 11:17:22554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0042760840
0x8d40bfed679d3b60403eff6c84c69a113a362173e99b4c9a90a755c814561b00Purchase For124966682021-05-24 11:16:31554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0042760840
0xac1f13a463202d2d7a91b56d5d0a35b40a9ec50b5f125bfc39c9c323fa75eb6dPurchase For124966682021-05-24 11:16:31554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0042760840
0x58afe460ddf7d07e071bee80e589f5d88326f543c98c1db05db6809630e8cc46Purchase For124966672021-05-24 11:16:26554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0043829841
0xe5f5f8ea706bff6b6e1baee7e883ff8f9bc0de0b2f67cc13b005b8be68fb9e88Purchase For124966632021-05-24 11:15:14554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0043829841
0x1a5e1d9144bf336abe88451059647ef81cc85a6845865869d1fe83597e3b90a9Purchase For124966632021-05-24 11:15:14554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0043829841
0x8249dbc13d83c3970b4e47966397f1a9736c91355192333ac76cc2a887664238Purchase For124966632021-05-24 11:15:14554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0043829841
0xb2d6a134391f68d20b02040474b840f48c7a2d5fb869b8c53290716cf372de1bPurchase For124966632021-05-24 11:15:14554 days 20 hrs ago0x69650957e76131e1b58bc2cc109d523a5a529553 IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0043829841
0xcead7f004c02a200b71a3d1751b1c11a80be51c1926dcc275885cad8b725c30dPurchase For124966222021-05-24 11:05:13554 days 20 hrs ago0x02e1c53a7f309dabe7b6978cbfed5b30788b72dd IN  0x3cbc0b5af6a1f9b197bbc7f33b982b740e58065f0 Ether0.0043829841
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TOWERChestSale

Compiler Version
v0.6.8+commit.0bbfe453

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-05-07
*/

// Sources flattened with hardhat v2.2.1 https://hardhat.org

// File @animoca/ethereum-contracts-erc20_base-4.0.0/contracts/token/ERC20/[email protected]

/*
https://github.com/OpenZeppelin/openzeppelin-contracts

The MIT License (MIT)

Copyright (c) 2016-2019 zOS Global Limited

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.8;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

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


// File @animoca/ethereum-contracts-core_library-5.0.0/contracts/algo/[email protected]

/*
https://github.com/OpenZeppelin/openzeppelin-contracts

The MIT License (MIT)

Copyright (c) 2016-2019 zOS Global Limited

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

pragma solidity 0.6.8;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumMap for EnumMap.Map;
 *
 *     // Declare a set state variable
 *     EnumMap.Map private myMap;
 * }
 * ```
 */
library EnumMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // This means that we can only create new EnumMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 key;
        bytes32 value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] entries;
        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping(bytes32 => uint256) indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        Map storage map,
        bytes32 key,
        bytes32 value
    ) internal returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map.indexes[key];

        if (keyIndex == 0) {
            // Equivalent to !contains(map, key)
            map.entries.push(MapEntry({key: key, value: value}));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map.indexes[key] = map.entries.length;
            return true;
        } else {
            map.entries[keyIndex - 1].value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(Map storage map, bytes32 key) internal returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map.indexes[key];

        if (keyIndex != 0) {
            // Equivalent to contains(map, key)
            // To delete a key-value pair from the entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map.entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map.entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map.entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map.indexes[lastEntry.key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map.entries.pop();

            // Delete the index for the deleted slot
            delete map.indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(Map storage map, bytes32 key) internal view returns (bool) {
        return map.indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function length(Map storage map) internal view returns (uint256) {
        return map.entries.length;
    }

    /**
     * @dev Returns the key-value pair stored at position `index` in the map. O(1).
     *
     * Note that there are no guarantees on the ordering of entries inside the
     * array, and it may change when more entries are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Map storage map, uint256 index) internal view returns (bytes32, bytes32) {
        require(map.entries.length > index, "EnumMap: index out of bounds");

        MapEntry storage entry = map.entries[index];
        return (entry.key, entry.value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(Map storage map, bytes32 key) internal view returns (bytes32) {
        uint256 keyIndex = map.indexes[key];
        require(keyIndex != 0, "EnumMap: nonexistent key"); // Equivalent to contains(map, key)
        return map.entries[keyIndex - 1].value; // All indexes are 1-based
    }
}


// File @animoca/ethereum-contracts-core_library-5.0.0/contracts/algo/[email protected]

/*
https://github.com/OpenZeppelin/openzeppelin-contracts

The MIT License (MIT)

Copyright (c) 2016-2019 zOS Global Limited

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

pragma solidity 0.6.8;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumSet for EnumSet.Set;
 *
 *     // Declare a set state variable
 *     EnumSet.Set private mySet;
 * }
 * ```
 */
library EnumSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Set storage set, bytes32 value) internal returns (bool) {
        if (!contains(set, value)) {
            set.values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set.indexes[value] = set.values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Set storage set, bytes32 value) internal returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set.indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set.values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set.values[lastIndex];

            // Move the last value to the index where the value to delete is
            set.values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set.indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set.values.pop();

            // Delete the index for the deleted slot
            delete set.indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Set storage set, bytes32 value) internal view returns (bool) {
        return set.indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(Set storage set) internal view returns (uint256) {
        return set.values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Set storage set, uint256 index) internal view returns (bytes32) {
        require(set.values.length > index, "EnumSet: index out of bounds");
        return set.values[index];
    }
}


// File @openzeppelin/contracts/utils/[email protected]

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File @openzeppelin/contracts/access/[email protected]

pragma solidity >=0.6.0 <0.8.0;

/**
 * @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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File @animoca/ethereum-contracts-core_library-5.0.0/contracts/payment/[email protected]

pragma solidity 0.6.8;

/**
    @title PayoutWallet
    @dev adds support for a payout wallet
    Note: .
 */
contract PayoutWallet is Ownable {
    event PayoutWalletSet(address payoutWallet_);

    address payable public payoutWallet;

    constructor(address payoutWallet_) internal {
        setPayoutWallet(payoutWallet_);
    }

    function setPayoutWallet(address payoutWallet_) public onlyOwner {
        require(payoutWallet_ != address(0), "Payout: zero address");
        require(payoutWallet_ != address(this), "Payout: this contract as payout");
        require(payoutWallet_ != payoutWallet, "Payout: same payout wallet");
        payoutWallet = payable(payoutWallet_);
        emit PayoutWalletSet(payoutWallet);
    }
}


// File @openzeppelin/contracts/GSN/[email protected]

pragma solidity >=0.6.0 <0.8.0;


// File @animoca/ethereum-contracts-core_library-5.0.0/contracts/utils/[email protected]

pragma solidity 0.6.8;

/**
 * Contract module which allows derived contracts to implement a mechanism for
 * activating, or 'starting', a contract.
 *
 * This module is used through inheritance. It will make available the modifiers
 * `whenNotStarted` and `whenStarted`, which can be applied to the functions of
 * your contract. Those functions will only be 'startable' once the modifiers
 * are put in place.
 */
contract Startable is Context {
    event Started(address account);

    uint256 private _startedAt;

    /**
     * Modifier to make a function callable only when the contract has not started.
     */
    modifier whenNotStarted() {
        require(_startedAt == 0, "Startable: started");
        _;
    }

    /**
     * Modifier to make a function callable only when the contract has started.
     */
    modifier whenStarted() {
        require(_startedAt != 0, "Startable: not started");
        _;
    }

    /**
     * Constructor.
     */
    constructor() internal {}

    /**
     * Returns the timestamp when the contract entered the started state.
     * @return The timestamp when the contract entered the started state.
     */
    function startedAt() public view returns (uint256) {
        return _startedAt;
    }

    /**
     * Triggers the started state.
     * @dev Emits the Started event when the function is successfully called.
     */
    function _start() internal virtual whenNotStarted {
        _startedAt = now;
        emit Started(_msgSender());
    }
}


// File @openzeppelin/contracts/utils/[email protected]

pragma solidity >=0.6.0 <0.8.0;

/**
 * @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 () internal {
        _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 @openzeppelin/contracts/utils/[email protected]

pragma solidity >=0.6.2 <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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/math/[email protected]

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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


// File @animoca/ethereum-contracts-sale_base-8.0.0/contracts/sale/interfaces/[email protected]

pragma solidity 0.6.8;

/**
 * @title ISale
 *
 * An interface for a contract which allows merchants to display products and customers to purchase them.
 *
 *  Products, designated as SKUs, are represented by bytes32 identifiers so that an identifier can carry an
 *  explicit name under the form of a fixed-length string. Each SKU can be priced via up to several payment
 *  tokens which can be ETH and/or ERC20(s). ETH token is represented by the magic value TOKEN_ETH, which means
 *  this value can be used as the 'token' argument of the purchase-related functions to indicate ETH payment.
 *
 *  The total available supply for a SKU is fixed at its creation. The magic value SUPPLY_UNLIMITED is used
 *  to represent a SKU with an infinite, never-decreasing supply. An optional purchase notifications receiver
 *  contract address can be set for a SKU at its creation: if the value is different from the zero address,
 *  the function `onPurchaseNotificationReceived` will be called on this address upon every purchase of the SKU.
 *
 *  This interface is designed to be consistent while managing a variety of implementation scenarios. It is
 *  also intended to be developer-friendly: all vital information is consistently deductible from the events
 *  (backend-oriented), as well as retrievable through calls to public functions (frontend-oriented).
 */
interface ISale {
    /**
     * Event emitted to notify about the magic values necessary for interfacing with this contract.
     * @param names An array of names for the magic values used by the contract.
     * @param values An array of values for the magic values used by the contract.
     */
    event MagicValues(bytes32[] names, bytes32[] values);

    /**
     * Event emitted to notify about the creation of a SKU.
     * @param sku The identifier of the created SKU.
     * @param totalSupply The initial total supply for sale.
     * @param maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @param notificationsReceiver If not the zero address, the address of a contract on which `onPurchaseNotificationReceived` will be called after
     *  each purchase. If this is the zero address, the call is not enabled.
     */
    event SkuCreation(bytes32 sku, uint256 totalSupply, uint256 maxQuantityPerPurchase, address notificationsReceiver);

    /**
     * Event emitted to notify about a change in the pricing of a SKU.
     * @dev `tokens` and `prices` arrays MUST have the same length.
     * @param sku The identifier of the updated SKU.
     * @param tokens An array of updated payment tokens. If empty, interpret as all payment tokens being disabled.
     * @param prices An array of updated prices for each of the payment tokens.
     *  Zero price values are used for payment tokens being disabled.
     */
    event SkuPricingUpdate(bytes32 indexed sku, address[] tokens, uint256[] prices);

    /**
     * Event emitted to notify about a purchase.
     * @param purchaser The initiater and buyer of the purchase.
     * @param recipient The recipient of the purchase.
     * @param token The token used as the currency for the payment.
     * @param sku The identifier of the purchased SKU.
     * @param quantity The purchased quantity.
     * @param userData Optional extra user input data.
     * @param totalPrice The amount of `token` paid.
     * @param extData Implementation-specific extra purchase data, such as
     *  details about discounts applied, conversion rates, purchase receipts, etc.
     */
    event Purchase(
        address indexed purchaser,
        address recipient,
        address indexed token,
        bytes32 indexed sku,
        uint256 quantity,
        bytes userData,
        uint256 totalPrice,
        bytes extData
    );

    /**
     * Returns the magic value used to represent the ETH payment token.
     * @dev MUST NOT be the zero address.
     * @return the magic value used to represent the ETH payment token.
     */
    // solhint-disable-next-line func-name-mixedcase
    function TOKEN_ETH() external pure returns (address);

    /**
     * Returns the magic value used to represent an infinite, never-decreasing SKU's supply.
     * @dev MUST NOT be zero.
     * @return the magic value used to represent an infinite, never-decreasing SKU's supply.
     */
    // solhint-disable-next-line func-name-mixedcase
    function SUPPLY_UNLIMITED() external pure returns (uint256);

    /**
     * Performs a purchase.
     * @dev Reverts if `recipient` is the zero address.
     * @dev Reverts if `token` is the address zero.
     * @dev Reverts if `quantity` is zero.
     * @dev Reverts if `quantity` is greater than the maximum purchase quantity.
     * @dev Reverts if `quantity` is greater than the remaining supply.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if `sku` exists but does not have a price set for `token`.
     * @dev Emits the Purchase event.
     * @param recipient The recipient of the purchase.
     * @param token The token to use as the payment currency.
     * @param sku The identifier of the SKU to purchase.
     * @param quantity The quantity to purchase.
     * @param userData Optional extra user input data.
     */
    function purchaseFor(
        address payable recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData
    ) external payable;

    /**
     * Estimates the computed final total amount to pay for a purchase, including any potential discount.
     * @dev This function MUST compute the same price as `purchaseFor` would in identical conditions (same arguments, same point in time).
     * @dev If an implementer contract uses the `pricingData` field, it SHOULD document how to interpret the values.
     * @dev Reverts if `recipient` is the zero address.
     * @dev Reverts if `token` is the zero address.
     * @dev Reverts if `quantity` is zero.
     * @dev Reverts if `quantity` is greater than the maximum purchase quantity.
     * @dev Reverts if `quantity` is greater than the remaining supply.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if `sku` exists but does not have a price set for `token`.
     * @param recipient The recipient of the purchase used to calculate the total price amount.
     * @param token The payment token used to calculate the total price amount.
     * @param sku The identifier of the SKU used to calculate the total price amount.
     * @param quantity The quantity used to calculate the total price amount.
     * @param userData Optional extra user input data.
     * @return totalPrice The computed total price to pay.
     * @return pricingData Implementation-specific extra pricing data, such as details about discounts applied.
     *  If not empty, the implementer MUST document how to interepret the values.
     */
    function estimatePurchase(
        address payable recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData
    ) external view returns (uint256 totalPrice, bytes32[] memory pricingData);

    /**
     * Returns the information relative to a SKU.
     * @dev WARNING: it is the responsibility of the implementer to ensure that the
     *  number of payment tokens is bounded, so that this function does not run out of gas.
     * @dev Reverts if `sku` does not exist.
     * @param sku The SKU identifier.
     * @return totalSupply The initial total supply for sale.
     * @return remainingSupply The remaining supply for sale.
     * @return maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @return notificationsReceiver The address of a contract on which to call the `onPurchaseNotificationReceived` function.
     * @return tokens The list of supported payment tokens.
     * @return prices The list of associated prices for each of the `tokens`.
     */
    function getSkuInfo(bytes32 sku)
        external
        view
        returns (
            uint256 totalSupply,
            uint256 remainingSupply,
            uint256 maxQuantityPerPurchase,
            address notificationsReceiver,
            address[] memory tokens,
            uint256[] memory prices
        );

    /**
     * Returns the list of created SKU identifiers.
     * @dev WARNING: it is the responsibility of the implementer to ensure that the
     *  number of SKUs is bounded, so that this function does not run out of gas.
     * @return skus the list of created SKU identifiers.
     */
    function getSkus() external view returns (bytes32[] memory skus);
}


// File @animoca/ethereum-contracts-sale_base-8.0.0/contracts/sale/interfaces/[email protected]

pragma solidity 0.6.8;

/**
 * @title IPurchaseNotificationsReceiver
 * Interface for any contract that wants to support purchase notifications from a Sale contract.
 */
interface IPurchaseNotificationsReceiver {
    /**
     * Handles the receipt of a purchase notification.
     * @dev This function MUST return the function selector, otherwise the caller will revert the transaction.
     *  The selector to be returned can be obtained as `this.onPurchaseNotificationReceived.selector`
     * @dev This function MAY throw.
     * @param purchaser The purchaser of the purchase.
     * @param recipient The recipient of the purchase.
     * @param token The token to use as the payment currency.
     * @param sku The identifier of the SKU to purchase.
     * @param quantity The quantity to purchase.
     * @param userData Optional extra user input data.
     * @param totalPrice The total price paid.
     * @param pricingData Implementation-specific extra pricing data, such as details about discounts applied.
     * @param paymentData Implementation-specific extra payment data, such as conversion rates.
     * @param deliveryData Implementation-specific extra delivery data, such as purchase receipts.
     * @return `bytes4(keccak256(
     *  "onPurchaseNotificationReceived(address,address,address,bytes32,uint256,bytes,uint256,bytes32[],bytes32[],bytes32[])"))`
     */
    function onPurchaseNotificationReceived(
        address purchaser,
        address recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData,
        uint256 totalPrice,
        bytes32[] calldata pricingData,
        bytes32[] calldata paymentData,
        bytes32[] calldata deliveryData
    ) external returns (bytes4);
}


// File @animoca/ethereum-contracts-sale_base-8.0.0/contracts/sale/abstract/[email protected]

pragma solidity 0.6.8;

/**
 * @title PurchaseLifeCycles
 * An abstract contract which define the life cycles for a purchase implementer.
 */
abstract contract PurchaseLifeCycles {
    /**
     * Wrapper for the purchase data passed as argument to the life cycle functions and down to their step functions.
     */
    struct PurchaseData {
        address payable purchaser;
        address payable recipient;
        address token;
        bytes32 sku;
        uint256 quantity;
        bytes userData;
        uint256 totalPrice;
        bytes32[] pricingData;
        bytes32[] paymentData;
        bytes32[] deliveryData;
    }

    /*                               Internal Life Cycle Functions                               */

    /**
     * `estimatePurchase` lifecycle.
     * @param purchase The purchase conditions.
     */
    function _estimatePurchase(PurchaseData memory purchase) internal view virtual returns (uint256 totalPrice, bytes32[] memory pricingData) {
        _validation(purchase);
        _pricing(purchase);

        totalPrice = purchase.totalPrice;
        pricingData = purchase.pricingData;
    }

    /**
     * `purchaseFor` lifecycle.
     * @param purchase The purchase conditions.
     */
    function _purchaseFor(PurchaseData memory purchase) internal virtual {
        _validation(purchase);
        _pricing(purchase);
        _payment(purchase);
        _delivery(purchase);
        _notification(purchase);
    }

    /*                            Internal Life Cycle Step Functions                             */

    /**
     * Lifecycle step which validates the purchase pre-conditions.
     * @dev Responsibilities:
     *  - Ensure that the purchase pre-conditions are met and revert if not.
     * @param purchase The purchase conditions.
     */
    function _validation(PurchaseData memory purchase) internal view virtual;

    /**
     * Lifecycle step which computes the purchase price.
     * @dev Responsibilities:
     *  - Computes the pricing formula, including any discount logic and price conversion;
     *  - Set the value of `purchase.totalPrice`;
     *  - Add any relevant extra data related to pricing in `purchase.pricingData` and document how to interpret it.
     * @param purchase The purchase conditions.
     */
    function _pricing(PurchaseData memory purchase) internal view virtual;

    /**
     * Lifecycle step which manages the transfer of funds from the purchaser.
     * @dev Responsibilities:
     *  - Ensure the payment reaches destination in the expected output token;
     *  - Handle any token swap logic;
     *  - Add any relevant extra data related to payment in `purchase.paymentData` and document how to interpret it.
     * @param purchase The purchase conditions.
     */
    function _payment(PurchaseData memory purchase) internal virtual;

    /**
     * Lifecycle step which delivers the purchased SKUs to the recipient.
     * @dev Responsibilities:
     *  - Ensure the product is delivered to the recipient, if that is the contract's responsibility.
     *  - Handle any internal logic related to the delivery, including the remaining supply update;
     *  - Add any relevant extra data related to delivery in `purchase.deliveryData` and document how to interpret it.
     * @param purchase The purchase conditions.
     */
    function _delivery(PurchaseData memory purchase) internal virtual;

    /**
     * Lifecycle step which notifies of the purchase.
     * @dev Responsibilities:
     *  - Manage after-purchase event(s) emission.
     *  - Handle calls to the notifications receiver contract's `onPurchaseNotificationReceived` function, if applicable.
     * @param purchase The purchase conditions.
     */
    function _notification(PurchaseData memory purchase) internal virtual;
}


// File @animoca/ethereum-contracts-sale_base-8.0.0/contracts/sale/abstract/[email protected]

pragma solidity 0.6.8;










/**
 * @title Sale
 * An abstract base sale contract with a minimal implementation of ISale and administration functions.
 *  A minimal implementation of the `_validation`, `_delivery` and `notification` life cycle step functions
 *  are provided, but the inheriting contract must implement `_pricing` and `_payment`.
 */
abstract contract Sale is PurchaseLifeCycles, ISale, PayoutWallet, Startable, Pausable {
    using Address for address;
    using SafeMath for uint256;
    using EnumSet for EnumSet.Set;
    using EnumMap for EnumMap.Map;

    struct SkuInfo {
        uint256 totalSupply;
        uint256 remainingSupply;
        uint256 maxQuantityPerPurchase;
        address notificationsReceiver;
        EnumMap.Map prices;
    }

    address public constant override TOKEN_ETH = address(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
    uint256 public constant override SUPPLY_UNLIMITED = type(uint256).max;

    EnumSet.Set internal _skus;
    mapping(bytes32 => SkuInfo) internal _skuInfos;

    uint256 internal immutable _skusCapacity;
    uint256 internal immutable _tokensPerSkuCapacity;

    /**
     * Constructor.
     * @dev Emits the `MagicValues` event.
     * @dev Emits the `Paused` event.
     * @param payoutWallet_ the payout wallet.
     * @param skusCapacity the cap for the number of managed SKUs.
     * @param tokensPerSkuCapacity the cap for the number of tokens managed per SKU.
     */
    constructor(
        address payoutWallet_,
        uint256 skusCapacity,
        uint256 tokensPerSkuCapacity
    ) internal PayoutWallet(payoutWallet_) {
        _skusCapacity = skusCapacity;
        _tokensPerSkuCapacity = tokensPerSkuCapacity;
        bytes32[] memory names = new bytes32[](2);
        bytes32[] memory values = new bytes32[](2);
        (names[0], values[0]) = ("TOKEN_ETH", bytes32(uint256(TOKEN_ETH)));
        (names[1], values[1]) = ("SUPPLY_UNLIMITED", bytes32(uint256(SUPPLY_UNLIMITED)));
        emit MagicValues(names, values);
        _pause();
    }

    /*                                   Public Admin Functions                                  */

    /**
     * Actvates, or 'starts', the contract.
     * @dev Emits the `Started` event.
     * @dev Emits the `Unpaused` event.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if the contract has already been started.
     * @dev Reverts if the contract is not paused.
     */
    function start() public virtual onlyOwner {
        _start();
        _unpause();
    }

    /**
     * Pauses the contract.
     * @dev Emits the `Paused` event.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if the contract has not been started yet.
     * @dev Reverts if the contract is already paused.
     */
    function pause() public virtual onlyOwner whenStarted {
        _pause();
    }

    /**
     * Resumes the contract.
     * @dev Emits the `Unpaused` event.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if the contract has not been started yet.
     * @dev Reverts if the contract is not paused.
     */
    function unpause() public virtual onlyOwner whenStarted {
        _unpause();
    }

    /**
     * Sets the token prices for the specified product SKU.
     * @dev Reverts if called by any other than the contract owner.
     * @dev Reverts if `tokens` and `prices` have different lengths.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if one of the `tokens` is the zero address.
     * @dev Reverts if the update results in too many tokens for the SKU.
     * @dev Emits the `SkuPricingUpdate` event.
     * @param sku The identifier of the SKU.
     * @param tokens The list of payment tokens to update.
     *  If empty, disable all the existing payment tokens.
     * @param prices The list of prices to apply for each payment token.
     *  Zero price values are used to disable a payment token.
     */
    function updateSkuPricing(
        bytes32 sku,
        address[] memory tokens,
        uint256[] memory prices
    ) public virtual onlyOwner {
        uint256 length = tokens.length;
        // solhint-disable-next-line reason-string
        require(length == prices.length, "Sale: tokens/prices lengths mismatch");
        SkuInfo storage skuInfo = _skuInfos[sku];
        require(skuInfo.totalSupply != 0, "Sale: non-existent sku");

        EnumMap.Map storage tokenPrices = skuInfo.prices;
        if (length == 0) {
            uint256 currentLength = tokenPrices.length();
            for (uint256 i = 0; i < currentLength; ++i) {
                // TODO add a clear function in EnumMap and EnumSet and use it
                (bytes32 token, ) = tokenPrices.at(0);
                tokenPrices.remove(token);
            }
        } else {
            _setTokenPrices(tokenPrices, tokens, prices);
        }

        emit SkuPricingUpdate(sku, tokens, prices);
    }

    /*                                   ISale Public Functions                                  */

    /**
     * Performs a purchase.
     * @dev Reverts if the sale has not started.
     * @dev Reverts if the sale is paused.
     * @dev Reverts if `recipient` is the zero address.
     * @dev Reverts if `token` is the zero address.
     * @dev Reverts if `quantity` is zero.
     * @dev Reverts if `quantity` is greater than the maximum purchase quantity.
     * @dev Reverts if `quantity` is greater than the remaining supply.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if `sku` exists but does not have a price set for `token`.
     * @dev Emits the Purchase event.
     * @param recipient The recipient of the purchase.
     * @param token The token to use as the payment currency.
     * @param sku The identifier of the SKU to purchase.
     * @param quantity The quantity to purchase.
     * @param userData Optional extra user input data.
     */
    function purchaseFor(
        address payable recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData
    ) external payable virtual override whenStarted whenNotPaused {
        PurchaseData memory purchase;
        purchase.purchaser = _msgSender();
        purchase.recipient = recipient;
        purchase.token = token;
        purchase.sku = sku;
        purchase.quantity = quantity;
        purchase.userData = userData;

        _purchaseFor(purchase);
    }

    /**
     * Estimates the computed final total amount to pay for a purchase, including any potential discount.
     * @dev This function MUST compute the same price as `purchaseFor` would in identical conditions (same arguments, same point in time).
     * @dev If an implementer contract uses the `pricingData` field, it SHOULD document how to interpret the values.
     * @dev Reverts if the sale has not started.
     * @dev Reverts if the sale is paused.
     * @dev Reverts if `recipient` is the zero address.
     * @dev Reverts if `token` is the zero address.
     * @dev Reverts if `quantity` is zero.
     * @dev Reverts if `quantity` is greater than the maximum purchase quantity.
     * @dev Reverts if `quantity` is greater than the remaining supply.
     * @dev Reverts if `sku` does not exist.
     * @dev Reverts if `sku` exists but does not have a price set for `token`.
     * @param recipient The recipient of the purchase used to calculate the total price amount.
     * @param token The payment token used to calculate the total price amount.
     * @param sku The identifier of the SKU used to calculate the total price amount.
     * @param quantity The quantity used to calculate the total price amount.
     * @param userData Optional extra user input data.
     * @return totalPrice The computed total price.
     * @return pricingData Implementation-specific extra pricing data, such as details about discounts applied.
     *  If not empty, the implementer MUST document how to interepret the values.
     */
    function estimatePurchase(
        address payable recipient,
        address token,
        bytes32 sku,
        uint256 quantity,
        bytes calldata userData
    ) external view virtual override whenStarted whenNotPaused returns (uint256 totalPrice, bytes32[] memory pricingData) {
        PurchaseData memory purchase;
        purchase.purchaser = _msgSender();
        purchase.recipient = recipient;
        purchase.token = token;
        purchase.sku = sku;
        purchase.quantity = quantity;
        purchase.userData = userData;

        return _estimatePurchase(purchase);
    }

    /**
     * Returns the information relative to a SKU.
     * @dev WARNING: it is the responsibility of the implementer to ensure that the
     * number of payment tokens is bounded, so that this function does not run out of gas.
     * @dev Reverts if `sku` does not exist.
     * @param sku The SKU identifier.
     * @return totalSupply The initial total supply for sale.
     * @return remainingSupply The remaining supply for sale.
     * @return maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @return notificationsReceiver The address of a contract on which to call the `onPurchaseNotificationReceived` function.
     * @return tokens The list of supported payment tokens.
     * @return prices The list of associated prices for each of the `tokens`.
     */
    function getSkuInfo(bytes32 sku)
        external
        view
        override
        returns (
            uint256 totalSupply,
            uint256 remainingSupply,
            uint256 maxQuantityPerPurchase,
            address notificationsReceiver,
            address[] memory tokens,
            uint256[] memory prices
        )
    {
        SkuInfo storage skuInfo = _skuInfos[sku];
        uint256 length = skuInfo.prices.length();

        totalSupply = skuInfo.totalSupply;
        require(totalSupply != 0, "Sale: non-existent sku");
        remainingSupply = skuInfo.remainingSupply;
        maxQuantityPerPurchase = skuInfo.maxQuantityPerPurchase;
        notificationsReceiver = skuInfo.notificationsReceiver;

        tokens = new address[](length);
        prices = new uint256[](length);
        for (uint256 i = 0; i < length; ++i) {
            (bytes32 token, bytes32 price) = skuInfo.prices.at(i);
            tokens[i] = address(uint256(token));
            prices[i] = uint256(price);
        }
    }

    /**
     * Returns the list of created SKU identifiers.
     * @return skus the list of created SKU identifiers.
     */
    function getSkus() external view override returns (bytes32[] memory skus) {
        skus = _skus.values;
    }

    /*                               Internal Utility Functions                                  */

    /**
     * Creates an SKU.
     * @dev Reverts if `totalSupply` is zero.
     * @dev Reverts if `sku` already exists.
     * @dev Reverts if `notificationsReceiver` is not the zero address and is not a contract address.
     * @dev Reverts if the update results in too many SKUs.
     * @dev Emits the `SkuCreation` event.
     * @param sku the SKU identifier.
     * @param totalSupply the initial total supply.
     * @param maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @param notificationsReceiver The purchase notifications receiver contract address.
     *  If set to the zero address, the notification is not enabled.
     */
    function _createSku(
        bytes32 sku,
        uint256 totalSupply,
        uint256 maxQuantityPerPurchase,
        address notificationsReceiver
    ) internal virtual {
        require(totalSupply != 0, "Sale: zero supply");
        require(_skus.length() < _skusCapacity, "Sale: too many skus");
        require(_skus.add(sku), "Sale: sku already created");
        if (notificationsReceiver != address(0)) {
            // solhint-disable-next-line reason-string
            require(notificationsReceiver.isContract(), "Sale: receiver is not a contract");
        }
        SkuInfo storage skuInfo = _skuInfos[sku];
        skuInfo.totalSupply = totalSupply;
        skuInfo.remainingSupply = totalSupply;
        skuInfo.maxQuantityPerPurchase = maxQuantityPerPurchase;
        skuInfo.notificationsReceiver = notificationsReceiver;
        emit SkuCreation(sku, totalSupply, maxQuantityPerPurchase, notificationsReceiver);
    }

    /**
     * Updates SKU token prices.
     * @dev Reverts if one of the `tokens` is the zero address.
     * @dev Reverts if the update results in too many tokens for the SKU.
     * @param tokenPrices Storage pointer to a mapping of SKU token prices to update.
     * @param tokens The list of payment tokens to update.
     * @param prices The list of prices to apply for each payment token.
     *  Zero price values are used to disable a payment token.
     */
    function _setTokenPrices(
        EnumMap.Map storage tokenPrices,
        address[] memory tokens,
        uint256[] memory prices
    ) internal virtual {
        for (uint256 i = 0; i < tokens.length; ++i) {
            address token = tokens[i];
            require(token != address(0), "Sale: zero address token");
            uint256 price = prices[i];
            if (price == 0) {
                tokenPrices.remove(bytes32(uint256(token)));
            } else {
                tokenPrices.set(bytes32(uint256(token)), bytes32(price));
            }
        }
        require(tokenPrices.length() <= _tokensPerSkuCapacity, "Sale: too many tokens");
    }

    /*                            Internal Life Cycle Step Functions                             */

    /**
     * Lifecycle step which validates the purchase pre-conditions.
     * @dev Responsibilities:
     *  - Ensure that the purchase pre-conditions are met and revert if not.
     * @dev Reverts if `purchase.recipient` is the zero address.
     * @dev Reverts if `purchase.token` is the zero address.
     * @dev Reverts if `purchase.quantity` is zero.
     * @dev Reverts if `purchase.quantity` is greater than the SKU's `maxQuantityPerPurchase`.
     * @dev Reverts if `purchase.quantity` is greater than the available supply.
     * @dev Reverts if `purchase.sku` does not exist.
     * @dev Reverts if `purchase.sku` exists but does not have a price set for `purchase.token`.
     * @dev If this function is overriden, the implementer SHOULD super call this before.
     * @param purchase The purchase conditions.
     */
    function _validation(PurchaseData memory purchase) internal view virtual override {
        require(purchase.recipient != address(0), "Sale: zero address recipient");
        require(purchase.token != address(0), "Sale: zero address token");
        require(purchase.quantity != 0, "Sale: zero quantity purchase");
        SkuInfo storage skuInfo = _skuInfos[purchase.sku];
        require(skuInfo.totalSupply != 0, "Sale: non-existent sku");
        require(skuInfo.maxQuantityPerPurchase >= purchase.quantity, "Sale: above max quantity");
        if (skuInfo.totalSupply != SUPPLY_UNLIMITED) {
            require(skuInfo.remainingSupply >= purchase.quantity, "Sale: insufficient supply");
        }
        bytes32 priceKey = bytes32(uint256(purchase.token));
        require(skuInfo.prices.contains(priceKey), "Sale: non-existent sku token");
    }

    /**
     * Lifecycle step which delivers the purchased SKUs to the recipient.
     * @dev Responsibilities:
     *  - Ensure the product is delivered to the recipient, if that is the contract's responsibility.
     *  - Handle any internal logic related to the delivery, including the remaining supply update;
     *  - Add any relevant extra data related to delivery in `purchase.deliveryData` and document how to interpret it.
     * @dev Reverts if there is not enough available supply.
     * @dev If this function is overriden, the implementer SHOULD super call it.
     * @param purchase The purchase conditions.
     */
    function _delivery(PurchaseData memory purchase) internal virtual override {
        SkuInfo memory skuInfo = _skuInfos[purchase.sku];
        if (skuInfo.totalSupply != SUPPLY_UNLIMITED) {
            _skuInfos[purchase.sku].remainingSupply = skuInfo.remainingSupply.sub(purchase.quantity);
        }
    }

    /**
     * Lifecycle step which notifies of the purchase.
     * @dev Responsibilities:
     *  - Manage after-purchase event(s) emission.
     *  - Handle calls to the notifications receiver contract's `onPurchaseNotificationReceived` function, if applicable.
     * @dev Reverts if `onPurchaseNotificationReceived` throws or returns an incorrect value.
     * @dev Emits the `Purchase` event. The values of `purchaseData` are the concatenated values of `priceData`, `paymentData`
     * and `deliveryData`. If not empty, the implementer MUST document how to interpret these values.
     * @dev If this function is overriden, the implementer SHOULD super call it.
     * @param purchase The purchase conditions.
     */
    function _notification(PurchaseData memory purchase) internal virtual override {
        emit Purchase(
            purchase.purchaser,
            purchase.recipient,
            purchase.token,
            purchase.sku,
            purchase.quantity,
            purchase.userData,
            purchase.totalPrice,
            abi.encodePacked(purchase.pricingData, purchase.paymentData, purchase.deliveryData)
        );

        address notificationsReceiver = _skuInfos[purchase.sku].notificationsReceiver;
        if (notificationsReceiver != address(0)) {
            // solhint-disable-next-line reason-string
            require(
                IPurchaseNotificationsReceiver(notificationsReceiver).onPurchaseNotificationReceived(
                    purchase.purchaser,
                    purchase.recipient,
                    purchase.token,
                    purchase.sku,
                    purchase.quantity,
                    purchase.userData,
                    purchase.totalPrice,
                    purchase.pricingData,
                    purchase.paymentData,
                    purchase.deliveryData
                ) == IPurchaseNotificationsReceiver(address(0)).onPurchaseNotificationReceived.selector, // TODO precompute return value
                "Sale: wrong receiver return value"
            );
        }
    }
}


// File @animoca/ethereum-contracts-sale_base-8.0.0/contracts/sale/[email protected]

pragma solidity 0.6.8;


/**
 * @title FixedPricesSale
 * An Sale which implements a fixed prices strategy.
 *  The final implementer is responsible for implementing any additional pricing and/or delivery logic.
 */
contract FixedPricesSale is Sale {
    /**
     * Constructor.
     * @dev Emits the `MagicValues` event.
     * @dev Emits the `Paused` event.
     * @param payoutWallet_ the payout wallet.
     * @param skusCapacity the cap for the number of managed SKUs.
     * @param tokensPerSkuCapacity the cap for the number of tokens managed per SKU.
     */
    constructor(
        address payoutWallet_,
        uint256 skusCapacity,
        uint256 tokensPerSkuCapacity
    ) internal Sale(payoutWallet_, skusCapacity, tokensPerSkuCapacity) {}

    /*                               Internal Life Cycle Functions                               */

    /**
     * Lifecycle step which computes the purchase price.
     * @dev Responsibilities:
     *  - Computes the pricing formula, including any discount logic and price conversion;
     *  - Set the value of `purchase.totalPrice`;
     *  - Add any relevant extra data related to pricing in `purchase.pricingData` and document how to interpret it.
     * @dev Reverts if `purchase.sku` does not exist.
     * @dev Reverts if `purchase.token` is not supported by the SKU.
     * @dev Reverts in case of price overflow.
     * @param purchase The purchase conditions.
     */
    function _pricing(PurchaseData memory purchase) internal view virtual override {
        SkuInfo storage skuInfo = _skuInfos[purchase.sku];
        require(skuInfo.totalSupply != 0, "Sale: unsupported SKU");
        EnumMap.Map storage prices = skuInfo.prices;
        uint256 unitPrice = _unitPrice(purchase, prices);
        purchase.totalPrice = unitPrice.mul(purchase.quantity);
    }

    /**
     * Lifecycle step which manages the transfer of funds from the purchaser.
     * @dev Responsibilities:
     *  - Ensure the payment reaches destination in the expected output token;
     *  - Handle any token swap logic;
     *  - Add any relevant extra data related to payment in `purchase.paymentData` and document how to interpret it.
     * @dev Reverts in case of payment failure.
     * @param purchase The purchase conditions.
     */
    function _payment(PurchaseData memory purchase) internal virtual override {
        if (purchase.token == TOKEN_ETH) {
            require(msg.value >= purchase.totalPrice, "Sale: insufficient ETH provided");

            payoutWallet.transfer(purchase.totalPrice);

            uint256 change = msg.value.sub(purchase.totalPrice);

            if (change != 0) {
                purchase.purchaser.transfer(change);
            }
        } else {
            require(IERC20(purchase.token).transferFrom(_msgSender(), payoutWallet, purchase.totalPrice), "Sale: ERC20 payment failed");
        }
    }

    /*                               Internal Utility Functions                                  */

    /**
     * Retrieves the unit price of a SKU for the specified payment token.
     * @dev Reverts if the specified payment token is unsupported.
     * @param purchase The purchase conditions specifying the payment token with which the unit price will be retrieved.
     * @param prices Storage pointer to a mapping of SKU token prices to retrieve the unit price from.
     * @return unitPrice The unit price of a SKU for the specified payment token.
     */
    function _unitPrice(PurchaseData memory purchase, EnumMap.Map storage prices) internal view virtual returns (uint256 unitPrice) {
        unitPrice = uint256(prices.get(bytes32(uint256(purchase.token))));
        require(unitPrice != 0, "Sale: unsupported payment token");
    }
}


// File contracts/solc-0.6/sale/TOWERChestSale.sol

pragma solidity 0.6.8;

/**
 * @title TOWERChestSale
 * A FixedPricesSale contract implementation that handles the purchase of pre-minted ERC-20 TOWER
 * Chest tokens.
 */
contract TOWERChestSale is FixedPricesSale {
    address public immutable tokenHolder;

    mapping(bytes32 => address) public skuTokens;

    /**
     * Constructor.
     * @dev Reverts if `tokenHolder_` is the zero address.
     * @dev Emits the `MagicValues` event.
     * @dev Emits the `Paused` event.
     * @param tokenHolder_ The account holding the pool of sale supply tokens.
     * @param payoutWallet the payout wallet.
     * @param skusCapacity the cap for the number of managed SKUs.
     * @param tokensPerSkuCapacity the cap for the number of tokens managed per SKU.
     */
    constructor(
        address tokenHolder_,
        address payoutWallet,
        uint256 skusCapacity,
        uint256 tokensPerSkuCapacity
    ) public FixedPricesSale(payoutWallet, skusCapacity, tokensPerSkuCapacity) {
        require(tokenHolder_ != address(0), "TOWERChestSale: zero holder");
        tokenHolder = tokenHolder_;
    }

    /**
     * Creates an SKU.
     * @dev Reverts if `totalSupply` is zero.
     * @dev Reverts if `sku` already exists.
     * @dev Reverts if `notificationsReceiver` is not the zero address and is not a contract address.
     * @dev Reverts if the update results in too many SKUs.
     * @dev Reverts if `skuToken` is the zero address.
     * @dev Emits the `SkuCreation` event.
     * @param sku The SKU identifier.
     * @param totalSupply The initial total supply.
     * @param maxQuantityPerPurchase The maximum allowed quantity for a single purchase.
     * @param notificationsReceiver The purchase notifications receiver contract address.
     *  If set to the zero address, the notification is not enabled.
     * @param token The contract address of the ERC-20 TOWER Chest token associated with the
     *  created SKU.
     */
    function createSku(
        bytes32 sku,
        uint256 totalSupply,
        uint256 maxQuantityPerPurchase,
        address notificationsReceiver,
        address token
    ) external onlyOwner whenPaused {
        require(token != address(0), "TOWERChestSale: zero token");
        _createSku(sku, totalSupply, maxQuantityPerPurchase, notificationsReceiver);
        skuTokens[sku] = token;
    }

    /**
     * Lifecycle step which delivers the purchased SKUs to the recipient.
     * @dev Responsibilities:
     *  - Ensure the product is delivered to the recipient, if that is the contract's responsibility.
     *  - Handle any internal logic related to the delivery, including the remaining supply update;
     *  - Add any relevant extra data related to delivery in `purchase.deliveryData` and document how to interpret it.
     * @dev Reverts if there is not enough available supply.
     * @dev If this function is overriden, the implementer SHOULD super call it.
     * @param purchase The purchase conditions.
     */
    function _delivery(PurchaseData memory purchase) internal override {
        super._delivery(purchase);
        ITOWERChestsSale_ERC20TransferFrom chest = ITOWERChestsSale_ERC20TransferFrom(skuTokens[purchase.sku]);
        uint256 decimals = chest.decimals();
        require(chest.transferFrom(tokenHolder, purchase.recipient, purchase.quantity * (10**decimals)), "TOWERChestSale: transfer failed");
    }
}

// solhint-disable-next-line contract-name-camelcase
interface ITOWERChestsSale_ERC20TransferFrom {
    /**
     * @notice Transfers `value` amount of tokens from address `from` to address `to` via the approval mechanism.
     * @dev Reverts if the caller has not been approved by `from` for at least `value`.
     * @dev Reverts if `from` does not have at least `value` of balance.
     * @dev Emits the {IERC20-Transfer} event.
     * @dev Transfers of 0 values are treated as normal transfers and fire the {IERC20-Transfer} event.
     * @param from The account where the transferred tokens will be withdrawn from.
     * @param to The account where the transferred tokens will be deposited to.
     * @param value The amount of tokens to transfer.
     * @return True if the transfer succeeds, false otherwise.
     */
    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function decimals() external returns (uint8);
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"tokenHolder_","type":"address"},{"internalType":"address","name":"payoutWallet","type":"address"},{"internalType":"uint256","name":"skusCapacity","type":"uint256"},{"internalType":"uint256","name":"tokensPerSkuCapacity","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32[]","name":"names","type":"bytes32[]"},{"indexed":false,"internalType":"bytes32[]","name":"values","type":"bytes32[]"}],"name":"MagicValues","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":"payoutWallet_","type":"address"}],"name":"PayoutWalletSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"purchaser","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"bytes32","name":"sku","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"userData","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"totalPrice","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"extData","type":"bytes"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"sku","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxQuantityPerPurchase","type":"uint256"},{"indexed":false,"internalType":"address","name":"notificationsReceiver","type":"address"}],"name":"SkuCreation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"sku","type":"bytes32"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"SkuPricingUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Started","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"SUPPLY_UNLIMITED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_ETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"sku","type":"bytes32"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"maxQuantityPerPurchase","type":"uint256"},{"internalType":"address","name":"notificationsReceiver","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"createSku","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"bytes32","name":"sku","type":"bytes32"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"}],"name":"estimatePurchase","outputs":[{"internalType":"uint256","name":"totalPrice","type":"uint256"},{"internalType":"bytes32[]","name":"pricingData","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"sku","type":"bytes32"}],"name":"getSkuInfo","outputs":[{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"remainingSupply","type":"uint256"},{"internalType":"uint256","name":"maxQuantityPerPurchase","type":"uint256"},{"internalType":"address","name":"notificationsReceiver","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSkus","outputs":[{"internalType":"bytes32[]","name":"skus","type":"bytes32[]"}],"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":"payoutWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"bytes32","name":"sku","type":"bytes32"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"}],"name":"purchaseFor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payoutWallet_","type":"address"}],"name":"setPayoutWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"skuTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenHolder","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":"bytes32","name":"sku","type":"bytes32"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"updateSkuPricing","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b506040516200353d3803806200353d833981810160405260808110156200003757600080fd5b50805160208201516040830151606090930151919290918282828282828260006200006a6001600160e01b036200031916565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000c8816001600160e01b036200031d16565b506003805460ff19169055608082905260a081905260408051600280825260608083018452926020830190803683375050604080516002808252606080830184529495509092509060208301908036833750508351919250680a89e968a9cbe8aa8960bb1b9173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee915084906000906200015157fe5b60200260200101836000815181106200016657fe5b602002602001018281525082815250505060001960001b6f14d55414131657d5539312535255115160821b9083600181518110620001a057fe5b6020026020010183600181518110620001b557fe5b60200260200101828152508281525050507fabb92614f53337043b55dc996a83ebb09adce78ec336ca188ea02180b61d1c148282604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156200022f57818101518382015260200162000215565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156200027057818101518382015260200162000256565b5050505090500194505050505060405180910390a1620002986001600160e01b036200052116565b50505050506001600160a01b0387161515925062000300915050576040805162461bcd60e51b815260206004820152601b60248201527f544f574552436865737453616c653a207a65726f20686f6c6465720000000000604482015290519081900360640190fd5b50505060601b6001600160601b03191660c052620005f0565b3390565b620003306001600160e01b036200031916565b6001600160a01b03166200034c6001600160e01b03620005d816565b6001600160a01b031614620003a8576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811662000404576040805162461bcd60e51b815260206004820152601460248201527f5061796f75743a207a65726f2061646472657373000000000000000000000000604482015290519081900360640190fd5b6001600160a01b03811630141562000463576040805162461bcd60e51b815260206004820152601f60248201527f5061796f75743a207468697320636f6e7472616374206173207061796f757400604482015290519081900360640190fd5b6001546001600160a01b0382811691161415620004c7576040805162461bcd60e51b815260206004820152601a60248201527f5061796f75743a2073616d65207061796f75742077616c6c6574000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517fdd880d24a789958a6398c99c2e54ce31bc10a638cbc42f7dd34285479ae0f855916020908290030190a150565b620005346001600160e01b03620005e716565b156200057a576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620005bb6001600160e01b036200031916565b604080516001600160a01b039092168252519081900360200190a1565b6000546001600160a01b031690565b60035460ff1690565b60805160a05160c05160601c612f186200062560003980610b5552806124d252508061198c525080611a605250612f186000f3fe60806040526004361061015f5760003560e01c806379430b39116100c0578063a963b25711610074578063ca2364ea11610059578063ca2364ea1461071d578063f21f537d14610747578063f2fde38b1461075c5761015f565b8063a963b25714610673578063be9a6555146107085761015f565b80638488bb4e116100a55780638488bb4e146106225780638da5cb5b146106375780639e0495451461064c5761015f565b806379430b39146105c05780638456cb591461060d5761015f565b80635c975abb1161011757806361bd3851116100fc57806361bd3851146105135780636b8f9c4314610578578063715018a6146105ab5761015f565b80635c975abb146103af5780635e6e9f70146103d85761015f565b80633f4ba83a116101485780633f4ba83a14610352578063420a83e7146103695780635c4fafc71461039a5761015f565b80631323b066146101645780632a8a45bc14610261575b600080fd5b34801561017057600080fd5b50610206600480360360a081101561018757600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156101c757600080fd5b8201836020820111156101d957600080fd5b803590602001918460018302840111640100000000831117156101fb57600080fd5b50909250905061078f565b6040518083815260200180602001828103825283818151815260200191508051906020019060200280838360005b8381101561024c578181015183820152602001610234565b50505050905001935050505060405180910390f35b34801561026d57600080fd5b5061028b6004803603602081101561028457600080fd5b50356108d6565b60405180878152602001868152602001858152602001846001600160a01b03166001600160a01b031681526020018060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156102f95781810151838201526020016102e1565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610338578181015183820152602001610320565b505050509050019850505050505050505060405180910390f35b34801561035e57600080fd5b50610367610a81565b005b34801561037557600080fd5b5061037e610b53565b604080516001600160a01b039092168252519081900360200190f35b3480156103a657600080fd5b5061037e610b77565b3480156103bb57600080fd5b506103c4610b8f565b604080519115158252519081900360200190f35b3480156103e457600080fd5b50610367600480360360608110156103fb57600080fd5b8135919081019060408101602082013564010000000081111561041d57600080fd5b82018360208201111561042f57600080fd5b8035906020019184602083028401116401000000008311171561045157600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156104a157600080fd5b8201836020820111156104b357600080fd5b803590602001918460208302840111640100000000831117156104d557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610b98945050505050565b34801561051f57600080fd5b50610528610dd4565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561056457818101518382015260200161054c565b505050509050019250505060405180910390f35b34801561058457600080fd5b506103676004803603602081101561059b57600080fd5b50356001600160a01b0316610e2f565b3480156105b757600080fd5b50610367611026565b3480156105cc57600080fd5b50610367600480360360a08110156105e357600080fd5b508035906020810135906040810135906001600160a01b03606082013581169160800135166110f1565b34801561061957600080fd5b50610367611264565b34801561062e57600080fd5b5061037e611334565b34801561064357600080fd5b5061037e611343565b34801561065857600080fd5b50610661611352565b60408051918252519081900360200190f35b610367600480360360a081101561068957600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a0810160808201356401000000008111156106c957600080fd5b8201836020820111156106db57600080fd5b803590602001918460018302840111640100000000831117156106fd57600080fd5b509092509050611358565b34801561071457600080fd5b50610367611490565b34801561072957600080fd5b5061037e6004803603602081101561074057600080fd5b503561150c565b34801561075357600080fd5b50610661611527565b34801561076857600080fd5b506103676004803603602081101561077f57600080fd5b50356001600160a01b031661152d565b60006060600254600014156107eb576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b6107f3610b8f565b15610845576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b61084d612d95565b61085561164e565b6001600160a01b03908116825289811660208084019190915290891660408084019190915260608301899052608083018890528051601f870183900483028101830190915285815290869086908190840183828082843760009201919091525050505060a08201526108c681611652565b9250925050965096945050505050565b60008181526006602052604081208190819081906060908190836108fc60048301611679565b82549850905087610954576040805162461bcd60e51b815260206004820152601660248201527f53616c653a206e6f6e2d6578697374656e7420736b7500000000000000000000604482015290519081900360640190fd5b60018201546002830154600384015491985096506001600160a01b031694508067ffffffffffffffff8111801561098a57600080fd5b506040519080825280602002602001820160405280156109b4578160200160208202803683370190505b5093508067ffffffffffffffff811180156109ce57600080fd5b506040519080825280602002602001820160405280156109f8578160200160208202803683370190505b50925060005b81811015610a7557600080610a1c600486018463ffffffff61167d16565b915091508160001c878481518110610a3057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508060001c868481518110610a6057fe5b602090810291909101015250506001016109fe565b50505091939550919395565b610a8961164e565b6001600160a01b0316610a9a611343565b6001600160a01b031614610af5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254610b49576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b610b5161170e565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81565b60035460ff1690565b610ba061164e565b6001600160a01b0316610bb1611343565b6001600160a01b031614610c0c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b815181518114610c4d5760405162461bcd60e51b8152600401808060200182810382526024815260200180612e9e6024913960400191505060405180910390fd5b60008481526006602052604090208054610cae576040805162461bcd60e51b815260206004820152601660248201527f53616c653a206e6f6e2d6578697374656e7420736b7500000000000000000000604482015290519081900360640190fd5b6004810182610d05576000610cc282611679565b905060005b81811015610cfe576000610ce1848263ffffffff61167d16565b509050610cf4848263ffffffff6117b716565b5050600101610cc7565b5050610d10565b610d10818686611897565b857fcb3fe5489e0cd43d0f4a33d1e09a4a0463a03d0d38f56165530854e5540db1438686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610d78578181015183820152602001610d60565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610db7578181015183820152602001610d9f565b5050505090500194505050505060405180910390a2505050505050565b60606004600001805480602002602001604051908101604052809291908181526020018280548015610e2557602002820191906000526020600020905b815481526020019060010190808311610e11575b5050505050905090565b610e3761164e565b6001600160a01b0316610e48611343565b6001600160a01b031614610ea3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610efe576040805162461bcd60e51b815260206004820152601460248201527f5061796f75743a207a65726f2061646472657373000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116301415610f5c576040805162461bcd60e51b815260206004820152601f60248201527f5061796f75743a207468697320636f6e7472616374206173207061796f757400604482015290519081900360640190fd5b6001546001600160a01b0382811691161415610fbf576040805162461bcd60e51b815260206004820152601a60248201527f5061796f75743a2073616d65207061796f75742077616c6c6574000000000000604482015290519081900360640190fd5b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03838116919091179182905560408051929091168252517fdd880d24a789958a6398c99c2e54ce31bc10a638cbc42f7dd34285479ae0f855916020908290030190a150565b61102e61164e565b6001600160a01b031661103f611343565b6001600160a01b03161461109a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6110f961164e565b6001600160a01b031661110a611343565b6001600160a01b031614611165576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61116d610b8f565b6111be576040805162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b6001600160a01b038116611219576040805162461bcd60e51b815260206004820152601a60248201527f544f574552436865737453616c653a207a65726f20746f6b656e000000000000604482015290519081900360640190fd5b61122585858585611a0c565b600094855260076020526040909420805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390951694909417909355505050565b61126c61164e565b6001600160a01b031661127d611343565b6001600160a01b0316146112d8576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60025461132c576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b610b51611c49565b6001546001600160a01b031681565b6000546001600160a01b031690565b60001981565b6002546113ac576040805162461bcd60e51b815260206004820152601660248201527f537461727461626c653a206e6f74207374617274656400000000000000000000604482015290519081900360640190fd5b6113b4610b8f565b15611406576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b61140e612d95565b61141661164e565b6001600160a01b03908116825287811660208084019190915290871660408084019190915260608301879052608083018690528051601f850183900483028101830190915283815290849084908190840183828082843760009201919091525050505060a082015261148781611cd9565b50505050505050565b61149861164e565b6001600160a01b03166114a9611343565b6001600160a01b031614611504576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610b49611d09565b6007602052600090815260409020546001600160a01b031681565b60025490565b61153561164e565b6001600160a01b0316611546611343565b6001600160a01b0316146115a1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166115e65760405162461bcd60e51b8152600401808060200182810382526026815260200180612e576026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3390565b6000606061165f83611d8b565b6116688361203b565b505060c081015160e0909101519091565b5490565b8154600090819083106116d7576040805162461bcd60e51b815260206004820152601c60248201527f456e756d4d61703a20696e646578206f7574206f6620626f756e647300000000604482015290519081900360640190fd5b60008460000184815481106116e857fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b611716610b8f565b611767576040805162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61179a61164e565b604080516001600160a01b039092168252519081900360200190a1565b6000818152600183016020526040812054801561188b57835460001980830191908101906000908790839081106117ea57fe5b906000526020600020906002020190508087600001848154811061180a57fe5b60009182526020808320845460029093020191825560019384015491840191909155835482528983019052604090209084019055865487908061184957fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506118919350505050565b60009150505b92915050565b60005b82518110156119895760008382815181106118b157fe5b6020026020010151905060006001600160a01b0316816001600160a01b03161415611923576040805162461bcd60e51b815260206004820152601860248201527f53616c653a207a65726f206164647265737320746f6b656e0000000000000000604482015290519081900360640190fd5b600083838151811061193157fe5b6020026020010151905080600014156119635761195d866001600160a01b03841663ffffffff6117b716565b5061197f565b61197d866001600160a01b0384168363ffffffff6120d816565b505b505060010161189a565b507f00000000000000000000000000000000000000000000000000000000000000006119b484611679565b1115611a07576040805162461bcd60e51b815260206004820152601560248201527f53616c653a20746f6f206d616e7920746f6b656e730000000000000000000000604482015290519081900360640190fd5b505050565b82611a5e576040805162461bcd60e51b815260206004820152601160248201527f53616c653a207a65726f20737570706c79000000000000000000000000000000604482015290519081900360640190fd5b7f0000000000000000000000000000000000000000000000000000000000000000611a896004611679565b10611adb576040805162461bcd60e51b815260206004820152601360248201527f53616c653a20746f6f206d616e7920736b757300000000000000000000000000604482015290519081900360640190fd5b611aec60048563ffffffff61217216565b611b3d576040805162461bcd60e51b815260206004820152601960248201527f53616c653a20736b7520616c7265616479206372656174656400000000000000604482015290519081900360640190fd5b6001600160a01b03811615611baf57611b5e816001600160a01b03166121bc565b611baf576040805162461bcd60e51b815260206004820181905260248201527f53616c653a207265636569766572206973206e6f74206120636f6e7472616374604482015290519081900360640190fd5b60008481526006602090815260409182902085815560018101869055600281018590556003810180546001600160a01b03861673ffffffffffffffffffffffffffffffffffffffff1990911681179091558351888152928301879052828401869052606083015291517f38bd4aabce684540cd61351b91f2f5facf9d6963934347e25aab93d87ae7ac149181900360800190a15050505050565b611c51610b8f565b15611ca3576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861179a61164e565b611ce281611d8b565b611ceb8161203b565b611cf4816121c2565b611cfd816123f2565b611d06816125bb565b50565b60025415611d5e576040805162461bcd60e51b815260206004820152601260248201527f537461727461626c653a20737461727465640000000000000000000000000000604482015290519081900360640190fd5b426002557f27029695aa5f602a4ee81f4c32dfa86e562f200a17966496f3a7c3f2ec0f941761179a61164e565b60208101516001600160a01b0316611dea576040805162461bcd60e51b815260206004820152601c60248201527f53616c653a207a65726f206164647265737320726563697069656e7400000000604482015290519081900360640190fd5b60408101516001600160a01b0316611e49576040805162461bcd60e51b815260206004820152601860248201527f53616c653a207a65726f206164647265737320746f6b656e0000000000000000604482015290519081900360640190fd5b6080810151611e9f576040805162461bcd60e51b815260206004820152601c60248201527f53616c653a207a65726f207175616e7469747920707572636861736500000000604482015290519081900360640190fd5b606081015160009081526006602052604090208054611f05576040805162461bcd60e51b815260206004820152601660248201527f53616c653a206e6f6e2d6578697374656e7420736b7500000000000000000000604482015290519081900360640190fd5b816080015181600201541015611f62576040805162461bcd60e51b815260206004820152601860248201527f53616c653a2061626f7665206d6178207175616e746974790000000000000000604482015290519081900360640190fd5b805460001914611fc957816080015181600101541015611fc9576040805162461bcd60e51b815260206004820152601960248201527f53616c653a20696e73756666696369656e7420737570706c7900000000000000604482015290519081900360640190fd5b60408201516001600160a01b0316611fea600483018263ffffffff612ab216565b611a07576040805162461bcd60e51b815260206004820152601c60248201527f53616c653a206e6f6e2d6578697374656e7420736b7520746f6b656e00000000604482015290519081900360640190fd5b6060810151600090815260066020526040902080546120a1576040805162461bcd60e51b815260206004820152601560248201527f53616c653a20756e737570706f7274656420534b550000000000000000000000604482015290519081900360640190fd5b6004810160006120b18483612aca565b90506120ca846080015182612b4090919063ffffffff16565b60c090940193909352505050565b60008281526001840160205260408120548061213d57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561216b565b8285600001600183038154811061215057fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600061217e8383612ab2565b6121b457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611891565b506000611891565b3b151590565b60408101516001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14156122e5578060c00151341015612244576040805162461bcd60e51b815260206004820152601f60248201527f53616c653a20696e73756666696369656e74204554482070726f766964656400604482015290519081900360640190fd5b60015460c08201516040516001600160a01b039092169181156108fc0291906000818181858888f19350505050158015612282573d6000803e3d6000fd5b50600061229c8260c0015134612b9990919063ffffffff16565b905080156122df5781516040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156122dd573d6000803e3d6000fd5b505b50611d06565b80604001516001600160a01b03166323b872dd61230061164e565b60015460c0850151604080517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526001600160a01b03948516600482015293909216602484015260448301525160648083019260209291908290030181600087803b15801561237557600080fd5b505af1158015612389573d6000803e3d6000fd5b505050506040513d602081101561239f57600080fd5b5051611d06576040805162461bcd60e51b815260206004820152601a60248201527f53616c653a204552433230207061796d656e74206661696c6564000000000000604482015290519081900360640190fd5b6123fb81612bf6565b606081015160009081526007602090815260408083205481517f313ce56700000000000000000000000000000000000000000000000000000000815291516001600160a01b039091169392849263313ce567926004808301939282900301818787803b15801561246a57600080fd5b505af115801561247e573d6000803e3d6000fd5b505050506040513d602081101561249457600080fd5b50516020848101516080860151604080517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152938416602482015260ff909516600a81900a909202604486015251909450908516926323b872dd9260648083019391928290030181600087803b15801561253e57600080fd5b505af1158015612552573d6000803e3d6000fd5b505050506040513d602081101561256857600080fd5b5051611a07576040805162461bcd60e51b815260206004820152601f60248201527f544f574552436865737453616c653a207472616e73666572206661696c656400604482015290519081900360640190fd5b806060015181604001516001600160a01b031682600001516001600160a01b03167f29f844483ca6b10b5c0611d039afc15ce8f6380e905307b381c3a8ee4e90e11e846020015185608001518660a001518760c001518860e001518961010001518a610120015160405160200180848051906020019060200280838360005b8381101561265257818101518382015260200161263a565b50505050905001838051906020019060200280838360005b8381101561268257818101518382015260200161266a565b50505050905001828051906020019060200280838360005b838110156126b257818101518382015260200161269a565b50505050905001935050505060405160208183030381529060405260405180866001600160a01b03166001600160a01b031681526020018581526020018060200184815260200180602001838103835286818151815260200191508051906020019080838360005b8381101561273257818101518382015260200161271a565b50505050905090810190601f16801561275f5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561279257818101518382015260200161277a565b50505050905090810190601f1680156127bf5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a460608101516000908152600660205260409020600301546001600160a01b03168015612aae576361eceae860e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916816001600160a01b03166361eceae8846000015185602001518660400151876060015188608001518960a001518a60c001518b60e001518c61010001518d61012001516040518b63ffffffff1660e01b8152600401808b6001600160a01b03166001600160a01b031681526020018a6001600160a01b03166001600160a01b03168152602001896001600160a01b03166001600160a01b031681526020018881526020018781526020018060200186815260200180602001806020018060200185810385528a818151815260200191508051906020019080838360005b838110156129135781810151838201526020016128fb565b50505050905090810190601f1680156129405780820380516001836020036101000a031916815260200191505b508581038452885181528851602091820191808b01910280838360005b8381101561297557818101518382015260200161295d565b50505050905001858103835287818151815260200191508051906020019060200280838360005b838110156129b457818101518382015260200161299c565b50505050905001858103825286818151815260200191508051906020019060200280838360005b838110156129f35781810151838201526020016129db565b505050509050019e505050505050505050505050505050602060405180830381600087803b158015612a2457600080fd5b505af1158015612a38573d6000803e3d6000fd5b505050506040513d6020811015612a4e57600080fd5b50517fffffffff000000000000000000000000000000000000000000000000000000001614612aae5760405162461bcd60e51b8152600401808060200182810382526021815260200180612ec26021913960400191505060405180910390fd5b5050565b60009081526001919091016020526040902054151590565b6040820151600090612aec9083906001600160a01b031663ffffffff612d0516565b905080611891576040805162461bcd60e51b815260206004820152601f60248201527f53616c653a20756e737570706f72746564207061796d656e7420746f6b656e00604482015290519081900360640190fd5b600082612b4f57506000611891565b82820282848281612b5c57fe5b041461216b5760405162461bcd60e51b8152600401808060200182810382526021815260200180612e7d6021913960400191505060405180910390fd5b600082821115612bf0576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b612bfe612e06565b6060808301516000908152600660209081526040808320815160a0810183528154815260018201548185015260028201548184015260038201546001600160a01b031695810195909552815160048201805480860283018501855294820185815292956080880195929491938593909285929085015b82821015612cba57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190612c74565b50505091525050905250805190915060001914612aae5760808201516020820151612cea9163ffffffff612b9916565b60608301516000908152600660205260409020600101555050565b600081815260018301602052604081205480612d68576040805162461bcd60e51b815260206004820152601860248201527f456e756d4d61703a206e6f6e6578697374656e74206b65790000000000000000604482015290519081900360640190fd5b836000016001820381548110612d7a57fe5b90600052602060002090600202016001015491505092915050565b60405180610140016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600080191681526020016000815260200160608152602001600081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160006001600160a01b03168152602001612e3e612e43565b905290565b604051806020016040528060608152509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7753616c653a20746f6b656e732f707269636573206c656e67746873206d69736d6174636853616c653a2077726f6e672072656365697665722072657475726e2076616c7565a2646970667358221220ba5f5da73cbf8c690a2ef24b6e244c729703ec6363b9d08d4c4f54d4e5c2fa7864736f6c63430006080033000000000000000000000000861c2f7a406ccb81b49501f5559d9f77b0bd3b9a00000000000000000000000064ed31bfcef24226b4997a5849d2ad9e5751d4d700000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000001

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

000000000000000000000000861c2f7a406ccb81b49501f5559d9f77b0bd3b9a00000000000000000000000064ed31bfcef24226b4997a5849d2ad9e5751d4d700000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : tokenHolder_ (address): 0x861C2F7a406CCb81B49501f5559D9F77b0bd3b9A
Arg [1] : payoutWallet (address): 0x64eD31bFCeF24226B4997a5849D2AD9E5751d4D7
Arg [2] : skusCapacity (uint256): 3
Arg [3] : tokensPerSkuCapacity (uint256): 1

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000861c2f7a406ccb81b49501f5559d9f77b0bd3b9a
Arg [1] : 00000000000000000000000064ed31bfcef24226b4997a5849d2ad9e5751d4d7
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001


Deployed ByteCode Sourcemap

78210:3296:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;63473:611:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;63473:611:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;63473:611:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;63473:611:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;63473:611:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;63473:611:0;;-1:-1:-1;63473:611:0;-1:-1:-1;63473:611:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;63473:611:0;;;;;;;;;;;;;;;;;;64908:1056;;5:9:-1;2:2;;;27:1;24;17:12;2:2;64908:1056:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;64908:1056:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;64908:1056:0;-1:-1:-1;;;;;64908:1056:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;64908:1056:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;64908:1056:0;;;;;;;;;;;;;;;;;;;;;;;58509:85;;5:9:-1;2:2;;;27:1;24;17:12;2:2;58509:85:0;;;:::i;:::-;;78260:36;;5:9:-1;2:2;;;27:1;24;17:12;2:2;78260:36:0;;;:::i;:::-;;;;-1:-1:-1;;;;;78260:36:0;;;;;;;;;;;;;;56043:98;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56043:98:0;;;:::i;23612:86::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;23612:86:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;59359:998;;5:9:-1;2:2;;;27:1;24;17:12;2:2;59359:998:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;59359:998:0;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;59359:998:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;59359:998:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;59359:998:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;59359:998:0;;;;;;;;-1:-1:-1;59359:998:0;;-1:-1:-1;;27:11;11:28;;8:2;;;52:1;49;42:12;8:2;59359:998:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;59359:998:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;59359:998:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;59359:998:0;;-1:-1:-1;59359:998:0;;-1:-1:-1;;;;;59359:998:0:i;66101:112::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;66101:112:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;66101:112:0;;;;;;;;;;;;;;;;;20361:401;;5:9:-1;2:2;;;27:1;24;17:12;2:2;20361:401:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;20361:401:0;-1:-1:-1;;;;;20361:401:0;;:::i;19350:148::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;19350:148:0;;;:::i;80033:409::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;80033:409:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;80033:409:0;;;;;;;;;;;;;-1:-1:-1;;;;;80033:409:0;;;;;;;;;;;;:::i;58147:81::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;58147:81:0;;;:::i;20216:35::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;20216:35:0;;;:::i;18699:87::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;18699:87:0;;;:::i;56148:69::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56148:69:0;;;:::i;:::-;;;;;;;;;;;;;;;;61366:538;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;61366:538:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;61366:538:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;61366:538:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;61366:538:0;;-1:-1:-1;61366:538:0;-1:-1:-1;61366:538:0;:::i;57775:90::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;57775:90:0;;;:::i;78305:44::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;78305:44:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;78305:44:0;;:::i;22164:87::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;22164:87:0;;;:::i;19653:244::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;19653:244:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19653:244:0;-1:-1:-1;;;;;19653:244:0;;:::i;63473:611::-;63715:18;63735:28;21854:10;;21868:1;21854:15;;21846:50;;;;;-1:-1:-1;;;21846:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23938:8:::1;:6;:8::i;:::-;23937:9;23929:38;;;::::0;;-1:-1:-1;;;23929:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;63776:28:::2;;:::i;:::-;63836:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;63815:33:0;;::::2;::::0;;63859:30;;::::2;:18;::::0;;::::2;:30:::0;;;;63900:22;;::::2;:14;::::0;;::::2;:22:::0;;;;63933:12:::2;::::0;::::2;:18:::0;;;63962:17:::2;::::0;::::2;:28:::0;;;64001;;::::2;::::0;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;;;;;;64021:8;;;;;;64001:28;::::2;64021:8:::0;;;;64001:28;1:33:-1::2;99:1;81:16:::0;::::2;74:27:::0;;;;-1:-1;;;;64001:17:0::2;::::0;::::2;:28:::0;64049:27:::2;64001:8:::0;64049:17:::2;:27::i;:::-;64042:34;;;;;63473:611:::0;;;;;;;;;:::o;64908:1056::-;65023:19;65299:14;;;:9;:14;;;;;65023:19;;;;;;65184:23;;;;65023:19;65341:23;:14;;;:21;:23::i;:::-;65391:19;;;-1:-1:-1;65324:40:0;-1:-1:-1;65429:16:0;65421:51;;;;;-1:-1:-1;;;65421:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;65501:23;;;;65560:30;;;;65625:29;;;;65501:23;;-1:-1:-1;65560:30:0;-1:-1:-1;;;;;;65625:29:0;;-1:-1:-1;65690:6:0;65676:21;;;2:2:-1;;;;27:1;24;17:12;2:2;65676:21:0;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;144:17;;-1:-1;65676:21:0;;65667:30;;65731:6;65717:21;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;65717:21:0;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;144:17;;-1:-1;65717:21:0;-1:-1:-1;65708:30:0;-1:-1:-1;65754:9:0;65749:208;65773:6;65769:1;:10;65749:208;;;65802:13;;65834:20;:14;;;65852:1;65834:20;:17;:20;:::i;:::-;65801:53;;;;65897:5;65889:14;;65869:6;65876:1;65869:9;;;;;;;;;;;;;:35;-1:-1:-1;;;;;65869:35:0;;;-1:-1:-1;;;;;65869:35:0;;;;;65939:5;65931:14;;65919:6;65926:1;65919:9;;;;;;;;;;;;;;;;;:26;-1:-1:-1;;65781:3:0;;65749:208;;;;64908:1056;;;;;;;;;:::o;58509:85::-;18930:12;:10;:12::i;:::-;-1:-1:-1;;;;;18919:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;18919:23:0;;18911:68;;;;;-1:-1:-1;;;18911:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21854:10:::1;::::0;21846:50:::1;;;::::0;;-1:-1:-1;;;21846:50:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;58576:10:::2;:8;:10::i;:::-;58509:85::o:0;78260:36::-;;;:::o;56043:98::-;56096:44;56043:98;:::o;23612:86::-;23683:7;;;;23612:86;:::o;59359:998::-;18930:12;:10;:12::i;:::-;-1:-1:-1;;;;;18919:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;18919:23:0;;18911:68;;;;;-1:-1:-1;;;18911:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59535:13;;59629;;59619:23;::::1;59611:72;;;;-1:-1:-1::0;;;59611:72:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59694:23;59720:14:::0;;;:9:::1;:14;::::0;;;;59753:19;;59745:59:::1;;;::::0;;-1:-1:-1;;;59745:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;59851:14;::::0;::::1;59880:11:::0;59876:419:::1;;59908:21;59932:20;:11;:18;:20::i;:::-;59908:44:::0;-1:-1:-1;59972:9:0::1;59967:240;59991:13;59987:1;:17;59967:240;;;60111:13;60130:17;:11:::0;60111:13;60130:17:::1;:14;:17;:::i;:::-;-1:-1:-1::0;60110:37:0;-1:-1:-1;60166:25:0::1;:11:::0;60110:37;60166:25:::1;:18;:25;:::i;:::-;-1:-1:-1::0;;60006:3:0::1;;59967:240;;;;59876:419;;;;60239:44;60255:11;60268:6;60276;60239:15;:44::i;:::-;60329:3;60312:37;60334:6;60342;60312:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11:::0;;::::1;84:18:::0;71:11;;::::1;64:39:::0;52:2:::1;45:10;8:100;;;12:14;60312:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11:::0;;::::1;84:18:::0;71:11;;::::1;64:39:::0;52:2:::1;45:10;8:100;;;12:14;60312:37:0;;;;;;;;;;;;;;;;;;;18990:1;;;59359:998:::0;;;:::o;66101:112::-;66152:21;66193:5;:12;;66186:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66101:112;:::o;20361:401::-;18930:12;:10;:12::i;:::-;-1:-1:-1;;;;;18919:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;18919:23:0;;18911:68;;;;;-1:-1:-1;;;18911:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20445:27:0;::::1;20437:60;;;::::0;;-1:-1:-1;;;20437:60:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;20516:30:0;::::1;20541:4;20516:30;;20508:74;;;::::0;;-1:-1:-1;;;20508:74:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;20618:12;::::0;-1:-1:-1;;;;;20601:29:0;;::::1;20618:12:::0;::::1;20601:29;;20593:68;;;::::0;;-1:-1:-1;;;20593:68:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;20672:12;:37:::0;;-1:-1:-1;;20672:37:0::1;-1:-1:-1::0;;;;;20672:37:0;;::::1;::::0;;;::::1;::::0;;;;20725:29:::1;::::0;;20741:12;;;::::1;20725:29:::0;;;::::1;::::0;::::1;::::0;;;;;;::::1;20361:401:::0;:::o;19350:148::-;18930:12;:10;:12::i;:::-;-1:-1:-1;;;;;18919:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;18919:23:0;;18911:68;;;;;-1:-1:-1;;;18911:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19457:1:::1;19441:6:::0;;19420:40:::1;::::0;-1:-1:-1;;;;;19441:6:0;;::::1;::::0;19420:40:::1;::::0;19457:1;;19420:40:::1;19488:1;19471:19:::0;;-1:-1:-1;;19471:19:0::1;::::0;;19350:148::o;80033:409::-;18930:12;:10;:12::i;:::-;-1:-1:-1;;;;;18919:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;18919:23:0;;18911:68;;;;;-1:-1:-1;;;18911:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24215:8:::1;:6;:8::i;:::-;24207:41;;;::::0;;-1:-1:-1;;;24207:41:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;80265:19:0;::::2;80257:58;;;::::0;;-1:-1:-1;;;80257:58:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;80326:75;80337:3;80342:11;80355:22;80379:21;80326:10;:75::i;:::-;80412:14;::::0;;;:9:::2;:14;::::0;;;;;:22;;-1:-1:-1;;80412:22:0::2;-1:-1:-1::0;;;;;80412:22:0;;::::2;::::0;;;::::2;::::0;;;-1:-1:-1;;;80033:409:0:o;58147:81::-;18930:12;:10;:12::i;:::-;-1:-1:-1;;;;;18919:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;18919:23:0;;18911:68;;;;;-1:-1:-1;;;18911:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21854:10:::1;::::0;21846:50:::1;;;::::0;;-1:-1:-1;;;21846:50:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;58212:8:::2;:6;:8::i;20216:35::-:0;;;-1:-1:-1;;;;;20216:35:0;;:::o;18699:87::-;18745:7;18772:6;-1:-1:-1;;;;;18772:6:0;18699:87;:::o;56148:69::-;-1:-1:-1;;56148:69:0;:::o;61366:538::-;21854:10;;21846:50;;;;;-1:-1:-1;;;21846:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23938:8:::1;:6;:8::i;:::-;23937:9;23929:38;;;::::0;;-1:-1:-1;;;23929:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;61608:28:::2;;:::i;:::-;61668:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;61647:33:0;;::::2;::::0;;61691:30;;::::2;:18;::::0;;::::2;:30:::0;;;;61732:22;;::::2;:14;::::0;;::::2;:22:::0;;;;61765:12:::2;::::0;::::2;:18:::0;;;61794:17:::2;::::0;::::2;:28:::0;;;61833;;::::2;::::0;::::2;::::0;;::::2;::::0;::::2;::::0;;;;;;;;;;;61853:8;;;;;;61833:28;::::2;61853:8:::0;;;;61833:28;1:33:-1::2;99:1;81:16:::0;::::2;74:27:::0;;;;-1:-1;;;;61833:17:0::2;::::0;::::2;:28:::0;61874:22:::2;61833:8:::0;61874:12:::2;:22::i;:::-;23978:1;61366:538:::0;;;;;;:::o;57775:90::-;18930:12;:10;:12::i;:::-;-1:-1:-1;;;;;18919:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;18919:23:0;;18911:68;;;;;-1:-1:-1;;;18911:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57828:8:::1;:6;:8::i;78305:44::-:0;;;;;;;;;;;;-1:-1:-1;;;;;78305:44:0;;:::o;22164:87::-;22233:10;;22164:87;:::o;19653:244::-;18930:12;:10;:12::i;:::-;-1:-1:-1;;;;;18919:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;18919:23:0;;18911:68;;;;;-1:-1:-1;;;18911:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19742:22:0;::::1;19734:73;;;;-1:-1:-1::0;;;19734:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19844:6;::::0;;19823:38:::1;::::0;-1:-1:-1;;;;;19823:38:0;;::::1;::::0;19844:6;::::1;::::0;19823:38:::1;::::0;::::1;19872:6;:17:::0;;-1:-1:-1;;19872:17:0::1;-1:-1:-1::0;;;;;19872:17:0;;;::::1;::::0;;;::::1;::::0;;19653:244::o;17230:106::-;17318:10;17230:106;:::o;52105:297::-;52193:18;52213:28;52254:21;52266:8;52254:11;:21::i;:::-;52286:18;52295:8;52286;:18::i;:::-;-1:-1:-1;;52330:19:0;;;;52374:20;;;;;52330:19;;52105:297::o;9697:109::-;9780:18;;9697:109::o;10171:269::-;10275:18;;10238:7;;;;10275:26;-1:-1:-1;10267:67:0;;;;;-1:-1:-1;;;10267:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;10347:22;10372:3;:11;;10384:5;10372:18;;;;;;;;;;;;;;;;;;10347:43;;10409:5;:9;;;10420:5;:11;;;10401:31;;;;;10171:269;;;;;:::o;24671:120::-;24215:8;:6;:8::i;:::-;24207:41;;;;;-1:-1:-1;;;24207:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24730:7:::1;:15:::0;;-1:-1:-1;;24730:15:0::1;::::0;;24761:22:::1;24770:12;:10;:12::i;:::-;24761:22;::::0;;-1:-1:-1;;;;;24761:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;24671:120::o:0;7841:1553::-;7905:4;8040:16;;;:11;;;:16;;;;;;8073:13;;8069:1318;;8517:18;;-1:-1:-1;;8470:12:0;;;;8517:22;;;;8446:21;;8517:3;;:22;;8813;;;;;;;;;;;;;;;;8784:51;;8959:9;8930:3;:11;;8942:13;8930:26;;;;;;;;;;;;;;;;:38;;:26;;;;;:38;;;;;;;;;;;;;;;9048:13;;9036:26;;:11;;;:26;;;;;9065:17;;;9036:46;;9191:17;;9036:3;;9191:17;;;;;;;;;;;;;;-1:-1:-1;;9191:17:0;;;;;;;;;;;;;;;;;;;;;9286:16;;;:11;;;:16;;;;;;9279:23;;;;9191:17;-1:-1:-1;9319:11:0;;-1:-1:-1;;;;9319:11:0;8069:1318;9370:5;9363:12;;;7841:1553;;;;;:::o;68451:679::-;68626:9;68621:412;68645:6;:13;68641:1;:17;68621:412;;;68680:13;68696:6;68703:1;68696:9;;;;;;;;;;;;;;68680:25;;68745:1;-1:-1:-1;;;;;68728:19:0;:5;-1:-1:-1;;;;;68728:19:0;;;68720:56;;;;;-1:-1:-1;;;68720:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;68791:13;68807:6;68814:1;68807:9;;;;;;;;;;;;;;68791:25;;68835:5;68844:1;68835:10;68831:191;;;68866:43;:11;-1:-1:-1;;;;;68893:14:0;;68866:43;:18;:43;:::i;:::-;;68831:191;;;68950:56;:11;-1:-1:-1;;;;;68974:14:0;;68999:5;68950:56;:15;:56;:::i;:::-;;68831:191;-1:-1:-1;;68660:3:0;;68621:412;;;;69075:21;69051:20;:11;:18;:20::i;:::-;:45;;69043:79;;;;;-1:-1:-1;;;69043:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;68451:679;;;:::o;67010:956::-;67206:16;67198:46;;;;;-1:-1:-1;;;67198:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;67280:13;67263:14;:5;:12;:14::i;:::-;:30;67255:62;;;;;-1:-1:-1;;;67255:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;67336:14;:5;67346:3;67336:14;:9;:14;:::i;:::-;67328:52;;;;;-1:-1:-1;;;67328:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;67395:35:0;;;67391:203;;67511:34;:21;-1:-1:-1;;;;;67511:32:0;;:34::i;:::-;67503:79;;;;;-1:-1:-1;;;67503:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67604:23;67630:14;;;:9;:14;;;;;;;;;67655:33;;;67699:23;;;:37;;;67747:30;;;:55;;;67813:29;;;:53;;-1:-1:-1;;;;;67813:53:0;;-1:-1:-1;;67813:53:0;;;;;;;;67882:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67010:956;;;;;:::o;24412:118::-;23938:8;:6;:8::i;:::-;23937:9;23929:38;;;;;-1:-1:-1;;;23929:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24472:7:::1;:14:::0;;-1:-1:-1;;24472:14:0::1;24482:4;24472:14;::::0;;24502:20:::1;24509:12;:10;:12::i;52510:231::-:0;52590:21;52602:8;52590:11;:21::i;:::-;52622:18;52631:8;52622;:18::i;:::-;52651;52660:8;52651;:18::i;:::-;52680:19;52690:8;52680:9;:19::i;:::-;52710:23;52724:8;52710:13;:23::i;:::-;52510:231;:::o;22392:122::-;21647:10;;:15;21639:46;;;;;-1:-1:-1;;;21639:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;22466:3:::1;22453:10;:16:::0;22485:21:::1;22493:12;:10;:12::i;70088:864::-:0;70189:18;;;;-1:-1:-1;;;;;70189:32:0;70181:73;;;;;-1:-1:-1;;;70181:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70273:14;;;;-1:-1:-1;;;;;70273:28:0;70265:65;;;;;-1:-1:-1;;;70265:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70349:17;;;;70341:63;;;;;-1:-1:-1;;;70341:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70451:12;;;;70415:23;70441;;;:9;:23;;;;;70483:19;;70475:59;;;;;-1:-1:-1;;;70475:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70587:8;:17;;;70553:7;:30;;;:51;;70545:88;;;;;-1:-1:-1;;;70545:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70648:19;;-1:-1:-1;;70648:39:0;70644:154;;70739:8;:17;;;70712:7;:23;;;:44;;70704:82;;;;;-1:-1:-1;;;70704:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70843:14;;;;-1:-1:-1;;;;;70835:23:0;70878:33;:14;;;70835:23;70878:33;:23;:33;:::i;:::-;70870:74;;;;;-1:-1:-1;;;70870:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;75626:394;75752:12;;;;75716:23;75742;;;:9;:23;;;;;75784:19;;75776:58;;;;;-1:-1:-1;;;75776:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;75874:14;;;75845:26;75919:28;75930:8;75874:14;75919:10;:28::i;:::-;75899:48;;75980:32;75994:8;:17;;;75980:9;:13;;:32;;;;:::i;:::-;75958:19;;;;:54;;;;-1:-1:-1;;;75626:394:0:o;6937:729::-;7047:4;7182:16;;;:11;;;:16;;;;;;7215:13;7211:448;;-1:-1:-1;;7312:34:0;;;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;7295:11:0;:52;;;;;;;;;;;;;;;;;;;;;;;;7504:18;;7485:16;;;:11;;;:16;;;;;;;:37;7537:11;;7211:448;7615:5;7581:3;:11;;7604:1;7593:8;:12;7581:25;;;;;;;;;;;;;;;;;;:31;;:39;;;;7642:5;7635:12;;;6937:729;;;;;;:::o;13490:410::-;13553:4;13575:20;13584:3;13589:5;13575:8;:20::i;:::-;13570:323;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;13612:10:0;:22;;;;;;;;;;;;;13793:17;;13772:18;;;:11;;;:18;;;;;;:38;;;;13825:11;;13570:323;-1:-1:-1;13876:5:0;13869:12;;25576:422;25943:20;25982:8;;;25576:422::o;76492:614::-;76581:14;;;;-1:-1:-1;;;;;76581:27:0;56096:44;76581:27;76577:522;;;76646:8;:19;;;76633:9;:32;;76625:76;;;;;-1:-1:-1;;;76625:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;76718:12;;76740:19;;;;76718:42;;-1:-1:-1;;;;;76718:12:0;;;;:42;;;;;76740:19;76718:12;:42;:12;:42;76740:19;76718:12;:42;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76718:42:0;76777:14;76794:34;76808:8;:19;;;76794:9;:13;;:34;;;;:::i;:::-;76777:51;-1:-1:-1;76849:11:0;;76845:87;;76881:18;;:35;;-1:-1:-1;;;;;76881:27:0;;;;:35;;;;;76909:6;;76881:18;:35;:18;:35;76909:6;76881:27;:35;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76881:35:0;76845:87;76577:522;;;;76979:8;:14;;;-1:-1:-1;;;;;76972:35:0;;77008:12;:10;:12::i;:::-;77022;;77036:19;;;;76972:84;;;;;;;;;;;-1:-1:-1;;;;;76972:84:0;;;;;;;77022:12;;;;76972:84;;;;;;;;;;;;;;;;;;;;;;;77022:12;76972:84;;;;2:2:-1;;;;27:1;24;17:12;2:2;76972:84:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76972:84:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;76972:84:0;76964:123;;;;;-1:-1:-1;;;76964:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;81091:412;81169:25;81185:8;81169:15;:25::i;:::-;81293:12;;;;81205:40;81283:23;;;:9;:23;;;;;;;;;81337:16;;;;;;;-1:-1:-1;;;;;81283:23:0;;;;81205:40;81283:23;;81337:14;;:16;;;;;81283:23;81337:16;;;;;81205:40;81283:23;81337:16;;;2:2:-1;;;;27:1;24;17:12;2:2;81337:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81337:16:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;81337:16:0;;81404:18;;;;81424:17;;;;81372:87;;;;;;-1:-1:-1;;;;;81391:11:0;81372:87;;;;;;;;;;;;;81318:35;;;;81445:2;:12;;;81424:34;;;81372:87;;;;;81318:35;;-1:-1:-1;81372:18:0;;;;;;:87;;;;;81337:16;;81372:87;;;;;-1:-1:-1;81372:18:0;:87;;;2:2:-1;;;;27:1;24;17:12;2:2;81372:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81372:87:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;81372:87:0;81364:131;;;;;-1:-1:-1;;;81364:131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;72657:1386;72870:8;:12;;;72841:8;:14;;;-1:-1:-1;;;;;72752:337:0;72775:8;:18;;;-1:-1:-1;;;;;72752:337:0;;72808:8;:18;;;72897:8;:17;;;72929:8;:17;;;72961:8;:19;;;73012:8;:20;;;73034:8;:20;;;73056:8;:21;;;72995:83;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72995:83:0;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72995:83:0;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72995:83:0;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;72995:83:0;;;72752:337;;;;-1:-1:-1;;;;;72752:337:0;-1:-1:-1;;;;;72752:337:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72752:337:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72752:337:0;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;72752:337:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73144:12;;;;73102:29;73134:23;;;:9;:23;;;;;:45;;;-1:-1:-1;;;;;73134:45:0;73194:35;;73190:846;;73841:82;;;73328:595;;;73359:21;-1:-1:-1;;;;;73328:84:0;;73435:8;:18;;;73476:8;:18;;;73517:8;:14;;;73554:8;:12;;;73589:8;:17;;;73629:8;:17;;;73669:8;:19;;;73711:8;:20;;;73754:8;:20;;;73797:8;:21;;;73328:509;;;;;;;;;;;;;-1:-1:-1;;;;;73328:509:0;-1:-1:-1;;;;;73328:509:0;;;;;;-1:-1:-1;;;;;73328:509:0;-1:-1:-1;;;;;73328:509:0;;;;;;-1:-1:-1;;;;;73328:509:0;-1:-1:-1;;;;;73328:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;73328:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73328:509:0;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;73328:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;73328:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;73328:509:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;73328:509:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73328:509:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;73328:509:0;:595;;;73302:722;;;;-1:-1:-1;;;73302:722:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72657:1386;;:::o;9478:124::-;9549:4;9573:16;;;:11;;;;;:16;;;;;;:21;;;9478:124::o;77687:281::-;77873:14;;;;77796:17;;77846:44;;:6;;-1:-1:-1;;;;;77865:23:0;77846:44;:10;:44;:::i;:::-;77838:53;-1:-1:-1;77910:14:0;77902:58;;;;;-1:-1:-1;;;77902:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;36515:220;36573:7;36597:6;36593:20;;-1:-1:-1;36612:1:0;36605:8;;36593:20;36636:5;;;36640:1;36636;:5;:1;36660:5;;;;;:10;36652:56;;;;-1:-1:-1;;;36652:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36098:158;36156:7;36189:1;36184;:6;;36176:49;;;;;-1:-1:-1;;;36176:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36243:5:0;;;36098:158::o;71601:312::-;71687:22;;:::i;:::-;71722:12;;;;;71712:23;;;;:9;:23;;;;;;;;71687:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;71687:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71712:23;;71687:48;;;;;;;;;;;;;;71712:23;71687:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;71687:48:0;;-1:-1:-1;;71687:48:0;;-1:-1:-1;71750:19:0;;71687:48;;-1:-1:-1;;;71750:39:0;71746:160;;71876:17;;;;71848:23;;;;:46;;;:27;:46;:::i;:::-;71816:12;;;;71806:23;;;;:9;:23;;;;;:39;;:88;71601:312;;:::o;10601:302::-;10667:7;10706:16;;;:11;;;:16;;;;;;10741:13;10733:50;;;;;-1:-1:-1;;;10733:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;10837:3;:11;;10860:1;10849:8;:12;10837:25;;;;;;;;;;;;;;;;;;:31;;;10830:38;;;10601:302;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;:::o

Swarm Source

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

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