ETH Price: $3,436.89 (+1.79%)
Gas: 41 Gwei

Contract

0xf7D1F4F8a7818CA3D92B1cA01b8051520B054D57
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...193204942024-02-27 17:51:473 days ago1709056307IN
0xf7D1F4F8...20B054D57
0 ETH0.0022183747.9471627
Set Approval For...193203092024-02-27 17:14:233 days ago1709054063IN
0xf7D1F4F8...20B054D57
0 ETH0.0026559157.41891828
Set Approval For...193025742024-02-25 5:41:115 days ago1708839671IN
0xf7D1F4F8...20B054D57
0 ETH0.0010513622.765179
Set Approval For...192730142024-02-21 2:16:1110 days ago1708481771IN
0xf7D1F4F8...20B054D57
0 ETH0.0015429433.34869449
Set Approval For...192695522024-02-20 14:38:1110 days ago1708439891IN
0xf7D1F4F8...20B054D57
0 ETH0.0023577750.96020096
Set Approval For...192446632024-02-17 2:37:4714 days ago1708137467IN
0xf7D1F4F8...20B054D57
0 ETH0.0007883217.03850332
Set Approval For...192423272024-02-16 18:46:4714 days ago1708109207IN
0xf7D1F4F8...20B054D57
0 ETH0.001251527.09880754
Set Approval For...192415852024-02-16 16:17:3514 days ago1708100255IN
0xf7D1F4F8...20B054D57
0 ETH0.0016186435.04854642
Set Approval For...192377462024-02-16 3:19:2315 days ago1708053563IN
0xf7D1F4F8...20B054D57
0 ETH0.0009668320.89688338
Set Approval For...192344292024-02-15 16:09:3515 days ago1708013375IN
0xf7D1F4F8...20B054D57
0 ETH0.0037321880.66633929
Set Approval For...192162052024-02-13 2:46:4718 days ago1707792407IN
0xf7D1F4F8...20B054D57
0 ETH0.0011875325.71372804
Set Approval For...192095452024-02-12 4:24:5919 days ago1707711899IN
0xf7D1F4F8...20B054D57
0 ETH0.0010096121.82148407
Set Approval For...191980542024-02-10 13:38:3520 days ago1707572315IN
0xf7D1F4F8...20B054D57
0 ETH0.0013843629.97554872
Set Approval For...191611082024-02-05 9:12:5925 days ago1707124379IN
0xf7D1F4F8...20B054D57
0 ETH0.000702715.21571818
Set Approval For...191611052024-02-05 9:12:2325 days ago1707124343IN
0xf7D1F4F8...20B054D57
0 ETH0.0007379315.94939751
Set Approval For...191427232024-02-02 19:14:1128 days ago1706901251IN
0xf7D1F4F8...20B054D57
0 ETH0.0009791621.16328005
Set Approval For...190945362024-01-27 1:06:2335 days ago1706317583IN
0xf7D1F4F8...20B054D57
0 ETH0.0002776911.44134271
Set Approval For...190897062024-01-26 8:51:5935 days ago1706259119IN
0xf7D1F4F8...20B054D57
0 ETH0.0004887420.11702074
Set Approval For...190897062024-01-26 8:51:5935 days ago1706259119IN
0xf7D1F4F8...20B054D57
0 ETH0.0004882620.11702074
Set Approval For...190895692024-01-26 8:23:5935 days ago1706257439IN
0xf7D1F4F8...20B054D57
0 ETH0.0004767819.62468741
Set Approval For...190895612024-01-26 8:22:2335 days ago1706257343IN
0xf7D1F4F8...20B054D57
0 ETH0.0004603118.94689309
Set Approval For...190895142024-01-26 8:12:5935 days ago1706256779IN
0xf7D1F4F8...20B054D57
0 ETH0.0004369717.98631506
Set Approval For...190895142024-01-26 8:12:5935 days ago1706256779IN
0xf7D1F4F8...20B054D57
0 ETH0.0004365417.98631506
Set Approval For...190765082024-01-24 12:30:4737 days ago1706099447IN
0xf7D1F4F8...20B054D57
0 ETH0.0003717915.3185122
Set Approval For...190624562024-01-22 13:05:2339 days ago1705928723IN
0xf7D1F4F8...20B054D57
0 ETH0.0008985319.42058265
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Txn Hash Block From To Value
163670262023-01-09 5:03:11417 days ago1673240591
0xf7D1F4F8...20B054D57
11.28627667 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DenDekaDenOmikuji

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : DenDekaDenOmikuji.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.17;
/* 
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@...........................................................................@@
* @@@...........................................................................@@
* @@@@........................................................................*@@@
* @@@@@......................................................................@@@@@
* @@@@@@#...................................................................@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@*...............@@@@@@@@............@@@@@@@@%...........@@@@@@@@@@@@
* @@@@@@@@@@@@@..............%@@@@@@@.............@@@@@@@,............@@@@@@@@@@@@
* @@@@@@@@@@@@@@............@@@@@@@&............/@@@@@@@............/@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@..........@@@@@@@*............@@@@@@@@............*@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@.......,@@@@@@@.............@@@@@@@%............(@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@............/@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@%...............................,@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@.................................@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@.................................@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@...............................@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@.............................@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,............/@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(............%@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.............@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@............,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(............%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(...........@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.........@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#.......@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 電殿神伝 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ DenDekaDen @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Do you believe? @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ JD & BH @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*/

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/utils/Base64.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';

