ETH Price: $2,421.77 (-0.28%)
 

Overview

Max Total Supply

1,484

Holders

1,040

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
dugu.eth
0x50627823f335a4ebb59cdef42d3d108e95779153
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The mystery boxes are used to redeem EurekaRabbit NFTs (ERC-721) on official website. You are free to decide whether to open the mystery box you hold.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
EurekaRabbitMysteryBox

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 14 : EurekaRabbitMysteryBox.sol
// SPDX-License-Identifier: MIT
/**
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣾⣦⡙⢿⣷⣦⡀⠀⠀⣠⣴⣦⡒⢶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣿⣿⣿⡗⣹⡿⠁⣰⢸⣿⣿⣿⣿⢆⡿⡁⣱⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⢏⣼⡟⠁⣼⣿⡆⣿⣿⣿⢣⣾⠀⠸⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣏⡺⢿⣷⣄⠙⢿⡃⣿⣿⣿⣦⣝⠳⡄⠘⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣶⣍⢻⡷⠀⡁⢿⣿⣿⣿⣿⠃⢁⣴⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⡇⠋⢠⣾⡇⠈⢿⣿⣿⠏⣠⣾⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⡿⢀⣴⣿⣿⣷⣶⣶⣶⣶⣶⣶⣭⣭⣃⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢉⣍⠻⣿⡟⡛⠳⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣔⢥⡻⣿⣷⣌⠘⣱⣿⡎⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣌⠪⡻⣿⣿⣿⢋⣾⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢋⢜⣴⣿⣿⣿⣷⡙⢿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⠱⡱⢿⣿⠟⡑⢌⢻⡟⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣮⣀⣡⣾⣿⣦⣤⠞⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣤⣭⣭⣭⣭⣭⣭⣭⣭⣭⣭⣭⣭⣤⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠿⠿⠿⠿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣶⣦⡀⠀⠀⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⡿⣠⣴⣿⡟⣸⣿⣿⣿⣿⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⠟⠁⣼⣿⣿⣿⡇⢿⣿⣿⣿⣿⣷⣝⠿⣿⣿⣿⣿⣿⣿⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⡘⣿⣿⣿⣿⡿⢋⣾⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⣷⣌⠻⢟⣫⣴⣿⣿⣿⣿⢏⣿⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠿⣿⣿⣿⣶⣝⡻⠿⠿⠿⢛⣡⣾⣿⠿⠟⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢠⣤⣤⣤⣤⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣤⡄⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣬⣍⠉⣭⣤⣦⣤⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣤⡄⠀⠀⠀⠀⠀⠀⣤⡄⠀⠀⠀⠀⠀⠀⢠⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢸⣿⠉⠉⠉⠁⠀⢀⡀⠀⠀⠀⣀⠀⠀⢀⡀⠀⣀⠀⠀⠀⣀⣀⡀⠀⠀⢸⣿⡇⠀⠀⢀⡀⠀⠀⢀⣿⣿⣿⣿⣿⣿⣿⣛⣀⣿⣿⣏⣉⡙⣿⣧⠀⠀⠀⣀⣀⡀⠀⠀⢸⣿⡇⢀⣀⡀⠀⠀⠀⣿⡇⠀⣀⣀⠀⠀⠀⢀⡀⠀⢀⣸⣿⢀⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢸⣿⣤⣤⣤⠀⠀⣿⣿⠀⠀⢸⣿⡇⠀⢹⣿⡾⠛⠃⣰⣿⠛⠛⢿⣦⠀⢸⣿⡇⢀⣾⠟⠁⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣎⣿⣿⣿⡟⠀⠰⠿⠛⠙⣿⣆⠀⢸⣿⡷⠛⠛⢿⣷⡀⠀⣿⣷⠟⠛⠻⣿⡄⠀⢸⣿⠀⠛⣿⣿⠛⠃⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢸⣿⠉⠉⠉⠀⠀⣿⣿⠀⠀⢸⣿⡇⠀⢸⣿⠀⠀⠀⣿⣷⠶⠶⠾⠿⠆⢸⣿⣷⣿⣇⠀⠀⢘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⣻⣿⡿⠀⠀⣠⣴⠶⠶⢿⣿⠀⢸⣿⡇⠀⠀⠈⣿⡇⠀⣿⡇⠀⠀⠀⣿⣿⠀⢸⣿⠀⠀⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⢸⣿⣀⣀⣀⣀⠀⢻⣿⣀⣀⣼⣿⡇⠀⢸⣿⠀⠀⠀⢻⣿⣀⢀⣠⣤⠀⢸⣿⡇⠈⢿⣧⡀⢸⣿⣄⢀⣸⣿⡇⠀⠀⠀⠀⠀⣿⣿⠀⠀⠻⣿⣄⠀⣿⣯⡀⣀⣿⣿⠀⢸⣿⣧⣀⣀⣸⣿⠃⠀⣿⣷⣀⣀⣠⣿⠏⠀⢸⣿⠀⠀⢿⣿⣀⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠘⠛⠛⠛⠛⠋⠀⠀⠙⠛⠋⠁⠛⠃⠀⠘⠛⠀⠀⠀⠀⠉⠛⠛⠋⠁⠀⠈⠛⠃⠀⠀⠛⠛⠀⠙⠛⠛⠉⠛⠁⠀⠀⠀⠀⠀⠛⠋⠀⠀⠀⠙⠛⠂⠈⠛⠛⠋⠙⠛⠀⠘⠛⠉⠙⠛⠋⠁⠀⠀⠛⠃⠙⠛⠛⠉⠀⠀⠘⠛⠀⠀⠈⠛⠛⠃⠀⠀⠀⠀⠀⠀
 */
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./utils/TimeUtil.sol";

interface ERC721Interface {
    function mintTransfer(address to) external returns(uint256);
}


/**
    code    |	 meaning
    400	    |    Invalid params
    404	    |    TokenId nonexistent
    100	    |    Finalised
    101	    |    Ether value sent is not correct
    102	    |    Purchase would exceed max tokens
    103	    |    It's not the time for mint white
    104	    |    It's not the time for mint public
    105	    |    It's not the time for free mint
    106	    |    Over the whitelist maximum can be purchased
    107	    |    Over the maximum can be purchased
    108	    |    Over the free mint maximum can be purchased
    109	    |    Free mint slots have been used up
    110	    |    Reserved mint slots have been used up
    111	    |    Migration has not started
    112	    |    Doesn't own the token
 */
