Contract 0x9fF1918d212c435AD1F1734E9C4DC2DB835161Af

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x98baed054ab969ec3a137a168dac8e571eb0f52e348f9083d9cc41ff689dfb2cSet Approval For...211257632022-10-16 5:38:34228 days 14 hrs ago0x150726caf8415205e3af3bf3cabb884b12bbc3da IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.0012228425 26.5
0x0bee28272319b97d1d9a43678e1e1e4b7e732adb338e0e4e83287c902461753cSet Approval For...211256862022-10-16 5:35:54228 days 14 hrs ago0x150726caf8415205e3af3bf3cabb884b12bbc3da IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.0012228425 26.5
0xf66f1ab2f9e9f8f8a7463116e27631f43cb0e7e83bd2286bcea937076b912729Set Approval For...146727322022-05-14 6:01:27383 days 14 hrs ago0x453ac2f4462d3ced2bda325898fae783926225fc IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.0012228425 26.5
0x5401682f3163a3b69db14b1c700ae84adc313a82f8feef92a7b7600f0a7b3e10Transfer From136525552022-04-20 4:52:06407 days 15 hrs ago0x150726caf8415205e3af3bf3cabb884b12bbc3da IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.01229440576691.581852333
0x81c1fb9c02352ca68936cdb16cdb5d7938e74dbf7fb9a441d64617d2310250c3Set Approval For...136400402022-04-19 21:51:05407 days 22 hrs ago0xbe5aceb467e78e6bb2be1e718267b1f04b9fdcbc IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.004029822842 87.329566414
0x5d478e1e7195c593cd9adf80a3218db1272e55fffbb3d97a98a5f1411732485fSet Approval For...135036452022-04-16 17:53:57411 days 2 hrs ago0xf954968add1b7491d7f34ee88d617210157373c2 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.006792196749 147.19247479
0x6042a42a92540e722fa8b12e452bc3095793a6aa845ff22787e9cb3c479c9f58Set Approval For...135018362022-04-16 16:53:27411 days 3 hrs ago0xf5f08ba7f46e2a86b5ef3bfd56c2097c9f4276d7 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003998352548 86.647579337
0x0f8826f094eecf563adb35a4c76774b7927c44d4a854678de73053081dccca89Set Approval For...134713622022-04-15 23:52:12411 days 20 hrs ago0x7c30edc5ed8101f4f07be2fee5efc2c83ccddac1 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003832284217 83.048742382
0xd5e350b098627190520d866440a5052b8457d1ec4c1c1f83d2076a24d0841156Set Approval For...134597132022-04-15 17:20:46412 days 2 hrs ago0xb643f6393171ccccbe72cce3cc7f867fe6fbf201 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003637587439 78.829503501
0x93387c3802b997d78295801170a45e88302ce59ea6b02eeac825e83206e34c9cSet Approval For...134594382022-04-15 17:11:22412 days 2 hrs ago0xce2dab1a7f24babe6e1a3d5496f5baef17025e13 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.0035993178
0x4702fede11cbf9786a9aa42ae341718dfce73284d3f1b34a5b1a3cf7b619ea5dSet Approval For...134473062022-04-15 10:19:44412 days 9 hrs ago0x68b88d45a88f62d30111e9a696f5f5bc5fc58486 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.002361906757 51.184456775
0xda56b2c08382ba923164924375d35887a0f53158928757f40618379ca4470191Safe Transfer Fr...134394202022-04-15 5:55:19412 days 14 hrs ago0xea4ddc1921a322dae69458920e9c6a61d0a4f7aa IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.00557849827950.611477557
0xe14b9d5a4f2b0aa01441c7c2111d1c4e4406ce0f7dfe6830d718efa7d678dc19Set Approval For...134393762022-04-15 5:53:52412 days 14 hrs ago0x6403e7fe6a931fe35870f55be4d1e1ded12e25a1 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.002442124651 52.922844335
0x8062d2431bc2e1f1e54b6c602c2a6bb95b9acee551d9cb7cf4edb68f987eb8abSet Approval For...134328192022-04-15 2:13:13412 days 17 hrs ago0xdbc195a0ed72c0b059f8906e97a90636d2b6409f IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.002614556279 56.659579144
0x254fae27ac2575e34c6c613ce73a1b05491a7997105f8dccfeb1d11a8549ce64Set Approval For...134254752022-04-14 22:06:35412 days 21 hrs ago0x84dcf1030fc70fe873b65f5fb668a0e8e4763d48 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003779148969 81.897257982
0x5aae73efbdd418fe453c4e445cf83eb4652f5cd4015819fbac774e15dba153a0Set Approval For...134229732022-04-14 20:42:54412 days 23 hrs ago0x36e69e981102f778d0951fa6a77cfa678b18399e IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003328041675 72.121392906
0xdfe3e01ce18778c74e2976cd4992749e3cf658d6e14e21ee5118d4fc52946423Set Approval For...134226122022-04-14 20:30:49412 days 23 hrs ago0x5f91674855f8e8dc10fa7a333f8f031a6cc276b7 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003226387596 69.918465627
0xe25436a55af2eaff42f979072e16819761e2bf5e747f2be7265986ade195512eSet Approval For...134198802022-04-14 18:59:02413 days 1 hr ago0x5c33bc059eafa04a0ebb97088feec3a52623f65d IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003535310682 76.6130823
0x1fe778b66e11280be92c002c38b8b4d37a3eb8072aa4353e3a9e5b9e67cdfec1Set Approval For...134198372022-04-14 18:57:36413 days 1 hr ago0x9dc1eb2f96a03f4054e5fe2e80cf23c75d0fe93f IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003484729634 75.516949496
0x182a822aef0daad2052ba376728422240db882aa2f5faac5a4cc7e4f76508ef0Set Approval For...134198332022-04-14 18:57:28413 days 1 hr ago0x26548521f99d0709f615aa0f766a7df60f99250b IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.00342961067 74.322476331
0x3161c7bb33673703b536ee59466870135b20a8c29bb741d72b8a3a4c549cc275Set Approval For...134195772022-04-14 18:48:53413 days 1 hr ago0xdd426f2650b357cc337a755debbce82e51917d65 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003227626412 69.945311788
0x7671c6ef463512a2fd7e57bb877490efc04980bdbd4cae404becbfd15e7a62b3Set Approval For...134183382022-04-14 18:06:53413 days 1 hr ago0xc99ee029ebaeaf473ef69aef6633489d9ae53385 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.00443051211 96.012831525
0x076a4057b79383de10f4498c24792353fbed11fccaf658ec18ba944f15e2791dSet Approval For...134180712022-04-14 17:57:59413 days 2 hrs ago0xbe4feae32210f682a41e1c41e3eaf4f8204cd29e IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.004204965046 91.125041638
0x1710cc603c9803e0de503aa0ea6779cb2fe7550b0d8e754394052d73f50ac4c2Safe Transfer Fr...96772942022-01-17 5:19:23500 days 14 hrs ago0xc47f67138b1a237530b4c7583be6f4b23f12b15d IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.00697389 27.5
0x4f75c8186a407248b1e0936fa7889d4da91f4b2d9811238efd9fcca0a7e95ccdSafe Transfer Fr...92142242022-01-06 14:44:17511 days 5 hrs ago0xf5f08ba7f46e2a86b5ef3bfd56c2097c9f4276d7 IN  0x9ff1918d212c435ad1f1734e9c4dc2db835161af0 AVAX0.003865446 26
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x502d83de3e9ad7aeb73535578ec0b20ffb5eb97ff6c29e6931b9ce31aa50ca5886318342021-12-23 23:45:13524 days 20 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x21c934638a52b8dc298e64ab5f53a88ab3ae737add83487912b3c8eb6d8cc23586317692021-12-23 23:43:04524 days 20 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0xfbbbb8f17b46fac2d2deea6d967765c4e06108aeed2d880c8a960026a3d4888886284582021-12-23 21:59:07524 days 22 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x5c6a142a761bfe3aa6a843ac5b26989c61f56a035ae7f14162f51f4b5c5cd7a186278762021-12-23 21:40:32524 days 22 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x8108926855c656b6195d505de5aa6614bbe5552a084fde07d46a711283317f2086273522021-12-23 21:22:57524 days 22 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x95bb77db2c80f5b98b0b63e3a619f1522c301af955a69b1255521ae3d25280f486258802021-12-23 20:34:08524 days 23 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0xe26ff8f5adb8c037527dd3c27ffa0dc390ce0f0542053ade3f63f1cbad9c9c6586241952021-12-23 19:37:39525 days 25 mins ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0xde096d099952e33ee3c436a47ea877a47477f4442406477d8ac0d9160e2bfea486232612021-12-23 19:06:18525 days 57 mins ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x9225efaafd24bcab547fac79ff21b81830d90c69fbea345727f1b886938dcaa586216032021-12-23 18:10:22525 days 1 hr ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x9a4f0d91f8ae88c35a1bb6b4ca7294dc69956075f064ddd4ac754fed2c252cf886215372021-12-23 18:08:10525 days 1 hr ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x4d70ece63474fb31c85be7e4de4ecca16d94c7fdf74fa6e7e587307f4134dbe986214322021-12-23 18:04:40525 days 1 hr ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0xdcc6e7fb6f7a2f8c918147e5f8fd097446fee8fef91bf5245853cb0000a20d7086214002021-12-23 18:03:36525 days 1 hr ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0xf94b5bdfd4550331051ec837749e1112c8220c7cc18f18318da4d189b5d7622486213912021-12-23 18:03:19525 days 2 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x3df6ca432500dfcac51635a8772ce1a786ef823114c61b9252ad47feae01a55686206822021-12-23 17:40:13525 days 2 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x95696c9d8a4f53729b5266881d4865f34f55a32bff9734024bffb57204a568d386147242021-12-23 14:18:23525 days 5 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x21481aa1cfd7b96b6dd800dbf607e1a01e0e3eeeb234f32bb898a8cbc201db6f86140922021-12-23 13:56:57525 days 6 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x3cc370b379074d103a520c4d2bc536b14c9701fd9bd50fb7ce76ebc4f4b04cbe86065762021-12-23 9:42:40525 days 10 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0xb89cea91f66bef671a83ea9df670b51d3d415b55d9812e6586c722aa1c28274186061752021-12-23 9:28:54525 days 10 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x496c50b636c7f8335201172a18e43c0d3ee7b18e2b6c92188ec72c7ce475fef686051862021-12-23 8:55:19525 days 11 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0xb65020694fe7bea11a36d65d45398ce170a21aee7291fb1b369da86eae26e71086051722021-12-23 8:54:47525 days 11 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x75292828e1fffc8c070984b7fc96779a620a3a382171bed7d29a8b7afb05514386051082021-12-23 8:52:37525 days 11 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0xa9e8f9a75e276e296fb201f82dc013a52dfc58578f8d33b92aa1c1c91829c92786049662021-12-23 8:47:54525 days 11 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x2d87840aa5a7e1a59ca9c5936aca46ff484f2be0a49d911db75ec1ab567b637a86047282021-12-23 8:39:47525 days 11 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0xcf668982f25e903c338b5a0a0910c8748b7b905d30d98211197c9053a74d6e6186045832021-12-23 8:34:49525 days 11 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
0x87a16d68e82a38bc20696553742e36844231ca0f1ef9256dedbf08d7251aac7f86032762021-12-23 7:50:39525 days 12 hrs ago 0x9ff1918d212c435ad1f1734e9c4dc2db835161af Snowball: Treasury1 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SnowballNFTHolidayHat

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2022-03-17
*/