contract DenDekaDenOmikuji is Ownable, ERC721 { 
  // Libraries
  using Strings for uint256;

  // For random attribute, use:
  // tokenId, timestamp, and donation amount
  struct TraitSeeds {
    uint256 timestamp;
    // how much was donated during mint -- used for better probabilities
    uint256 donationAmount;
  }

  // CONSTANTS
  uint8 constant NUM_CHARACTERS = 7;
  uint16 constant OMIKUJI_PER_CHARACTER = 108;

  // 0.07ETH is donation boost!
  // If you donate 0.07ETH or greater, your luck probabilities are boosted!
  uint256 constant DONATION_BOOST_THRESHOLD = 70000000000000000;

  /******* MINTING DATA *******/

  // track omikuji minter per character
  uint8[NUM_CHARACTERS] ascendingCharacterMints;
  // need to track team mints too
  uint8[NUM_CHARACTERS] descendingCharacterMints;


  // track GODLY tokenId for each character
  // IMPORTANT: defaults to 0 so NO TOKEN should have id of 0
  uint256[NUM_CHARACTERS] public godlyTokens;

  // storage of seeds for calculating traits
  mapping(uint256 /* tokenId */ => TraitSeeds) tokenTraitSeeds;

  // record ifa wallet has already minted a character
  mapping(address => mapping(uint8 /* characterId */ => uint256)) addressCharacterMints;

  // WHITELIST props
  bytes32 whitelistMerkleRoot;
  // JAPAN 2023-01-01 00:00:00 TIMESTAMP
  uint256 whitelistMintStartTime = 1672498800;
  // JAPAN 2023-01-01 07:30:00 TIMESTAMP
  uint256 mainMintStartTime = 1672525800;
  // whitelist mint records
  mapping(address /* user */ => bool) whitelistAddressMints;
  // team mint merkle root
  bytes32 teamMerkleRoot;
  // Team mints capped at 35
  uint256 teamMintsRemaining = 35;

  /******* ATTRIBUTE PROBABILITIES *********/

  // base attributes do not include "very good"
  uint8[] baseAttributeProbabilities = [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3];

  // special attribute probabilities includes "very good"
  uint8[] specialAttributeProbabilities = [0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4];

  // Very good most likely, then great, then good -- godly boosted on mint
  uint8[] boostAttributeProbabilities = [2, 3, 3, 3, 3, 4, 4, 4];

  // METADATA PROPS
  string _baseImgUri = "https://dendekaden.s3.ap-northeast-1.amazonaws.com/";
  bool _imgUriLocked = false;
  string constant DESCRIPTION = 'Sacred lots drawn by the First Believers, and held by the most ardent Devotees of ';
  string constant EXTERNAL_URL = 'https://www.dendekaden.com/';
  string[] fortuneCategories = [
    '2. LOVE',
    '3. BENEFACTOR',
    '4. BUSINESS',
    '5. ACADEMICS',
    '6. DISPUTES',
    '7. TRAVEL',
    '8. HEALTH',
    '9. WISH'
  ];
 
  string[] characterNames = [
    // 吉祥天
    'Megna',
    // 弁財天
    'Bene',
    // 大黒天
    'Yoa',
    // 恵比寿こひる
    'Kohiru',
    // 毘沙門天
    'Hisato',
    // 布袋
    'Taylor',
    // 寿老人
    'Momo'
  ];

  string[][] fortuneValues = [
    // LOVE
    [
      // 告白しらく待て
      '\xe5\x91\x8a\xe7\x99\xbd\xe3\x81\x97\xe3\x81\xb0\xe3\x82\x89\xe3\x81\x8f\xe5\xbe\x85\xe3\x81\xa6',
      // 今叶わずとも縁あり
      '\xe4\xbb\x8a\xe5\x8f\xb6\xe3\x82\x8f\xe3\x81\x9a\xe3\x81\xa8\xe3\x82\x82\xe7\xb8\x81\xe3\x81\x82\xe3\x82\x8a',
      // 歳に囚われる必要なし
      '\xe6\xad\xb3\xe3\x81\xab\xe5\x9b\x9a\xe3\x82\x8f\xe3\x82\x8c\xe3\x82\x8b\xe5\xbf\x85\xe8\xa6\x81\xe3\x81\xaa\xe3\x81\x97',
      // 良い人既に近くに
      '\xe8\x89\xaf\xe3\x81\x84\xe4\xba\xba\xe6\x97\xa2\xe3\x81\xab\xe8\xbf\x91\xe3\x81\x8f\xe3\x81\xab'
    ],
    // BENEFACTOR
    [
      // たよりなし
      '\xe3\x81\x9f\xe3\x82\x88\xe3\x82\x8a\xe3\x81\xaa\xe3\x81\x97',
      // 来るとも遅し 往きて利あり
      '\xe6\x9d\xa5\xe3\x82\x8b\xe3\x81\xa8\xe3\x82\x82\xe9\x81\x85\xe3\x81\x97\x20\xe5\xbe\x80\xe3\x81\x8d\xe3\x81\xa6\xe5\x88\xa9\xe3\x81\x82\xe3\x82\x8a',
      // 来る
      '\xe6\x9d\xa5\xe3\x82\x8b',
      // 来たる つれあり
      '\xe6\x9d\xa5\xe3\x81\x9f\xe3\x82\x8b\x20\xe3\x81\xa4\xe3\x82\x8c\xe3\x81\x82\xe3\x82\x8a'
    ],
    // BUSINESS
    [
      // 堅実さを取り戻せ
      '\xe5\xa0\x85\xe5\xae\x9f\xe3\x81\x95\xe3\x82\x92\xe5\x8f\x96\xe3\x82\x8a\xe6\x88\xbb\xe3\x81\x9b',
      // 利益少し焦るな 後になれば益あり
      '\xe5\x88\xa9\xe7\x9b\x8a\xe5\xb0\x91\xe3\x81\x97\xe7\x84\xa6\xe3\x82\x8b\xe3\x81\xaa\xe3\x80\x80\xe5\xbe\x8c\xe3\x81\xab\xe3\x81\xaa\xe3\x82\x8c\xe3\x81\xb0\xe7\x9b\x8a\xe3\x81\x82\xe3\x82\x8a',
      // 利益たしかなり
      '\xe5\x88\xa9\xe7\x9b\x8a\xe3\x81\x9f\xe3\x81\x97\xe3\x81\x8b\xe3\x81\xaa\xe3\x82\x8a',
      // 十分幸福
      '\xe5\x8d\x81\xe5\x88\x86\xe5\xb9\xb8\xe7\xa6\x8f'
    ],
    // ACADEMICS
    [
      // 今回は諦め切り替えるべし
      '\xe4\xbb\x8a\xe5\x9b\x9e\xe3\x81\xaf\xe8\xab\xa6\xe3\x82\x81\xe5\x88\x87\xe3\x82\x8a\xe6\x9b\xbf\xe3\x81\x88\xe3\x82\x8b\xe3\x81\xb9\xe3\x81\x97',
      // 伸びる時努力せよ
      '\xe4\xbc\xb8\xe3\x81\xb3\xe3\x82\x8b\xe6\x99\x82\xe5\x8a\xaa\xe5\x8a\x9b\xe3\x81\x9b\xe3\x82\x88',
      // 努力しただけ力になる
      '\xe5\x8a\xaa\xe5\x8a\x9b\xe3\x81\x97\xe3\x81\x9f\xe3\x81\xa0\xe3\x81\x91\xe5\x8a\x9b\xe3\x81\xab\xe3\x81\xaa\xe3\x82\x8b',
      // 歩み遅くとも着実に実る
      '\xe6\xad\xa9\xe3\x81\xbf\xe9\x81\x85\xe3\x81\x8f\xe3\x81\xa8\xe3\x82\x82\xe7\x9d\x80\xe5\xae\x9f\xe3\x81\xab\xe5\xae\x9f\xe3\x82\x8b'
    ],
    // DISPUTES
    [
      // 争いごと負けなり
      '\xe4\xba\x89\xe3\x81\x84\xe3\x81\x94\xe3\x81\xa8\xe8\xb2\xa0\xe3\x81\x91\xe3\x81\xaa\xe3\x82\x8a',
      // 勝ち退くが利
      '\xe5\x8b\x9d\xe3\x81\xa1\xe9\x80\x80\xe3\x81\x8f\xe3\x81\x8c\xe5\x88\xa9',
      // よろしさわぐな
      '\xe3\x82\x88\xe3\x82\x8d\xe3\x81\x97\xe3\x81\x95\xe3\x82\x8f\xe3\x81\x90\xe3\x81\xaa',
      // 心和やかにして吉
      '\xe5\xbf\x83\xe5\x92\x8c\xe3\x82\x84\xe3\x81\x8b\xe3\x81\xab\xe3\x81\x97\xe3\x81\xa6\xe5\x90\x89'
    ],
    // TRAVEL
    [
      // かえりはほど知れず
      '\xe3\x81\x8b\xe3\x81\x88\xe3\x82\x8a\xe3\x81\xaf\xe3\x81\xbb\xe3\x81\xa9\xe7\x9f\xa5\xe3\x82\x8c\xe3\x81\x9a',
      // して良いが無理避けよ
      '\xe3\x81\x97\xe3\x81\xa6\xe8\x89\xaf\xe3\x81\x84\xe3\x81\x8c\xe7\x84\xa1\xe7\x90\x86\xe9\x81\xbf\xe3\x81\x91\xe3\x82\x88',
      // 遠くはいかぬが利
      '\xe9\x81\xa0\xe3\x81\x8f\xe3\x81\xaf\xe3\x81\x84\xe3\x81\x8b\xe3\x81\xac\xe3\x81\x8c\xe5\x88\xa9',
      // 快調に進む
      '\xe5\xbf\xab\xe8\xaa\xbf\xe3\x81\xab\xe9\x80\xb2\xe3\x82\x80'
    ],
    // HEALTH
    [
      // 医師はしっかり選べ
      '\xe5\x8c\xbb\xe5\xb8\xab\xe3\x81\xaf\xe3\x81\x97\xe3\x81\xa3\xe3\x81\x8b\xe3\x82\x8a\xe9\x81\xb8\xe3\x81\xb9',
      // 早く医師に診せろ
      '\xe6\x97\xa9\xe3\x81\x8f\xe5\x8c\xbb\xe5\xb8\xab\xe3\x81\xab\xe8\xa8\xba\xe3\x81\x9b\xe3\x82\x8d',
      // 異変感じたら休め
      '\xe7\x95\xb0\xe5\xa4\x89\xe6\x84\x9f\xe3\x81\x98\xe3\x81\x9f\xe3\x82\x89\xe4\xbc\x91\xe3\x82\x81',
      // 心穏やかに過ごせ 快方に向かう
      '\xe5\xbf\x83\xe7\xa9\x8f\xe3\x82\x84\xe3\x81\x8b\xe3\x81\xab\xe9\x81\x8e\xe3\x81\x94\xe3\x81\x9b\x20\xe5\xbf\xab\xe6\x96\xb9\xe3\x81\xab\xe5\x90\x91\xe3\x81\x8b\xe3\x81\x86'
    ],
    // WISH
    [
      // 障りあり
      '\xe9\x9a\x9c\xe3\x82\x8a\xe3\x81\x82\xe3\x82\x8a',
      // 焦るな機は来る
      '\xe7\x84\xa6\xe3\x82\x8b\xe3\x81\xaa\xe6\xa9\x9f\xe3\x81\xaf\xe6\x9d\xa5\xe3\x82\x8b',
      // 多く望まなければ叶う
      '\xe5\xa4\x9a\xe3\x81\x8f\xe6\x9c\x9b\xe3\x81\xbe\xe3\x81\xaa\xe3\x81\x91\xe3\x82\x8c\xe3\x81\xb0\xe5\x8f\xb6\xe3\x81\x86',
      // 力合わせればきっと叶う
      '\xe5\x8a\x9b\xe5\x90\x88\xe3\x82\x8f\xe3\x81\x9b\xe3\x82\x8c\xe3\x81\xb0\xe3\x81\x8d\xe3\x81\xa3\xe3\x81\xa8\xe5\x8f\xb6\xe3\x81\x86'
    ]
  ];

  string[][] specialFortuneValues = [
    // LOVE
    [
      // 告白しばらく待て
      '\xe5\x91\x8a\xe7\x99\xbd\xe3\x81\x97\xe3\x81\xb0\xe3\x82\x89\xe3\x81\x8f\xe5\xbe\x85\xe3\x81\xa6',
      // 今叶わずとも縁あり
      '\xe4\xbb\x8a\xe5\x8f\xb6\xe3\x82\x8f\xe3\x81\x9a\xe3\x81\xa8\xe3\x82\x82\xe7\xb8\x81\xe3\x81\x82\xe3\x82\x8a',
      // 歳に囚われる必要なし
      '\xe6\xad\xb3\xe3\x81\xab\xe5\x9b\x9a\xe3\x82\x8f\xe3\x82\x8c\xe3\x82\x8b\xe5\xbf\x85\xe8\xa6\x81\xe3\x81\xaa\xe3\x81\x97',
      // 良い人既に近くに
      '\xe8\x89\xaf\xe3\x81\x84\xe4\xba\xba\xe6\x97\xa2\xe3\x81\xab\xe8\xbf\x91\xe3\x81\x8f\xe3\x81\xab',
      // 迷うことなかれ 心に決めた人が最上
      '\xe8\xbf\xb7\xe3\x81\x86\xe3\x81\x93\xe3\x81\xa8\xe3\x81\xaa\xe3\x81\x8b\xe3\x82\x8c\x20\xe5\xbf\x83\xe3\x81\xab\xe6\xb1\xba\xe3\x82\x81\xe3\x81\x9f\xe4\xba\xba\xe3\x81\x8c\xe6\x9c\x80\xe4\xb8\x8a',
      // 愛せよ 全て叶う
      '\xe6\x84\x9b\xe3\x81\x9b\xe3\x82\x88\x20\xe5\x85\xa8\xe3\x81\xa6\xe5\x8f\xb6\xe3\x81\x86'
    ],
    // BENEFACTOR
    [
      // たよりなし
      '\xe3\x81\x9f\xe3\x82\x88\xe3\x82\x8a\xe3\x81\xaa\xe3\x81\x97',
      // 来るとも遅し 往きて利あり
      '\xe6\x9d\xa5\xe3\x82\x8b\xe3\x81\xa8\xe3\x82\x82\xe9\x81\x85\xe3\x81\x97\x20\xe5\xbe\x80\xe3\x81\x8d\xe3\x81\xa6\xe5\x88\xa9\xe3\x81\x82\xe3\x82\x8a',
      // 来る
      '\xe6\x9d\xa5\xe3\x82\x8b',
      // 来たる つれあり
      '\xe6\x9d\xa5\xe3\x81\x9f\xe3\x82\x8b\x20\xe3\x81\xa4\xe3\x82\x8c\xe3\x81\x82\xe3\x82\x8a',
      // 来る 驚くことあり
      '\xe6\x9d\xa5\xe3\x82\x8b\x20\xe9\xa9\x9a\xe3\x81\x8f\xe3\x81\x93\xe3\x81\xa8\xe3\x81\x82\xe3\x82\x8a',
      // 来て喜びの奏こだまする
      '\xe6\x9d\xa5\xe3\x81\xa6\xe5\x96\x9c\xe3\x81\xb3\xe3\x81\xae\xe5\xa5\x8f\xe3\x81\x93\xe3\x81\xa0\xe3\x81\xbe\xe3\x81\x99\xe3\x82\x8b'
    ],
    // BUSINESS
    [
      // 堅実さを取り戻せ
      '\xe5\xa0\x85\xe5\xae\x9f\xe3\x81\x95\xe3\x82\x92\xe5\x8f\x96\xe3\x82\x8a\xe6\x88\xbb\xe3\x81\x9b',
      // 利益少し焦るな 後になれば益あり
      '\xe5\x88\xa9\xe7\x9b\x8a\xe5\xb0\x91\xe3\x81\x97\xe7\x84\xa6\xe3\x82\x8b\xe3\x81\xaa\xe3\x80\x80\xe5\xbe\x8c\xe3\x81\xab\xe3\x81\xaa\xe3\x82\x8c\xe3\x81\xb0\xe7\x9b\x8a\xe3\x81\x82\xe3\x82\x8a',
      // 利益たしかなり
      '\xe5\x88\xa9\xe7\x9b\x8a\xe3\x81\x9f\xe3\x81\x97\xe3\x81\x8b\xe3\x81\xaa\xe3\x82\x8a',
      // 十分幸福
      '\xe5\x8d\x81\xe5\x88\x86\xe5\xb9\xb8\xe7\xa6\x8f',
      // 御神徳により隆昌する
      '\xe5\xbe\xa1\xe7\xa5\x9e\xe5\xbe\xb3\xe3\x81\xab\xe3\x82\x88\xe3\x82\x8a\xe9\x9a\x86\xe6\x98\x8c\xe3\x81\x99\xe3\x82\x8b',
      // 夜動かばおおいに利あり
      '\xe5\xa4\x9c\xe5\x8b\x95\xe3\x81\x8b\xe3\x81\xb0\xe3\x81\x8a\xe3\x81\x8a\xe3\x81\x84\xe3\x81\xab\xe5\x88\xa9\xe3\x81\x82\xe3\x82\x8a'
    ],
    // ACADEMICS
    [
      // 今回は諦め切り替えるべし
      '\xe4\xbb\x8a\xe5\x9b\x9e\xe3\x81\xaf\xe8\xab\xa6\xe3\x82\x81\xe5\x88\x87\xe3\x82\x8a\xe6\x9b\xbf\xe3\x81\x88\xe3\x82\x8b\xe3\x81\xb9\xe3\x81\x97',
      // 伸びる時努力せよ
      '\xe4\xbc\xb8\xe3\x81\xb3\xe3\x82\x8b\xe6\x99\x82\xe5\x8a\xaa\xe5\x8a\x9b\xe3\x81\x9b\xe3\x82\x88',
      // 努力しただけ力になる
      '\xe5\x8a\xaa\xe5\x8a\x9b\xe3\x81\x97\xe3\x81\x9f\xe3\x81\xa0\xe3\x81\x91\xe5\x8a\x9b\xe3\x81\xab\xe3\x81\xaa\xe3\x82\x8b',
      // 歩み遅くとも着実に実る
      '\xe6\xad\xa9\xe3\x81\xbf\xe9\x81\x85\xe3\x81\x8f\xe3\x81\xa8\xe3\x82\x82\xe7\x9d\x80\xe5\xae\x9f\xe3\x81\xab\xe5\xae\x9f\xe3\x82\x8b',
      // 自信持てよろししかない
      '\xe8\x87\xaa\xe4\xbf\xa1\xe6\x8c\x81\xe3\x81\xa6\xe3\x82\x88\xe3\x82\x8d\xe3\x81\x97\xe3\x81\x97\xe3\x81\x8b\xe3\x81\xaa\xe3\x81\x84',
      // 信心すればどこまでも伸びる
      '\xe4\xbf\xa1\xe5\xbf\x83\xe3\x81\x99\xe3\x82\x8c\xe3\x81\xb0\xe3\x81\xa9\xe3\x81\x93\xe3\x81\xbe\xe3\x81\xa7\xe3\x82\x82\xe4\xbc\xb8\xe3\x81\xb3\xe3\x82\x8b'
    ],
    // DISPUTES
    [
      // 争いごと負けなり
      '\xe4\xba\x89\xe3\x81\x84\xe3\x81\x94\xe3\x81\xa8\xe8\xb2\xa0\xe3\x81\x91\xe3\x81\xaa\xe3\x82\x8a',
      // 勝ち退くが利
      '\xe5\x8b\x9d\xe3\x81\xa1\xe9\x80\x80\xe3\x81\x8f\xe3\x81\x8c\xe5\x88\xa9',
      // よろしさわぐな
      '\xe3\x82\x88\xe3\x82\x8d\xe3\x81\x97\xe3\x81\x95\xe3\x82\x8f\xe3\x81\x90\xe3\x81\xaa',
      // 心和やかにして吉
      '\xe5\xbf\x83\xe5\x92\x8c\xe3\x82\x84\xe3\x81\x8b\xe3\x81\xab\xe3\x81\x97\xe3\x81\xa6\xe5\x90\x89',
      // 勝負に利あり
      '\xe5\x8b\x9d\xe8\xb2\xa0\xe3\x81\xab\xe5\x88\xa9\xe3\x81\x82\xe3\x82\x8a',
      // 不言実行にて勝つことやすし
      '\xe4\xb8\x8d\xe8\xa8\x80\xe5\xae\x9f\xe8\xa1\x8c\xe3\x81\xab\xe3\x81\xa6\xe5\x8b\x9d\xe3\x81\xa4\xe3\x81\x93\xe3\x81\xa8\xe3\x82\x84\xe3\x81\x99\xe3\x81\x97'
    ],
    // TRAVEL
    [
      // かえりはほど知れず
      '\xe3\x81\x8b\xe3\x81\x88\xe3\x82\x8a\xe3\x81\xaf\xe3\x81\xbb\xe3\x81\xa9\xe7\x9f\xa5\xe3\x82\x8c\xe3\x81\x9a',
      // して良いが無理避けよ
      '\xe3\x81\x97\xe3\x81\xa6\xe8\x89\xaf\xe3\x81\x84\xe3\x81\x8c\xe7\x84\xa1\xe7\x90\x86\xe9\x81\xbf\xe3\x81\x91\xe3\x82\x88',
      // 遠くはいかぬが利
      '\xe9\x81\xa0\xe3\x81\x8f\xe3\x81\xaf\xe3\x81\x84\xe3\x81\x8b\xe3\x81\xac\xe3\x81\x8c\xe5\x88\xa9',
      // 快調に進む
      '\xe5\xbf\xab\xe8\xaa\xbf\xe3\x81\xab\xe9\x80\xb2\xe3\x82\x80',
      // 場所に執着するな いけうまくいく
      '\xe5\xa0\xb4\xe6\x89\x80\xe3\x81\xab\xe5\x9f\xb7\xe7\x9d\x80\xe3\x81\x99\xe3\x82\x8b\xe3\x81\xaa\x20\xe3\x81\x84\xe3\x81\x91\xe3\x81\x86\xe3\x81\xbe\xe3\x81\x8f\xe3\x81\x84\xe3\x81\x8f',
      // 御神徳により成功しかない
      '\xe5\xbe\xa1\xe7\xa5\x9e\xe5\xbe\xb3\xe3\x81\xab\xe3\x82\x88\xe3\x82\x8a\xe6\x88\x90\xe5\x8a\x9f\xe3\x81\x97\xe3\x81\x8b\xe3\x81\xaa\xe3\x81\x84'
    ],
    // HEALTH
    [
      // 医師はしっかり選べ
      '\xe5\x8c\xbb\xe5\xb8\xab\xe3\x81\xaf\xe3\x81\x97\xe3\x81\xa3\xe3\x81\x8b\xe3\x82\x8a\xe9\x81\xb8\xe3\x81\xb9',
      // 早く医師に診せろ
      '\xe6\x97\xa9\xe3\x81\x8f\xe5\x8c\xbb\xe5\xb8\xab\xe3\x81\xab\xe8\xa8\xba\xe3\x81\x9b\xe3\x82\x8d',
      // 異変感じたら休め
      '\xe7\x95\xb0\xe5\xa4\x89\xe6\x84\x9f\xe3\x81\x98\xe3\x81\x9f\xe3\x82\x89\xe4\xbc\x91\xe3\x82\x81',
      // 心穏やかに過ごせ 快方に向かう
      '\xe5\xbf\x83\xe7\xa9\x8f\xe3\x82\x84\xe3\x81\x8b\xe3\x81\xab\xe9\x81\x8e\xe3\x81\x94\xe3\x81\x9b\x20\xe5\xbf\xab\xe6\x96\xb9\xe3\x81\xab\xe5\x90\x91\xe3\x81\x8b\xe3\x81\x86',
      // 技術信ぜよ必ず治る
      '\xe6\x8a\x80\xe8\xa1\x93\xe4\xbf\xa1\xe3\x81\x9c\xe3\x82\x88\xe5\xbf\x85\xe3\x81\x9a\xe6\xb2\xbb\xe3\x82\x8b',
      // 御神徳により全て治る
      '\xe5\xbe\xa1\xe7\xa5\x9e\xe5\xbe\xb3\xe3\x81\xab\xe3\x82\x88\xe3\x82\x8a\xe5\x85\xa8\xe3\x81\xa6\xe6\xb2\xbb\xe3\x82\x8b'
    ]
  ];

  string[] overallFortune = [
    // 凶
    '\xe5\x87\xb6',
    // 末吉
    '\xe6\x9c\xab\xe5\x90\x89',
    // 吉
    '\xe5\x90\x89',
    // 中吉
    '\xe4\xb8\xad\xe5\x90\x89',
    // 大吉
    '\xe5\xa4\xa7\xe5\x90\x89',
    // 大大吉
    '\xe5\xa4\xa7\xe5\xa4\xa7\xe5\x90\x89'
  ];

  // Beneficiary address
  address beneficiary;

  constructor() ERC721('DenDekaDen Genesis Omikuji', '$DDD') {
    beneficiary = owner();
  }

  /**
   * @dev Check mints remaining per character
   *
   * Returns entire array for less rpc calls on frontend. Can't just return
   * mintsPerCharacter because it is a storage pointer.
   */
  function characterMintsRemaining() public view returns (uint256[] memory) {
    uint256[] memory mintsRemaining = new uint256[](NUM_CHARACTERS);
    for (uint8 i = 0; i < NUM_CHARACTERS; i++) {
      mintsRemaining[i] = characterMintsRemaining(i);
    }
    return mintsRemaining;
  }

   /**
   * @dev Check mints remaining per character
   *
   * Returns entire array for less rpc calls on frontend. Can't just return
   * mintsPerCharacter because it is a storage pointer.
   */
  function characterMintsRemaining(uint8 characterId) private view returns (uint256) {
    return OMIKUJI_PER_CHARACTER - ascendingCharacterMints[characterId] - descendingCharacterMints[characterId];
  }

  /**
   * @dev Check mint eligability for address
   * 
   * Returns:
   *  - 0 if not eligable
   *  - 1 if main mint
   *  - 2 if whitelist
   *  - 3 if teammint
   */
  function mintEligability(address user, bytes32[] calldata proof) public view returns (uint8) {
    // first check if main mint is open
    if(mainMintStartTime <= block.timestamp) {
      return 1;
    }

    bytes32 leaf = keccak256(abi.encodePacked(user));
    
    if(whitelistMintStartTime <= block.timestamp) {
      // check whitelist
      if (MerkleProof.verify(proof, whitelistMerkleRoot, leaf)) {
        return 2;
      }
    }
    // now check team whitelist
    if (MerkleProof.verify(proof, teamMerkleRoot, leaf)) {
      return 3;
    }

    return 0;
  }
 
  /**
   * @dev Set the whitelist root
   */
  function setWhitelistRoot(bytes32 root) public onlyOwner {
    whitelistMerkleRoot = root;
  }

  /**
   * @dev Set the team whitelist root
   */
  function setTeamMerkleRoot(bytes32 root) public onlyOwner {
    teamMerkleRoot = root;
  }

  function setBeneficiary(address _beneficiary) public onlyOwner {
    beneficiary = _beneficiary;
  }

  /**
   * @dev Set the whitelist and mint start times
   *
   * NOTE: can be used to close mint if need be
   */
  function setMintTimes(uint256 whitelistStart, uint256 mintStart) public onlyOwner {
    whitelistMintStartTime = whitelistStart;
    mainMintStartTime = mintStart;
  }

  /**
   * @dev Public mint function
   *
   * If time is before open mint, will call whitelist mint, otherwise will call
   * normal mint.
   *
   * Cannot mint if not before start time.
   *
   * Requirements:
   *  - cannot
   */
  function mint(uint8 characterId, bytes32[] memory proof) public payable returns (uint256 tokenId) {
    // Check if should be whitelist or normal mint

    // if past normal mint time, do normal mint
    if (mainMintStartTime <= block.timestamp) {
      return _mint(characterId, true);
    } else if (whitelistMintStartTime <= block.timestamp) {
      // if during normal whitelist period, no need to decrement team mints
      if(_validateWhitelist(proof, whitelistMerkleRoot, true) || _validateWhitelist(proof, teamMerkleRoot, false)) {
        return _mint(characterId, true);
      }
    } else {
      if(_validateWhitelist(proof, teamMerkleRoot, false)) {
        return _teamMint(characterId);
      }
    }
    revert("DDDO: Not eligable or already whitelist minted");
  }

  /**
   * @dev Whitelist mint
   *
   * Requirements:
   *  - only allow ONE mint per whitelist address
   */
  function _validateWhitelist(bytes32[] memory proof, bytes32 root, bool oneLimit) private returns (bool) {
    // ensure wallet owns no tokens
    if(whitelistAddressMints[msg.sender]) {
      return false;
    }

    // Check if address exists in merkle tree
    bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
    if(!MerkleProof.verify(proof, root, leaf)){
      return false;
    }

    // mark account as having minted
    if(oneLimit) {
      whitelistAddressMints[msg.sender] = true;
    }
    
    // mint if qualifies
    return true;

  }

   /**
   * @dev Team Mint function
   *
   * Team can mint a limited number of tokens.
   * Team tokens CANNOT be godly tokens.
   */
  function _teamMint(uint8 characterId) private returns (uint256) {
    // check we still have mints remaining
    require(teamMintsRemaining > 0, 'DDDO: No more team mints');
    
    teamMintsRemaining -= 1;

    return _mint(characterId, false);
  }

  function ownerCharacters(address owner) public view returns (uint256[] memory) {
    uint256[] memory characters = new uint256[](NUM_CHARACTERS);

    for (uint8 i = 0; i < NUM_CHARACTERS; i++) {
      characters[i] = addressCharacterMints[owner][i];
    }

    return characters;
  }

  /**
   * @dev Mints a new omikuji based on character provided
   *
   * Requirements:
   *  - must not be called from contract
   *  - must be valid character
   *  - character must have available omikuji
   *  - must not already own omikuji from this character
   */
  function _mint(uint8 characterId, bool ascending) private returns (uint256) {
    // only allow mint from user address, not bot
    require(tx.origin == msg.sender, 'DDDO: must be wallet');

    // ensure does not already own this character omikuji
    require(addressCharacterMints[msg.sender][characterId] == 0, "DDDO: Only 1 omikuji per chara");

    // get next token id -- will revert if too many tokens minted for character
    uint256 tokenId = nextTokenIdForCharacter(characterId, ascending);

    // store seed variables used to calculate attributes
    // on mint, jsut store blockNum + blockHash (?) with tokenId & donation?
    uint256 timestamp = block.timestamp;
    TraitSeeds storage seeds = tokenTraitSeeds[tokenId];
    seeds.timestamp = timestamp;
    seeds.donationAmount = msg.value;

    // if we do not have a godly token for this character, ~randomly see if godly token
    // NOTE: team mints CANNOT be godly tokens because they progress in descending order
    if (ascending && godlyTokens[characterId] == 0) {
      // if we do not have a godly token within first 107 mints, force 108 mint to be godly
      uint256 mintsRemaining = characterMintsRemaining(characterId);
      if (mintsRemaining == 0) {
        godlyTokens[characterId] = tokenId;
      } else {
        uint256 godlyModulo = mintsRemaining;

        // if donation is above threshold, boost probability to 20% or better
        if (msg.value >= DONATION_BOOST_THRESHOLD) {
          godlyModulo = godlyModulo > 5 ? 5 : godlyModulo;
        }

        // Roll for godly trait calculation here to test
        uint256 randRoll = uint256(keccak256(abi.encodePacked(tokenId, msg.sender, timestamp))) % godlyModulo;

        // If matches godlyModulo, we have found godly token!
        if (randRoll == 0) {
          godlyTokens[characterId] = tokenId;
        }
      }
    }

    // mint token
    super._mint(msg.sender, tokenId);


    // record this address has minted this character
    addressCharacterMints[msg.sender][characterId] = tokenId;

    return tokenId;
  }


  /**
   * @dev Generate the random attributes of a given token
   * 
   * Depends on when and how minted, so pseudo random.
   * 
   * NOTE: this is public because likely will use these values in the future.
   * 
   * Traits are:
   * 
   * LOVE
   * BENEFACTOR
   * BUSINESS
   * ACADEMICS
   * DISPUTES
   * TRAVEL
   * HEALTH
   * WISH -- no special -- last idx in arr
   */
  function _generatePseudoRandomAttributes(uint256 tokenId) public view returns (uint8[] memory) {

    uint256 characterId = characterIdFromToken(tokenId);

    // in total 8 traits to derive from tokenId, timestamp, blockhash
    uint8[] memory attributes = new uint8[](8);
    TraitSeeds memory seeds = tokenTraitSeeds[tokenId];
    bytes memory baseSeed = abi.encodePacked(seeds.timestamp, seeds.donationAmount, tokenId);

    for (uint256 i = 0; i < 8; i++) {
      uint8[] memory traitProbabilities;

      // check if should use special traits
      if (i == characterId) {
        // check if godly token
        if (godlyTokens[i] == tokenId) {
          traitProbabilities = new uint8[](1);
          traitProbabilities[0] = 5;
        } else {
          // check if should use boost or special probabilities
          if (seeds.donationAmount >= DONATION_BOOST_THRESHOLD) {
            traitProbabilities = boostAttributeProbabilities;
          } else {
            traitProbabilities = specialAttributeProbabilities;
          }
        }
      } else {
        // use base attribute probabilities
        traitProbabilities = baseAttributeProbabilities;
      }

      // generate random seed
      uint256 randSeed = uint256(keccak256(abi.encodePacked(baseSeed, i)));
      uint8 traitBucket = traitProbabilities[randSeed % traitProbabilities.length];
      attributes[i] = traitBucket;
    }

    return attributes;
  }

  function attributesJson(uint256 tokenId, uint8[] memory wishAttrs) public view returns (bytes memory) {
    // check if has soul fragment
    // subtract one because tokens are 1 indexed
    uint256 characterId = characterIdFromToken(tokenId);

    // put together metadata
    bytes memory attributes = '[';

    // add in character name
    attributes = abi.encodePacked(attributes, attributeJson('0. SOUL', characterNames[characterId]));

    // loop through all fortune categories
    for (uint8 i = 0; i < wishAttrs.length; i++) {
      bytes memory attr;
      // check if special attribute for character
      if (i == characterId) {
        attr = attributeJson(fortuneCategories[i], specialFortuneValues[i][wishAttrs[i]]);
        attr = abi.encodePacked(attr, ',', attributeJson('1. FORTUNE', overallFortune[wishAttrs[i]]));
      } else {
        // not special category, so use normal odds
        attr = attributeJson(fortuneCategories[i], fortuneValues[i][wishAttrs[i]]);
      }

      attributes = abi.encodePacked(
        // add comma if not the first entry for json correct formatting
        attributes,
        ',',
        attr
      );
    }

    // add in soul fragment
    attributes = abi.encodePacked(attributes, ',', attributeJson('Epoch', 'First Believers'));

    // close attributes
    attributes = abi.encodePacked(attributes, ']');

    return attributes;
  }

  function attributeJson(string memory traitType, string memory traitValue) internal pure returns (bytes memory) {
    return
      abi.encodePacked(
        '{',
        abi.encodePacked('"trait_type": "', traitType, '",'),
        abi.encodePacked('"value": "', traitValue, '"'),
        '}'
      );
  }

  /**
   * @dev create the image uri for resources
   *
   * Image is based on the luck level of the special attribute of the character.
   *
   */
  function _generateImgUri(uint256 characterId, uint8 luckLevel) internal view returns (string memory) {
    return
      string(
        abi.encodePacked(_baseImgUri, uint256(characterId).toString(), '_', uint256(luckLevel).toString(), '.png')
      );
  }

  /**
   * @dev Set a new uri for images so we can transition to IPFS
   *
   * If URI is locked, can never be changed.
   */
  function setImgUri(string calldata _uri) external onlyOwner {
    require(!_imgUriLocked, 'DDDO: Img Uri is locked!');
    _baseImgUri = _uri;
  }

  /**
   * @dev Lock the image URI so forever immutable
   *
   * NOTE: Can ONLY be called once, be sure images are correct
   */
  function lockImgUri() public onlyOwner {
    _imgUriLocked = true;
  }

  /////////////// TOKEN ID UTILITY FUNCTIONS //////////////////

  /**
   * @dev Calculates the next Id
   */
  function nextTokenIdForCharacter(uint8 characterId, bool ascending) internal returns (uint256) {
    // ensure valid character
    require(characterId < NUM_CHARACTERS, 'DDDO: Invalid character id!');

    // check can still mint for this character
    require(characterMintsRemaining(characterId) > 0, 'DDDO: No more omikuji available');

    uint16 tokenOffset;
    if(ascending) {
      // mint from bottom up -- increment first so 1 indexed
      ascendingCharacterMints[characterId] += 1;
      tokenOffset = ascendingCharacterMints[characterId];
    } else {
      // mint from top down -- increment after so ids are 1 indexed
      tokenOffset = OMIKUJI_PER_CHARACTER - descendingCharacterMints[characterId];
      descendingCharacterMints[characterId] += 1;
    }

    // derive tokenId
    // NOTE: we add 1 here because NO TOKEN should have ID of 0 (for godly attribute check), so 1 indexed
    return characterId * OMIKUJI_PER_CHARACTER + tokenOffset;
  }

  function characterIdFromToken(uint256 tokenId) internal pure returns (uint256) {
    // subtract 1 because ids start at 1
    return ((tokenId - 1) / OMIKUJI_PER_CHARACTER);
  }

  function tokenNumberForCharacter(uint256 tokenId) internal pure returns (uint256) {
    // subtract 1 because ids start at 1
    return (tokenId - 1) % OMIKUJI_PER_CHARACTER;
  }

  function withdraw() public {
    beneficiary.call{ value: address(this).balance }('');
  }

  /**
   * @dev Get OnChainMetadata for token
   */
  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    _requireMinted(tokenId);
    return getTokenURI(tokenId);
  }

  /**
   * @dev Generate metadata for each token.
   * 
   * All attributes are onchain, images can be moved to ipfs when ready.
   */
  function getTokenURI(uint256 tokenId) public view returns (string memory) {
    // 1 index characterID and character token
    uint256 characterId = characterIdFromToken(tokenId);
    uint256 characterToken = tokenNumberForCharacter(tokenId) + 1;
    uint8[] memory attributes = _generatePseudoRandomAttributes(tokenId);
    bytes memory tokenNameFormat = abi.encodePacked((characterToken < 10 ? '00' : (characterToken < 100 ? '0' : '')), characterToken.toString());

    bytes memory dataURI = abi.encodePacked(
      '{',
      '"name": "',
      characterNames[characterId],
      "'s Fortune #", tokenNameFormat,     
      '",',
      '"description": "',
      DESCRIPTION, characterNames[characterId], '.',
      '",',
      '"external_url": "',
      EXTERNAL_URL,
      '",',
      '"image": "',
      _generateImgUri(characterId, attributes[characterId]),
      '",',
      '"attributes": ',
      attributesJson(tokenId, attributes),
      '}'
    );
    return string(abi.encodePacked('data:application/json;base64,', Base64.encode(dataURI)));
  }
}