contract EurekaRabbitMysteryBox is ERC1155, Ownable, ERC1155Burnable {
    using ECDSA for bytes32;

    // Sale Stage configuration
    enum Status {
        Pending,
        White,
        Public
    }

    Status public status;

    // Open box of switch
    bool    public      migrationStarted = false;
    uint16  constant    public TOTAL_COUNT = 3261;      // The max tokens count
    uint16  public white_max_mint_count = 2;            // The maximum number of white mint
    uint16  public public_max_mint_count = 1;           // The maximum number of public mint
    uint16  public free_max_mint_count = 1;             // The maximum number of free mint
    uint256 public availableCountReserved = 600;        // available count of reserved
    uint256 public availableCountFreeMint = 161;        // available count of free mint

    uint256 public tokenId = 0;
    uint256 public amountMinted = 0;
    uint256 public freeMintStartTime = 0;
    uint256 public freeMintEndTime = 0;
    uint256 public mintPrice;

    mapping (address => uint) public numberMintedPublic;
    mapping (address => uint) public numberMintedWhite;
    mapping (address => uint) public numberMintedFree;
    address private whiteSigner;
    address private freeSigner;

    // the NFT contract address
    ERC721Interface rabbitContractAddress;

    event priceChanged(uint256 newPrice);
    /******************************************************* constructor *******************************************************/
    constructor(address contractAddress, address _whiteSigner, address _freeSigner)
    ERC1155("ipfs://QmQHJLjUf6K2dBaETQWM9p52VRihtFuC4QSPNn5LbJPAAx") {
        require(contractAddress != address(0) && _whiteSigner != address(0) && _freeSigner != address(0), "400");
        rabbitContractAddress = ERC721Interface(contractAddress);
        whiteSigner = _whiteSigner;
        freeSigner = _freeSigner;
    }

    /******************************************************* config funs *******************************************************/
    // Authorize specific smart contract to be used for minting an ERC-1155 token
    function toggleMigration(bool newStatus) external onlyOwner {
        migrationStarted = newStatus;
    }

    // Set authorized contract address for minting the ERC-721 token
    function setRabbitContract(address contractAddress) external onlyOwner {
        rabbitContractAddress = ERC721Interface(contractAddress);
    }

    // Used for manual activation on dutch auction, GWei
    function setPrice(uint256 _newPrice) external onlyOwner {
        mintPrice = _newPrice * 10**9;
        emit priceChanged(mintPrice);
    }

    function setMaxCount(uint16 _white, uint16 _public, uint16 _free) external onlyOwner {
        public_max_mint_count = _public;
        white_max_mint_count = _white;
        free_max_mint_count = _free;
    }

    function setWhiteSigner(address newSigner) external onlyOwner {
        require(newSigner != address(0), "400");
        whiteSigner = newSigner;
    }

    function setFreeSigner(address newSigner) external onlyOwner {
        require(newSigner != address(0), "400");
        freeSigner = newSigner;
    }

    // Sale Stage and set price, GWei
    function setStatusAndPrice(Status newMintStatus, uint newMintPrice) external onlyOwner {
        status = newMintStatus;
        mintPrice = newMintPrice * 10**9;
        emit priceChanged(mintPrice);
    }

    function setFreeMintTime(uint newStartTime, uint newEndTime) external onlyOwner {
        freeMintStartTime = newStartTime;
        freeMintEndTime = newEndTime;
    }

    /******************************************************* external funs *******************************************************/
    // get tokenId & amount
    function getBalanceInfo(address addr) external view returns(uint[] memory tokenIds, uint[] memory amounts) {
        uint totalCount = tokenId;
        tokenIds = new uint[](totalCount);
        amounts = new uint[](totalCount);
        uint count = 0;
        for (uint i = 1; i <= totalCount; i++) {
            uint b = balanceOf(addr, i);
            if (b > 0) {
                tokenIds[count] = i;
                amounts[count++] = b;
            }
        }
        if (count < amountMinted) {
            uint[] memory realTokenIds = new uint[](count);
            uint[] memory realAmounts = new uint[](count);
            for (uint index = 0; index < count; index++) {
                realTokenIds[index] = tokenIds[index];
                realAmounts[index] = amounts[index];
            }
            tokenIds = realTokenIds;
            amounts = realAmounts;
        }
    }

    /******************************************************* modifiers *******************************************************/
    modifier pubMintCheck(uint256 amount) {
        require(amount > 0, "400");
        require(msg.value == mintPrice * amount, "101");
        /**
        * amountMinted + amount <= (TOTAL_COUNT - 600 - 161) + (600 - availableCountReserved) + (161 - availableCountFreeMint)
        */
        require(amountMinted + amount <= TOTAL_COUNT - availableCountReserved - availableCountFreeMint, "102");
        _;
    }

    /******************************************************* mint funs *******************************************************/
    //The white mint. You should get whitelist rights first
    function whiteMint(uint256 amount, string calldata salt, bytes memory token) external payable pubMintCheck(amount) {
        require(status == Status.White, "103");
        require(_recover(_hash(salt, msg.sender), token) == whiteSigner, "400");
        require(numberMintedWhite[msg.sender] + amount <= white_max_mint_count, "106");
        tokenId++;
        amountMinted += amount;
        numberMintedWhite[msg.sender] += amount;
        _mint(msg.sender, tokenId, amount, "");
    }

    // Mint function
    function mint(uint256 amount) external payable pubMintCheck(amount) {
        require(status == Status.Public, "104");
        require(numberMintedPublic[msg.sender] + amount <= public_max_mint_count, "107");
        tokenId++;
        amountMinted += amount;
        numberMintedPublic[msg.sender] += amount;
        _mint(msg.sender, tokenId, amount, "");
    }

    function freeMint(uint256 amount, string calldata salt, bytes memory token) external {
        require(TimeUtil.currentTime() >= freeMintStartTime && TimeUtil.currentTime() <= freeMintEndTime, "105");
        require(_recover(_hash(salt, msg.sender), token) == freeSigner, "400");
        require(numberMintedFree[msg.sender] + amount <= free_max_mint_count, "108");
        require(amount <= availableCountFreeMint, "109");

        tokenId++;
        amountMinted += amount;
        numberMintedFree[msg.sender] += amount;
        availableCountFreeMint -= amount;
        _mint(msg.sender, tokenId, amount, "");
    }

    // Allowing direct drop for giveaway
    function airdropGiveaway(address[] calldata to, uint256[] calldata amountToMint) external onlyOwner {
        require(to.length == amountToMint.length, "400");
        uint tempTokenId = tokenId;
        uint tempAmountMinted = amountMinted;
        for(uint256 i = 0; i < to.length; i++) {
            tempTokenId++;
            tempAmountMinted += amountToMint[i];
            _mint(to[i], tempTokenId, amountToMint[i], "");
        }
        require(tempAmountMinted <= TOTAL_COUNT - availableCountReserved - availableCountFreeMint, "102");
        tokenId = tempTokenId;
        amountMinted = tempAmountMinted;
    }

    // Allowing direct drop for giveaway
    function airdropGiveawayReserve(address[] calldata to, uint256[] calldata amountToMint) external onlyOwner {
        require(to.length == amountToMint.length, "400");
        uint tempTokenId = tokenId;
        uint tempAmountMinted = amountMinted;
        uint tempAvailableCountReserved = availableCountReserved;
        for(uint256 i = 0; i < to.length; i++) {
            tempTokenId++;
            require(amountToMint[i] <= tempAvailableCountReserved, "110");
            tempAmountMinted += amountToMint[i];
            tempAvailableCountReserved -= amountToMint[i];
            _mint(to[i], tempTokenId, amountToMint[i], "");
        }
        tokenId = tempTokenId;
        amountMinted = tempAmountMinted;
        availableCountReserved = tempAvailableCountReserved;
    }
    // Allowing direct drop for giveaway
    function airdropGiveawayFree(address[] calldata to, uint256[] calldata amountToMint) external onlyOwner {
        require(to.length == amountToMint.length, "400");
        uint tempTokenId = tokenId;
        uint tempAmountMinted = amountMinted;
        uint tempAvailableCountFree = availableCountFreeMint;
        for(uint256 i = 0; i < to.length; i++) {
            tempTokenId++;
            require(amountToMint[i] <= tempAvailableCountFree, "110");
            tempAmountMinted += amountToMint[i];
            tempAvailableCountFree -= amountToMint[i];
            _mint(to[i], tempTokenId, amountToMint[i], "");
        }
        tokenId = tempTokenId;
        amountMinted = tempAmountMinted;
        availableCountFreeMint = tempAvailableCountFree;
    }

    /******************************************************* publish *******************************************************/
    // Allow to use the ERC-1155 to get the Eureka Rabbit ERC-721 final token
    function migrateToken(uint256 id) external returns(uint256) {
        require(migrationStarted, "111");
        require(balanceOf(msg.sender, id) > 0, "112"); // Check if the user own one of the ERC-1155
        burn(msg.sender, id, 1); // Burn one the ERC-1155 token
        uint256 mintedId = rabbitContractAddress.mintTransfer(msg.sender); // Mint the ERC-721 token
        return mintedId; // Return the minted ID
    }

    /******************************************************* other *******************************************************/

    // Get amount of 1155 minted
    function getAmountMinted() external view returns(uint256) {
        return amountMinted;
    }

    // Basic withdrawal of funds function in order to transfer ETH out of the smart contract
    function withdrawFunds() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }
    // tools
    function _hash(string calldata salt, address _address) private view returns (bytes32) {
        return keccak256(abi.encode(salt, address(this), _address));
    }
    function _recover(bytes32 hash, bytes memory token) private pure returns (address) {
        return hash.toEthSignedMessageHash().recover(token);
    }
}

File 2 of 14 : TimeUtil.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library TimeUtil {
    function currentTime() internal view returns (uint) {
        unchecked {
            return block.timestamp;
        }
    }
}

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

pragma solidity ^0.8.0;

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