// SPDX-License-Identifier: MIT

    pragma solidity ^0.8.0;

    /**
    * @dev String operations.
    */
    library Strings {
        bytes16 private constant alphabet = "0123456789abcdef";

        /**
        * @dev Converts a `uint256` to its ASCII `string` decimal representation.
        */
        function toString(uint256 value) internal pure returns (string memory) {
            // Inspired by OraclizeAPI's implementation - MIT licence
            // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

            if (value == 0) {
                return "0";
            }
            uint256 temp = value;
            uint256 digits;
            while (temp != 0) {
                digits++;
                temp /= 10;
            }
            bytes memory buffer = new bytes(digits);
            while (value != 0) {
                digits -= 1;
                buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
                value /= 10;
            }
            return string(buffer);
        }

        /**
        * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
        */
        function toHexString(uint256 value) internal pure returns (string memory) {
            if (value == 0) {
                return "0x00";
            }
            uint256 temp = value;
            uint256 length = 0;
            while (temp != 0) {
                length++;
                temp >>= 8;
            }
            return toHexString(value, length);
        }

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

    }

    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/utils/EnumerableMap.sol




    pragma solidity ^0.8.0;

    /**
    * @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 EnumerableMap for EnumerableMap.UintToAddressMap;
    *
    *     // Declare a set state variable
    *     EnumerableMap.UintToAddressMap private myMap;
    * }
    * ```
    *
    * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
    * supported.
    */
    library EnumerableMap {
        // 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.
        // The Map implementation uses private functions, and user-facing
        // implementations (such as Uint256ToAddressMap) are just wrappers around
        // the underlying Map.
        // This means that we can only create new EnumerableMaps 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) private 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) private 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) private 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) private 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) private view returns (bytes32, bytes32) {
            require(map._entries.length > index, "EnumerableMap: index out of bounds");

            MapEntry storage entry = map._entries[index];
            return (entry._key, entry._value);
        }

        /**
        * @dev Tries to returns the value associated with `key`.  O(1).
        * Does not revert if `key` is not in the map.
        */
        function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
            uint256 keyIndex = map._indexes[key];
            if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
            return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
        }

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

        /**
        * @dev Same as {_get}, with a custom error message when `key` is not in the map.
        *
        * CAUTION: This function is deprecated because it requires allocating memory for the error
        * message unnecessarily. For custom revert reasons use {_tryGet}.
        */
        function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
            uint256 keyIndex = map._indexes[key];
            require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
            return map._entries[keyIndex - 1]._value; // All indexes are 1-based
        }

        // UintToAddressMap

        struct UintToAddressMap {
            Map _inner;
        }

        /**
        * @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(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
            return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
        }

        /**
        * @dev Removes a value from a set. O(1).
        *
        * Returns true if the key was removed from the map, that is if it was present.
        */
        function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
            return _remove(map._inner, bytes32(key));
        }

        /**
        * @dev Returns true if the key is in the map. O(1).
        */
        function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
            return _contains(map._inner, bytes32(key));
        }

        /**
        * @dev Returns the number of elements in the map. O(1).
        */
        function length(UintToAddressMap storage map) internal view returns (uint256) {
            return _length(map._inner);
        }

    /**
        * @dev Returns the element 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(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
            (bytes32 key, bytes32 value) = _at(map._inner, index);
            return (uint256(key), address(uint160(uint256(value))));
        }

        /**
        * @dev Tries to returns the value associated with `key`.  O(1).
        * Does not revert if `key` is not in the map.
        *
        * _Available since v3.4._
        */
        function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
            (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
            return (success, address(uint160(uint256(value))));
        }

        /**
        * @dev Returns the value associated with `key`.  O(1).
        *
        * Requirements:
        *
        * - `key` must be in the map.
        */
        function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
            return address(uint160(uint256(_get(map._inner, bytes32(key)))));
        }

        /**
        * @dev Same as {get}, with a custom error message when `key` is not in the map.
        *
        * CAUTION: This function is deprecated because it requires allocating memory for the error
        * message unnecessarily. For custom revert reasons use {tryGet}.
        */
        function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
            return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
        }
    }

    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/utils/EnumerableSet.sol




    pragma solidity ^0.8.0;

    /**
    * @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 EnumerableSet for EnumerableSet.AddressSet;
    *
    *     // Declare a set state variable
    *     EnumerableSet.AddressSet private mySet;
    * }
    * ```
    *
    * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
    * and `uint256` (`UintSet`) are supported.
    */
    library EnumerableSet {
        // 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.
        // The Set implementation uses private functions, and user-facing
        // implementations (such as AddressSet) are just wrappers around the
        // underlying Set.
        // 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) private 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) private 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) private view returns (bool) {
            return set._indexes[value] != 0;
        }

        /**
        * @dev Returns the number of values on the set. O(1).
        */
        function _length(Set storage set) private 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) private view returns (bytes32) {
            require(set._values.length > index, "EnumerableSet: index out of bounds");
            return set._values[index];
        }

        // Bytes32Set

        struct Bytes32Set {
            Set _inner;
        }

        /**
        * @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(Bytes32Set storage set, bytes32 value) internal returns (bool) {
            return _add(set._inner, value);
        }

        /**
        * @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(Bytes32Set storage set, bytes32 value) internal returns (bool) {
            return _remove(set._inner, value);
        }

        /**
        * @dev Returns true if the value is in the set. O(1).
        */
        function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
            return _contains(set._inner, value);
        }

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

    /**
        * @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(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
            return _at(set._inner, index);
        }

        // AddressSet

        struct AddressSet {
            Set _inner;
        }

        /**
        * @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(AddressSet storage set, address value) internal returns (bool) {
            return _add(set._inner, bytes32(uint256(uint160(value))));
        }

        /**
        * @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(AddressSet storage set, address value) internal returns (bool) {
            return _remove(set._inner, bytes32(uint256(uint160(value))));
        }

        /**
        * @dev Returns true if the value is in the set. O(1).
        */
        function contains(AddressSet storage set, address value) internal view returns (bool) {
            return _contains(set._inner, bytes32(uint256(uint160(value))));
        }

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

    /**
        * @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(AddressSet storage set, uint256 index) internal view returns (address) {
            return address(uint160(uint256(_at(set._inner, index))));
        }


        // UintSet

        struct UintSet {
            Set _inner;
        }

        /**
        * @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(UintSet storage set, uint256 value) internal returns (bool) {
            return _add(set._inner, bytes32(value));
        }

        /**
        * @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(UintSet storage set, uint256 value) internal returns (bool) {
            return _remove(set._inner, bytes32(value));
        }

        /**
        * @dev Returns true if the value is in the set. O(1).
        */
        function contains(UintSet storage set, uint256 value) internal view returns (bool) {
            return _contains(set._inner, bytes32(value));
        }

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

    /**
        * @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(UintSet storage set, uint256 index) internal view returns (uint256) {
            return uint256(_at(set._inner, index));
        }
    }

    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/utils/Address.sol




    pragma solidity ^0.8.0;

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

            uint256 size;
            // 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: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/introspection/ERC165.sol


    pragma solidity ^0.8.0;

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

    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol


    pragma solidity ^0.8.0;


    /**
    * @dev Implementation of the {IERC165} interface.
    *
    * Contracts may inherit from this and call {_registerInterface} to declare
    * their support of an interface.
    */
    abstract contract ERC165 is IERC165 {
        /**
        * @dev Mapping of interface ids to whether or not it's supported.
        */
        mapping(bytes4 => bool) private _supportedInterfaces;

        constructor () {
            // Derived contracts need only register support for their own interfaces,
            // we register support for ERC165 itself here
            _registerInterface(type(IERC165).interfaceId);
        }

        /**
        * @dev See {IERC165-supportsInterface}.
        *
        * Time complexity O(1), guaranteed to always use less than 30 000 gas.
        */
        function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
            return _supportedInterfaces[interfaceId];
        }

        /**
        * @dev Registers the contract as an implementer of the interface defined by
        * `interfaceId`. Support of the actual ERC165 interface is automatic and
        * registering its interface id is not required.
        *
        * See {IERC165-supportsInterface}.
        *
        * Requirements:
        *
        * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
        */
        function _registerInterface(bytes4 interfaceId) internal virtual {
            require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
            _supportedInterfaces[interfaceId] = true;
        }
    }

    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC721/IERC721Receiver.sol




    pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

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

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

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


    pragma solidity ^0.8.0;

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

    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC721/IERC721Enumerable.sol




    pragma solidity ^0.8.0;


    /**
    * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
    * @dev See https://eips.ethereum.org/EIPS/eip-721
    */
    interface IERC721Enumerable is IERC721 {

        /**
        * @dev Returns the total amount of tokens stored by the contract.
        */
        function totalSupply() external view returns (uint256);

        /**
        * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
        * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
        */
        function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

        /**
        * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
        * Use along with {totalSupply} to enumerate all tokens.
        */
        function tokenByIndex(uint256 index) external view returns (uint256);
    }

    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC721/IERC721Metadata.sol




    pragma solidity ^0.8.0;


    /**
    * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
    * @dev See https://eips.ethereum.org/EIPS/eip-721
    */
    interface IERC721Metadata is IERC721 {

        /**
        * @dev Returns the token collection name.
        */
        function name() external view returns (string memory);

        /**
        * @dev Returns the token collection symbol.
        */
        function symbol() external view returns (string memory);

        /**
        * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
        */
        function tokenURI(uint256 tokenId) external view returns (string memory);
    }

    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/introspection/IERC165.sol



    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/utils/Context.sol




    pragma solidity ^0.8.0;

    /*
    * @dev Provides information about the current execution context, including the
    * sender of the transaction and its data. While these are generally available
    * via msg.sender and msg.data, they should not be accessed in such a direct
    * manner, since when dealing with 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) {
            return msg.sender;
        }

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



    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol




    pragma solidity ^0.8.0;











    /**
    * @title ERC721 Non-Fungible Token Standard basic implementation
    * @dev see https://eips.ethereum.org/EIPS/eip-721
    */
    contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
        using Address for address;
        using EnumerableSet for EnumerableSet.UintSet;
        using EnumerableMap for EnumerableMap.UintToAddressMap;
        using Strings for uint256;

        // Mapping from holder address to their (enumerable) set of owned tokens
        mapping (address => EnumerableSet.UintSet) private _holderTokens;


        // Enumerable mapping from token ids to their owners
        EnumerableMap.UintToAddressMap private _tokenOwners;

        // Mapping from token ID to approved address
        mapping (uint256 => address) private _tokenApprovals;

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

        // Token name
        string private _name;

        // Token symbol
        string private _symbol;

        // Optional mapping for token URIs
        mapping (uint256 => string) private _tokenURIs;

        // Base URI
        string private _baseURI;

        /**
        * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
        */
        constructor (string memory name_, string memory symbol_) {
            _name = name_;
            _symbol = symbol_;

            // register the supported interfaces to conform to ERC721 via ERC165
            _registerInterface(type(IERC721).interfaceId);
            _registerInterface(type(IERC721Metadata).interfaceId);
            _registerInterface(type(IERC721Enumerable).interfaceId);
        }

        /**
        * @dev See {IERC721-balanceOf}.
        */
        function balanceOf(address owner) public view virtual override returns (uint256) {
            require(owner != address(0), "ERC721: balance query for the zero address");
            return _holderTokens[owner].length();
        }




        /**
        * @dev See {IERC721-ownerOf}.
        */
        function ownerOf(uint256 tokenId) public view virtual override returns (address) {
            return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
        }

        /**
        * @dev See {IERC721Metadata-name}.
        */
        function name() public view virtual override returns (string memory) {
            return _name;
        }

        /**
        * @dev See {IERC721Metadata-symbol}.
        */
        function symbol() public view virtual override returns (string memory) {
            return _symbol;
        }

        /**
        * @dev See {IERC721Metadata-tokenURI}.
        */
        function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
            require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

            string memory _tokenURI = _tokenURIs[tokenId];
            string memory base = baseURI();

            // If there is no base URI, return the token URI.
            if (bytes(base).length == 0) {
                return _tokenURI;
            }
            // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
            if (bytes(_tokenURI).length > 0) {
                return string(abi.encodePacked(base, _tokenURI));
            }
            // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
            return string(abi.encodePacked(base, tokenId.toString()));
        }

        /**
        * @dev Returns the base URI set via {_setBaseURI}. This will be
        * automatically added as a prefix in {tokenURI} to each token's URI, or
        * to the token ID if no specific URI is set for that token ID.
        */
        function baseURI() public view virtual returns (string memory) {
            return _baseURI;
        }

        /**
        * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
        */
        function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
            return _holderTokens[owner].at(index);
        }

        /**
        * @dev See {IERC721Enumerable-totalSupply}.
        */
        function totalSupply() public view virtual override returns (uint256) {
            // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
            return _tokenOwners.length();
        }

        /**
        * @dev See {IERC721Enumerable-tokenByIndex}.
        */
        function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
            (uint256 tokenId, ) = _tokenOwners.at(index);
            return tokenId;
        }

        /**
        * @dev See {IERC721-approve}.
        */
        function approve(address to, uint256 tokenId) public virtual override {
            address owner = ERC721.ownerOf(tokenId);
            require(to != owner, "ERC721: approval to current owner");

            require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()),
                "ERC721: approve caller is not owner nor approved for all"
            );

            _approve(to, tokenId);
        }

        /**
        * @dev See {IERC721-getApproved}.
        */
        function getApproved(uint256 tokenId) public view virtual override returns (address) {
            require(_exists(tokenId), "ERC721: approved query for nonexistent token");

            return _tokenApprovals[tokenId];
        }

        /**
        * @dev See {IERC721-setApprovalForAll}.
        */
        function setApprovalForAll(address operator, bool approved) public virtual override {
            require(operator != _msgSender(), "ERC721: approve to caller");

            _operatorApprovals[_msgSender()][operator] = approved;
            emit ApprovalForAll(_msgSender(), operator, approved);
        }

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

        /**
        * @dev See {IERC721-transferFrom}.
        */
        function transferFrom(address from, address to, uint256 tokenId) public virtual override {
            //solhint-disable-next-line max-line-length
            require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

            _transfer(from, to, tokenId);
        }

        /**
        * @dev See {IERC721-safeTransferFrom}.
        */
        function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
            safeTransferFrom(from, to, tokenId, "");
        }

        /**
        * @dev See {IERC721-safeTransferFrom}.
        */
        function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
            require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
            _safeTransfer(from, to, tokenId, _data);
        }

        /**
        * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
        * are aware of the ERC721 protocol to prevent tokens from being forever locked.
        *
        * `_data` is additional data, it has no specified format and it is sent in call to `to`.
        *
        * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
        * implement alternative mechanisms to perform token transfer, such as signature-based.
        *
        * Requirements:
        *
        * - `from` cannot be the zero address.
        * - `to` cannot be the zero address.
        * - `tokenId` token must exist and be owned by `from`.
        * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
        *
        * Emits a {Transfer} event.
        */
        function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
            _transfer(from, to, tokenId);
            require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
        }

        /**
        * @dev Returns whether `tokenId` exists.
        *
        * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
        *
        * Tokens start existing when they are minted (`_mint`),
        * and stop existing when they are burned (`_burn`).
        */
        function _exists(uint256 tokenId) internal view virtual returns (bool) {
            return _tokenOwners.contains(tokenId);
        }

        /**
        * @dev Returns whether `spender` is allowed to manage `tokenId`.
        *
        * Requirements:
        *
        * - `tokenId` must exist.
        */
        function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
            require(_exists(tokenId), "ERC721: operator query for nonexistent token");
            address owner = ERC721.ownerOf(tokenId);
            return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender));
        }

        /**
        * @dev Safely mints `tokenId` and transfers it to `to`.
        *
        * Requirements:
        d*
        * - `tokenId` must not exist.
        * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
        *
        * Emits a {Transfer} event.
        */
        function _safeMint(address to, uint256 tokenId) internal virtual {
            _safeMint(to, tokenId, "");
        }

        /**
        * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
        * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
        */
        function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
            _mint(to, tokenId);
            require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
        }

        /**
        * @dev Mints `tokenId` and transfers it to `to`.
        *
        * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
        *
        * Requirements:
        *
        * - `tokenId` must not exist.
        * - `to` cannot be the zero address.
        *
        * Emits a {Transfer} event.
        */
        function _mint(address to, uint256 tokenId) internal virtual {
            require(to != address(0), "ERC721: mint to the zero address");
            require(!_exists(tokenId), "ERC721: token already minted");

            _beforeTokenTransfer(address(0), to, tokenId);

            _holderTokens[to].add(tokenId);

            _tokenOwners.set(tokenId, to);

            emit Transfer(address(0), to, tokenId);
        }

        /**
        * @dev Destroys `tokenId`.
        * The approval is cleared when the token is burned.
        *
        * Requirements:
        *
        * - `tokenId` must exist.
        *
        * Emits a {Transfer} event.
        */
        function _burn(uint256 tokenId) internal virtual {
            address owner = ERC721.ownerOf(tokenId); // internal owner

            _beforeTokenTransfer(owner, address(0), tokenId);

            // Clear approvals
            _approve(address(0), tokenId);

            // Clear metadata (if any)
            if (bytes(_tokenURIs[tokenId]).length != 0) {
                delete _tokenURIs[tokenId];
            }

            _holderTokens[owner].remove(tokenId);

            _tokenOwners.remove(tokenId);

            emit Transfer(owner, address(0), tokenId);
        }

        /**
        * @dev Transfers `tokenId` from `from` to `to`.
        *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
        *
        * Requirements:
        *
        * - `to` cannot be the zero address.
        * - `tokenId` token must be owned by `from`.
        *
        * Emits a {Transfer} event.
        */
        function _transfer(address from, address to, uint256 tokenId) internal virtual {
            require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner
            require(to != address(0), "ERC721: transfer to the zero address");

            _beforeTokenTransfer(from, to, tokenId);

            // Clear approvals from the previous owner
            _approve(address(0), tokenId);

            _holderTokens[from].remove(tokenId);
            _holderTokens[to].add(tokenId);

            _tokenOwners.set(tokenId, to);
            emit Transfer(from, to, tokenId);
        }

        /**
        * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
        *
        * Requirements:
        *
        * - `tokenId` must exist.
        */
        function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
            require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
            _tokenURIs[tokenId] = _tokenURI;
        }

        /**
        * @dev Internal function to set the base URI for all token IDs. It is
        * automatically added as a prefix to the value returned in {tokenURI},
        * or to the token ID if {tokenURI} is empty.
        */
        function _setBaseURI(string memory baseURI_) internal virtual {
            _baseURI = baseURI_;
        }

        /**
        * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
        * The call is not executed if the target address is not a contract.
        *
        * @param from address representing the previous owner of the given token ID
        * @param to target address that will receive the tokens
        * @param tokenId uint256 ID of the token to be transferred
        * @param _data bytes optional data to send along with the call
        * @return bool whether the call correctly returned the expected magic value
        */
        function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
            private returns (bool)
        {
            if (to.isContract()) {
                try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                    return retval == IERC721Receiver(to).onERC721Received.selector;
                } catch (bytes memory reason) {
                    if (reason.length == 0) {
                        revert("ERC721: transfer to non ERC721Receiver implementer");
                    } else {
                        // solhint-disable-next-line no-inline-assembly
                        assembly {
                            revert(add(32, reason), mload(reason))
                        }
                    }
                }
            } else {
                return true;
            }
        }

        function _approve(address to, uint256 tokenId) private {
            _tokenApprovals[tokenId] = to;
            emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
        }

        /**
        * @dev Hook that is called before any token transfer. This includes minting
        * and burning.
        *
        * Calling conditions:
        *
        * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
        * transferred to `to`.
        * - When `from` is zero, `tokenId` will be minted for `to`.
        * - When `to` is zero, ``from``'s `tokenId` will be burned.
        * - `from` cannot be the zero address.
        * - `to` cannot be the zero address.
        *
        * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
        */
        function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
    }



    // File: http://github.com/OpenZeppelin/openzeppelin-contracts/contracts/access/Ownable.sol




    pragma solidity ^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 () {
            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: https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/utils/math/SafeMath.sol




    pragma solidity ^0.8.0;

    // CAUTION
    // This version of SafeMath should only be used with Solidity 0.8 or later,
    // because it relies on the compiler's built in overflow checks.

    /**
    * @dev Wrappers over Solidity's arithmetic operations.
    *
    * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
    * now has built in overflow checking.
    */
    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) {
            unchecked {
                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) {
            unchecked {
                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) {
            unchecked {
                // 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) {
            unchecked {
                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) {
            unchecked {
                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) {
            return a + b;
        }

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

        /**
        * @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.
        *
        * Requirements:
        *
        * - The divisor cannot be zero.
        */
        function div(uint256 a, uint256 b) internal pure returns (uint256) {
            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) {
            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) {
            unchecked {
                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.
        *
        * 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).
        *
        * 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) {
            unchecked {
                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) {
            unchecked {
                require(b > 0, errorMessage);
                return a % b;
            }
        }
    }



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


    pragma solidity ^0.8.0;

    /**
    * @title Counters
    * @author Matt Condon (@shrugs)
    * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
    * of elements in a mapping, issuing ERC721 ids, or counting request ids.
    *
    * Include with `using Counters for Counters.Counter;`
    */
    library Counters {
        struct Counter {
            // This variable should never be directly accessed by users of the library: interactions must be restricted to
            // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
            // this feature: see https://github.com/ethereum/solidity/issues/4637
            uint256 _value; // default: 0
        }

        function current(Counter storage counter) internal view returns (uint256) {
            return counter._value;
        }

        function increment(Counter storage counter) internal {
            unchecked {
                counter._value += 1;
            }
        }

        function decrement(Counter storage counter) internal {
            uint256 value = counter._value;
            require(value > 0, "Counter: decrement overflow");
            unchecked {
                counter._value = value - 1;
            }
        }
    }


    contract SnowballNFTHolidayHat is ERC721, Ownable{
        using Counters for Counters.Counter;
        Counters.Counter public _tokenIds;

        string public constant URI = "ipfs://bafybeic56pyf5vehkfhpbh3jitkxbvp75hbcxeca224qw2u34lcedkhacm";
        uint public constant PRICE = 1000000000000000000; // 1 AVAX
        uint public constant SALE_DURATION = 86400; // 24 hours in seconds
        
        uint public _sale_start_time;

        address public _feeAddress = 0x294aB3200ef36200db84C4128b7f1b4eec71E38a; // Snowball Treasury
        address payable _feeReceiver;
        mapping (address => uint8) private _mintCounts;

        constructor() ERC721("Snowball NFT Holiday Hat", "SNOBNFTHOLIDAYHAT") {
            _feeReceiver = payable(_feeAddress);
        }

        function saleLive() public view returns (bool) {
            bool sale = _sale_start_time != 0 && _sale_start_time <= block.timestamp && _sale_start_time + SALE_DURATION >= block.timestamp;

            return sale;
        }
        
        function tokensOfOwner(address _owner) external view returns(uint256[] memory ) {
            uint256 tokenCount = balanceOf(_owner);
            if (tokenCount == 0) {
                // Return an empty array
                return new uint256[](0);
            } else {
                uint256[] memory result = new uint256[](tokenCount);
                uint256 index;
                for (index = 0; index < tokenCount; index++) {
                    result[index] = tokenOfOwnerByIndex(_owner, index);
                }
                return result;
            }
        }

        function mint(address to) public payable{
            require(_sale_start_time > 0, "sale has not yet begun!");
            require(_sale_start_time <= block.timestamp, "sale has not yet begun!");
            require( _sale_start_time + SALE_DURATION >= block.timestamp, "sale has ended!");
            require(msg.value >= PRICE, "must pay the full price!");

            if (msg.value > 0) {
                _feeReceiver.transfer(msg.value);
            }

            uint256 newItemId = _tokenIds.current();
            _mint(to, newItemId);
            _tokenIds.increment();
            _mintCounts[to] = _mintCounts[to] + 1;
            _setTokenURI(newItemId, URI);
        }

        function ownerMint(address to) public onlyOwner {
            uint256 newItemId = _tokenIds.current();
            _mint(to, newItemId);
            _tokenIds.increment();
            _mintCounts[to] = _mintCounts[to] + 1;
            _setTokenURI(newItemId, URI);
        }

        function updateFeeAddress(address addr) public onlyOwner{
            _feeAddress = addr;
            _feeReceiver = payable(_feeAddress);
        }
        
        function setBaseURI(string memory baseURI) public onlyOwner {
            _setBaseURI(baseURI);
        }

        function startSale(uint time) public onlyOwner {
            _sale_start_time = time;
        }
    }

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sale_start_time","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenIds","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"updateFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600d80546001600160a01b03191673294ab3200ef36200db84c4128b7f1b4eec71e38a1790553480156200003757600080fd5b506040518060400160405280601881526020017f536e6f7762616c6c204e465420486f6c696461792048617400000000000000008152506040518060400160405280601181526020017014d393d09391951213d312511056521055607a1b815250620000b06301ffc9a760e01b6200017f60201b60201c565b8151620000c590600690602085019062000203565b508051620000db90600790602084019062000203565b50620000ee6380ac58cd60e01b6200017f565b62000100635b5e139f60e01b6200017f565b6200011263780e9d6360e01b6200017f565b5050600a80546001600160a01b0319163390811790915560405181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600d54600e80546001600160a01b0319166001600160a01b03909216919091179055620002e6565b6001600160e01b03198082161415620001de5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640160405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b8280546200021190620002a9565b90600052602060002090601f01602090048101928262000235576000855562000280565b82601f106200025057805160ff191683800117855562000280565b8280016001018555821562000280579182015b828111156200028057825182559160200191906001019062000263565b506200028e92915062000292565b5090565b5b808211156200028e576000815560010162000293565b600181811c90821680620002be57607f821691505b60208210811415620002e057634e487b7160e01b600052602260045260246000fd5b50919050565b6123c280620002f66000396000f3fe6080604052600436106101ee5760003560e01c80636c0360eb1161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd1461057d578063e081b7811461059d578063e985e9c5146105b2578063f2fde38b146105fb578063fbaed1421461061b57600080fd5b8063a22cb46514610506578063aa46a40014610526578063b88d4fde1461053d578063bbcaac381461055d57600080fd5b80638462151c116100dc5780638462151c1461048a5780638d859f3e146104b75780638da5cb5b146104d357806395d89b41146104f157600080fd5b80636c0360eb146104295780636d79207c1461043e57806370a0823114610455578063715018a61461047557600080fd5b80631e3bcc8e116101855780634f6ccce7116101545780634f6ccce7146103b657806355f804b3146103d65780636352211e146103f65780636a6278421461041657600080fd5b80631e3bcc8e1461033657806323b872dd146103565780632f745c591461037657806342842e0e1461039657600080fd5b8063095ea7b3116101c1578063095ea7b3146102bc5780630e3ab61d146102de5780631141d7de146102fe57806318160ddd1461031357600080fd5b80630135f740146101f357806301ffc9a71461023057806306fdde031461027a578063081812fc1461029c575b600080fd5b3480156101ff57600080fd5b50600d54610213906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561023c57600080fd5b5061026a61024b366004611f42565b6001600160e01b03191660009081526020819052604090205460ff1690565b6040519015158152602001610227565b34801561028657600080fd5b5061028f610631565b60405161022791906120ba565b3480156102a857600080fd5b506102136102b7366004611fc5565b6106c3565b3480156102c857600080fd5b506102dc6102d7366004611f18565b610750565b005b3480156102ea57600080fd5b506102dc6102f9366004611fc5565b610866565b34801561030a57600080fd5b5061028f610895565b34801561031f57600080fd5b506103286108b1565b604051908152602001610227565b34801561034257600080fd5b506102dc610351366004611dd6565b6108c2565b34801561036257600080fd5b506102dc610371366004611e24565b61099b565b34801561038257600080fd5b50610328610391366004611f18565b6109cc565b3480156103a257600080fd5b506102dc6103b1366004611e24565b6109f7565b3480156103c257600080fd5b506103286103d1366004611fc5565b610a12565b3480156103e257600080fd5b506102dc6103f1366004611f7c565b610a28565b34801561040257600080fd5b50610213610411366004611fc5565b610a5e565b6102dc610424366004611dd6565b610a86565b34801561043557600080fd5b5061028f610c13565b34801561044a57600080fd5b506103286201518081565b34801561046157600080fd5b50610328610470366004611dd6565b610c22565b34801561048157600080fd5b506102dc610cae565b34801561049657600080fd5b506104aa6104a5366004611dd6565b610d22565b6040516102279190612076565b3480156104c357600080fd5b50610328670de0b6b3a764000081565b3480156104df57600080fd5b50600a546001600160a01b0316610213565b3480156104fd57600080fd5b5061028f610ddd565b34801561051257600080fd5b506102dc610521366004611edc565b610dec565b34801561053257600080fd5b50600b546103289081565b34801561054957600080fd5b506102dc610558366004611e60565b610eb1565b34801561056957600080fd5b506102dc610578366004611dd6565b610ee9565b34801561058957600080fd5b5061028f610598366004611fc5565b610f3f565b3480156105a957600080fd5b5061026a6110b1565b3480156105be57600080fd5b5061026a6105cd366004611df1565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561060757600080fd5b506102dc610616366004611dd6565b6110ea565b34801561062757600080fd5b50610328600c5481565b60606006805461064090612239565b80601f016020809104026020016040519081016040528092919081815260200182805461066c90612239565b80156106b95780601f1061068e576101008083540402835291602001916106b9565b820191906000526020600020905b81548152906001019060200180831161069c57829003601f168201915b5050505050905090565b60006106ce826111d5565b6107345760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061075b82610a5e565b9050806001600160a01b0316836001600160a01b031614156107c95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161072b565b336001600160a01b03821614806107e557506107e581336105cd565b6108575760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161072b565b61086183836111e2565b505050565b600a546001600160a01b031633146108905760405162461bcd60e51b815260040161072b9061211f565b600c55565b6040518060800160405280604281526020016123226042913981565b60006108bd6002611250565b905090565b600a546001600160a01b031633146108ec5760405162461bcd60e51b815260040161072b9061211f565b60006108f7600b5490565b9050610903828261125a565b610911600b80546001019055565b6001600160a01b0382166000908152600f60205260409020546109389060ff1660016121bd565b600f6000846001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff1602179055506109978160405180608001604052806042815260200161232260429139611372565b5050565b6109a533826113fb565b6109c15760405162461bcd60e51b815260040161072b90612154565b6108618383836114e5565b6001600160a01b03821660009081526001602052604081206109ee9083611666565b90505b92915050565b61086183838360405180602001604052806000815250610eb1565b600080610a20600284611672565b509392505050565b600a546001600160a01b03163314610a525760405162461bcd60e51b815260040161072b9061211f565b610a5b8161168e565b50565b60006109f18260405180606001604052806029815260200161236460299139600291906116a1565b6000600c5411610ad25760405162461bcd60e51b815260206004820152601760248201527673616c6520686173206e6f742079657420626567756e2160481b604482015260640161072b565b42600c541115610b1e5760405162461bcd60e51b815260206004820152601760248201527673616c6520686173206e6f742079657420626567756e2160481b604482015260640161072b565b4262015180600c54610b3091906121a5565b1015610b705760405162461bcd60e51b815260206004820152600f60248201526e73616c652068617320656e6465642160881b604482015260640161072b565b670de0b6b3a7640000341015610bc85760405162461bcd60e51b815260206004820152601860248201527f6d75737420706179207468652066756c6c207072696365210000000000000000604482015260640161072b565b34156108ec57600e546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610c07573d6000803e3d6000fd5b5060006108f7600b5490565b60606009805461064090612239565b60006001600160a01b038216610c8d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161072b565b6001600160a01b03821660009081526001602052604090206109f190611250565b600a546001600160a01b03163314610cd85760405162461bcd60e51b815260040161072b9061211f565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b60606000610d2f83610c22565b905080610d4c576040805160008082526020820190925290610a20565b60008167ffffffffffffffff811115610d6757610d676122f5565b604051908082528060200260200182016040528015610d90578160200160208202803683370190505b50905060005b82811015610a2057610da885826109cc565b828281518110610dba57610dba6122df565b602090810291909101015280610dcf8161226e565b915050610d96565b50919050565b60606007805461064090612239565b6001600160a01b038216331415610e455760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161072b565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610ebb33836113fb565b610ed75760405162461bcd60e51b815260040161072b90612154565b610ee3848484846116b8565b50505050565b600a546001600160a01b03163314610f135760405162461bcd60e51b815260040161072b9061211f565b600d80546001600160a01b039092166001600160a01b03199283168117909155600e8054909216179055565b6060610f4a826111d5565b610fae5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161072b565b60008281526008602052604081208054610fc790612239565b80601f0160208091040260200160405190810160405280929190818152602001828054610ff390612239565b80156110405780601f1061101557610100808354040283529160200191611040565b820191906000526020600020905b81548152906001019060200180831161102357829003601f168201915b505050505090506000611051610c13565b9050805160001415611064575092915050565b81511561109657808260405160200161107e92919061200a565b60405160208183030381529060405292505050919050565b806110a0856116eb565b60405160200161107e92919061200a565b600080600c546000141580156110c9575042600c5411155b80156109f157504262015180600c546110e291906121a5565b101592915050565b600a546001600160a01b031633146111145760405162461bcd60e51b815260040161072b9061211f565b6001600160a01b0381166111795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161072b565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006109f16002836117e9565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061121782610a5e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006109f1825490565b6001600160a01b0382166112b05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161072b565b6112b9816111d5565b156113065760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161072b565b6001600160a01b03821660009081526001602052604090206113289082611801565b506113356002828461180d565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61137b826111d5565b6113dc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161072b565b6000828152600860209081526040909120825161086192840190611cab565b6000611406826111d5565b6114675760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161072b565b600061147283610a5e565b9050806001600160a01b0316846001600160a01b031614806114ad5750836001600160a01b03166114a2846106c3565b6001600160a01b0316145b806114dd57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166114f882610a5e565b6001600160a01b0316146115605760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161072b565b6001600160a01b0382166115c25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161072b565b6115cd6000826111e2565b6001600160a01b03831660009081526001602052604090206115ef9082611823565b506001600160a01b03821660009081526001602052604090206116129082611801565b5061161f6002828461180d565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006109ee838361182f565b600080808061168186866118b5565b9097909650945050505050565b8051610997906009906020840190611cab565b60006116ae848484611952565b90505b9392505050565b6116c38484846114e5565b6116cf848484846119bb565b610ee35760405162461bcd60e51b815260040161072b906120cd565b60608161170f5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561173957806117238161226e565b91506117329050600a836121e2565b9150611713565b60008167ffffffffffffffff811115611754576117546122f5565b6040519080825280601f01601f19166020018201604052801561177e576020820181803683370190505b5090505b84156114dd576117936001836121f6565b91506117a0600a86612289565b6117ab9060306121a5565b60f81b8183815181106117c0576117c06122df565b60200101906001600160f81b031916908160001a9053506117e2600a866121e2565b9450611782565b600081815260018301602052604081205415156109ee565b60006109ee8383611ac8565b60006116ae84846001600160a01b038516611b17565b60006109ee8383611bb8565b8154600090821061188d5760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161072b565b8260000182815481106118a2576118a26122df565b9060005260206000200154905092915050565b8154600090819083106119155760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161072b565b600084600001848154811061192c5761192c6122df565b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816119825760405162461bcd60e51b815260040161072b91906120ba565b508461198f6001836121f6565b8154811061199f5761199f6122df565b9060005260206000209060020201600101549150509392505050565b60006001600160a01b0384163b15611abd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119ff903390899088908890600401612039565b602060405180830381600087803b158015611a1957600080fd5b505af1925050508015611a49575060408051601f3d908101601f19168201909252611a4691810190611f5f565b60015b611aa3573d808015611a77576040519150601f19603f3d011682016040523d82523d6000602084013e611a7c565b606091505b508051611a9b5760405162461bcd60e51b815260040161072b906120cd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506114dd565b506001949350505050565b6000818152600183016020526040812054611b0f575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109f1565b5060006109f1565b600082815260018401602052604081205480611b7c5750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556116b1565b8285611b896001846121f6565b81548110611b9957611b996122df565b90600052602060002090600202016001018190555060009150506116b1565b60008181526001830160205260408120548015611ca1576000611bdc6001836121f6565b8554909150600090611bf0906001906121f6565b90506000866000018281548110611c0957611c096122df565b9060005260206000200154905080876000018481548110611c2c57611c2c6122df565b600091825260209091200155611c438360016121a5565b60008281526001890160205260409020558654879080611c6557611c656122c9565b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506109f1565b60009150506109f1565b828054611cb790612239565b90600052602060002090601f016020900481019282611cd95760008555611d1f565b82601f10611cf257805160ff1916838001178555611d1f565b82800160010185558215611d1f579182015b82811115611d1f578251825591602001919060010190611d04565b50611d2b929150611d2f565b5090565b5b80821115611d2b5760008155600101611d30565b600067ffffffffffffffff80841115611d5f57611d5f6122f5565b604051601f8501601f19908116603f01168101908282118183101715611d8757611d876122f5565b81604052809350858152868686011115611da057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611dd157600080fd5b919050565b600060208284031215611de857600080fd5b6109ee82611dba565b60008060408385031215611e0457600080fd5b611e0d83611dba565b9150611e1b60208401611dba565b90509250929050565b600080600060608486031215611e3957600080fd5b611e4284611dba565b9250611e5060208501611dba565b9150604084013590509250925092565b60008060008060808587031215611e7657600080fd5b611e7f85611dba565b9350611e8d60208601611dba565b925060408501359150606085013567ffffffffffffffff811115611eb057600080fd5b8501601f81018713611ec157600080fd5b611ed087823560208401611d44565b91505092959194509250565b60008060408385031215611eef57600080fd5b611ef883611dba565b915060208301358015158114611f0d57600080fd5b809150509250929050565b60008060408385031215611f2b57600080fd5b611f3483611dba565b946020939093013593505050565b600060208284031215611f5457600080fd5b81356116b18161230b565b600060208284031215611f7157600080fd5b81516116b18161230b565b600060208284031215611f8e57600080fd5b813567ffffffffffffffff811115611fa557600080fd5b8201601f81018413611fb657600080fd5b6114dd84823560208401611d44565b600060208284031215611fd757600080fd5b5035919050565b60008151808452611ff681602086016020860161220d565b601f01601f19169290920160200192915050565b6000835161201c81846020880161220d565b83519083019061203081836020880161220d565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061206c90830184611fde565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156120ae57835183529284019291840191600101612092565b50909695505050505050565b6020815260006109ee6020830184611fde565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156121b8576121b861229d565b500190565b600060ff821660ff84168060ff038211156121da576121da61229d565b019392505050565b6000826121f1576121f16122b3565b500490565b6000828210156122085761220861229d565b500390565b60005b83811015612228578181015183820152602001612210565b83811115610ee35750506000910152565b600181811c9082168061224d57607f821691505b60208210811415610dd757634e487b7160e01b600052602260045260246000fd5b60006000198214156122825761228261229d565b5060010190565b600082612298576122986122b3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610a5b57600080fdfe697066733a2f2f62616679626569633536707966357665686b6668706268336a69746b786276703735686263786563613232347177327533346c6365646b6861636d4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220c618dd7e97d6e98062d9219ad69995deaa7728ef8de4408fd093ba69c816faa764736f6c63430008070033

Deployed ByteCode Sourcemap

73055:3050:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73511:71;;;;;;;;;;-1:-1:-1;73511:71:0;;;;-1:-1:-1;;;;;73511:71:0;;;;;;-1:-1:-1;;;;;4944:32:1;;;4926:51;;4914:2;4899:18;73511:71:0;;;;;;;;34447:158;;;;;;;;;;-1:-1:-1;34447:158:0;;;;;:::i;:::-;-1:-1:-1;;;;;;34560:33:0;34532:4;34560:33;;;;;;;;;;;;;;34447:158;;;;6283:14:1;;6276:22;6258:41;;6246:2;6231:18;34447:158:0;6118:187:1;47048:108:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;50096:233::-;;;;;;;;;;-1:-1:-1;50096:233:0;;;;;:::i;:::-;;:::i;49584:432::-;;;;;;;;;;-1:-1:-1;49584:432:0;;;;;:::i;:::-;;:::i;:::-;;76001:97;;;;;;;;;;-1:-1:-1;76001:97:0;;;;;:::i;:::-;;:::i;73207:::-;;;;;;;;;;;;;:::i;49010:223::-;;;;;;;;;;;;;:::i;:::-;;;14920:25:1;;;14908:2;14893:18;49010:223:0;14774:177:1;75419:280:0;;;;;;;;;;-1:-1:-1;75419:280:0;;;;;:::i;:::-;;:::i;51064:321::-;;;;;;;;;;-1:-1:-1;51064:321:0;;;;;:::i;:::-;;:::i;48750:170::-;;;;;;;;;;-1:-1:-1;48750:170:0;;;;;:::i;:::-;;:::i;51470:159::-;;;;;;;;;;-1:-1:-1;51470:159:0;;;;;:::i;:::-;;:::i;49324:184::-;;;;;;;;;;-1:-1:-1;49324:184:0;;;;;:::i;:::-;;:::i;75882:107::-;;;;;;;;;;-1:-1:-1;75882:107:0;;;;;:::i;:::-;;:::i;46782:185::-;;;;;;;;;;-1:-1:-1;46782:185:0;;;;;:::i;:::-;;:::i;74709:698::-;;;;;;:::i;:::-;;:::i;48547:105::-;;;;;;;;;;;;;:::i;73384:42::-;;;;;;;;;;;;73421:5;73384:42;;46467:233;;;;;;;;;;-1:-1:-1;46467:233:0;;;;;:::i;:::-;;:::i;63173:160::-;;;;;;;;;;;;;:::i;74105:592::-;;;;;;;;;;-1:-1:-1;74105:592:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;73315:48::-;;;;;;;;;;;;73344:19;73315:48;;62462:95;;;;;;;;;;-1:-1:-1;62539:6:0;;-1:-1:-1;;;;;62539:6:0;62462:95;;47239:112;;;;;;;;;;;;;:::i;50415:311::-;;;;;;;;;;-1:-1:-1;50415:311:0;;;;;:::i;:::-;;:::i;73161:33::-;;;;;;;;;;-1:-1:-1;73161:33:0;;;;;;51714:297;;;;;;;;;;-1:-1:-1;51714:297:0;;;;;:::i;:::-;;:::i;75711:151::-;;;;;;;;;;-1:-1:-1;75711:151:0;;;;;:::i;:::-;;:::i;47436:848::-;;;;;;;;;;-1:-1:-1;47436:848:0;;;;;:::i;:::-;;:::i;73856:229::-;;;;;;;;;;;;;:::i;50811:172::-;;;;;;;;;;-1:-1:-1;50811:172:0;;;;;:::i;:::-;-1:-1:-1;;;;;50936:25:0;;;50908:4;50936:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;50811:172;63505:260;;;;;;;;;;-1:-1:-1;63505:260:0;;;;;:::i;:::-;;:::i;73470:28::-;;;;;;;;;;;;;;;;47048:108;47102:13;47139:5;47132:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47048:108;:::o;50096:233::-;50172:7;50204:16;50212:7;50204;:16::i;:::-;50196:73;;;;-1:-1:-1;;;50196:73:0;;12143:2:1;50196:73:0;;;12125:21:1;12182:2;12162:18;;;12155:30;12221:34;12201:18;;;12194:62;-1:-1:-1;;;12272:18:1;;;12265:42;12324:19;;50196:73:0;;;;;;;;;-1:-1:-1;50293:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;50293:24:0;;50096:233::o;49584:432::-;49669:13;49685:23;49700:7;49685:14;:23::i;:::-;49669:39;;49737:5;-1:-1:-1;;;;;49731:11:0;:2;-1:-1:-1;;;;;49731:11:0;;;49723:57;;;;-1:-1:-1;;;49723:57:0;;14156:2:1;49723:57:0;;;14138:21:1;14195:2;14175:18;;;14168:30;14234:34;14214:18;;;14207:62;-1:-1:-1;;;14285:18:1;;;14278:31;14326:19;;49723:57:0;13954:397:1;49723:57:0;44142:10;-1:-1:-1;;;;;49805:21:0;;;;:69;;-1:-1:-1;49830:44:0;49854:5;44142:10;50811:172;:::i;49830:44::-;49797:169;;;;-1:-1:-1;;;49797:169:0;;10199:2:1;49797:169:0;;;10181:21:1;10238:2;10218:18;;;10211:30;10277:34;10257:18;;;10250:62;10348:26;10328:18;;;10321:54;10392:19;;49797:169:0;9997:420:1;49797:169:0;49983:21;49992:2;49996:7;49983:8;:21::i;:::-;49654:362;49584:432;;:::o;76001:97::-;62539:6;;-1:-1:-1;;;;;62539:6:0;44142:10;62708:23;62700:68;;;;-1:-1:-1;;;62700:68:0;;;;;;;:::i;:::-;76063:16:::1;:23:::0;76001:97::o;73207:::-;;;;;;;;;;;;;;;;;;;:::o;49010:223::-;49071:7;49200:21;:12;:19;:21::i;:::-;49193:28;;49010:223;:::o;75419:280::-;62539:6;;-1:-1:-1;;;;;62539:6:0;44142:10;62708:23;62700:68;;;;-1:-1:-1;;;62700:68:0;;;;;;;:::i;:::-;75482:17:::1;75502:19;:9;72586:14:::0;;72490:122;75502:19:::1;75482:39;;75536:20;75542:2;75546:9;75536:5;:20::i;:::-;75571:21;:9;72721:19:::0;;72739:1;72721:19;;;72624:143;75571:21:::1;-1:-1:-1::0;;;;;75625:15:0;::::1;;::::0;;;:11:::1;:15;::::0;;;;;:19:::1;::::0;:15:::1;;::::0;:19:::1;:::i;:::-;75607:11;:15;75619:2;-1:-1:-1::0;;;;;75607:15:0::1;-1:-1:-1::0;;;;;75607:15:0::1;;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;75659:28;75672:9;75683:3;;;;;;;;;;;;;;;;;75659:12;:28::i;:::-;75467:232;75419:280:::0;:::o;51064:321::-;51233:41;44142:10;51266:7;51233:18;:41::i;:::-;51225:103;;;;-1:-1:-1;;;51225:103:0;;;;;;;:::i;:::-;51345:28;51355:4;51361:2;51365:7;51345:9;:28::i;48750:170::-;-1:-1:-1;;;;;48878:20:0;;48847:7;48878:20;;;:13;:20;;;;;:30;;48902:5;48878:23;:30::i;:::-;48871:37;;48750:170;;;;;:::o;51470:159::-;51578:39;51595:4;51601:2;51605:7;51578:39;;;;;;;;;;;;:16;:39::i;49324:184::-;49399:7;;49445:22;:12;49461:5;49445:15;:22::i;:::-;-1:-1:-1;49423:44:0;49324:184;-1:-1:-1;;;49324:184:0:o;75882:107::-;62539:6;;-1:-1:-1;;;;;62539:6:0;44142:10;62708:23;62700:68;;;;-1:-1:-1;;;62700:68:0;;;;;;;:::i;:::-;75957:20:::1;75969:7;75957:11;:20::i;:::-;75882:107:::0;:::o;46782:185::-;46854:7;46885:70;46902:7;46885:70;;;;;;;;;;;;;;;;;:12;;:70;:16;:70::i;74709:698::-;74791:1;74772:16;;:20;74764:56;;;;-1:-1:-1;;;74764:56:0;;7139:2:1;74764:56:0;;;7121:21:1;7178:2;7158:18;;;7151:30;-1:-1:-1;;;7197:18:1;;;7190:53;7260:18;;74764:56:0;6937:347:1;74764:56:0;74863:15;74843:16;;:35;;74835:71;;;;-1:-1:-1;;;74835:71:0;;7139:2:1;74835:71:0;;;7121:21:1;7178:2;7158:18;;;7151:30;-1:-1:-1;;;7197:18:1;;;7190:53;7260:18;;74835:71:0;6937:347:1;74835:71:0;74966:15;73421:5;74930:16;;:32;;;;:::i;:::-;:51;;74921:80;;;;-1:-1:-1;;;74921:80:0;;11035:2:1;74921:80:0;;;11017:21:1;11074:2;11054:18;;;11047:30;-1:-1:-1;;;11093:18:1;;;11086:45;11148:18;;74921:80:0;10833:339:1;74921:80:0;73344:19;75024:9;:18;;75016:55;;;;-1:-1:-1;;;75016:55:0;;8674:2:1;75016:55:0;;;8656:21:1;8713:2;8693:18;;;8686:30;8752:26;8732:18;;;8725:54;8796:18;;75016:55:0;8472:348:1;75016:55:0;75092:9;:13;75088:86;;75126:12;;:32;;-1:-1:-1;;;;;75126:12:0;;;;75148:9;75126:32;;;;;:12;:32;:12;:32;75148:9;75126:12;:32;;;;;;;;;;;;;;;;;;;;;75190:17;75210:19;:9;72586:14;;72490:122;48547:105;48595:13;48632:8;48625:15;;;;;:::i;46467:233::-;46539:7;-1:-1:-1;;;;;46571:19:0;;46563:74;;;;-1:-1:-1;;;46563:74:0;;10624:2:1;46563:74:0;;;10606:21:1;10663:2;10643:18;;;10636:30;10702:34;10682:18;;;10675:62;-1:-1:-1;;;10753:18:1;;;10746:40;10803:19;;46563:74:0;10422:406:1;46563:74:0;-1:-1:-1;;;;;46659:20:0;;;;;;:13;:20;;;;;:29;;:27;:29::i;63173:160::-;62539:6;;-1:-1:-1;;;;;62539:6:0;44142:10;62708:23;62700:68;;;;-1:-1:-1;;;62700:68:0;;;;;;;:::i;:::-;63268:6:::1;::::0;63247:40:::1;::::0;63284:1:::1;::::0;-1:-1:-1;;;;;63268:6:0::1;::::0;63247:40:::1;::::0;63284:1;;63247:40:::1;63302:6;:19:::0;;-1:-1:-1;;;;;;63302:19:0::1;::::0;;63173:160::o;74105:592::-;74166:16;74200:18;74221:17;74231:6;74221:9;:17::i;:::-;74200:38;-1:-1:-1;74257:15:0;74253:433;;74342:16;;;74356:1;74342:16;;;;;;;;;;;;74253:433;74399:23;74439:10;74425:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;74425:25:0;;74399:51;;74469:13;74501:138;74525:10;74517:5;:18;74501:138;;;74585:34;74605:6;74613:5;74585:19;:34::i;:::-;74569:6;74576:5;74569:13;;;;;;;;:::i;:::-;;;;;;;;;;:50;74537:7;;;;:::i;:::-;;;;74501:138;;74253:433;74185:512;74105:592;;;:::o;47239:112::-;47295:13;47332:7;47325:14;;;;;:::i;50415:311::-;-1:-1:-1;;;;;50522:24:0;;44142:10;50522:24;;50514:62;;;;-1:-1:-1;;;50514:62:0;;9432:2:1;50514:62:0;;;9414:21:1;9471:2;9451:18;;;9444:30;9510:27;9490:18;;;9483:55;9555:18;;50514:62:0;9230:349:1;50514:62:0;44142:10;50593:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;50593:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;50593:53:0;;;;;;;;;;50666:48;;6258:41:1;;;50593:42:0;;44142:10;50666:48;;6231:18:1;50666:48:0;;;;;;;50415:311;;:::o;51714:297::-;51850:41;44142:10;51883:7;51850:18;:41::i;:::-;51842:103;;;;-1:-1:-1;;;51842:103:0;;;;;;;:::i;:::-;51960:39;51974:4;51980:2;51984:7;51993:5;51960:13;:39::i;:::-;51714:297;;;;:::o;75711:151::-;62539:6;;-1:-1:-1;;;;;62539:6:0;44142:10;62708:23;62700:68;;;;-1:-1:-1;;;62700:68:0;;;;;;;:::i;:::-;75782:11:::1;:18:::0;;-1:-1:-1;;;;;75782:18:0;;::::1;-1:-1:-1::0;;;;;;75782:18:0;;::::1;::::0;::::1;::::0;;;75815:12:::1;:35:::0;;;;::::1;;::::0;;75711:151::o;47436:848::-;47509:13;47547:16;47555:7;47547;:16::i;:::-;47539:76;;;;-1:-1:-1;;;47539:76:0;;13740:2:1;47539:76:0;;;13722:21:1;13779:2;13759:18;;;13752:30;13818:34;13798:18;;;13791:62;-1:-1:-1;;;13869:18:1;;;13862:45;13924:19;;47539:76:0;13538:411:1;47539:76:0;47632:23;47658:19;;;:10;:19;;;;;47632:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47692:18;47713:9;:7;:9::i;:::-;47692:30;;47812:4;47806:18;47828:1;47806:23;47802:80;;;-1:-1:-1;47857:9:0;47436:848;-1:-1:-1;;47436:848:0:o;47802:80::-;47994:23;;:27;47990:116;;48073:4;48079:9;48056:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;48042:48;;;;47436:848;;;:::o;47990:116::-;48246:4;48252:18;:7;:16;:18::i;:::-;48229:42;;;;;;;;;:::i;73856:229::-;73897:4;73918:9;73930:16;;73950:1;73930:21;;:60;;;;;73975:15;73955:16;;:35;;73930:60;:115;;;;;74030:15;73421:5;73994:16;;:32;;;;:::i;:::-;:51;;73918:127;73856:229;-1:-1:-1;;73856:229:0:o;63505:260::-;62539:6;;-1:-1:-1;;;;;62539:6:0;44142:10;62708:23;62700:68;;;;-1:-1:-1;;;62700:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;63598:22:0;::::1;63590:73;;;::::0;-1:-1:-1;;;63590:73:0;;7910:2:1;63590:73:0::1;::::0;::::1;7892:21:1::0;7949:2;7929:18;;;7922:30;7988:34;7968:18;;;7961:62;-1:-1:-1;;;8039:18:1;;;8032:36;8085:19;;63590:73:0::1;7708:402:1::0;63590:73:0::1;63704:6;::::0;63683:38:::1;::::0;-1:-1:-1;;;;;63683:38:0;;::::1;::::0;63704:6:::1;::::0;63683:38:::1;::::0;63704:6:::1;::::0;63683:38:::1;63736:6;:17:::0;;-1:-1:-1;;;;;;63736:17:0::1;-1:-1:-1::0;;;;;63736:17:0;;;::::1;::::0;;;::::1;::::0;;63505:260::o;53578:135::-;53643:4;53671:30;:12;53693:7;53671:21;:30::i;60255:195::-;60325:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;60325:29:0;-1:-1:-1;;;;;60325:29:0;;;;;;;;:24;;60383:23;60325:24;60383:14;:23::i;:::-;-1:-1:-1;;;;;60374:46:0;;;;;;;;;;;60255:195;;:::o;11052:131::-;11121:7;11152:19;11160:3;7425:19;;7338:118;55656:432;-1:-1:-1;;;;;55740:16:0;;55732:61;;;;-1:-1:-1;;;55732:61:0;;11782:2:1;55732:61:0;;;11764:21:1;;;11801:18;;;11794:30;11860:34;11840:18;;;11833:62;11912:18;;55732:61:0;11580:356:1;55732:61:0;55817:16;55825:7;55817;:16::i;:::-;55816:17;55808:58;;;;-1:-1:-1;;;55808:58:0;;8317:2:1;55808:58:0;;;8299:21:1;8356:2;8336:18;;;8329:30;8395;8375:18;;;8368:58;8443:18;;55808:58:0;8115:352:1;55808:58:0;-1:-1:-1;;;;;55945:17:0;;;;;;:13;:17;;;;;:30;;55967:7;55945:21;:30::i;:::-;-1:-1:-1;55992:29:0;:12;56009:7;56018:2;55992:16;:29::i;:::-;-1:-1:-1;56043:33:0;;56068:7;;-1:-1:-1;;;;;56043:33:0;;;56060:1;;56043:33;;56060:1;;56043:33;55656:432;;:::o;58139:227::-;58243:16;58251:7;58243;:16::i;:::-;58235:73;;;;-1:-1:-1;;;58235:73:0;;12556:2:1;58235:73:0;;;12538:21:1;12595:2;12575:18;;;12568:30;12634:34;12614:18;;;12607:62;-1:-1:-1;;;12685:18:1;;;12678:42;12737:19;;58235:73:0;12354:408:1;58235:73:0;58323:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;53906:371::-;53999:4;54028:16;54036:7;54028;:16::i;:::-;54020:73;;;;-1:-1:-1;;;54020:73:0;;9786:2:1;54020:73:0;;;9768:21:1;9825:2;9805:18;;;9798:30;9864:34;9844:18;;;9837:62;-1:-1:-1;;;9915:18:1;;;9908:42;9967:19;;54020:73:0;9584:408:1;54020:73:0;54108:13;54124:23;54139:7;54124:14;:23::i;:::-;54108:39;;54181:5;-1:-1:-1;;;;;54170:16:0;:7;-1:-1:-1;;;;;54170:16:0;;:51;;;;54214:7;-1:-1:-1;;;;;54190:31:0;:20;54202:7;54190:11;:20::i;:::-;-1:-1:-1;;;;;54190:31:0;;54170:51;:94;;;-1:-1:-1;;;;;;50936:25:0;;;50908:4;50936:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;54225:39;54162:103;53906:371;-1:-1:-1;;;;53906:371:0:o;57320:637::-;57449:4;-1:-1:-1;;;;;57422:31:0;:23;57437:7;57422:14;:23::i;:::-;-1:-1:-1;;;;;57422:31:0;;57414:85;;;;-1:-1:-1;;;57414:85:0;;13330:2:1;57414:85:0;;;13312:21:1;13369:2;13349:18;;;13342:30;13408:34;13388:18;;;13381:62;-1:-1:-1;;;13459:18:1;;;13452:39;13508:19;;57414:85:0;13128:405:1;57414:85:0;-1:-1:-1;;;;;57540:16:0;;57532:65;;;;-1:-1:-1;;;57532:65:0;;9027:2:1;57532:65:0;;;9009:21:1;9066:2;9046:18;;;9039:30;9105:34;9085:18;;;9078:62;-1:-1:-1;;;9156:18:1;;;9149:34;9200:19;;57532:65:0;8825:400:1;57532:65:0;57726:29;57743:1;57747:7;57726:8;:29::i;:::-;-1:-1:-1;;;;;57772:19:0;;;;;;:13;:19;;;;;:35;;57799:7;57772:26;:35::i;:::-;-1:-1:-1;;;;;;57822:17:0;;;;;;:13;:17;;;;;:30;;57844:7;57822:21;:30::i;:::-;-1:-1:-1;57869:29:0;:12;57886:7;57895:2;57869:16;:29::i;:::-;;57937:7;57933:2;-1:-1:-1;;;;;57918:27:0;57927:4;-1:-1:-1;;;;;57918:27:0;;;;;;;;;;;57320:637;;;:::o;23716:145::-;23787:7;23826:22;23830:3;23842:5;23826:3;:22::i;11559:248::-;11639:7;;;;11703:22;11707:3;11719:5;11703:3;:22::i;:::-;11672:53;;;;-1:-1:-1;11559:248:0;-1:-1:-1;;;;;11559:248:0:o;58616:108::-;58693:19;;;;:8;;:19;;;;;:::i;12949:221::-;13056:7;13111:44;13116:3;13136;13142:12;13111:4;:44::i;:::-;13103:53;-1:-1:-1;12949:221:0;;;;;;:::o;52952:284::-;53070:28;53080:4;53086:2;53090:7;53070:9;:28::i;:::-;53121:48;53144:4;53150:2;53154:7;53163:5;53121:22;:48::i;:::-;53113:111;;;;-1:-1:-1;;;53113:111:0;;;;;;;:::i;320:799::-;376:13;609:10;605:61;;-1:-1:-1;;640:10:0;;;;;;;;;;;;-1:-1:-1;;;640:10:0;;;;;320:799::o;605:61::-;695:5;680:12;744:90;751:9;;744:90;;781:8;;;;:::i;:::-;;-1:-1:-1;808:10:0;;-1:-1:-1;816:2:0;808:10;;:::i;:::-;;;744:90;;;848:19;880:6;870:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;870:17:0;;848:39;;902:170;909:10;;902:170;;940:11;950:1;940:11;;:::i;:::-;;-1:-1:-1;1013:10:0;1021:2;1013:5;:10;:::i;:::-;1000:24;;:2;:24;:::i;:::-;987:39;;970:6;977;970:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;970:56:0;;;;;;;;-1:-1:-1;1045:11:0;1054:2;1045:11;;:::i;:::-;;;902:170;;10791:159;10875:4;7195:17;;;:12;;;:17;;;;;;:22;;10903:35;7096:133;22372:139;22439:4;22467:32;22472:3;22492:5;22467:4;:32::i;10164:193::-;10253:4;10281:64;10286:3;10306;-1:-1:-1;;;;;10320:23:0;;10281:4;:64::i;22710:145::-;22780:4;22808:35;22816:3;22836:5;22808:7;:35::i;18237:216::-;18336:18;;18304:7;;18336:26;-1:-1:-1;18328:73:0;;;;-1:-1:-1;;;18328:73:0;;6736:2:1;18328:73:0;;;6718:21:1;6775:2;6755:18;;;6748:30;6814:34;6794:18;;;6787:62;-1:-1:-1;;;6865:18:1;;;6858:32;6907:19;;18328:73:0;6534:398:1;18328:73:0;18423:3;:11;;18435:5;18423:18;;;;;;;;:::i;:::-;;;;;;;;;18416:25;;18237:216;;;;:::o;7852:295::-;7960:19;;7919:7;;;;7960:27;-1:-1:-1;7952:74:0;;;;-1:-1:-1;;;7952:74:0;;11379:2:1;7952:74:0;;;11361:21:1;11418:2;11398:18;;;11391:30;11457:34;11437:18;;;11430:62;-1:-1:-1;;;11508:18:1;;;11501:32;11550:19;;7952:74:0;11177:398:1;7952:74:0;8043:22;8068:3;:12;;8081:5;8068:19;;;;;;;;:::i;:::-;;;;;;;;;;;8043:44;;8110:5;:10;;;8122:5;:12;;;8102:33;;;;;7852:295;;;;;:::o;9463:335::-;9557:7;9600:17;;;:12;;;:17;;;;;;9655:12;9640:13;9632:36;;;;-1:-1:-1;;;9632:36:0;;;;;;;;:::i;:::-;-1:-1:-1;9726:3:0;9739:12;9750:1;9739:8;:12;:::i;:::-;9726:26;;;;;;;;:::i;:::-;;;;;;;;;;;:33;;;9719:40;;;9463:335;;;;;:::o;59324:919::-;59449:4;-1:-1:-1;;;;;59483:13:0;;25149:20;25192:8;59479:753;;59523:72;;-1:-1:-1;;;59523:72:0;;-1:-1:-1;;;;;59523:36:0;;;;;:72;;44142:10;;59574:4;;59580:7;;59589:5;;59523:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59523:72:0;;;;;;;;-1:-1:-1;;59523:72:0;;;;;;;;;;;;:::i;:::-;;;59519:646;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59781:13:0;;59777:369;;59828:60;;-1:-1:-1;;;59828:60:0;;;;;;;:::i;59777:369::-;60088:6;60082:13;60073:6;60069:2;60065:15;60058:38;59519:646;-1:-1:-1;;;;;;59650:55:0;-1:-1:-1;;;59650:55:0;;-1:-1:-1;59643:62:0;;59479:753;-1:-1:-1;60212:4:0;59324:919;;;;;;:::o;15105:454::-;15168:4;7195:17;;;:12;;;:17;;;;;;15189:359;;-1:-1:-1;15236:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;15431:18;;15409:19;;;:12;;;:19;;;;;;:40;;;;15468:11;;15189:359;-1:-1:-1;15527:5:0;15520:12;;4414:744;4490:4;4633:17;;;:12;;;:17;;;;;;4671:13;4667:480;;-1:-1:-1;;4760:38:0;;;;;;;;;;;;;;;;;;4742:57;;;;;;;;:12;:57;;;;;;;;;;;;;;;;;;;;;;;;4969:19;;4949:17;;;:12;;;:17;;;;;;;:39;5007:11;;4667:480;5095:5;5059:3;5072:12;5083:1;5072:8;:12;:::i;:::-;5059:26;;;;;;;;:::i;:::-;;;;;;;;;;;:33;;:41;;;;5126:5;5119:12;;;;;15758:1640;15824:4;15971:19;;;:12;;;:19;;;;;;16011:15;;16007:1380;;16389:21;16413:14;16426:1;16413:10;:14;:::i;:::-;16466:18;;16389:38;;-1:-1:-1;16446:17:0;;16466:22;;16487:1;;16466:22;:::i;:::-;16446:42;;16745:17;16765:3;:11;;16777:9;16765:22;;;;;;;;:::i;:::-;;;;;;;;;16745:42;;16919:9;16890:3;:11;;16902:13;16890:26;;;;;;;;:::i;:::-;;;;;;;;;;:38;17030:17;:13;17046:1;17030:17;:::i;:::-;17004:23;;;;:12;;;:23;;;;;:43;17164:17;;17004:3;;17164:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;17267:3;:12;;:19;17280:5;17267:19;;;;;;;;;;;17260:26;;;17314:4;17307:11;;;;;;;;16007:1380;17366:5;17359:12;;;;;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:186::-;887:6;940:2;928:9;919:7;915:23;911:32;908:52;;;956:1;953;946:12;908:52;979:29;998:9;979:29;:::i;1019:260::-;1087:6;1095;1148:2;1136:9;1127:7;1123:23;1119:32;1116:52;;;1164:1;1161;1154:12;1116:52;1187:29;1206:9;1187:29;:::i;:::-;1177:39;;1235:38;1269:2;1258:9;1254:18;1235:38;:::i;:::-;1225:48;;1019:260;;;;;:::o;1284:328::-;1361:6;1369;1377;1430:2;1418:9;1409:7;1405:23;1401:32;1398:52;;;1446:1;1443;1436:12;1398:52;1469:29;1488:9;1469:29;:::i;:::-;1459:39;;1517:38;1551:2;1540:9;1536:18;1517:38;:::i;:::-;1507:48;;1602:2;1591:9;1587:18;1574:32;1564:42;;1284:328;;;;;:::o;1617:666::-;1712:6;1720;1728;1736;1789:3;1777:9;1768:7;1764:23;1760:33;1757:53;;;1806:1;1803;1796:12;1757:53;1829:29;1848:9;1829:29;:::i;:::-;1819:39;;1877:38;1911:2;1900:9;1896:18;1877:38;:::i;:::-;1867:48;;1962:2;1951:9;1947:18;1934:32;1924:42;;2017:2;2006:9;2002:18;1989:32;2044:18;2036:6;2033:30;2030:50;;;2076:1;2073;2066:12;2030:50;2099:22;;2152:4;2144:13;;2140:27;-1:-1:-1;2130:55:1;;2181:1;2178;2171:12;2130:55;2204:73;2269:7;2264:2;2251:16;2246:2;2242;2238:11;2204:73;:::i;:::-;2194:83;;;1617:666;;;;;;;:::o;2288:347::-;2353:6;2361;2414:2;2402:9;2393:7;2389:23;2385:32;2382:52;;;2430:1;2427;2420:12;2382:52;2453:29;2472:9;2453:29;:::i;:::-;2443:39;;2532:2;2521:9;2517:18;2504:32;2579:5;2572:13;2565:21;2558:5;2555:32;2545:60;;2601:1;2598;2591:12;2545:60;2624:5;2614:15;;;2288:347;;;;;:::o;2640:254::-;2708:6;2716;2769:2;2757:9;2748:7;2744:23;2740:32;2737:52;;;2785:1;2782;2775:12;2737:52;2808:29;2827:9;2808:29;:::i;:::-;2798:39;2884:2;2869:18;;;;2856:32;;-1:-1:-1;;;2640:254:1:o;2899:245::-;2957:6;3010:2;2998:9;2989:7;2985:23;2981:32;2978:52;;;3026:1;3023;3016:12;2978:52;3065:9;3052:23;3084:30;3108:5;3084:30;:::i;3149:249::-;3218:6;3271:2;3259:9;3250:7;3246:23;3242:32;3239:52;;;3287:1;3284;3277:12;3239:52;3319:9;3313:16;3338:30;3362:5;3338:30;:::i;3403:450::-;3472:6;3525:2;3513:9;3504:7;3500:23;3496:32;3493:52;;;3541:1;3538;3531:12;3493:52;3581:9;3568:23;3614:18;3606:6;3603:30;3600:50;;;3646:1;3643;3636:12;3600:50;3669:22;;3722:4;3714:13;;3710:27;-1:-1:-1;3700:55:1;;3751:1;3748;3741:12;3700:55;3774:73;3839:7;3834:2;3821:16;3816:2;3812;3808:11;3774:73;:::i;3858:180::-;3917:6;3970:2;3958:9;3949:7;3945:23;3941:32;3938:52;;;3986:1;3983;3976:12;3938:52;-1:-1:-1;4009:23:1;;3858:180;-1:-1:-1;3858:180:1:o;4043:257::-;4084:3;4122:5;4116:12;4149:6;4144:3;4137:19;4165:63;4221:6;4214:4;4209:3;4205:14;4198:4;4191:5;4187:16;4165:63;:::i;:::-;4282:2;4261:15;-1:-1:-1;;4257:29:1;4248:39;;;;4289:4;4244:50;;4043:257;-1:-1:-1;;4043:257:1:o;4305:470::-;4484:3;4522:6;4516:13;4538:53;4584:6;4579:3;4572:4;4564:6;4560:17;4538:53;:::i;:::-;4654:13;;4613:16;;;;4676:57;4654:13;4613:16;4710:4;4698:17;;4676:57;:::i;:::-;4749:20;;4305:470;-1:-1:-1;;;;4305:470:1:o;4988:488::-;-1:-1:-1;;;;;5257:15:1;;;5239:34;;5309:15;;5304:2;5289:18;;5282:43;5356:2;5341:18;;5334:34;;;5404:3;5399:2;5384:18;;5377:31;;;5182:4;;5425:45;;5450:19;;5442:6;5425:45;:::i;:::-;5417:53;4988:488;-1:-1:-1;;;;;;4988:488:1:o;5481:632::-;5652:2;5704:21;;;5774:13;;5677:18;;;5796:22;;;5623:4;;5652:2;5875:15;;;;5849:2;5834:18;;;5623:4;5918:169;5932:6;5929:1;5926:13;5918:169;;;5993:13;;5981:26;;6062:15;;;;6027:12;;;;5954:1;5947:9;5918:169;;;-1:-1:-1;6104:3:1;;5481:632;-1:-1:-1;;;;;;5481:632:1:o;6310:219::-;6459:2;6448:9;6441:21;6422:4;6479:44;6519:2;6508:9;6504:18;6496:6;6479:44;:::i;7289:414::-;7491:2;7473:21;;;7530:2;7510:18;;;7503:30;7569:34;7564:2;7549:18;;7542:62;-1:-1:-1;;;7635:2:1;7620:18;;7613:48;7693:3;7678:19;;7289:414::o;12767:356::-;12969:2;12951:21;;;12988:18;;;12981:30;13047:34;13042:2;13027:18;;13020:62;13114:2;13099:18;;12767:356::o;14356:413::-;14558:2;14540:21;;;14597:2;14577:18;;;14570:30;14636:34;14631:2;14616:18;;14609:62;-1:-1:-1;;;14702:2:1;14687:18;;14680:47;14759:3;14744:19;;14356:413::o;14956:128::-;14996:3;15027:1;15023:6;15020:1;15017:13;15014:39;;;15033:18;;:::i;:::-;-1:-1:-1;15069:9:1;;14956:128::o;15089:204::-;15127:3;15163:4;15160:1;15156:12;15195:4;15192:1;15188:12;15230:3;15224:4;15220:14;15215:3;15212:23;15209:49;;;15238:18;;:::i;:::-;15274:13;;15089:204;-1:-1:-1;;;15089:204:1:o;15298:120::-;15338:1;15364;15354:35;;15369:18;;:::i;:::-;-1:-1:-1;15403:9:1;;15298:120::o;15423:125::-;15463:4;15491:1;15488;15485:8;15482:34;;;15496:18;;:::i;:::-;-1:-1:-1;15533:9:1;;15423:125::o;15553:258::-;15625:1;15635:113;15649:6;15646:1;15643:13;15635:113;;;15725:11;;;15719:18;15706:11;;;15699:39;15671:2;15664:10;15635:113;;;15766:6;15763:1;15760:13;15757:48;;;-1:-1:-1;;15801:1:1;15783:16;;15776:27;15553:258::o;15816:380::-;15895:1;15891:12;;;;15938;;;15959:61;;16013:4;16005:6;16001:17;15991:27;;15959:61;16066:2;16058:6;16055:14;16035:18;16032:38;16029:161;;;16112:10;16107:3;16103:20;16100:1;16093:31;16147:4;16144:1;16137:15;16175:4;16172:1;16165:15;16201:135;16240:3;-1:-1:-1;;16261:17:1;;16258:43;;;16281:18;;:::i;:::-;-1:-1:-1;16328:1:1;16317:13;;16201:135::o;16341:112::-;16373:1;16399;16389:35;;16404:18;;:::i;:::-;-1:-1:-1;16438:9:1;;16341:112::o;16458:127::-;16519:10;16514:3;16510:20;16507:1;16500:31;16550:4;16547:1;16540:15;16574:4;16571:1;16564:15;16590:127;16651:10;16646:3;16642:20;16639:1;16632:31;16682:4;16679:1;16672:15;16706:4;16703:1;16696:15;16722:127;16783:10;16778:3;16774:20;16771:1;16764:31;16814:4;16811:1;16804:15;16838:4;16835:1;16828:15;16854:127;16915:10;16910:3;16906:20;16903:1;16896:31;16946:4;16943:1;16936:15;16970:4;16967:1;16960:15;16986:127;17047:10;17042:3;17038:20;17035:1;17028:31;17078:4;17075:1;17068:15;17102:4;17099:1;17092:15;17118:131;-1:-1:-1;;;;;;17192:32:1;;17182:43;;17172:71;;17239:1;17236;17229:12

Swarm Source

ipfs://c618dd7e97d6e98062d9219ad69995deaa7728ef8de4408fd093ba69c816faa7
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.