File 2 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // 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;

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @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) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @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 || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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: caller is not token 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: caller is not token 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 _owners[tokenId] != address(0);
    }

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `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);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

        _afterTokenTransfer(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);

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

        _afterTokenTransfer(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 from incorrect 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);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @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` and `to` are never both zero.
     *
     * 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 4 of 13 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 5 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // 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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

File 6 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 7 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 8 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 9 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 10 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @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 11 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"_generatePseudoRandomAttributes","outputs":[{"internalType":"uint8[]","name":"","type":"uint8[]"}],"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8[]","name":"wishAttrs","type":"uint8[]"}],"name":"attributesJson","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"characterMintsRemaining","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"godlyTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"lockImgUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"characterId","type":"uint8"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintEligability","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","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":"owner","type":"address"}],"name":"ownerCharacters","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setImgUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"whitelistStart","type":"uint256"},{"internalType":"uint256","name":"mintStart","type":"uint256"}],"name":"setMintTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setTeamMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setWhitelistRoot","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6363b04e706013556363b0b7e860145560236017556103406040526000608081815260a082905260c082905260e09190915260016101008190526101208190526101408190526101608190526101808190526101a05260026101c08190526101e08190526102008190526102208190526102408190526102608190526102805260036102a08190526102c08190526102e081905261030081905261032052620000ad9060189060166200153c565b506040805161030081018252600080825260208201819052918101829052606081019190915260016080820181905260a0820181905260c0820181905260e08201819052610100820152600261012082018190526101408201819052610160820181905261018082018190526101a082018190526101c082018190526101e08201526003610200820181905261022082018190526102408201819052610260820181905261028082015260046102a082018190526102c082018190526102e08201526200017f9060199060186200153c565b50604080516101008101825260028152600360208201819052918101829052606081018290526080810191909152600460a0820181905260c0820181905260e0820152620001d290601a9060086200153c565b506040518060600160405280603381526020016200515060339139601b90620001fc908262001929565b50601c805460ff1916905560408051610140810182526007610100820181815266322e204c4f564560c81b610120840152825282518084018452600d81526c1997102122a722a320a1aa27a960991b6020828101919091528084019190915283518085018552600b8082526a342e20425553494e45535360a81b828401528486019190915284518086018652600c81526b352e2041434144454d49435360a01b818401526060850152845180860186529081526a362e20444953505554455360a81b818301526080840152835180850185526009808252680dcb8815149055915360ba1b8284015260a085019190915284518086018652908152680705c40908a8298a8960bb1b8183015260c08401528351808501909452908352660725c40ae92a6960cb1b9083015260e08101919091526200033e90601d906008620015e9565b506040805161012081018252600560e08201908152644d65676e6160d81b61010083015281528151808301835260048082526342656e6560e01b60208381019190915280840192909252835180850185526003815262596f6160e81b8184015283850152835180850185526006808252654b6f6869727560d01b828501526060850191909152845180860186528181526548697361746f60d01b81850152608085015284518086018652908152652a30bcb637b960d11b8184015260a084015283518085019094528352634d6f6d6f60e01b9083015260c08101919091526200042c90601e90600762001642565b50604080516101c081018252601861018082018181527fe5918ae799bde38197e381b0e38289e3818fe5be85e381a600000000000000006101a0840152610100830190815283518085018552601b81527fe4bb8ae58fb6e3828fe3819ae381a8e38282e7b881e38182e3828a000000000060208281019190915261012085019190915284518086018652601e81527fe6adb3e381abe59b9ae3828fe3828ce3828be5bf85e8a681e381aae38197000081830152610140850152845180860186529283527fe889afe38184e4babae697a2e381abe8bf91e3818fe381ab0000000000000000838201526101608401929092528252825160c081018452600f608082019081526ee3819fe38288e3828ae381aae3819760881b60a0830152815283516060810190945260258085529293828501939192838101929062004fb690830139815260200160405180604001604052806006815260200165e69da5e3828b60d01b81525081526020016040518060400160405280601681526020017fe69da5e3819fe3828b20e381a4e3828ce38182e3828a00000000000000000000815250815250815260200160405180608001604052806040518060400160405280601881526020017fe5a085e5ae9fe38195e38292e58f96e3828ae688bbe3819b0000000000000000815250815260200160405180606001604052806030815260200162004fdb6030913981526020016040518060400160405280601581526020017fe588a9e79b8ae3819fe38197e3818be381aae3828a000000000000000000000081525081526020016040518060400160405280600c81526020016be58d81e58886e5b9b8e7a68f60a01b815250815250815260200160405180608001604052806040518060600160405280602481526020016200512c6024913981526020016040518060400160405280601881526020017fe4bcb8e381b3e3828be69982e58aaae58a9be3819be38288000000000000000081525081526020016040518060400160405280601e81526020017fe58aaae58a9be38197e3819fe381a0e38191e58a9be381abe381aae3828b000081525081526020016040518060600160405280602181526020016200505360219139815250815260200160405180608001604052806040518060400160405280601881526020017fe4ba89e38184e38194e381a8e8b2a0e38191e381aae3828a0000000000000000815250815260200160405180604001604052806012815260200171e58b9de381a1e98080e3818fe3818ce588a960701b81525081526020016040518060400160405280601581526020017fe38288e3828de38197e38195e3828fe38190e381aa000000000000000000000081525081526020016040518060400160405280601881526020017fe5bf83e5928ce38284e3818be381abe38197e381a6e590890000000000000000815250815250815260200160405180608001604052806040518060400160405280601b81526020017fe3818be38188e3828ae381afe381bbe381a9e79fa5e3828ce3819a000000000081525081526020016040518060400160405280601e81526020017fe38197e381a6e889afe38184e3818ce784a1e79086e981bfe38191e38288000081525081526020016040518060400160405280601881526020017fe981a0e3818fe381afe38184e3818be381ace3818ce588a9000000000000000081525081526020016040518060400160405280600f81526020016e01cb7f57d1557fc70357d30165c705608f1b815250815250815260200160405180608001604052806040518060400160405280601b81526020017fe58cbbe5b8abe381afe38197e381a3e3818be3828ae981b8e381b9000000000081525081526020016040518060400160405280601881526020017fe697a9e3818fe58cbbe5b8abe381abe8a8bae3819be3828d000000000000000081525081526020016040518060400160405280601881526020017fe795b0e5a489e6849fe38198e3819fe38289e4bc91e38281000000000000000081525081526020016040518060600160405280602b815260200162005098602b9139815250815260200160405180608001604052806040518060400160405280600c81526020016b74cd4e71c14571c0c171c14560a11b81525081526020016040518060400160405280601581526020017fe784a6e3828be381aae6a99fe381afe69da5e3828b000000000000000000000081525081526020016040518060400160405280601e81526020017fe5a49ae3818fe69c9be381bee381aae38191e3828ce381b0e58fb6e3818600008152508152602001604051806060016040528060218152602001620050c3602191399052905262000af590601f9060086200168d565b506040518060e001604052806040518060c001604052806040518060400160405280601881526020017fe5918ae799bde38197e381b0e38289e3818fe5be85e381a6000000000000000081525081526020016040518060400160405280601b81526020017fe4bb8ae58fb6e3828fe3819ae381a8e38282e7b881e38182e3828a000000000081525081526020016040518060400160405280601e81526020017fe6adb3e381abe59b9ae3828fe3828ce3828be5bf85e8a681e381aae38197000081525081526020016040518060400160405280601881526020017fe889afe38184e4babae697a2e381abe8bf91e3818fe381ab00000000000000008152508152602001604051806060016040528060318152602001620051b16031913981526020016040518060400160405280601681526020017fe6849be3819be3828820e585a8e381a6e58fb6e381860000000000000000000081525081525081526020016040518060c001604052806040518060400160405280600f81526020016ee3819fe38288e3828ae381aae3819760881b815250815260200160405180606001604052806025815260200162004fb660259139815260200160405180604001604052806006815260200165e69da5e3828b60d01b81525081526020016040518060400160405280601681526020017fe69da5e3819fe3828b20e381a4e3828ce38182e3828a0000000000000000000081525081526020016040518060400160405280601981526020017fe69da5e3828b20e9a99ae3818fe38193e381a8e38182e3828a0000000000000081525081526020016040518060600160405280602181526020016200510b6021913981525081526020016040518060c001604052806040518060400160405280601881526020017fe5a085e5ae9fe38195e38292e58f96e3828ae688bbe3819b0000000000000000815250815260200160405180606001604052806030815260200162004fdb6030913981526020016040518060400160405280601581526020017fe588a9e79b8ae3819fe38197e3818be381aae3828a000000000000000000000081525081526020016040518060400160405280600c81526020016be58d81e58886e5b9b8e7a68f60a01b81525081526020016040518060400160405280601e81526020017fe5bea1e7a59ee5beb3e381abe38288e3828ae99a86e6988ce38199e3828b000081525081526020016040518060600160405280602181526020016200500b6021913981525081526020016040518060c001604052806040518060600160405280602481526020016200512c6024913981526020016040518060400160405280601881526020017fe4bcb8e381b3e3828be69982e58aaae58a9be3819be38288000000000000000081525081526020016040518060400160405280601e81526020017fe58aaae58a9be38197e3819fe381a0e38191e58a9be381abe381aae3828b000081525081526020016040518060600160405280602181526020016200505360219139815260200160405180606001604052806021815260200162004f956021913981526020016040518060600160405280602781526020016200502c6027913981525081526020016040518060c001604052806040518060400160405280601881526020017fe4ba89e38184e38194e381a8e8b2a0e38191e381aae3828a0000000000000000815250815260200160405180604001604052806012815260200171e58b9de381a1e98080e3818fe3818ce588a960701b81525081526020016040518060400160405280601581526020017fe38288e3828de38197e38195e3828fe38190e381aa000000000000000000000081525081526020016040518060400160405280601881526020017fe5bf83e5928ce38284e3818be381abe38197e381a6e59089000000000000000081525081526020016040518060400160405280601281526020017172c5cef4595071c0d5f2c454f1c0c171c14560711b8152508152602001604051806060016040528060278152602001620050e46027913981525081526020016040518060c001604052806040518060400160405280601b81526020017fe3818be38188e3828ae381afe381bbe381a9e79fa5e3828ce3819a000000000081525081526020016040518060400160405280601e81526020017fe38197e381a6e889afe38184e3818ce784a1e79086e981bfe38191e38288000081525081526020016040518060400160405280601881526020017fe981a0e3818fe381afe38184e3818be381ace3818ce588a9000000000000000081525081526020016040518060400160405280600f81526020016e01cb7f57d1557fc70357d30165c705608f1b81525081526020016040518060600160405280602e815260200162005183602e91398152602001604051806060016040528060248152602001620050746024913981525081526020016040518060c001604052806040518060400160405280601b81526020017fe58cbbe5b8abe381afe38197e381a3e3818be3828ae981b8e381b9000000000081525081526020016040518060400160405280601881526020017fe697a9e3818fe58cbbe5b8abe381abe8a8bae3819be3828d000000000000000081525081526020016040518060400160405280601881526020017fe795b0e5a489e6849fe38198e3819fe38289e4bc91e38281000000000000000081525081526020016040518060600160405280602b815260200162005098602b91398152604080518082018252601b81527fe68a80e8a193e4bfa1e3819ce38288e5bf85e3819ae6b2bbe3828b00000000006020828101919091528084019190915281518083018352601e81527fe5bea1e7a59ee5beb3e381abe38288e3828ae585a8e381a6e6b2bbe3828b0000818301529190920152915262001351916007620016e7565b506040805161010081018252600360c082018181526272c3db60e91b60e0840152825282518084018452600680825265e69cabe5908960d01b602083810191909152808501929092528451808601865292835262e5908960e81b83830152838501929092528351808501855282815265e4b8ade5908960d01b8183015260608401528351808501855282815265e5a4a7e5908960d01b81830152608084015283518085019094526009845268e5a4a7e5a4a7e5908960b81b9084015260a082019290925262001424916021919062001733565b503480156200143257600080fd5b506040518060400160405280601a81526020017f44656e44656b6144656e2047656e65736973204f6d696b756a69000000000000815250604051806040016040528060048152602001630911111160e21b815250620014a06200149a620014e860201b60201c565b620014ec565b6001620014ae838262001929565b506002620014bd828262001929565b5050600054602280546001600160a01b0319166001600160a01b0390921691909117905550620019f5565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805482825590600052602060002090601f01602090048101928215620015d75791602002820160005b83821115620015a657835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030262001566565b8015620015d55782816101000a81549060ff0219169055600101602081600001049283019260010302620015a6565b505b50620015e59291506200177e565b5090565b82805482825590600052602060002090810192821562001634579160200282015b8281111562001634578251829062001623908262001929565b50916020019190600101906200160a565b50620015e592915062001795565b82805482825590600052602060002090810192821562001634579160200282015b828111156200163457825182906200167c908262001929565b509160200191906001019062001663565b828054828255906000526020600020908101928215620016d9579160200282015b82811115620016d9578251620016c89083906004620017b6565b5091602001919060010190620016ae565b50620015e592915062001801565b828054828255906000526020600020908101928215620016d9579160200282015b82811115620016d957825162001722908390600662001733565b509160200191906001019062001708565b82805482825590600052602060002090810192821562001634579160200282015b828111156200163457825182906200176d908262001929565b509160200191906001019062001754565b5b80821115620015e557600081556001016200177f565b80821115620015e5576000620017ac828262001822565b5060010162001795565b82805482825590600052602060002090810192821562001634579160200282015b82811115620016345782518290620017f0908262001929565b5091602001919060010190620017d7565b80821115620015e557600062001818828262001864565b5060010162001801565b50805462001830906200189a565b6000825580601f1062001841575050565b601f0160209004906000526020600020908101906200186191906200177e565b50565b508054600082559060005260206000209081019062001861919062001795565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620018af57607f821691505b602082108103620018d057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200192457600081815260208120601f850160051c81016020861015620018ff5750805b601f850160051c820191505b8181101562001920578281556001016200190b565b5050505b505050565b81516001600160401b0381111562001945576200194562001884565b6200195d816200195684546200189a565b84620018d6565b602080601f8311600181146200199557600084156200197c5750858301515b600019600386901b1c1916600185901b17855562001920565b600085815260208120601f198616915b82811015620019c657888601518255948401946001909101908401620019a5565b5085821015620019e55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6135908062001a056000396000f3fe6080604052600436106101d85760003560e01c80638da5cb5b11610102578063c87b56dd11610095578063de4d05e511610064578063de4d05e514610562578063e985e9c514610582578063f2fde38b146105cb578063f5aa406d146105eb57600080fd5b8063c87b56dd146104d5578063cc788513146104f5578063da3ed18514610515578063dc47dced1461054257600080fd5b8063b61c5e69116100d1578063b61c5e6914610450578063b88d4fde14610463578063bf43b5e514610483578063c0c11647146104a357600080fd5b80638da5cb5b146103dd57806395d89b41146103fb578063980846ce14610410578063a22cb4651461043057600080fd5b80632df64e551161017a5780634fa6897f116101495780634fa6897f146103585780636352211e1461037a57806370a082311461039a578063715018a6146103c857600080fd5b80632df64e55146102ee5780633bb3a24d146103035780633ccfd60b1461032357806342842e0e1461033857600080fd5b8063095ea7b3116101b6578063095ea7b31461026c5780631713ae411461028e5780631c31f710146102ae57806323b872dd146102ce57600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004612779565b61060b565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b5061022761065d565b60405161020991906127e6565b34801561024057600080fd5b5061025461024f3660046127f9565b6106ef565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c61028736600461282e565b610716565b005b34801561029a57600080fd5b506102276102a93660046128d4565b610830565b3480156102ba57600080fd5b5061028c6102c936600461297d565b610c65565b3480156102da57600080fd5b5061028c6102e9366004612998565b610c8f565b3480156102fa57600080fd5b5061028c610cc0565b34801561030f57600080fd5b5061022761031e3660046127f9565b610cd7565b34801561032f57600080fd5b5061028c610eac565b34801561034457600080fd5b5061028c610353366004612998565b610ef9565b34801561036457600080fd5b5061036d610f14565b60405161020991906129d4565b34801561038657600080fd5b506102546103953660046127f9565b610f8c565b3480156103a657600080fd5b506103ba6103b536600461297d565b610fec565b604051908152602001610209565b3480156103d457600080fd5b5061028c611072565b3480156103e957600080fd5b506000546001600160a01b0316610254565b34801561040757600080fd5b50610227611086565b34801561041c57600080fd5b5061028c61042b366004612a18565b611095565b34801561043c57600080fd5b5061028c61044b366004612a3a565b6110a8565b6103ba61045e366004612a76565b6110b7565b34801561046f57600080fd5b5061028c61047e366004612b0b565b61118f565b34801561048f57600080fd5b5061028c61049e366004612bcb565b6111c7565b3480156104af57600080fd5b506104c36104be366004612c3d565b61122f565b60405160ff9091168152602001610209565b3480156104e157600080fd5b506102276104f03660046127f9565b61132d565b34801561050157600080fd5b506103ba6105103660046127f9565b611341565b34801561052157600080fd5b506105356105303660046127f9565b611358565b6040516102099190612cc3565b34801561054e57600080fd5b5061028c61055d3660046127f9565b611654565b34801561056e57600080fd5b5061036d61057d36600461297d565b611661565b34801561058e57600080fd5b506101fd61059d366004612cfe565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156105d757600080fd5b5061028c6105e636600461297d565b6116f8565b3480156105f757600080fd5b5061028c6106063660046127f9565b611771565b60006001600160e01b031982166380ac58cd60e01b148061063c57506001600160e01b03198216635b5e139f60e01b145b8061065757506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461066c90612d31565b80601f016020809104026020016040519081016040528092919081815260200182805461069890612d31565b80156106e55780601f106106ba576101008083540402835291602001916106e5565b820191906000526020600020905b8154815290600101906020018083116106c857829003601f168201915b5050505050905090565b60006106fa8261177e565b506000908152600560205260409020546001600160a01b031690565b600061072182610f8c565b9050806001600160a01b0316836001600160a01b0316036107935760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806107af57506107af813361059d565b6108215760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161078a565b61082b83836117dd565b505050565b6060600061083d8461184b565b90506000604051806040016040528060018152602001605b60f81b81525090508061092c604051806040016040528060078152602001660c0b8814d3d55360ca1b815250601e858154811061089457610894612d65565b9060005260206000200180546108a990612d31565b80601f01602080910402602001604051908101604052809291908181526020018280546108d590612d31565b80156109225780601f106108f757610100808354040283529160200191610922565b820191906000526020600020905b81548152906001019060200180831161090557829003601f168201915b5050505050611864565b60405160200161093d929190612d97565b604051602081830303815290604052905060005b84518160ff161015610bc9576060838260ff1603610acc57610a65601d8360ff168154811061098257610982612d65565b90600052602060002001805461099790612d31565b80601f01602080910402602001604051908101604052809291908181526020018280546109c390612d31565b8015610a105780601f106109e557610100808354040283529160200191610a10565b820191906000526020600020905b8154815290600101906020018083116109f357829003601f168201915b505050505060208460ff1681548110610a2b57610a2b612d65565b90600052602060002001888560ff1681518110610a4a57610a4a612d65565b602002602001015160ff168154811061089457610894612d65565b905080610aa56040518060400160405280600a815260200169312e20464f5254554e4560b01b8152506021898660ff1681518110610a4a57610a4a612d65565b604051602001610ab6929190612dc6565b6040516020818303038152906040529050610b91565b610b8e601d8360ff1681548110610ae557610ae5612d65565b906000526020600020018054610afa90612d31565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2690612d31565b8015610b735780601f10610b4857610100808354040283529160200191610b73565b820191906000526020600020905b815481529060010190602001808311610b5657829003601f168201915b5050505050601f8460ff1681548110610a2b57610a2b612d65565b90505b8281604051602001610ba4929190612dc6565b6040516020818303038152906040529250508080610bc190612e18565b915050610951565b5080610c196040518060400160405280600581526020016408ae0dec6d60db1b8152506040518060400160405280600f81526020016e46697273742042656c69657665727360881b815250611864565b604051602001610c2a929190612dc6565b604051602081830303815290604052905080604051602001610c4c9190612e37565b60408051808303601f1901815291905295945050505050565b610c6d6118cc565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b610c993382611926565b610cb55760405162461bcd60e51b815260040161078a90612e5c565b61082b8383836119a5565b610cc86118cc565b601c805460ff19166001179055565b60606000610ce48361184b565b90506000610cf184611b41565b610cfc906001612eaa565b90506000610d0985611358565b90506000600a8310610d515760648310610d325760405180602001604052806000815250610d6d565b604051806040016040528060018152602001600360fc1b815250610d6d565b60405180604001604052806002815260200161030360f41b8152505b610d7684611b5a565b604051602001610d87929190612d97565b60405160208183030381529060405290506000601e8581548110610dad57610dad612d65565b906000526020600020018260405180608001604052806052815260200161350960529139601e8881548110610de457610de4612d65565b906000526020600020016040518060400160405280601b81526020017f68747470733a2f2f7777772e64656e64656b6164656e2e636f6d2f0000000000815250610e478a898c81518110610e3a57610e3a612d65565b6020026020010151611c5b565b610e518d8a610830565b604051602001610e679796959493929190612f30565b6040516020818303038152906040529050610e8181611c86565b604051602001610e91919061308a565b60405160208183030381529060405295505050505050919050565b6022546040516001600160a01b03909116904790600081818185875af1925050503d806000811461082b576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b61082b8383836040518060200160405280600081525061118f565b6040805160078082526101008201909252606091600091906020820160e08036833701905050905060005b600760ff82161015610f8657610f5481611dd8565b828260ff1681518110610f6957610f69612d65565b602090810291909101015280610f7e81612e18565b915050610f3f565b50919050565b6000818152600360205260408120546001600160a01b0316806106575760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161078a565b60006001600160a01b0382166110565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161078a565b506001600160a01b031660009081526004602052604090205490565b61107a6118cc565b6110846000611e50565b565b60606002805461066c90612d31565b61109d6118cc565b601391909155601455565b6110b3338383611ea0565b5050565b600042601454116110d4576110cd836001611f6e565b9050610657565b4260135411611114576110eb82601254600161216d565b806110ff57506110ff82601654600061216d565b1561110f576110cd836001611f6e565b611130565b61112282601654600061216d565b15611130576110cd83612206565b60405162461bcd60e51b815260206004820152602e60248201527f4444444f3a204e6f7420656c696761626c65206f7220616c726561647920776860448201526d1a5d195b1a5cdd081b5a5b9d195960921b606482015260840161078a565b6111993383611926565b6111b55760405162461bcd60e51b815260040161078a90612e5c565b6111c18484848461227d565b50505050565b6111cf6118cc565b601c5460ff16156112225760405162461bcd60e51b815260206004820152601860248201527f4444444f3a20496d6720557269206973206c6f636b6564210000000000000000604482015260640161078a565b601b61082b82848361311d565b6000426014541161124257506001611326565b6040516001600160601b0319606086901b16602082015260009060340160405160208183030381529060405280519060200120905042601354116112d0576112c18484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060125491508490506122b0565b156112d0576002915050611326565b6113118484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060165491508490506122b0565b15611320576003915050611326565b60009150505b9392505050565b60606113388261177e565b61065782610cd7565b6009816007811061135157600080fd5b0154905081565b606060006113658361184b565b60408051600880825261012082019092529192506000919060208201610100803683370190505060008581526010602090815260408083208151808301835281548082526001909201548185018190528351948501929092529183015260608201889052929350608001604051602081830303815290604052905060005b600881101561164957606085820361154057876009836007811061140957611409612d65565b01540361145e57604080516001808252818301909252906020808301908036833701905050905060058160008151811061144557611445612d65565b602002602001019060ff16908160ff16815250506115b2565b66f8b0a10e4700008460200151106114e657601a8054806020026020016040519081016040528092919081815260200182805480156114da57602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116114ab5790505b505050505090506115b2565b60198054806020026020016040519081016040528092919081815260200182805480156114da576000918252602091829020805460ff1684529082028301929091600191018084116114ab579050505050505090506115b2565b60188054806020026020016040519081016040528092919081815260200182805480156115aa57602002820191906000526020600020906000905b825461010083900a900460ff1681526020600192830181810494850194909303909202910180841161157b5790505b505050505090505b600083836040516020016115c79291906131de565b6040516020818303038152906040528051906020012060001c90506000828351836115f29190613216565b8151811061160257611602612d65565b602002602001015190508087858151811061161f5761161f612d65565b602002602001019060ff16908160ff168152505050505080806116419061322a565b9150506113e3565b509195945050505050565b61165c6118cc565b601655565b6040805160078082526101008201909252606091600091906020820160e08036833701905050905060005b600760ff821610156116f1576001600160a01b038416600090815260116020908152604080832060ff851680855292529091205483519091849181106116d4576116d4612d65565b6020908102919091010152806116e981612e18565b91505061168c565b5092915050565b6117006118cc565b6001600160a01b0381166117655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161078a565b61176e81611e50565b50565b6117796118cc565b601255565b6000818152600360205260409020546001600160a01b031661176e5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161078a565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061181282610f8c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000606c61185a600184613243565b6106579190613256565b606082604051602001611877919061326a565b6040516020818303038152906040528260405160200161189791906132ae565b60408051601f19818403018152908290526118b592916020016132ec565b604051602081830303815290604052905092915050565b6000546001600160a01b031633146110845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161078a565b60008061193283610f8c565b9050806001600160a01b0316846001600160a01b0316148061197957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b8061199d5750836001600160a01b0316611992846106ef565b6001600160a01b0316145b949350505050565b826001600160a01b03166119b882610f8c565b6001600160a01b031614611a1c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161078a565b6001600160a01b038216611a7e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161078a565b611a896000826117dd565b6001600160a01b0383166000908152600460205260408120805460019290611ab2908490613243565b90915550506001600160a01b0382166000908152600460205260408120805460019290611ae0908490612eaa565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000606c611b50600184613243565b6106579190613216565b606081600003611b815750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bab5780611b958161322a565b9150611ba49050600a83613256565b9150611b85565b60008167ffffffffffffffff811115611bc657611bc6612858565b6040519080825280601f01601f191660200182016040528015611bf0576020820181803683370190505b5090505b841561199d57611c05600183613243565b9150611c12600a86613216565b611c1d906030612eaa565b60f81b818381518110611c3257611c32612d65565b60200101906001600160f81b031916908160001a905350611c54600a86613256565b9450611bf4565b6060601b611c6884611b5a565b611c748460ff16611b5a565b6040516020016118b593929190613339565b60608151600003611ca557505060408051602081019091526000815290565b60006040518060600160405280604081526020016134c96040913990506000600384516002611cd49190612eaa565b611cde9190613256565b611ce9906004613390565b67ffffffffffffffff811115611d0157611d01612858565b6040519080825280601f01601f191660200182016040528015611d2b576020820181803683370190505b509050600182016020820185865187015b80821015611d97576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611d3c565b5050600386510660018114611db35760028114611dc657611649565b603d6001830353603d6002830353611649565b603d6001830353509195945050505050565b600060088260ff1660078110611df057611df0612d65565b602081049091015460ff601f9092166101000a90048116906007908416818110611e1c57611e1c612d65565b602081049190910154611e3c91601f166101000a900460ff16606c6133a7565b611e4691906133a7565b61ffff1692915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031603611f015760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161078a565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000323314611fb65760405162461bcd60e51b815260206004820152601460248201527311111113ce881b5d5cdd081899481dd85b1b195d60621b604482015260640161078a565b33600090815260116020908152604080832060ff87168452909152902054156120215760405162461bcd60e51b815260206004820152601e60248201527f4444444f3a204f6e6c792031206f6d696b756a69207065722063686172610000604482015260640161078a565b600061202d84846122c6565b60008181526010602052604090204280825534600183015591925084801561206a575060098660ff166007811061206657612066612d65565b0154155b1561213957600061207a87611dd8565b9050806000036120a2578360098860ff166007811061209b5761209b612d65565b0155612137565b8066f8b0a10e47000034106120c557600581116120bf57806120c2565b60055b90505b6040805160208082018890523360601b6001600160601b0319168284015260548083018890528351808403909101815260749092019092528051910120600090612110908390613216565b905080600003612134578560098a60ff166007811061213157612131612d65565b01555b50505b505b61214333846124b2565b505033600090815260116020908152604080832060ff881684529091529020819055905092915050565b3360009081526015602052604081205460ff161561218d57506000611326565b6040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506121cc8585836122b0565b6121da576000915050611326565b82156121fb57336000908152601560205260409020805460ff191660011790555b506001949350505050565b600080601754116122595760405162461bcd60e51b815260206004820152601860248201527f4444444f3a204e6f206d6f7265207465616d206d696e74730000000000000000604482015260640161078a565b60016017600082825461226c9190613243565b909155506106579050826000611f6e565b6122888484846119a5565b612294848484846125f4565b6111c15760405162461bcd60e51b815260040161078a906133c2565b6000826122bd85846126ea565b14949350505050565b6000600760ff84161061231b5760405162461bcd60e51b815260206004820152601b60248201527f4444444f3a20496e76616c696420636861726163746572206964210000000000604482015260640161078a565b600061232684611dd8565b116123735760405162461bcd60e51b815260206004820152601f60248201527f4444444f3a204e6f206d6f7265206f6d696b756a6920617661696c61626c6500604482015260640161078a565b6000821561240157600160078560ff166007811061239357612393612d65565b602091828204019190068282829054906101000a900460ff166123b69190613414565b92506101000a81548160ff021916908360ff16021790555060078460ff16600781106123e4576123e4612d65565b602081049091015460ff601f9092166101000a900416905061248d565b60088460ff166007811061241757612417612d65565b60208104919091015461243791601f166101000a900460ff16606c6133a7565b9050600160088560ff166007811061245157612451612d65565b602091828204019190068282829054906101000a900460ff166124749190613414565b92506101000a81548160ff021916908360ff1602179055505b8061249c606c60ff871661342d565b6124a69190613453565b61ffff16949350505050565b6001600160a01b0382166125085760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161078a565b6000818152600360205260409020546001600160a01b03161561256d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161078a565b6001600160a01b0382166000908152600460205260408120805460019290612596908490612eaa565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156121fb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061263890339089908890889060040161346e565b6020604051808303816000875af1925050508015612673575060408051601f3d908101601f19168201909252612670918101906134ab565b60015b6126d0573d8080156126a1576040519150601f19603f3d011682016040523d82523d6000602084013e6126a6565b606091505b5080516000036126c85760405162461bcd60e51b815260040161078a906133c2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061199d565b600081815b845181101561272f5761271b8286838151811061270e5761270e612d65565b6020026020010151612737565b9150806127278161322a565b9150506126ef565b509392505050565b6000818310612753576000828152602084905260409020611326565b5060009182526020526040902090565b6001600160e01b03198116811461176e57600080fd5b60006020828403121561278b57600080fd5b813561132681612763565b60005b838110156127b1578181015183820152602001612799565b50506000910152565b600081518084526127d2816020860160208601612796565b601f01601f19169290920160200192915050565b60208152600061132660208301846127ba565b60006020828403121561280b57600080fd5b5035919050565b80356001600160a01b038116811461282957600080fd5b919050565b6000806040838503121561284157600080fd5b61284a83612812565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561289757612897612858565b604052919050565b600067ffffffffffffffff8211156128b9576128b9612858565b5060051b60200190565b803560ff8116811461282957600080fd5b600080604083850312156128e757600080fd5b8235915060208084013567ffffffffffffffff81111561290657600080fd5b8401601f8101861361291757600080fd5b803561292a6129258261289f565b61286e565b81815260059190911b8201830190838101908883111561294957600080fd5b928401925b8284101561296e5761295f846128c3565b8252928401929084019061294e565b80955050505050509250929050565b60006020828403121561298f57600080fd5b61132682612812565b6000806000606084860312156129ad57600080fd5b6129b684612812565b92506129c460208501612812565b9150604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612a0c578351835292840192918401916001016129f0565b50909695505050505050565b60008060408385031215612a2b57600080fd5b50508035926020909101359150565b60008060408385031215612a4d57600080fd5b612a5683612812565b915060208301358015158114612a6b57600080fd5b809150509250929050565b60008060408385031215612a8957600080fd5b612a92836128c3565b915060208084013567ffffffffffffffff811115612aaf57600080fd5b8401601f81018613612ac057600080fd5b8035612ace6129258261289f565b81815260059190911b82018301908381019088831115612aed57600080fd5b928401925b8284101561296e57833582529284019290840190612af2565b60008060008060808587031215612b2157600080fd5b612b2a85612812565b93506020612b39818701612812565b935060408601359250606086013567ffffffffffffffff80821115612b5d57600080fd5b818801915088601f830112612b7157600080fd5b813581811115612b8357612b83612858565b612b95601f8201601f1916850161286e565b91508082528984828501011115612bab57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060208385031215612bde57600080fd5b823567ffffffffffffffff80821115612bf657600080fd5b818501915085601f830112612c0a57600080fd5b813581811115612c1957600080fd5b866020828501011115612c2b57600080fd5b60209290920196919550909350505050565b600080600060408486031215612c5257600080fd5b612c5b84612812565b9250602084013567ffffffffffffffff80821115612c7857600080fd5b818601915086601f830112612c8c57600080fd5b813581811115612c9b57600080fd5b8760208260051b8501011115612cb057600080fd5b6020830194508093505050509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612a0c57835160ff1683529284019291840191600101612cdf565b60008060408385031215612d1157600080fd5b612d1a83612812565b9150612d2860208401612812565b90509250929050565b600181811c90821680612d4557607f821691505b602082108103610f8657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008151612d8d818560208601612796565b9290920192915050565b60008351612da9818460208801612796565b835190830190612dbd818360208801612796565b01949350505050565b60008351612dd8818460208801612796565b600b60fa1b9083019081528351612df6816001840160208801612796565b01600101949350505050565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff8103612e2e57612e2e612e02565b60010192915050565b60008251612e49818460208701612796565b605d60f81b920191825250600101919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b8082018082111561065757610657612e02565b60008154612eca81612d31565b60018281168015612ee25760018114612ef757612f26565b60ff1984168752821515830287019450612f26565b8560005260208060002060005b85811015612f1d5781548a820152908401908201612f04565b50505082870194505b5050505092915050565b607b60f81b815268113730b6b2911d101160b91b60018201526000612f58600a83018a612ebd565b6b277320466f7274756e65202360a01b81528851612f7d81600c840160208d01612796565b61088b60f21b600c92909101918201526f113232b9b1b934b83a34b7b7111d101160811b600e8201528751612fb981601e840160208c01612796565b612fc8601e8284010189612ebd565b915050601760f91b815261307c61306f61306961304f61302561304961303361302561301f61300260018b0161088b60f21b815260020190565b701132bc3a32b93730b62fbab936111d101160791b815260110190565b8e612d7b565b61088b60f21b815260020190565b691134b6b0b3b2911d101160b11b8152600a0190565b8a612d7b565b6d01130ba3a3934b13aba32b9911d160951b8152600e0190565b86612d7b565b607d60f81b815260010190565b9a9950505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516130c281601d850160208701612796565b91909101601d0192915050565b601f82111561082b57600081815260208120601f850160051c810160208610156130f65750805b601f850160051c820191505b8181101561311557828155600101613102565b505050505050565b67ffffffffffffffff83111561313557613135612858565b613149836131438354612d31565b836130cf565b6000601f84116001811461317d57600085156131655750838201355b600019600387901b1c1916600186901b1783556131d7565b600083815260209020601f19861690835b828110156131ae578685013582556020948501946001909201910161318e565b50868210156131cb5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b600083516131f0818460208801612796565b9190910191825250602001919050565b634e487b7160e01b600052601260045260246000fd5b60008261322557613225613200565b500690565b60006001820161323c5761323c612e02565b5060010190565b8181038181111561065757610657612e02565b60008261326557613265613200565b500490565b6e113a3930b4ba2fba3cb832911d101160891b8152815160009061329581600f850160208701612796565b61088b60f21b600f939091019283015250601101919050565b69113b30b63ab2911d101160b11b815281516000906132d481600a850160208701612796565b601160f91b600a939091019283015250600b01919050565b607b60f81b815260008351613308816001850160208801612796565b83519083019061331f816001840160208801612796565b607d60f81b60019290910191820152600201949350505050565b60006133458286612ebd565b8451613355818360208901612796565b605f60f81b91019081528351613372816001840160208801612796565b632e706e6760e01b6001929091019182015260050195945050505050565b808202811582820484141761065757610657612e02565b61ffff8281168282160390808211156116f1576116f1612e02565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60ff818116838216019081111561065757610657612e02565b61ffff81811683821602808216919082811461344b5761344b612e02565b505092915050565b61ffff8181168382160190808211156116f1576116f1612e02565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134a1908301846127ba565b9695505050505050565b6000602082840312156134bd57600080fd5b81516113268161276356fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f536163726564206c6f747320647261776e206279207468652046697273742042656c6965766572732c20616e642068656c6420627920746865206d6f737420617264656e74204465766f74656573206f6620a2646970667358221220f42fe2cf618525143968efc9a55e0ae443b277d6f01e35e2e97dcdf67251eeab64736f6c63430008110033e887aae4bfa1e68c81e381a6e38288e3828de38197e38197e3818be381aae38184e69da5e3828be381a8e38282e98185e3819720e5be80e3818de381a6e588a9e38182e3828ae588a9e79b8ae5b091e38197e784a6e3828be381aae38080e5be8ce381abe381aae3828ce381b0e79b8ae38182e3828ae5a49ce58b95e3818be381b0e3818ae3818ae38184e381abe588a9e38182e3828ae4bfa1e5bf83e38199e3828ce381b0e381a9e38193e381bee381a7e38282e4bcb8e381b3e3828be6ada9e381bfe98185e3818fe381a8e38282e79d80e5ae9fe381abe5ae9fe3828be5bea1e7a59ee5beb3e381abe38288e3828ae68890e58a9fe38197e3818be381aae38184e5bf83e7a98fe38284e3818be381abe9818ee38194e3819b20e5bfabe696b9e381abe59091e3818be38186e58a9be59088e3828fe3819be3828ce381b0e3818de381a3e381a8e58fb6e38186e4b88de8a880e5ae9fe8a18ce381abe381a6e58b9de381a4e38193e381a8e38284e38199e38197e69da5e381a6e5969ce381b3e381aee5a58fe38193e381a0e381bee38199e3828be4bb8ae59b9ee381afe8aba6e38281e58887e3828ae69bbfe38188e3828be381b9e3819768747470733a2f2f64656e64656b6164656e2e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2fe5a0b4e68980e381abe59fb7e79d80e38199e3828be381aa20e38184e38191e38186e381bee3818fe38184e3818fe8bfb7e38186e38193e381a8e381aae3818be3828c20e5bf83e381abe6b1bae38281e3819fe4babae3818ce69c80e4b88a