File 4 of 14 : 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 5 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 14 : 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 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 14 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 13 of 14 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 14 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"address","name":"_whiteSigner","type":"address"},{"internalType":"address","name":"_freeSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"priceChanged","type":"event"},{"inputs":[],"name":"TOTAL_COUNT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"amountToMint","type":"uint256[]"}],"name":"airdropGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"amountToMint","type":"uint256[]"}],"name":"airdropGiveawayFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"amountToMint","type":"uint256[]"}],"name":"airdropGiveawayReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"amountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableCountFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableCountReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"salt","type":"string"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"free_max_mint_count","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAmountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getBalanceInfo","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"migrateToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrationStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberMintedFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberMintedPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberMintedWhite","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"public_max_mint_count","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"uint256","name":"newStartTime","type":"uint256"},{"internalType":"uint256","name":"newEndTime","type":"uint256"}],"name":"setFreeMintTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setFreeSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_white","type":"uint16"},{"internalType":"uint16","name":"_public","type":"uint16"},{"internalType":"uint16","name":"_free","type":"uint16"}],"name":"setMaxCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setRabbitContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum EurekaRabbitMysteryBox.Status","name":"newMintStatus","type":"uint8"},{"internalType":"uint256","name":"newMintPrice","type":"uint256"}],"name":"setStatusAndPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setWhiteSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"enum EurekaRabbitMysteryBox.Status","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"newStatus","type":"bool"}],"name":"toggleMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"salt","type":"string"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"whiteMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"white_max_mint_count","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526003805466ffffffffffffff60a81b1916638000800160b11b17905561025860045560a160055560006006819055600781905560088190556009553480156200004c57600080fd5b5060405162003bc938038062003bc98339810160408190526200006f916200027e565b60405180606001604052806035815260200162003b9460359139620000948162000150565b50620000a03362000169565b6001600160a01b03831615801590620000c157506001600160a01b03821615155b8015620000d657506001600160a01b03811615155b6200010d5760405162461bcd60e51b815260206004820152600360248201526203430360ec1b604482015260640160405180910390fd5b601080546001600160a01b039485166001600160a01b031991821617909155600e805493851693821693909317909255600f805491909316911617905562000305565b805162000165906002906020840190620001bb565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c990620002c8565b90600052602060002090601f016020900481019282620001ed576000855562000238565b82601f106200020857805160ff191683800117855562000238565b8280016001018555821562000238579182015b82811115620002385782518255916020019190600101906200021b565b50620002469291506200024a565b5090565b5b808211156200024657600081556001016200024b565b80516001600160a01b03811681146200027957600080fd5b919050565b6000806000606084860312156200029457600080fd5b6200029f8462000261565b9250620002af6020850162000261565b9150620002bf6040850162000261565b90509250925092565b600181811c90821680620002dd57607f821691505b60208210811415620002ff57634e487b7160e01b600052602260045260246000fd5b50919050565b61387f80620003156000396000f3fe6080604052600436106102175760003560e01c8062fdd58e1461021c57806301ffc9a71461024f5780630dee2aa31461027f5780630e89341c146102a15780630f0beece146102ce57806317d70f7c146102f75780631a6ac0a51461030d5780631a6eedb41461032d5780631adc8d561461035a578063200d2ed214610387578063224776e8146103b557806324600fc3146103d557806328e0db20146103ea5780632e6f9b0c1461040a5780632eb2c2d614610420578063326e51511461044057806339adac4d1461045657806346555465146104845780634a90604c146104a45780634d2bb63a146104ba5780634e1273f4146104d057806352bf3138146104fd5780635f6be6141461051f5780636817c76c1461053f5780636b20c45414610555578063705f155714610575578063715018a614610595578063790b2796146105aa5780637af284d5146105cc5780637c6e94e3146105e25780637cfedf7a146106035780638535923f146106255780638da5cb5b1461065257806391b7f5ed1461067457806392a8b493146106945780639351a605146106a7578063a0712d68146106c7578063a22cb465146106da578063ba0f28e4146106fa578063d8397fe81461071a578063e777df201461073a578063e985e9c51461074f578063f242432a14610798578063f26b8119146107b8578063f2fde38b146107d8578063f5298aca146107f8578063fb50a6b214610818575b600080fd5b34801561022857600080fd5b5061023c610237366004612ac7565b610838565b6040519081526020015b60405180910390f35b34801561025b57600080fd5b5061026f61026a366004612b07565b6108cf565b6040519015158152602001610246565b34801561028b57600080fd5b5061029f61029a366004612b24565b610921565b005b3480156102ad57600080fd5b506102c16102bc366004612b3f565b610998565b6040516102469190612ba5565b3480156102da57600080fd5b506102e4610cbd81565b60405161ffff9091168152602001610246565b34801561030357600080fd5b5061023c60065481565b34801561031957600080fd5b5061029f610328366004612bb8565b610a2c565b34801561033957600080fd5b5061023c610348366004612b24565b600d6020526000908152604090205481565b34801561036657600080fd5b5061023c610375366004612b24565b600c6020526000908152604090205481565b34801561039357600080fd5b506003546103a890600160a01b900460ff1681565b6040516102469190612bf0565b3480156103c157600080fd5b5061029f6103d0366004612c2a565b610abd565b3480156103e157600080fd5b5061029f610b36565b3480156103f657600080fd5b5061029f610405366004612cb1565b610b94565b34801561041657600080fd5b5061023c60055481565b34801561042c57600080fd5b5061029f61043b366004612e65565b610d05565b34801561044c57600080fd5b5061023c60085481565b34801561046257600080fd5b50610476610471366004612b24565b610d9c565b604051610246929190612f49565b34801561049057600080fd5b5061029f61049f366004612cb1565b610fd9565b3480156104b057600080fd5b5061023c60095481565b3480156104c657600080fd5b5061023c60045481565b3480156104dc57600080fd5b506104f06104eb366004612f77565b611105565b6040516102469190613041565b34801561050957600080fd5b506003546102e490600160d01b900461ffff1681565b34801561052b57600080fd5b5061023c61053a366004612b3f565b61122e565b34801561054b57600080fd5b5061023c600a5481565b34801561056157600080fd5b5061029f610570366004613054565b611336565b34801561058157600080fd5b5061029f6105903660046130d7565b61137e565b3480156105a157600080fd5b5061029f6113cb565b3480156105b657600080fd5b506003546102e490600160b01b900461ffff1681565b3480156105d857600080fd5b5061023c60075481565b3480156105ee57600080fd5b5060035461026f90600160a81b900460ff1681565b34801561060f57600080fd5b506003546102e490600160c01b900461ffff1681565b34801561063157600080fd5b5061023c610640366004612b24565b600b6020526000908152604090205481565b34801561065e57600080fd5b50610667611406565b60405161024691906130f2565b34801561068057600080fd5b5061029f61068f366004612b3f565b611415565b61029f6106a2366004613106565b61147b565b3480156106b357600080fd5b5061029f6106c2366004613106565b611677565b61029f6106d5366004612b3f565b611828565b3480156106e657600080fd5b5061029f6106f53660046131a6565b6119e2565b34801561070657600080fd5b5061029f610715366004612cb1565b6119ed565b34801561072657600080fd5b5061029f610735366004612b24565b611b1a565b34801561074657600080fd5b5060075461023c565b34801561075b57600080fd5b5061026f61076a3660046131d9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156107a457600080fd5b5061029f6107b3366004613203565b611b6b565b3480156107c457600080fd5b5061029f6107d3366004613267565b611bb0565b3480156107e457600080fd5b5061029f6107f3366004612b24565b611bea565b34801561080457600080fd5b5061029f610813366004613289565b611c87565b34801561082457600080fd5b5061029f610833366004612b24565b611cca565b60006001600160a01b0383166108a95760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061090057506001600160e01b031982166303a24d0760e21b145b8061091b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b3361092a611406565b6001600160a01b0316146109505760405162461bcd60e51b81526004016108a0906132bc565b6001600160a01b0381166109765760405162461bcd60e51b81526004016108a0906132f1565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600280546109a79061330e565b80601f01602080910402602001604051908101604052809291908181526020018280546109d39061330e565b8015610a205780601f106109f557610100808354040283529160200191610a20565b820191906000526020600020905b815481529060010190602001808311610a0357829003601f168201915b50505050509050919050565b33610a35611406565b6001600160a01b031614610a5b5760405162461bcd60e51b81526004016108a0906132bc565b6003805483919060ff60a01b1916600160a01b836002811115610a8057610a80612bda565b0217905550610a9381633b9aca0061335f565b600a81905560405190815260008051602061382a8339815191529060200160405180910390a15050565b33610ac6611406565b6001600160a01b031614610aec5760405162461bcd60e51b81526004016108a0906132bc565b6003805463ffffffff60b01b1916600160c01b61ffff9485160261ffff60b01b191617600160b01b948416949094029390931761ffff60d01b1916600160d01b9190921602179055565b33610b3f611406565b6001600160a01b031614610b655760405162461bcd60e51b81526004016108a0906132bc565b60405133904780156108fc02916000818181858888f19350505050158015610b91573d6000803e3d6000fd5b50565b33610b9d611406565b6001600160a01b031614610bc35760405162461bcd60e51b81526004016108a0906132bc565b828114610be25760405162461bcd60e51b81526004016108a0906132f1565b60065460075460045460005b86811015610cf25783610c008161337e565b94505081868683818110610c1657610c16613399565b905060200201351115610c3b5760405162461bcd60e51b81526004016108a0906133af565b858582818110610c4d57610c4d613399565b9050602002013583610c5f91906133cc565b9250858582818110610c7357610c73613399565b9050602002013582610c8591906133e4565b9150610ce0888883818110610c9c57610c9c613399565b9050602002016020810190610cb19190612b24565b85888885818110610cc457610cc4613399565b9050602002013560405180602001604052806000815250611d41565b80610cea8161337e565b915050610bee565b5060069290925560075560045550505050565b6001600160a01b038516331480610d215750610d21853361076a565b610d885760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108a0565b610d958585858585611e39565b5050505050565b6006546060908190806001600160401b03811115610dbc57610dbc612d1c565b604051908082528060200260200182016040528015610de5578160200160208202803683370190505b509250806001600160401b03811115610e0057610e00612d1c565b604051908082528060200260200182016040528015610e29578160200160208202803683370190505b509150600060015b828111610ea8576000610e448783610838565b90508015610e955781868481518110610e5f57610e5f613399565b6020908102919091010152808584610e768161337e565b955081518110610e8857610e88613399565b6020026020010181815250505b5080610ea08161337e565b915050610e31565b50600754811015610fd2576000816001600160401b03811115610ecd57610ecd612d1c565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090506000826001600160401b03811115610f1357610f13612d1c565b604051908082528060200260200182016040528015610f3c578160200160208202803683370190505b50905060005b83811015610fcb57868181518110610f5c57610f5c613399565b6020026020010151838281518110610f7657610f76613399565b602002602001018181525050858181518110610f9457610f94613399565b6020026020010151828281518110610fae57610fae613399565b602090810291909101015280610fc38161337e565b915050610f42565b5090945092505b5050915091565b33610fe2611406565b6001600160a01b0316146110085760405162461bcd60e51b81526004016108a0906132bc565b8281146110275760405162461bcd60e51b81526004016108a0906132f1565b60065460075460005b858110156110ba57826110428161337e565b93505084848281811061105757611057613399565b905060200201358261106991906133cc565b91506110a887878381811061108057611080613399565b90506020020160208101906110959190612b24565b84878785818110610cc457610cc4613399565b806110b28161337e565b915050611030565b506005546004546110cd90610cbd6133e4565b6110d791906133e4565b8111156110f65760405162461bcd60e51b81526004016108a0906133fb565b60069190915560075550505050565b6060815183511461116a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108a0565b600083516001600160401b0381111561118557611185612d1c565b6040519080825280602002602001820160405280156111ae578160200160208202803683370190505b50905060005b8451811015611226576111f98582815181106111d2576111d2613399565b60200260200101518583815181106111ec576111ec613399565b6020026020010151610838565b82828151811061120b5761120b613399565b602090810291909101015261121f8161337e565b90506111b4565b509392505050565b600354600090600160a81b900460ff166112705760405162461bcd60e51b815260206004820152600360248201526231313160e81b60448201526064016108a0565b600061127c3384610838565b116112af5760405162461bcd60e51b815260206004820152600360248201526218989960e91b60448201526064016108a0565b6112bb33836001611c87565b60105460405163126fe4c160e31b81526000916001600160a01b03169063937f2608906112ec9033906004016130f2565b6020604051808303816000875af115801561130b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132f9190613418565b9392505050565b6001600160a01b0383163314806113525750611352833361076a565b61136e5760405162461bcd60e51b81526004016108a090613431565b611379838383611fc3565b505050565b33611387611406565b6001600160a01b0316146113ad5760405162461bcd60e51b81526004016108a0906132bc565b60038054911515600160a81b0260ff60a81b19909216919091179055565b336113d4611406565b6001600160a01b0316146113fa5760405162461bcd60e51b81526004016108a0906132bc565b611404600061212d565b565b6003546001600160a01b031690565b3361141e611406565b6001600160a01b0316146114445760405162461bcd60e51b81526004016108a0906132bc565b61145281633b9aca0061335f565b600a81905560405190815260008051602061382a8339815191529060200160405180910390a150565b836000811161149c5760405162461bcd60e51b81526004016108a0906132f1565b80600a546114aa919061335f565b34146114c85760405162461bcd60e51b81526004016108a09061347a565b6005546004546114da90610cbd6133e4565b6114e491906133e4565b816007546114f291906133cc565b11156115105760405162461bcd60e51b81526004016108a0906133fb565b6001600354600160a01b900460ff16600281111561153057611530612bda565b146115635760405162461bcd60e51b815260206004820152600360248201526231303360e81b60448201526064016108a0565b600e546001600160a01b031661158361157d86863361217f565b846121b7565b6001600160a01b0316146115a95760405162461bcd60e51b81526004016108a0906132f1565b600354336000908152600c6020526040902054600160b01b90910461ffff16906115d49087906133cc565b11156116085760405162461bcd60e51b815260206004820152600360248201526218981b60e91b60448201526064016108a0565b600680549060006116188361337e565b9190505550846007600082825461162f91906133cc565b9091555050336000908152600c6020526040812080548792906116539084906133cc565b92505081905550610d95336006548760405180602001604052806000815250611d41565b600854421015801561168b57506009544211155b6116bd5760405162461bcd60e51b815260206004820152600360248201526231303560e81b60448201526064016108a0565b600f546001600160a01b03166116dd6116d785853361217f565b836121b7565b6001600160a01b0316146117035760405162461bcd60e51b81526004016108a0906132f1565b600354336000908152600d6020526040902054600160d01b90910461ffff169061172e9086906133cc565b11156117625760405162461bcd60e51b815260206004820152600360248201526206260760eb1b60448201526064016108a0565b60055484111561179a5760405162461bcd60e51b815260206004820152600360248201526231303960e81b60448201526064016108a0565b600680549060006117aa8361337e565b919050555083600760008282546117c191906133cc565b9091555050336000908152600d6020526040812080548692906117e59084906133cc565b9250508190555083600560008282546117fe91906133e4565b92505081905550611822336006548660405180602001604052806000815250611d41565b50505050565b80600081116118495760405162461bcd60e51b81526004016108a0906132f1565b80600a54611857919061335f565b34146118755760405162461bcd60e51b81526004016108a09061347a565b60055460045461188790610cbd6133e4565b61189191906133e4565b8160075461189f91906133cc565b11156118bd5760405162461bcd60e51b81526004016108a0906133fb565b6002600354600160a01b900460ff1660028111156118dd576118dd612bda565b146119105760405162461bcd60e51b81526020600482015260036024820152620c4c0d60ea1b60448201526064016108a0565b600354336000908152600b6020526040902054600160c01b90910461ffff169061193b9084906133cc565b111561196f5760405162461bcd60e51b815260206004820152600360248201526231303760e81b60448201526064016108a0565b6006805490600061197f8361337e565b9190505550816007600082825461199691906133cc565b9091555050336000908152600b6020526040812080548492906119ba9084906133cc565b925050819055506119de336006548460405180602001604052806000815250611d41565b5050565b6119de338383612219565b336119f6611406565b6001600160a01b031614611a1c5760405162461bcd60e51b81526004016108a0906132bc565b828114611a3b5760405162461bcd60e51b81526004016108a0906132f1565b60065460075460055460005b86811015611b075783611a598161337e565b94505081868683818110611a6f57611a6f613399565b905060200201351115611a945760405162461bcd60e51b81526004016108a0906133af565b858582818110611aa657611aa6613399565b9050602002013583611ab891906133cc565b9250858582818110611acc57611acc613399565b9050602002013582611ade91906133e4565b9150611af5888883818110610c9c57610c9c613399565b80611aff8161337e565b915050611a47565b5060069290925560075560055550505050565b33611b23611406565b6001600160a01b031614611b495760405162461bcd60e51b81526004016108a0906132bc565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480611b875750611b87853361076a565b611ba35760405162461bcd60e51b81526004016108a090613431565b610d9585858585856122fa565b33611bb9611406565b6001600160a01b031614611bdf5760405162461bcd60e51b81526004016108a0906132bc565b600891909155600955565b33611bf3611406565b6001600160a01b031614611c195760405162461bcd60e51b81526004016108a0906132bc565b6001600160a01b038116611c7e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a0565b610b918161212d565b6001600160a01b038316331480611ca35750611ca3833361076a565b611cbf5760405162461bcd60e51b81526004016108a090613431565b611379838383612405565b33611cd3611406565b6001600160a01b031614611cf95760405162461bcd60e51b81526004016108a0906132bc565b6001600160a01b038116611d1f5760405162461bcd60e51b81526004016108a0906132f1565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038416611da15760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016108a0565b33611dbb81600087611db2886124f5565b610d95886124f5565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611deb9084906133cc565b909155505060408051858152602081018590526001600160a01b03808816926000929185169160008051602061380a833981519152910160405180910390a4610d9581600087878787612540565b8151835114611e5a5760405162461bcd60e51b81526004016108a090613497565b6001600160a01b038416611e805760405162461bcd60e51b81526004016108a0906134df565b3360005b8451811015611f67576000858281518110611ea157611ea1613399565b602002602001015190506000858381518110611ebf57611ebf613399565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611f0f5760405162461bcd60e51b81526004016108a090613524565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611f4c9084906133cc565b9250508190555050505080611f609061337e565b9050611e84565b50846001600160a01b0316866001600160a01b0316826001600160a01b03166000805160206137ea8339815191528787604051611fa5929190612f49565b60405180910390a4611fbb81878787878761269c565b505050505050565b6001600160a01b038316611fe95760405162461bcd60e51b81526004016108a09061356e565b805182511461200a5760405162461bcd60e51b81526004016108a090613497565b604080516020810190915260009081905233905b83518110156120e057600084828151811061203b5761203b613399565b60200260200101519050600084838151811061205957612059613399565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156120a95760405162461bcd60e51b81526004016108a0906135b1565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806120d88161337e565b91505061201e565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03166000805160206137ea833981519152868660405161211f929190612f49565b60405180910390a450505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008383308460405160200161219894939291906135f5565b6040516020818303038152906040528051906020012090509392505050565b600061132f82612213856040517b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612757565b816001600160a01b0316836001600160a01b0316141561228d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108a0565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166123205760405162461bcd60e51b81526004016108a0906134df565b33612330818787611db2886124f5565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156123715760405162461bcd60e51b81526004016108a090613524565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906123ae9084906133cc565b909155505060408051868152602081018690526001600160a01b03808916928a8216929186169160008051602061380a833981519152910160405180910390a46123fc828888888888612540565b50505050505050565b6001600160a01b03831661242b5760405162461bcd60e51b81526004016108a09061356e565b3361245b8185600061243c876124f5565b612445876124f5565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561249c5760405162461bcd60e51b81526004016108a0906135b1565b6000848152602081815260408083206001600160a01b038981168086529184528285208887039055825189815293840188905290929086169160008051602061380a833981519152910160405180910390a45050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061252f5761252f613399565b602090810291909101015292915050565b6001600160a01b0384163b15611fbb5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612584908990899088908890889060040161363c565b6020604051808303816000875af19250505080156125bf575060408051601f3d908101601f191682019092526125bc91810190613681565b60015b61266c576125cb61369e565b806308c379a0141561260557506125e06136ba565b806125eb5750612607565b8060405162461bcd60e51b81526004016108a09190612ba5565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108a0565b6001600160e01b0319811663f23a6e6160e01b146123fc5760405162461bcd60e51b81526004016108a090613743565b6001600160a01b0384163b15611fbb5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906126e0908990899088908890889060040161378b565b6020604051808303816000875af192505050801561271b575060408051601f3d908101601f1916820190925261271891810190613681565b60015b612727576125cb61369e565b6001600160e01b0319811663bc197c8160e01b146123fc5760405162461bcd60e51b81526004016108a090613743565b60008060006127668585612773565b91509150611226816127e3565b6000808251604114156127aa5760208301516040840151606085015160001a61279e87828585612999565b945094505050506127dc565b8251604014156127d457602083015160408401516127c9868383612a7c565b9350935050506127dc565b506000905060025b9250929050565b60008160048111156127f7576127f7612bda565b14156128005750565b600181600481111561281457612814612bda565b141561285d5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016108a0565b600281600481111561287157612871612bda565b14156128bf5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108a0565b60038160048111156128d3576128d3612bda565b141561292c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108a0565b600481600481111561294057612940612bda565b1415610b915760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016108a0565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b038311156129c65750600090506003612a73565b8460ff16601b141580156129de57508460ff16601c14155b156129ef5750600090506004612a73565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612a43573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a6c57600060019250925050612a73565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a9d87828885612999565b935093505050935093915050565b80356001600160a01b0381168114612ac257600080fd5b919050565b60008060408385031215612ada57600080fd5b612ae383612aab565b946020939093013593505050565b6001600160e01b031981168114610b9157600080fd5b600060208284031215612b1957600080fd5b813561132f81612af1565b600060208284031215612b3657600080fd5b61132f82612aab565b600060208284031215612b5157600080fd5b5035919050565b6000815180845260005b81811015612b7e57602081850181015186830182015201612b62565b81811115612b90576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061132f6020830184612b58565b60008060408385031215612bcb57600080fd5b823560038110612ae357600080fd5b634e487b7160e01b600052602160045260246000fd5b6020810160038310612c1257634e487b7160e01b600052602160045260246000fd5b91905290565b803561ffff81168114612ac257600080fd5b600080600060608486031215612c3f57600080fd5b612c4884612c18565b9250612c5660208501612c18565b9150612c6460408501612c18565b90509250925092565b60008083601f840112612c7f57600080fd5b5081356001600160401b03811115612c9657600080fd5b6020830191508360208260051b85010111156127dc57600080fd5b60008060008060408587031215612cc757600080fd5b84356001600160401b0380821115612cde57600080fd5b612cea88838901612c6d565b90965094506020870135915080821115612d0357600080fd5b50612d1087828801612c6d565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612d5757612d57612d1c565b6040525050565b60006001600160401b03821115612d7757612d77612d1c565b5060051b60200190565b600082601f830112612d9257600080fd5b81356020612d9f82612d5e565b604051612dac8282612d32565b83815260059390931b8501820192828101915086841115612dcc57600080fd5b8286015b84811015612de75780358352918301918301612dd0565b509695505050505050565b600082601f830112612e0357600080fd5b81356001600160401b03811115612e1c57612e1c612d1c565b604051612e33601f8301601f191660200182612d32565b818152846020838601011115612e4857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612e7d57600080fd5b612e8686612aab565b9450612e9460208701612aab565b935060408601356001600160401b0380821115612eb057600080fd5b612ebc89838a01612d81565b94506060880135915080821115612ed257600080fd5b612ede89838a01612d81565b93506080880135915080821115612ef457600080fd5b50612f0188828901612df2565b9150509295509295909350565b600081518084526020808501945080840160005b83811015612f3e57815187529582019590820190600101612f22565b509495945050505050565b604081526000612f5c6040830185612f0e565b8281036020840152612f6e8185612f0e565b95945050505050565b60008060408385031215612f8a57600080fd5b82356001600160401b0380821115612fa157600080fd5b818501915085601f830112612fb557600080fd5b81356020612fc282612d5e565b604051612fcf8282612d32565b83815260059390931b8501820192828101915089841115612fef57600080fd5b948201945b838610156130145761300586612aab565b82529482019490820190612ff4565b9650508601359250508082111561302a57600080fd5b5061303785828601612d81565b9150509250929050565b60208152600061132f6020830184612f0e565b60008060006060848603121561306957600080fd5b61307284612aab565b925060208401356001600160401b038082111561308e57600080fd5b61309a87838801612d81565b935060408601359150808211156130b057600080fd5b506130bd86828701612d81565b9150509250925092565b80358015158114612ac257600080fd5b6000602082840312156130e957600080fd5b61132f826130c7565b6001600160a01b0391909116815260200190565b6000806000806060858703121561311c57600080fd5b8435935060208501356001600160401b038082111561313a57600080fd5b818701915087601f83011261314e57600080fd5b81358181111561315d57600080fd5b88602082850101111561316f57600080fd5b60208301955080945050604087013591508082111561318d57600080fd5b5061319a87828801612df2565b91505092959194509250565b600080604083850312156131b957600080fd5b6131c283612aab565b91506131d0602084016130c7565b90509250929050565b600080604083850312156131ec57600080fd5b6131f583612aab565b91506131d060208401612aab565b600080600080600060a0868803121561321b57600080fd5b61322486612aab565b945061323260208701612aab565b9350604086013592506060860135915060808601356001600160401b0381111561325b57600080fd5b612f0188828901612df2565b6000806040838503121561327a57600080fd5b50508035926020909101359150565b60008060006060848603121561329e57600080fd5b6132a784612aab565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526003908201526203430360ec1b604082015260600190565b600181811c9082168061332257607f821691505b6020821081141561334357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561337957613379613349565b500290565b600060001982141561339257613392613349565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526003908201526203131360ec1b604082015260600190565b600082198211156133df576133df613349565b500190565b6000828210156133f6576133f6613349565b500390565b60208082526003908201526218981960e91b604082015260600190565b60006020828403121561342a57600080fd5b5051919050565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526003908201526231303160e81b604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6060815283606082015283856080830137600060808583018101919091526001600160a01b039384166020830152919092166040830152601f909201601f19160101919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061367690830184612b58565b979650505050505050565b60006020828403121561369357600080fd5b815161132f81612af1565b600060033d11156136b75760046000803e5060005160e01c5b90565b600060443d10156136c85790565b6040516003193d81016004833e81513d6001600160401b0380831160248401831017156136f757505050505090565b828501915081518181111561370f5750505050505090565b843d87010160208285010111156137295750505050505090565b61373860208286010187612d32565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906137b790830186612f0e565b82810360608401526137c98186612f0e565b905082810360808401526137dd8185612b58565b9897505050505050505056fe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62f5fdf7223faf019b846dd0f35f25876f2b97118d4f6e9d6787ea6d85a55c2143a264697066735822122025f6676b6dea93c1b5825b7700cfe04f48e30bd434a93daa9b8f340ec3e56d7b64736f6c634300080b0033697066733a2f2f516d51484a4c6a5566364b32644261455451574d397035325652696874467543345153504e6e354c624a504141780000000000000000000000002a89af13e2687908c50b141d096517fb73ded0a00000000000000000000000002a89af13e2687908c50b141d096517fb73ded0a0000000000000000000000000aabccf860eac6f8efc81a4914c0bef55d9a62e4b