Deployed Bytecode

0x6080604052600436106101d85760003560e01c80638da5cb5b11610102578063c87b56dd11610095578063de4d05e511610064578063de4d05e514610562578063e985e9c514610582578063f2fde38b146105cb578063f5aa406d146105eb57600080fd5b8063c87b56dd146104d5578063cc788513146104f5578063da3ed18514610515578063dc47dced1461054257600080fd5b8063b61c5e69116100d1578063b61c5e6914610450578063b88d4fde14610463578063bf43b5e514610483578063c0c11647146104a357600080fd5b80638da5cb5b146103dd57806395d89b41146103fb578063980846ce14610410578063a22cb4651461043057600080fd5b80632df64e551161017a5780634fa6897f116101495780634fa6897f146103585780636352211e1461037a57806370a082311461039a578063715018a6146103c857600080fd5b80632df64e55146102ee5780633bb3a24d146103035780633ccfd60b1461032357806342842e0e1461033857600080fd5b8063095ea7b3116101b6578063095ea7b31461026c5780631713ae411461028e5780631c31f710146102ae57806323b872dd146102ce57600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004612779565b61060b565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b5061022761065d565b60405161020991906127e6565b34801561024057600080fd5b5061025461024f3660046127f9565b6106ef565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c61028736600461282e565b610716565b005b34801561029a57600080fd5b506102276102a93660046128d4565b610830565b3480156102ba57600080fd5b5061028c6102c936600461297d565b610c65565b3480156102da57600080fd5b5061028c6102e9366004612998565b610c8f565b3480156102fa57600080fd5b5061028c610cc0565b34801561030f57600080fd5b5061022761031e3660046127f9565b610cd7565b34801561032f57600080fd5b5061028c610eac565b34801561034457600080fd5b5061028c610353366004612998565b610ef9565b34801561036457600080fd5b5061036d610f14565b60405161020991906129d4565b34801561038657600080fd5b506102546103953660046127f9565b610f8c565b3480156103a657600080fd5b506103ba6103b536600461297d565b610fec565b604051908152602001610209565b3480156103d457600080fd5b5061028c611072565b3480156103e957600080fd5b506000546001600160a01b0316610254565b34801561040757600080fd5b50610227611086565b34801561041c57600080fd5b5061028c61042b366004612a18565b611095565b34801561043c57600080fd5b5061028c61044b366004612a3a565b6110a8565b6103ba61045e366004612a76565b6110b7565b34801561046f57600080fd5b5061028c61047e366004612b0b565b61118f565b34801561048f57600080fd5b5061028c61049e366004612bcb565b6111c7565b3480156104af57600080fd5b506104c36104be366004612c3d565b61122f565b60405160ff9091168152602001610209565b3480156104e157600080fd5b506102276104f03660046127f9565b61132d565b34801561050157600080fd5b506103ba6105103660046127f9565b611341565b34801561052157600080fd5b506105356105303660046127f9565b611358565b6040516102099190612cc3565b34801561054e57600080fd5b5061028c61055d3660046127f9565b611654565b34801561056e57600080fd5b5061036d61057d36600461297d565b611661565b34801561058e57600080fd5b506101fd61059d366004612cfe565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156105d757600080fd5b5061028c6105e636600461297d565b6116f8565b3480156105f757600080fd5b5061028c6106063660046127f9565b611771565b60006001600160e01b031982166380ac58cd60e01b148061063c57506001600160e01b03198216635b5e139f60e01b145b8061065757506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461066c90612d31565b80601f016020809104026020016040519081016040528092919081815260200182805461069890612d31565b80156106e55780601f106106ba576101008083540402835291602001916106e5565b820191906000526020600020905b8154815290600101906020018083116106c857829003601f168201915b5050505050905090565b60006106fa8261177e565b506000908152600560205260409020546001600160a01b031690565b600061072182610f8c565b9050806001600160a01b0316836001600160a01b0316036107935760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806107af57506107af813361059d565b6108215760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161078a565b61082b83836117dd565b505050565b6060600061083d8461184b565b90506000604051806040016040528060018152602001605b60f81b81525090508061092c604051806040016040528060078152602001660c0b8814d3d55360ca1b815250601e858154811061089457610894612d65565b9060005260206000200180546108a990612d31565b80601f01602080910402602001604051908101604052809291908181526020018280546108d590612d31565b80156109225780601f106108f757610100808354040283529160200191610922565b820191906000526020600020905b81548152906001019060200180831161090557829003601f168201915b5050505050611864565b60405160200161093d929190612d97565b604051602081830303815290604052905060005b84518160ff161015610bc9576060838260ff1603610acc57610a65601d8360ff168154811061098257610982612d65565b90600052602060002001805461099790612d31565b80601f01602080910402602001604051908101604052809291908181526020018280546109c390612d31565b8015610a105780601f106109e557610100808354040283529160200191610a10565b820191906000526020600020905b8154815290600101906020018083116109f357829003601f168201915b505050505060208460ff1681548110610a2b57610a2b612d65565b90600052602060002001888560ff1681518110610a4a57610a4a612d65565b602002602001015160ff168154811061089457610894612d65565b905080610aa56040518060400160405280600a815260200169312e20464f5254554e4560b01b8152506021898660ff1681518110610a4a57610a4a612d65565b604051602001610ab6929190612dc6565b6040516020818303038152906040529050610b91565b610b8e601d8360ff1681548110610ae557610ae5612d65565b906000526020600020018054610afa90612d31565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2690612d31565b8015610b735780601f10610b4857610100808354040283529160200191610b73565b820191906000526020600020905b815481529060010190602001808311610b5657829003601f168201915b5050505050601f8460ff1681548110610a2b57610a2b612d65565b90505b8281604051602001610ba4929190612dc6565b6040516020818303038152906040529250508080610bc190612e18565b915050610951565b5080610c196040518060400160405280600581526020016408ae0dec6d60db1b8152506040518060400160405280600f81526020016e46697273742042656c69657665727360881b815250611864565b604051602001610c2a929190612dc6565b604051602081830303815290604052905080604051602001610c4c9190612e37565b60408051808303601f1901815291905295945050505050565b610c6d6118cc565b602280546001600160a01b0319166001600160a01b0392909216919091179055565b610c993382611926565b610cb55760405162461bcd60e51b815260040161078a90612e5c565b61082b8383836119a5565b610cc86118cc565b601c805460ff19166001179055565b60606000610ce48361184b565b90506000610cf184611b41565b610cfc906001612eaa565b90506000610d0985611358565b90506000600a8310610d515760648310610d325760405180602001604052806000815250610d6d565b604051806040016040528060018152602001600360fc1b815250610d6d565b60405180604001604052806002815260200161030360f41b8152505b610d7684611b5a565b604051602001610d87929190612d97565b60405160208183030381529060405290506000601e8581548110610dad57610dad612d65565b906000526020600020018260405180608001604052806052815260200161350960529139601e8881548110610de457610de4612d65565b906000526020600020016040518060400160405280601b81526020017f68747470733a2f2f7777772e64656e64656b6164656e2e636f6d2f0000000000815250610e478a898c81518110610e3a57610e3a612d65565b6020026020010151611c5b565b610e518d8a610830565b604051602001610e679796959493929190612f30565b6040516020818303038152906040529050610e8181611c86565b604051602001610e91919061308a565b60405160208183030381529060405295505050505050919050565b6022546040516001600160a01b03909116904790600081818185875af1925050503d806000811461082b576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b61082b8383836040518060200160405280600081525061118f565b6040805160078082526101008201909252606091600091906020820160e08036833701905050905060005b600760ff82161015610f8657610f5481611dd8565b828260ff1681518110610f6957610f69612d65565b602090810291909101015280610f7e81612e18565b915050610f3f565b50919050565b6000818152600360205260408120546001600160a01b0316806106575760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161078a565b60006001600160a01b0382166110565760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161078a565b506001600160a01b031660009081526004602052604090205490565b61107a6118cc565b6110846000611e50565b565b60606002805461066c90612d31565b61109d6118cc565b601391909155601455565b6110b3338383611ea0565b5050565b600042601454116110d4576110cd836001611f6e565b9050610657565b4260135411611114576110eb82601254600161216d565b806110ff57506110ff82601654600061216d565b1561110f576110cd836001611f6e565b611130565b61112282601654600061216d565b15611130576110cd83612206565b60405162461bcd60e51b815260206004820152602e60248201527f4444444f3a204e6f7420656c696761626c65206f7220616c726561647920776860448201526d1a5d195b1a5cdd081b5a5b9d195960921b606482015260840161078a565b6111993383611926565b6111b55760405162461bcd60e51b815260040161078a90612e5c565b6111c18484848461227d565b50505050565b6111cf6118cc565b601c5460ff16156112225760405162461bcd60e51b815260206004820152601860248201527f4444444f3a20496d6720557269206973206c6f636b6564210000000000000000604482015260640161078a565b601b61082b82848361311d565b6000426014541161124257506001611326565b6040516001600160601b0319606086901b16602082015260009060340160405160208183030381529060405280519060200120905042601354116112d0576112c18484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060125491508490506122b0565b156112d0576002915050611326565b6113118484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060165491508490506122b0565b15611320576003915050611326565b60009150505b9392505050565b60606113388261177e565b61065782610cd7565b6009816007811061135157600080fd5b0154905081565b606060006113658361184b565b60408051600880825261012082019092529192506000919060208201610100803683370190505060008581526010602090815260408083208151808301835281548082526001909201548185018190528351948501929092529183015260608201889052929350608001604051602081830303815290604052905060005b600881101561164957606085820361154057876009836007811061140957611409612d65565b01540361145e57604080516001808252818301909252906020808301908036833701905050905060058160008151811061144557611445612d65565b602002602001019060ff16908160ff16815250506115b2565b66f8b0a10e4700008460200151106114e657601a8054806020026020016040519081016040528092919081815260200182805480156114da57602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116114ab5790505b505050505090506115b2565b60198054806020026020016040519081016040528092919081815260200182805480156114da576000918252602091829020805460ff1684529082028301929091600191018084116114ab579050505050505090506115b2565b60188054806020026020016040519081016040528092919081815260200182805480156115aa57602002820191906000526020600020906000905b825461010083900a900460ff1681526020600192830181810494850194909303909202910180841161157b5790505b505050505090505b600083836040516020016115c79291906131de565b6040516020818303038152906040528051906020012060001c90506000828351836115f29190613216565b8151811061160257611602612d65565b602002602001015190508087858151811061161f5761161f612d65565b602002602001019060ff16908160ff168152505050505080806116419061322a565b9150506113e3565b509195945050505050565b61165c6118cc565b601655565b6040805160078082526101008201909252606091600091906020820160e08036833701905050905060005b600760ff821610156116f1576001600160a01b038416600090815260116020908152604080832060ff851680855292529091205483519091849181106116d4576116d4612d65565b6020908102919091010152806116e981612e18565b91505061168c565b5092915050565b6117006118cc565b6001600160a01b0381166117655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161078a565b61176e81611e50565b50565b6117796118cc565b601255565b6000818152600360205260409020546001600160a01b031661176e5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161078a565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061181282610f8c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000606c61185a600184613243565b6106579190613256565b606082604051602001611877919061326a565b6040516020818303038152906040528260405160200161189791906132ae565b60408051601f19818403018152908290526118b592916020016132ec565b604051602081830303815290604052905092915050565b6000546001600160a01b031633146110845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161078a565b60008061193283610f8c565b9050806001600160a01b0316846001600160a01b0316148061197957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b8061199d5750836001600160a01b0316611992846106ef565b6001600160a01b0316145b949350505050565b826001600160a01b03166119b882610f8c565b6001600160a01b031614611a1c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161078a565b6001600160a01b038216611a7e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161078a565b611a896000826117dd565b6001600160a01b0383166000908152600460205260408120805460019290611ab2908490613243565b90915550506001600160a01b0382166000908152600460205260408120805460019290611ae0908490612eaa565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000606c611b50600184613243565b6106579190613216565b606081600003611b815750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bab5780611b958161322a565b9150611ba49050600a83613256565b9150611b85565b60008167ffffffffffffffff811115611bc657611bc6612858565b6040519080825280601f01601f191660200182016040528015611bf0576020820181803683370190505b5090505b841561199d57611c05600183613243565b9150611c12600a86613216565b611c1d906030612eaa565b60f81b818381518110611c3257611c32612d65565b60200101906001600160f81b031916908160001a905350611c54600a86613256565b9450611bf4565b6060601b611c6884611b5a565b611c748460ff16611b5a565b6040516020016118b593929190613339565b60608151600003611ca557505060408051602081019091526000815290565b60006040518060600160405280604081526020016134c96040913990506000600384516002611cd49190612eaa565b611cde9190613256565b611ce9906004613390565b67ffffffffffffffff811115611d0157611d01612858565b6040519080825280601f01601f191660200182016040528015611d2b576020820181803683370190505b509050600182016020820185865187015b80821015611d97576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611d3c565b5050600386510660018114611db35760028114611dc657611649565b603d6001830353603d6002830353611649565b603d6001830353509195945050505050565b600060088260ff1660078110611df057611df0612d65565b602081049091015460ff601f9092166101000a90048116906007908416818110611e1c57611e1c612d65565b602081049190910154611e3c91601f166101000a900460ff16606c6133a7565b611e4691906133a7565b61ffff1692915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031603611f015760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161078a565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000323314611fb65760405162461bcd60e51b815260206004820152601460248201527311111113ce881b5d5cdd081899481dd85b1b195d60621b604482015260640161078a565b33600090815260116020908152604080832060ff87168452909152902054156120215760405162461bcd60e51b815260206004820152601e60248201527f4444444f3a204f6e6c792031206f6d696b756a69207065722063686172610000604482015260640161078a565b600061202d84846122c6565b60008181526010602052604090204280825534600183015591925084801561206a575060098660ff166007811061206657612066612d65565b0154155b1561213957600061207a87611dd8565b9050806000036120a2578360098860ff166007811061209b5761209b612d65565b0155612137565b8066f8b0a10e47000034106120c557600581116120bf57806120c2565b60055b90505b6040805160208082018890523360601b6001600160601b0319168284015260548083018890528351808403909101815260749092019092528051910120600090612110908390613216565b905080600003612134578560098a60ff166007811061213157612131612d65565b01555b50505b505b61214333846124b2565b505033600090815260116020908152604080832060ff881684529091529020819055905092915050565b3360009081526015602052604081205460ff161561218d57506000611326565b6040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506121cc8585836122b0565b6121da576000915050611326565b82156121fb57336000908152601560205260409020805460ff191660011790555b506001949350505050565b600080601754116122595760405162461bcd60e51b815260206004820152601860248201527f4444444f3a204e6f206d6f7265207465616d206d696e74730000000000000000604482015260640161078a565b60016017600082825461226c9190613243565b909155506106579050826000611f6e565b6122888484846119a5565b612294848484846125f4565b6111c15760405162461bcd60e51b815260040161078a906133c2565b6000826122bd85846126ea565b14949350505050565b6000600760ff84161061231b5760405162461bcd60e51b815260206004820152601b60248201527f4444444f3a20496e76616c696420636861726163746572206964210000000000604482015260640161078a565b600061232684611dd8565b116123735760405162461bcd60e51b815260206004820152601f60248201527f4444444f3a204e6f206d6f7265206f6d696b756a6920617661696c61626c6500604482015260640161078a565b6000821561240157600160078560ff166007811061239357612393612d65565b602091828204019190068282829054906101000a900460ff166123b69190613414565b92506101000a81548160ff021916908360ff16021790555060078460ff16600781106123e4576123e4612d65565b602081049091015460ff601f9092166101000a900416905061248d565b60088460ff166007811061241757612417612d65565b60208104919091015461243791601f166101000a900460ff16606c6133a7565b9050600160088560ff166007811061245157612451612d65565b602091828204019190068282829054906101000a900460ff166124749190613414565b92506101000a81548160ff021916908360ff1602179055505b8061249c606c60ff871661342d565b6124a69190613453565b61ffff16949350505050565b6001600160a01b0382166125085760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161078a565b6000818152600360205260409020546001600160a01b03161561256d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161078a565b6001600160a01b0382166000908152600460205260408120805460019290612596908490612eaa565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156121fb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061263890339089908890889060040161346e565b6020604051808303816000875af1925050508015612673575060408051601f3d908101601f19168201909252612670918101906134ab565b60015b6126d0573d8080156126a1576040519150601f19603f3d011682016040523d82523d6000602084013e6126a6565b606091505b5080516000036126c85760405162461bcd60e51b815260040161078a906133c2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061199d565b600081815b845181101561272f5761271b8286838151811061270e5761270e612d65565b6020026020010151612737565b9150806127278161322a565b9150506126ef565b509392505050565b6000818310612753576000828152602084905260409020611326565b5060009182526020526040902090565b6001600160e01b03198116811461176e57600080fd5b60006020828403121561278b57600080fd5b813561132681612763565b60005b838110156127b1578181015183820152602001612799565b50506000910152565b600081518084526127d2816020860160208601612796565b601f01601f19169290920160200192915050565b60208152600061132660208301846127ba565b60006020828403121561280b57600080fd5b5035919050565b80356001600160a01b038116811461282957600080fd5b919050565b6000806040838503121561284157600080fd5b61284a83612812565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561289757612897612858565b604052919050565b600067ffffffffffffffff8211156128b9576128b9612858565b5060051b60200190565b803560ff8116811461282957600080fd5b600080604083850312156128e757600080fd5b8235915060208084013567ffffffffffffffff81111561290657600080fd5b8401601f8101861361291757600080fd5b803561292a6129258261289f565b61286e565b81815260059190911b8201830190838101908883111561294957600080fd5b928401925b8284101561296e5761295f846128c3565b8252928401929084019061294e565b80955050505050509250929050565b60006020828403121561298f57600080fd5b61132682612812565b6000806000606084860312156129ad57600080fd5b6129b684612812565b92506129c460208501612812565b9150604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612a0c578351835292840192918401916001016129f0565b50909695505050505050565b60008060408385031215612a2b57600080fd5b50508035926020909101359150565b60008060408385031215612a4d57600080fd5b612a5683612812565b915060208301358015158114612a6b57600080fd5b809150509250929050565b60008060408385031215612a8957600080fd5b612a92836128c3565b915060208084013567ffffffffffffffff811115612aaf57600080fd5b8401601f81018613612ac057600080fd5b8035612ace6129258261289f565b81815260059190911b82018301908381019088831115612aed57600080fd5b928401925b8284101561296e57833582529284019290840190612af2565b60008060008060808587031215612b2157600080fd5b612b2a85612812565b93506020612b39818701612812565b935060408601359250606086013567ffffffffffffffff80821115612b5d57600080fd5b818801915088601f830112612b7157600080fd5b813581811115612b8357612b83612858565b612b95601f8201601f1916850161286e565b91508082528984828501011115612bab57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060208385031215612bde57600080fd5b823567ffffffffffffffff80821115612bf657600080fd5b818501915085601f830112612c0a57600080fd5b813581811115612c1957600080fd5b866020828501011115612c2b57600080fd5b60209290920196919550909350505050565b600080600060408486031215612c5257600080fd5b612c5b84612812565b9250602084013567ffffffffffffffff80821115612c7857600080fd5b818601915086601f830112612c8c57600080fd5b813581811115612c9b57600080fd5b8760208260051b8501011115612cb057600080fd5b6020830194508093505050509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612a0c57835160ff1683529284019291840191600101612cdf565b60008060408385031215612d1157600080fd5b612d1a83612812565b9150612d2860208401612812565b90509250929050565b600181811c90821680612d4557607f821691505b602082108103610f8657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60008151612d8d818560208601612796565b9290920192915050565b60008351612da9818460208801612796565b835190830190612dbd818360208801612796565b01949350505050565b60008351612dd8818460208801612796565b600b60fa1b9083019081528351612df6816001840160208801612796565b01600101949350505050565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff8103612e2e57612e2e612e02565b60010192915050565b60008251612e49818460208701612796565b605d60f81b920191825250600101919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b8082018082111561065757610657612e02565b60008154612eca81612d31565b60018281168015612ee25760018114612ef757612f26565b60ff1984168752821515830287019450612f26565b8560005260208060002060005b85811015612f1d5781548a820152908401908201612f04565b50505082870194505b5050505092915050565b607b60f81b815268113730b6b2911d101160b91b60018201526000612f58600a83018a612ebd565b6b277320466f7274756e65202360a01b81528851612f7d81600c840160208d01612796565b61088b60f21b600c92909101918201526f113232b9b1b934b83a34b7b7111d101160811b600e8201528751612fb981601e840160208c01612796565b612fc8601e8284010189612ebd565b915050601760f91b815261307c61306f61306961304f61302561304961303361302561301f61300260018b0161088b60f21b815260020190565b701132bc3a32b93730b62fbab936111d101160791b815260110190565b8e612d7b565b61088b60f21b815260020190565b691134b6b0b3b2911d101160b11b8152600a0190565b8a612d7b565b6d01130ba3a3934b13aba32b9911d160951b8152600e0190565b86612d7b565b607d60f81b815260010190565b9a9950505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516130c281601d850160208701612796565b91909101601d0192915050565b601f82111561082b57600081815260208120601f850160051c810160208610156130f65750805b601f850160051c820191505b8181101561311557828155600101613102565b505050505050565b67ffffffffffffffff83111561313557613135612858565b613149836131438354612d31565b836130cf565b6000601f84116001811461317d57600085156131655750838201355b600019600387901b1c1916600186901b1783556131d7565b600083815260209020601f19861690835b828110156131ae578685013582556020948501946001909201910161318e565b50868210156131cb5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b600083516131f0818460208801612796565b9190910191825250602001919050565b634e487b7160e01b600052601260045260246000fd5b60008261322557613225613200565b500690565b60006001820161323c5761323c612e02565b5060010190565b8181038181111561065757610657612e02565b60008261326557613265613200565b500490565b6e113a3930b4ba2fba3cb832911d101160891b8152815160009061329581600f850160208701612796565b61088b60f21b600f939091019283015250601101919050565b69113b30b63ab2911d101160b11b815281516000906132d481600a850160208701612796565b601160f91b600a939091019283015250600b01919050565b607b60f81b815260008351613308816001850160208801612796565b83519083019061331f816001840160208801612796565b607d60f81b60019290910191820152600201949350505050565b60006133458286612ebd565b8451613355818360208901612796565b605f60f81b91019081528351613372816001840160208801612796565b632e706e6760e01b6001929091019182015260050195945050505050565b808202811582820484141761065757610657612e02565b61ffff8281168282160390808211156116f1576116f1612e02565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60ff818116838216019081111561065757610657612e02565b61ffff81811683821602808216919082811461344b5761344b612e02565b505092915050565b61ffff8181168382160190808211156116f1576116f1612e02565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134a1908301846127ba565b9695505050505050565b6000602082840312156134bd57600080fd5b81516113268161276356fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f536163726564206c6f747320647261776e206279207468652046697273742042656c6965766572732c20616e642068656c6420627920746865206d6f737420617264656e74204465766f74656573206f6620a2646970667358221220f42fe2cf618525143968efc9a55e0ae443b277d6f01e35e2e97dcdf67251eeab64736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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