Deployed Bytecode

0x6080604052600436106102175760003560e01c8062fdd58e1461021c57806301ffc9a71461024f5780630dee2aa31461027f5780630e89341c146102a15780630f0beece146102ce57806317d70f7c146102f75780631a6ac0a51461030d5780631a6eedb41461032d5780631adc8d561461035a578063200d2ed214610387578063224776e8146103b557806324600fc3146103d557806328e0db20146103ea5780632e6f9b0c1461040a5780632eb2c2d614610420578063326e51511461044057806339adac4d1461045657806346555465146104845780634a90604c146104a45780634d2bb63a146104ba5780634e1273f4146104d057806352bf3138146104fd5780635f6be6141461051f5780636817c76c1461053f5780636b20c45414610555578063705f155714610575578063715018a614610595578063790b2796146105aa5780637af284d5146105cc5780637c6e94e3146105e25780637cfedf7a146106035780638535923f146106255780638da5cb5b1461065257806391b7f5ed1461067457806392a8b493146106945780639351a605146106a7578063a0712d68146106c7578063a22cb465146106da578063ba0f28e4146106fa578063d8397fe81461071a578063e777df201461073a578063e985e9c51461074f578063f242432a14610798578063f26b8119146107b8578063f2fde38b146107d8578063f5298aca146107f8578063fb50a6b214610818575b600080fd5b34801561022857600080fd5b5061023c610237366004612ac7565b610838565b6040519081526020015b60405180910390f35b34801561025b57600080fd5b5061026f61026a366004612b07565b6108cf565b6040519015158152602001610246565b34801561028b57600080fd5b5061029f61029a366004612b24565b610921565b005b3480156102ad57600080fd5b506102c16102bc366004612b3f565b610998565b6040516102469190612ba5565b3480156102da57600080fd5b506102e4610cbd81565b60405161ffff9091168152602001610246565b34801561030357600080fd5b5061023c60065481565b34801561031957600080fd5b5061029f610328366004612bb8565b610a2c565b34801561033957600080fd5b5061023c610348366004612b24565b600d6020526000908152604090205481565b34801561036657600080fd5b5061023c610375366004612b24565b600c6020526000908152604090205481565b34801561039357600080fd5b506003546103a890600160a01b900460ff1681565b6040516102469190612bf0565b3480156103c157600080fd5b5061029f6103d0366004612c2a565b610abd565b3480156103e157600080fd5b5061029f610b36565b3480156103f657600080fd5b5061029f610405366004612cb1565b610b94565b34801561041657600080fd5b5061023c60055481565b34801561042c57600080fd5b5061029f61043b366004612e65565b610d05565b34801561044c57600080fd5b5061023c60085481565b34801561046257600080fd5b50610476610471366004612b24565b610d9c565b604051610246929190612f49565b34801561049057600080fd5b5061029f61049f366004612cb1565b610fd9565b3480156104b057600080fd5b5061023c60095481565b3480156104c657600080fd5b5061023c60045481565b3480156104dc57600080fd5b506104f06104eb366004612f77565b611105565b6040516102469190613041565b34801561050957600080fd5b506003546102e490600160d01b900461ffff1681565b34801561052b57600080fd5b5061023c61053a366004612b3f565b61122e565b34801561054b57600080fd5b5061023c600a5481565b34801561056157600080fd5b5061029f610570366004613054565b611336565b34801561058157600080fd5b5061029f6105903660046130d7565b61137e565b3480156105a157600080fd5b5061029f6113cb565b3480156105b657600080fd5b506003546102e490600160b01b900461ffff1681565b3480156105d857600080fd5b5061023c60075481565b3480156105ee57600080fd5b5060035461026f90600160a81b900460ff1681565b34801561060f57600080fd5b506003546102e490600160c01b900461ffff1681565b34801561063157600080fd5b5061023c610640366004612b24565b600b6020526000908152604090205481565b34801561065e57600080fd5b50610667611406565b60405161024691906130f2565b34801561068057600080fd5b5061029f61068f366004612b3f565b611415565b61029f6106a2366004613106565b61147b565b3480156106b357600080fd5b5061029f6106c2366004613106565b611677565b61029f6106d5366004612b3f565b611828565b3480156106e657600080fd5b5061029f6106f53660046131a6565b6119e2565b34801561070657600080fd5b5061029f610715366004612cb1565b6119ed565b34801561072657600080fd5b5061029f610735366004612b24565b611b1a565b34801561074657600080fd5b5060075461023c565b34801561075b57600080fd5b5061026f61076a3660046131d9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156107a457600080fd5b5061029f6107b3366004613203565b611b6b565b3480156107c457600080fd5b5061029f6107d3366004613267565b611bb0565b3480156107e457600080fd5b5061029f6107f3366004612b24565b611bea565b34801561080457600080fd5b5061029f610813366004613289565b611c87565b34801561082457600080fd5b5061029f610833366004612b24565b611cca565b60006001600160a01b0383166108a95760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061090057506001600160e01b031982166303a24d0760e21b145b8061091b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b3361092a611406565b6001600160a01b0316146109505760405162461bcd60e51b81526004016108a0906132bc565b6001600160a01b0381166109765760405162461bcd60e51b81526004016108a0906132f1565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600280546109a79061330e565b80601f01602080910402602001604051908101604052809291908181526020018280546109d39061330e565b8015610a205780601f106109f557610100808354040283529160200191610a20565b820191906000526020600020905b815481529060010190602001808311610a0357829003601f168201915b50505050509050919050565b33610a35611406565b6001600160a01b031614610a5b5760405162461bcd60e51b81526004016108a0906132bc565b6003805483919060ff60a01b1916600160a01b836002811115610a8057610a80612bda565b0217905550610a9381633b9aca0061335f565b600a81905560405190815260008051602061382a8339815191529060200160405180910390a15050565b33610ac6611406565b6001600160a01b031614610aec5760405162461bcd60e51b81526004016108a0906132bc565b6003805463ffffffff60b01b1916600160c01b61ffff9485160261ffff60b01b191617600160b01b948416949094029390931761ffff60d01b1916600160d01b9190921602179055565b33610b3f611406565b6001600160a01b031614610b655760405162461bcd60e51b81526004016108a0906132bc565b60405133904780156108fc02916000818181858888f19350505050158015610b91573d6000803e3d6000fd5b50565b33610b9d611406565b6001600160a01b031614610bc35760405162461bcd60e51b81526004016108a0906132bc565b828114610be25760405162461bcd60e51b81526004016108a0906132f1565b60065460075460045460005b86811015610cf25783610c008161337e565b94505081868683818110610c1657610c16613399565b905060200201351115610c3b5760405162461bcd60e51b81526004016108a0906133af565b858582818110610c4d57610c4d613399565b9050602002013583610c5f91906133cc565b9250858582818110610c7357610c73613399565b9050602002013582610c8591906133e4565b9150610ce0888883818110610c9c57610c9c613399565b9050602002016020810190610cb19190612b24565b85888885818110610cc457610cc4613399565b9050602002013560405180602001604052806000815250611d41565b80610cea8161337e565b915050610bee565b5060069290925560075560045550505050565b6001600160a01b038516331480610d215750610d21853361076a565b610d885760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016108a0565b610d958585858585611e39565b5050505050565b6006546060908190806001600160401b03811115610dbc57610dbc612d1c565b604051908082528060200260200182016040528015610de5578160200160208202803683370190505b509250806001600160401b03811115610e0057610e00612d1c565b604051908082528060200260200182016040528015610e29578160200160208202803683370190505b509150600060015b828111610ea8576000610e448783610838565b90508015610e955781868481518110610e5f57610e5f613399565b6020908102919091010152808584610e768161337e565b955081518110610e8857610e88613399565b6020026020010181815250505b5080610ea08161337e565b915050610e31565b50600754811015610fd2576000816001600160401b03811115610ecd57610ecd612d1c565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090506000826001600160401b03811115610f1357610f13612d1c565b604051908082528060200260200182016040528015610f3c578160200160208202803683370190505b50905060005b83811015610fcb57868181518110610f5c57610f5c613399565b6020026020010151838281518110610f7657610f76613399565b602002602001018181525050858181518110610f9457610f94613399565b6020026020010151828281518110610fae57610fae613399565b602090810291909101015280610fc38161337e565b915050610f42565b5090945092505b5050915091565b33610fe2611406565b6001600160a01b0316146110085760405162461bcd60e51b81526004016108a0906132bc565b8281146110275760405162461bcd60e51b81526004016108a0906132f1565b60065460075460005b858110156110ba57826110428161337e565b93505084848281811061105757611057613399565b905060200201358261106991906133cc565b91506110a887878381811061108057611080613399565b90506020020160208101906110959190612b24565b84878785818110610cc457610cc4613399565b806110b28161337e565b915050611030565b506005546004546110cd90610cbd6133e4565b6110d791906133e4565b8111156110f65760405162461bcd60e51b81526004016108a0906133fb565b60069190915560075550505050565b6060815183511461116a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016108a0565b600083516001600160401b0381111561118557611185612d1c565b6040519080825280602002602001820160405280156111ae578160200160208202803683370190505b50905060005b8451811015611226576111f98582815181106111d2576111d2613399565b60200260200101518583815181106111ec576111ec613399565b6020026020010151610838565b82828151811061120b5761120b613399565b602090810291909101015261121f8161337e565b90506111b4565b509392505050565b600354600090600160a81b900460ff166112705760405162461bcd60e51b815260206004820152600360248201526231313160e81b60448201526064016108a0565b600061127c3384610838565b116112af5760405162461bcd60e51b815260206004820152600360248201526218989960e91b60448201526064016108a0565b6112bb33836001611c87565b60105460405163126fe4c160e31b81526000916001600160a01b03169063937f2608906112ec9033906004016130f2565b6020604051808303816000875af115801561130b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132f9190613418565b9392505050565b6001600160a01b0383163314806113525750611352833361076a565b61136e5760405162461bcd60e51b81526004016108a090613431565b611379838383611fc3565b505050565b33611387611406565b6001600160a01b0316146113ad5760405162461bcd60e51b81526004016108a0906132bc565b60038054911515600160a81b0260ff60a81b19909216919091179055565b336113d4611406565b6001600160a01b0316146113fa5760405162461bcd60e51b81526004016108a0906132bc565b611404600061212d565b565b6003546001600160a01b031690565b3361141e611406565b6001600160a01b0316146114445760405162461bcd60e51b81526004016108a0906132bc565b61145281633b9aca0061335f565b600a81905560405190815260008051602061382a8339815191529060200160405180910390a150565b836000811161149c5760405162461bcd60e51b81526004016108a0906132f1565b80600a546114aa919061335f565b34146114c85760405162461bcd60e51b81526004016108a09061347a565b6005546004546114da90610cbd6133e4565b6114e491906133e4565b816007546114f291906133cc565b11156115105760405162461bcd60e51b81526004016108a0906133fb565b6001600354600160a01b900460ff16600281111561153057611530612bda565b146115635760405162461bcd60e51b815260206004820152600360248201526231303360e81b60448201526064016108a0565b600e546001600160a01b031661158361157d86863361217f565b846121b7565b6001600160a01b0316146115a95760405162461bcd60e51b81526004016108a0906132f1565b600354336000908152600c6020526040902054600160b01b90910461ffff16906115d49087906133cc565b11156116085760405162461bcd60e51b815260206004820152600360248201526218981b60e91b60448201526064016108a0565b600680549060006116188361337e565b9190505550846007600082825461162f91906133cc565b9091555050336000908152600c6020526040812080548792906116539084906133cc565b92505081905550610d95336006548760405180602001604052806000815250611d41565b600854421015801561168b57506009544211155b6116bd5760405162461bcd60e51b815260206004820152600360248201526231303560e81b60448201526064016108a0565b600f546001600160a01b03166116dd6116d785853361217f565b836121b7565b6001600160a01b0316146117035760405162461bcd60e51b81526004016108a0906132f1565b600354336000908152600d6020526040902054600160d01b90910461ffff169061172e9086906133cc565b11156117625760405162461bcd60e51b815260206004820152600360248201526206260760eb1b60448201526064016108a0565b60055484111561179a5760405162461bcd60e51b815260206004820152600360248201526231303960e81b60448201526064016108a0565b600680549060006117aa8361337e565b919050555083600760008282546117c191906133cc565b9091555050336000908152600d6020526040812080548692906117e59084906133cc565b9250508190555083600560008282546117fe91906133e4565b92505081905550611822336006548660405180602001604052806000815250611d41565b50505050565b80600081116118495760405162461bcd60e51b81526004016108a0906132f1565b80600a54611857919061335f565b34146118755760405162461bcd60e51b81526004016108a09061347a565b60055460045461188790610cbd6133e4565b61189191906133e4565b8160075461189f91906133cc565b11156118bd5760405162461bcd60e51b81526004016108a0906133fb565b6002600354600160a01b900460ff1660028111156118dd576118dd612bda565b146119105760405162461bcd60e51b81526020600482015260036024820152620c4c0d60ea1b60448201526064016108a0565b600354336000908152600b6020526040902054600160c01b90910461ffff169061193b9084906133cc565b111561196f5760405162461bcd60e51b815260206004820152600360248201526231303760e81b60448201526064016108a0565b6006805490600061197f8361337e565b9190505550816007600082825461199691906133cc565b9091555050336000908152600b6020526040812080548492906119ba9084906133cc565b925050819055506119de336006548460405180602001604052806000815250611d41565b5050565b6119de338383612219565b336119f6611406565b6001600160a01b031614611a1c5760405162461bcd60e51b81526004016108a0906132bc565b828114611a3b5760405162461bcd60e51b81526004016108a0906132f1565b60065460075460055460005b86811015611b075783611a598161337e565b94505081868683818110611a6f57611a6f613399565b905060200201351115611a945760405162461bcd60e51b81526004016108a0906133af565b858582818110611aa657611aa6613399565b9050602002013583611ab891906133cc565b9250858582818110611acc57611acc613399565b9050602002013582611ade91906133e4565b9150611af5888883818110610c9c57610c9c613399565b80611aff8161337e565b915050611a47565b5060069290925560075560055550505050565b33611b23611406565b6001600160a01b031614611b495760405162461bcd60e51b81526004016108a0906132bc565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038516331480611b875750611b87853361076a565b611ba35760405162461bcd60e51b81526004016108a090613431565b610d9585858585856122fa565b33611bb9611406565b6001600160a01b031614611bdf5760405162461bcd60e51b81526004016108a0906132bc565b600891909155600955565b33611bf3611406565b6001600160a01b031614611c195760405162461bcd60e51b81526004016108a0906132bc565b6001600160a01b038116611c7e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a0565b610b918161212d565b6001600160a01b038316331480611ca35750611ca3833361076a565b611cbf5760405162461bcd60e51b81526004016108a090613431565b611379838383612405565b33611cd3611406565b6001600160a01b031614611cf95760405162461bcd60e51b81526004016108a0906132bc565b6001600160a01b038116611d1f5760405162461bcd60e51b81526004016108a0906132f1565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038416611da15760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016108a0565b33611dbb81600087611db2886124f5565b610d95886124f5565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611deb9084906133cc565b909155505060408051858152602081018590526001600160a01b03808816926000929185169160008051602061380a833981519152910160405180910390a4610d9581600087878787612540565b8151835114611e5a5760405162461bcd60e51b81526004016108a090613497565b6001600160a01b038416611e805760405162461bcd60e51b81526004016108a0906134df565b3360005b8451811015611f67576000858281518110611ea157611ea1613399565b602002602001015190506000858381518110611ebf57611ebf613399565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611f0f5760405162461bcd60e51b81526004016108a090613524565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611f4c9084906133cc565b9250508190555050505080611f609061337e565b9050611e84565b50846001600160a01b0316866001600160a01b0316826001600160a01b03166000805160206137ea8339815191528787604051611fa5929190612f49565b60405180910390a4611fbb81878787878761269c565b505050505050565b6001600160a01b038316611fe95760405162461bcd60e51b81526004016108a09061356e565b805182511461200a5760405162461bcd60e51b81526004016108a090613497565b604080516020810190915260009081905233905b83518110156120e057600084828151811061203b5761203b613399565b60200260200101519050600084838151811061205957612059613399565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156120a95760405162461bcd60e51b81526004016108a0906135b1565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806120d88161337e565b91505061201e565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03166000805160206137ea833981519152868660405161211f929190612f49565b60405180910390a450505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008383308460405160200161219894939291906135f5565b6040516020818303038152906040528051906020012090509392505050565b600061132f82612213856040517b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612757565b816001600160a01b0316836001600160a01b0316141561228d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016108a0565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166123205760405162461bcd60e51b81526004016108a0906134df565b33612330818787611db2886124f5565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156123715760405162461bcd60e51b81526004016108a090613524565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906123ae9084906133cc565b909155505060408051868152602081018690526001600160a01b03808916928a8216929186169160008051602061380a833981519152910160405180910390a46123fc828888888888612540565b50505050505050565b6001600160a01b03831661242b5760405162461bcd60e51b81526004016108a09061356e565b3361245b8185600061243c876124f5565b612445876124f5565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561249c5760405162461bcd60e51b81526004016108a0906135b1565b6000848152602081815260408083206001600160a01b038981168086529184528285208887039055825189815293840188905290929086169160008051602061380a833981519152910160405180910390a45050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061252f5761252f613399565b602090810291909101015292915050565b6001600160a01b0384163b15611fbb5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612584908990899088908890889060040161363c565b6020604051808303816000875af19250505080156125bf575060408051601f3d908101601f191682019092526125bc91810190613681565b60015b61266c576125cb61369e565b806308c379a0141561260557506125e06136ba565b806125eb5750612607565b8060405162461bcd60e51b81526004016108a09190612ba5565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016108a0565b6001600160e01b0319811663f23a6e6160e01b146123fc5760405162461bcd60e51b81526004016108a090613743565b6001600160a01b0384163b15611fbb5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906126e0908990899088908890889060040161378b565b6020604051808303816000875af192505050801561271b575060408051601f3d908101601f1916820190925261271891810190613681565b60015b612727576125cb61369e565b6001600160e01b0319811663bc197c8160e01b146123fc5760405162461bcd60e51b81526004016108a090613743565b60008060006127668585612773565b91509150611226816127e3565b6000808251604114156127aa5760208301516040840151606085015160001a61279e87828585612999565b945094505050506127dc565b8251604014156127d457602083015160408401516127c9868383612a7c565b9350935050506127dc565b506000905060025b9250929050565b60008160048111156127f7576127f7612bda565b14156128005750565b600181600481111561281457612814612bda565b141561285d5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016108a0565b600281600481111561287157612871612bda565b14156128bf5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108a0565b60038160048111156128d3576128d3612bda565b141561292c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108a0565b600481600481111561294057612940612bda565b1415610b915760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016108a0565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b038311156129c65750600090506003612a73565b8460ff16601b141580156129de57508460ff16601c14155b156129ef5750600090506004612a73565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612a43573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a6c57600060019250925050612a73565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a9d87828885612999565b935093505050935093915050565b80356001600160a01b0381168114612ac257600080fd5b919050565b60008060408385031215612ada57600080fd5b612ae383612aab565b946020939093013593505050565b6001600160e01b031981168114610b9157600080fd5b600060208284031215612b1957600080fd5b813561132f81612af1565b600060208284031215612b3657600080fd5b61132f82612aab565b600060208284031215612b5157600080fd5b5035919050565b6000815180845260005b81811015612b7e57602081850181015186830182015201612b62565b81811115612b90576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061132f6020830184612b58565b60008060408385031215612bcb57600080fd5b823560038110612ae357600080fd5b634e487b7160e01b600052602160045260246000fd5b6020810160038310612c1257634e487b7160e01b600052602160045260246000fd5b91905290565b803561ffff81168114612ac257600080fd5b600080600060608486031215612c3f57600080fd5b612c4884612c18565b9250612c5660208501612c18565b9150612c6460408501612c18565b90509250925092565b60008083601f840112612c7f57600080fd5b5081356001600160401b03811115612c9657600080fd5b6020830191508360208260051b85010111156127dc57600080fd5b60008060008060408587031215612cc757600080fd5b84356001600160401b0380821115612cde57600080fd5b612cea88838901612c6d565b90965094506020870135915080821115612d0357600080fd5b50612d1087828801612c6d565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612d5757612d57612d1c565b6040525050565b60006001600160401b03821115612d7757612d77612d1c565b5060051b60200190565b600082601f830112612d9257600080fd5b81356020612d9f82612d5e565b604051612dac8282612d32565b83815260059390931b8501820192828101915086841115612dcc57600080fd5b8286015b84811015612de75780358352918301918301612dd0565b509695505050505050565b600082601f830112612e0357600080fd5b81356001600160401b03811115612e1c57612e1c612d1c565b604051612e33601f8301601f191660200182612d32565b818152846020838601011115612e4857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612e7d57600080fd5b612e8686612aab565b9450612e9460208701612aab565b935060408601356001600160401b0380821115612eb057600080fd5b612ebc89838a01612d81565b94506060880135915080821115612ed257600080fd5b612ede89838a01612d81565b93506080880135915080821115612ef457600080fd5b50612f0188828901612df2565b9150509295509295909350565b600081518084526020808501945080840160005b83811015612f3e57815187529582019590820190600101612f22565b509495945050505050565b604081526000612f5c6040830185612f0e565b8281036020840152612f6e8185612f0e565b95945050505050565b60008060408385031215612f8a57600080fd5b82356001600160401b0380821115612fa157600080fd5b818501915085601f830112612fb557600080fd5b81356020612fc282612d5e565b604051612fcf8282612d32565b83815260059390931b8501820192828101915089841115612fef57600080fd5b948201945b838610156130145761300586612aab565b82529482019490820190612ff4565b9650508601359250508082111561302a57600080fd5b5061303785828601612d81565b9150509250929050565b60208152600061132f6020830184612f0e565b60008060006060848603121561306957600080fd5b61307284612aab565b925060208401356001600160401b038082111561308e57600080fd5b61309a87838801612d81565b935060408601359150808211156130b057600080fd5b506130bd86828701612d81565b9150509250925092565b80358015158114612ac257600080fd5b6000602082840312156130e957600080fd5b61132f826130c7565b6001600160a01b0391909116815260200190565b6000806000806060858703121561311c57600080fd5b8435935060208501356001600160401b038082111561313a57600080fd5b818701915087601f83011261314e57600080fd5b81358181111561315d57600080fd5b88602082850101111561316f57600080fd5b60208301955080945050604087013591508082111561318d57600080fd5b5061319a87828801612df2565b91505092959194509250565b600080604083850312156131b957600080fd5b6131c283612aab565b91506131d0602084016130c7565b90509250929050565b600080604083850312156131ec57600080fd5b6131f583612aab565b91506131d060208401612aab565b600080600080600060a0868803121561321b57600080fd5b61322486612aab565b945061323260208701612aab565b9350604086013592506060860135915060808601356001600160401b0381111561325b57600080fd5b612f0188828901612df2565b6000806040838503121561327a57600080fd5b50508035926020909101359150565b60008060006060848603121561329e57600080fd5b6132a784612aab565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526003908201526203430360ec1b604082015260600190565b600181811c9082168061332257607f821691505b6020821081141561334357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561337957613379613349565b500290565b600060001982141561339257613392613349565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526003908201526203131360ec1b604082015260600190565b600082198211156133df576133df613349565b500190565b6000828210156133f6576133f6613349565b500390565b60208082526003908201526218981960e91b604082015260600190565b60006020828403121561342a57600080fd5b5051919050565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526003908201526231303160e81b604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6060815283606082015283856080830137600060808583018101919091526001600160a01b039384166020830152919092166040830152601f909201601f19160101919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061367690830184612b58565b979650505050505050565b60006020828403121561369357600080fd5b815161132f81612af1565b600060033d11156136b75760046000803e5060005160e01c5b90565b600060443d10156136c85790565b6040516003193d81016004833e81513d6001600160401b0380831160248401831017156136f757505050505090565b828501915081518181111561370f5750505050505090565b843d87010160208285010111156137295750505050505090565b61373860208286010187612d32565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a0604082018190526000906137b790830186612f0e565b82810360608401526137c98186612f0e565b905082810360808401526137dd8185612b58565b9897505050505050505056fe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fbc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62f5fdf7223faf019b846dd0f35f25876f2b97118d4f6e9d6787ea6d85a55c2143a264697066735822122025f6676b6dea93c1b5825b7700cfe04f48e30bd434a93daa9b8f340ec3e56d7b64736f6c634300080b0033

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

0000000000000000000000002a89af13e2687908c50b141d096517fb73ded0a00000000000000000000000002a89af13e2687908c50b141d096517fb73ded0a0000000000000000000000000aabccf860eac6f8efc81a4914c0bef55d9a62e4b

-----Decoded View---------------
Arg [0] : contractAddress (address): 0x2a89aF13e2687908C50b141d096517fb73ded0A0
Arg [1] : _whiteSigner (address): 0x2a89aF13e2687908C50b141d096517fb73ded0A0
Arg [2] : _freeSigner (address): 0xAAbCcf860eaC6f8Efc81A4914C0Bef55d9A62e4b

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000002a89af13e2687908c50b141d096517fb73ded0a0
Arg [1] : 0000000000000000000000002a89af13e2687908c50b141d096517fb73ded0a0
Arg [2] : 000000000000000000000000aabccf860eac6f8efc81a4914c0bef55d9a62e4b


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.