Contract 0xe06c796ec6ba59d965e0033f03497869c9118701 8

Contract Overview

Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8c9a3c1c03b5343e0ae4902bc40b7e3c05ff21301f033dd7dadcb91b27bf17b1Set Approval For...186851972022-08-15 18:01:3612 hrs 19 mins ago0x85fd899cf5d12f9bf0a7be1f71e9499f84582d4b IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍00133584 27.‍5
0xd012390aa3203c7061ad4a14c8cf3e3fec862d56dbf6b0752c7f03366cb800d8Safe Transfer Fr...185788862022-08-13 6:29:012 days 23 hrs ago0xa85b1bb4763808ec438848cb14d924dea1ab4475 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍001123705 27.‍5
0xccdaa9488c522a919f3ac39f4885662f0826a2c2a223616e3dcab940bba0102cSet Approval For...185056732022-08-11 13:33:284 days 16 hrs ago0xa08a529a530586ba52307b1e95c0f6da4b46ce57 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0013358427.‍5
0xe71c14dde01d6af84a6b8d8f42d9db8d12f3b6b9be226f16d0d865ef1d5385b1Safe Transfer Fr...184959712022-08-11 8:08:534 days 22 hrs ago0xb5d15c579899df12443c3600241adb6fa71b9577 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍00279075527.‍5
0xc7ce1555b7527da1c2700a36f3c8309a9efcfce87b3ca41e1200edada05ba43aSafe Transfer Fr...184959492022-08-11 8:08:094 days 22 hrs ago0xb5d15c579899df12443c3600241adb6fa71b9577 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0030738427.‍5
0xa66a67d19659e06610883ed3aa38f4a79138f5dfacee21807f860980aa41875aSafe Transfer Fr...184959382022-08-11 8:07:474 days 22 hrs ago0xb5d15c579899df12443c3600241adb6fa71b9577 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍00232050527.‍5
0x1539ee78346e3cb5dfac6213ccb372fc29b50568392bbd9aec42e85c6761b2dbSafe Transfer Fr...184959252022-08-11 8:07:214 days 22 hrs ago0xb5d15c579899df12443c3600241adb6fa71b9577 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍00232050527.‍5
0x342e4bcc017944649d9c94501202262aba8630968f1c93c2d469823958b6945bSafe Transfer Fr...184959092022-08-11 8:06:494 days 22 hrs ago0xb5d15c579899df12443c3600241adb6fa71b9577 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍00232050527.‍5
0x3cea9f02b8b9e17c3a7fd8b3e2e662472a5bec77aa8dfb8e23c47e8952e31d2eSafe Transfer Fr...184959002022-08-11 8:06:304 days 22 hrs ago0xb5d15c579899df12443c3600241adb6fa71b9577 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0026035927.‍5
0x0bfe7b255f8b5112c4b97dbf862728538fe38ece3d5b2f932d76e53eadfc64e1Safe Transfer Fr...184958822022-08-11 8:05:554 days 22 hrs ago0xb5d15c579899df12443c3600241adb6fa71b9577 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍00232050527.‍5
0xd036af1720041e9c33106bf4235276813cac2b0d862d9c900b9be6863445e863Safe Transfer Fr...184958692022-08-11 8:05:294 days 22 hrs ago0xb5d15c579899df12443c3600241adb6fa71b9577 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0026035927.‍5
0x35467c12676c059be970d1f963897c467befb500307ebe771161c68f5816936aSafe Transfer Fr...184955502022-08-11 7:54:514 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍00279108527.‍5
0x34ec75bcef2e2dbf492e7acf0ca9c4d6726b81dfb20cd9889b0a205b2b5c2055Safe Transfer Fr...184955212022-08-11 7:53:534 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍000964122527.‍5
0x858b593f2af8451b4db8a4543f4239c21ef8deb5cc60c4d615ef231d4b6da3b2Safe Transfer Fr...184955082022-08-11 7:53:274 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0030741727.‍5
0xa41cf724b98dc3e94a796105c478c2eaabcd671ad60f7af01d418526a22f62e5Safe Transfer Fr...184954912022-08-11 7:52:534 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0030741727.‍5
0xa84cbe30fcb6033d7ee49886af63aac1f886c2bf93883e814071ab849eca38d8Safe Transfer Fr...184954722022-08-11 7:52:154 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0026039227.‍5
0x38af9dd4418cdaf145e1188ad1ad9cfda2344f302ed69835978cf6ace0d20c90Safe Transfer Fr...184954502022-08-11 7:51:314 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0026039227.‍5
0x2c08df01f11ef3b7666c00bccecdd7bea3097e42ccefa40e163bcb5d63c0e719Safe Transfer Fr...184954292022-08-11 7:50:494 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0030741727.‍5
0xeae6b5334311ed7a0f76717b29603d45a4b71e1d23da338b35f4fa0b4352c471Safe Transfer Fr...184954092022-08-11 7:50:094 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0030741727.‍5
0xb47632f3e3658d65ffda535278ca89029aea4fbfda124984e9e2473568c957feSafe Transfer Fr...184953862022-08-11 7:49:234 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0026039227.‍5
0xf0a5495015a2c4144be2213c3392dccadfa07aae79fc977f97986914fc5a9cb2Safe Transfer Fr...184953612022-08-11 7:48:314 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0026039227.‍5
0xec267025aa7f0cd698d68eb7d385e181ae822c492c93c4e8c6c5278112f4a8d2Safe Transfer Fr...184953422022-08-11 7:47:534 days 22 hrs ago0xfe25451b88233c214c6dc5f85b9063556f25b0ba IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0026039227.‍5
0x89bbb03ef65e17ca990604a985c4acadf3f6c56d0e0f0a4bd7020ce1c72eee1cSet Approval For...184095812022-08-09 7:51:106 days 22 hrs ago0xebeafa5861fa5bf789e7b42a5a429fecf37d256c IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0024288 50
0x0159a8180f5e362b6b428da9ec126e65d8737298d8ab1f07329b37686d85688aSet Approval For...184093432022-08-09 7:43:096 days 22 hrs ago0xe23e02ffc707533e60b0961eea0ded74f6cbb640 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0024288 50
0xe2f06940db2087833964fbbcc2bdc6a8b31ac2c9a2ba6e281b17575c6dab17b0Set Approval For...183818042022-08-08 16:17:307 days 14 hrs ago0xa08a529a530586ba52307b1e95c0f6da4b46ce57 IN  0xe06c796ec6ba59d965e0033f03497869c91187010 AVAX0.‍0013358427.‍5
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x00ef62f6cded6cb42d35b760d7a8654da6ec2d8c2c632ffaa0ecf15724a3696f121243932022-03-15 3:06:10154 days 3 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x5aca27aee06a4ac9c839415271bbc4558f8b76790.‍006865774 AVAX
0xb46d62cf707b4c3aec6bc3f497bc54385a32a1b284b69344d12ae0b943730264120726412022-03-13 21:43:54155 days 8 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x33a2ce8c986b3321c82cb127f3090f6c10d8d9900.‍0041194644 AVAX
0x9d21e0978b4ee82e7f95c156a60f257b35694bc7f0c953a3ab60dec12492ff34120685062022-03-13 19:22:39155 days 10 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x0c34f96e0f394b54333a2821e0e5a6270e1b821632.‍7696120836 AVAX
0x52046bc19bc9c38de40d09202190bd621168f14a04ce91f8304b14422b6ec8ed120270312022-03-12 19:48:00156 days 10 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x519dfef58dbaef0d33edd1fb5b7d66eeca43db62117.‍03432887 AVAX
0x61eee4e1054334514aa4dd715048f0018b17b3d069bd01868a11898b3c87c22b120270082022-03-12 19:47:16156 days 10 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x50d24a0be76bc1f3a8b7eb70939149ef2eb64e610.‍020597322 AVAX
0x518e19b89c6b0a62509adb7b17595faa3d0b246cd5f28cd95a1e3dee8d71a56a120269592022-03-12 19:45:39156 days 10 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x607ddd085fe37665b2abb8f08657d5c489296b8969.‍0941194644 AVAX
0x74d737f13384869620c52e818c9c5a5042c8b528d1fb9200f0170cc4fd817caa120268292022-03-12 19:41:13156 days 10 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x6f56708bfde8a2774c0adc1a727c3b7f2b9e52a879.‍5833436316 AVAX
0x61d31182068673e068a349ab7e80acfd533fd4b233e40b85b86179cf99a2d0dd120020472022-03-12 5:44:34157 days 36 mins ago 0xe06c796ec6ba59d965e0033f03497869c91187010x04927b33a09ae5c5218f6fab00d0f20b2c3e9c4056.‍1764778576 AVAX
0x4bf907d2fb9d71be8da068f444438837238cb9561857d531c52b23fe7d895ed3119867902022-03-11 20:57:53157 days 9 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x2fe315378f06b56b865896b94adc6888e31b8ed70.‍006865774 AVAX
0x20d3a465a7174edbd9b408d7c825f560a2f20fbeb7cd8de9eaaba38b657b927f119861362022-03-11 20:34:14157 days 9 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x31024f98dd8199431a2f9524c0bcb97e450d51010.‍0027463096 AVAX
0x45c4c5d62929a20ab607d63e717a3e6f4c0f4c9c7939785c6a713f75b150146b119819782022-03-11 18:02:37157 days 12 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x3ef47f7662ad686be6098a18e0f57d59c14c040b0.‍0082389288 AVAX
0xc06ea832dccc91a910c3a40e6b601231c85b0f713cf94544f641e15cad61a789119511062022-03-10 23:38:53158 days 6 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x5aca27aee06a4ac9c839415271bbc4558f8b767923.‍4 AVAX
0x99ec25ad0ad9f2a93dd7c9a77cc405c0b47d526568c1c9259e98484f1e6d6765119221952022-03-10 7:11:52158 days 23 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x33a2ce8c986b3321c82cb127f3090f6c10d8d99036.‍615 AVAX
0x9fa3868f559f4e5a5fb6c43d8f0e4610e1a6b590868f52e2807dfcde9ce09247119199982022-03-10 5:58:03159 days 22 mins ago 0xe06c796ec6ba59d965e0033f03497869c91187010x2fe315378f06b56b865896b94adc6888e31b8ed731.‍65 AVAX
0x696cfe5367bbd29f9d0dfaef82b418c3d1de9824720f1b906a35c7804bbfee2f119092532022-03-09 23:56:16159 days 6 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x31024f98dd8199431a2f9524c0bcb97e450d510115.‍06 AVAX
0x7ffc7b5e429ee55827a68dfb9f1da5ab34170d5a80a65bd61a6f902e3e6420d1119024032022-03-09 20:04:19159 days 10 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x3ef47f7662ad686be6098a18e0f57d59c14c040b66.‍03 AVAX
0x207530bf8a81b8526a9be529584a5bf66dd1268e798b3ede2721155969902d3b118985922022-03-09 17:55:21159 days 12 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x50d24a0be76bc1f3a8b7eb70939149ef2eb64e6170.‍2 AVAX
0x3b0dfed1fce4c657f7129f006145dcff14fcf387c85f2eb012b9976ff19d1e33118965692022-03-09 16:47:05159 days 13 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x0c34f96e0f394b54333a2821e0e5a6270e1b821631.‍325 AVAX
0xb46dab85bc15890ebc07e984369f979f9165197a0ffb20cc46c5cd3c9181f9de118961042022-03-09 16:31:30159 days 13 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x6f56708bfde8a2774c0adc1a727c3b7f2b9e52a868.‍425 AVAX
0xd9637bc4e31505fb39ad206542d5f09498bb146b2269175ac32da3ae186572e9118960672022-03-09 16:30:16159 days 13 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x5aca27aee06a4ac9c839415271bbc4558f8b767935 AVAX
0x6a4c165ffe5fd95220c1f42ade6c733d690ba6d343064f38332c01bdae83091d118957852022-03-09 16:20:40159 days 14 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x50d24a0be76bc1f3a8b7eb70939149ef2eb64e6160.‍375 AVAX
0xfa2466c569d903b2d8f225a2c21539f19d1a83829bcc660fb76f72a22ec48d5e118956022022-03-09 16:14:30159 days 14 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x04927b33a09ae5c5218f6fab00d0f20b2c3e9c4048.‍3 AVAX
0xec661a20cd4836308f6c3398d3279aa4b8d3e83c1765cd6e298a87d8b8a26021118955492022-03-09 16:12:43159 days 14 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x519dfef58dbaef0d33edd1fb5b7d66eeca43db62100.‍625 AVAX
0x367f11d16cbb5bde59a7fa5c879ed6b393636fecf72f339ef8e63acf313d93e0118754582022-03-09 4:58:29160 days 1 hr ago 0xe06c796ec6ba59d965e0033f03497869c91187010x2fe315378f06b56b865896b94adc6888e31b8ed710.‍625 AVAX
0xf0f294a6cc71b2cdcca61b936430712a5065fa4007f93ac565e2c36cefbed932118647692022-03-08 22:59:33160 days 7 hrs ago 0xe06c796ec6ba59d965e0033f03497869c91187010x31024f98dd8199431a2f9524c0bcb97e450d510135.‍5 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Bacon

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 22 : Bacon.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity 0.8.11;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

interface IFRYINGPAN {
	function randomCopOwner(uint256 seed) external view returns (address);
	function stake(uint256 tokenID) external;
}

interface IRandomizer {
	function random(
		uint256 from,
		uint256 to,
		uint256 salty
	) external view returns (uint256);
}

interface IBacon {
	function getPaidTokens() external view returns (uint256);
	function getTokenTraits(uint256 tokenId) external view returns (bool, uint256);
}

interface IGREASE {
	function burn(address from, uint256 amount) external;
}

// struct to store each token's traits
struct CopBacon {
	bool isCop; //rest is handled in api/ipfs
	uint256 alphaRank; //1-10
}

contract Bacon is IBacon, ERC721Enumerable, Pausable, Ownable, ReentrancyGuard, PaymentSplitter {
	using Address for address;
	using Strings for uint256;
	using Counters for Counters.Counter;
	using MerkleProof for bytes32[];

	struct LastWrite {
		uint64 time;
		uint64 blockNum;
	}

	// Tracks the last block and timestamp that a caller has written to state.
	// Disallow some access to functions if they occur while a change is being written.
	mapping(address => LastWrite) private lastWriteAddress;
	mapping(uint256 => LastWrite) private lastWriteToken;

	//the merkle root
	bytes32 public root = 0x861a2b32074f84286119ec8f341bbe0a88912c888c3aadf7541fcb7c46df0e1f;

	uint256 public whitelistStartTime = 1646240400; // 03.02.2022 5PM UTC

	// max mint qty
	uint16 public MAX_MINT_QTY = 10;
	// whitelist mint max for discounted price
	uint256 public WHITELIST_MINT_MAX = 2000;
	// whitelist mint price
	uint256 public WHITELIST_MINT_PRICE = 2 ether;
	// mint price
	uint256 public MINT_PRICE = 2.5 ether;
	// max number of tokens that can be minted - 50000 in production
	uint256 public MAX_TOKENS = 50000;
	// number of tokens that can be claimed for free - 20% of MAX_TOKENS
	uint256 public PAID_TOKENS = 10000;

	// mapping from tokenId to a struct containing the token's traits
	mapping(uint256 => CopBacon) private tokenTraits;
	// mapping for tokenId and if it is a golden one
	mapping(uint256 => bool) public isGoldenBacon;

	IRandomizer private randomizer;

	// reference to the Frying Pan for choosing random bacon thieves
	IFRYINGPAN public theFryingPan;
	// reference to $GREASE for burning on mint
	IGREASE public greaseERC20;
	address private devWallet;
	Counters.Counter private _tokenIds;

	// payment splitter
	address[] private addressList = [
		0x5aca27AEe06a4ac9c839415271Bbc4558f8b7679,
		0x2fe315378f06b56B865896B94adC6888e31B8ed7,
		0x0C34F96e0F394B54333A2821e0e5A6270E1b8216,
		0x33a2Ce8C986b3321C82cB127f3090F6c10D8D990,
		0x31024f98dd8199431A2f9524C0bCB97E450D5101,
		0x3Ef47f7662AD686be6098a18e0F57D59C14C040b,
		0x04927B33a09ae5c5218F6fAb00d0f20B2c3e9C40,
		0x50d24A0BE76Bc1f3A8B7Eb70939149EF2eb64e61,
		0x519dFeF58dbaEF0D33EDd1FB5B7D66eEcA43dB62,
		0x6f56708Bfde8A2774c0ADc1A727c3b7f2b9E52A8,
		0x607DdD085Fe37665B2Abb8f08657D5C489296b89
	];
	uint256[] private shareList = [5, 5, 7, 3, 2, 6, 12, 15, 25, 17, 3];

	bool public locked; //metadata lock
	string public _contractBaseURI = "https://api.grandtheftbacon.com/v1/nft/metadata/";
	string public _contractURI =
		"ipfs://QmaTeafE14CHWFNPwivoSvL6zphDtJLwLPTM6JKt8EtPVy/contracts/contract_uri";

	event BaconMinted(uint256 indexed tokenId, address indexed minter, address indexed owner);
	event CopMinted(uint256 indexed tokenId, address indexed minter, address indexed owner);
	event BaconBurned(uint256 indexed tokenId);
	event CopBurned(uint256 indexed tokenId);

	modifier onlyDev() {
		require(msg.sender == devWallet, "only dev");
		_;
	}

	modifier blockIfChangingAddress() {
		require(lastWriteAddress[tx.origin].blockNum < block.number, "hmmmm what doing?");
		_;
	}

	modifier blockIfChangingToken(uint256 tokenId) {
		require(lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
		_;
	}

	modifier notContract() {
    	require(!_isContract(msg.sender), "Contract not allowed");
    	require(msg.sender == tx.origin, "Proxy contract not allowed");
    	_;
  	}

	constructor() ERC721("GrandTheftBacon", "GTHEFT") PaymentSplitter(addressList, shareList) {
		devWallet = msg.sender;
	}

	function delBuildNumber38() internal pure {} //etherscan trick

	/**
	 * @dev you need to be whitelisted and know the proof to be able to mint
	 */
	function whitelistMint(
		uint256 qty,
		uint256 tokenId,
		uint256 _seed,
		bytes32[] calldata proof
	) external payable notContract whenNotPaused nonReentrant {
		require(block.timestamp > whitelistStartTime, "not live");
		require(isTokenValid(msg.sender, tokenId, proof), "invalid proof");
		require(_tokenIds.current() + qty <= MAX_TOKENS, "All tokens minted");
		require(_tokenIds.current() + qty <= WHITELIST_MINT_MAX, "sold out for whitelist");
		require(qty <= MAX_MINT_QTY, "Invalid mint qty");

		if (_tokenIds.current() < PAID_TOKENS) {
			// if tokens are sold with ETH
			require(_tokenIds.current() + qty <= PAID_TOKENS, "All tokens on-sale already sold");
			require(qty * WHITELIST_MINT_PRICE == msg.value, "Invalid payment amount");
		} else {
			require(msg.value == 0);
		}

		mint(qty, _seed);
	}

	/**
	 * @dev public mint a token - 90% BACON, 10% COP BACON
	 */
	function publicMint(uint256 qty, uint256 _seed) external payable notContract whenNotPaused nonReentrant {
		require(_tokenIds.current() + qty <= MAX_TOKENS, "All tokens minted");
		require(_tokenIds.current() + qty > WHITELIST_MINT_MAX, "not live");
		require(qty <= MAX_MINT_QTY, "Invalid mint qty");

		if (_tokenIds.current() < PAID_TOKENS) {
			//if tokens are sold with ETH
			require(_tokenIds.current() + qty <= PAID_TOKENS, "All tokens on-sale already sold");
			require(qty * MINT_PRICE == msg.value, "Invalid payment amount");
		} else {
			require(msg.value == 0);
		}

		mint(qty, _seed);
	}

	function mint(uint256 qty, uint256 _seed) internal {
		uint256 seed;

		for (uint256 i = 0; i < qty; i++) {
			seed = randomizer.random(1000, 2**64 - 1, _seed + _tokenIds.current());
			address recipient = selectRecipient(seed);
			uint256 totalgreaseCost = mintCost(totalSupply() + 1);

			if (totalgreaseCost > 0) {
				greaseERC20.burn(_msgSender(), totalgreaseCost);
			}

			_tokenIds.increment();

			//set the token traits
			uint256 isBaconInt = seed % 100; //90% bacon
			uint256 alpha = 1;
			bool isCop = false;
			if (isBaconInt >= 89) {
				isCop = true;
				emit CopMinted(_tokenIds.current(), msg.sender, recipient);
			} else {
				emit BaconMinted(_tokenIds.current(), msg.sender, recipient);
			}
			alpha = (isBaconInt % 10) + 1; //rank 1-10

			CopBacon memory sw = CopBacon(isCop, alpha);
			tokenTraits[_tokenIds.current()] = sw;

			updateOriginAccess(_tokenIds.current());
			_safeMint(recipient, _tokenIds.current());
		}
	}

	/**
	 * Returns if public sale is live
	 * @return boolean if public sale has started
	*/
	function isPublicSaleLive() external view returns (bool) {
		return _tokenIds.current() >= WHITELIST_MINT_MAX;
	}

	/**
	 * the first are paid in ETH, then in $grease
	 * @param tokenId the ID to check the cost of to mint
	 * @return the cost of the given token ID
	 */
	function mintCost(uint256 tokenId) public view returns (uint256) {
		if (tokenId <= PAID_TOKENS) return 0;
		if (tokenId <= (MAX_TOKENS * 2) / 5) return 20000 ether;
		if (tokenId <= (MAX_TOKENS * 4) / 5) return 40000 ether;
		return 80000 ether;
	}

	/**
	 * the first 20% (ETH purchases) go to the minter
	 * 10% chance to be given to a random staked Bacon
	 * @param seed a random value to select a recipient from
	 * @return the address of the recipient (either the minter or the Bacon thief's owner)
	 */
	function selectRecipient(uint256 seed) internal view returns (address) {
		seed = randomizer.random(1000, 2**64 - 1, seed + _tokenIds.current());
		if (totalSupply() <= PAID_TOKENS) return _msgSender();
		if (seed % 100 < 90) {
			//there's a high chance you'll get the token ;)
			return _msgSender();
		}
		address thief = theFryingPan.randomCopOwner(seed);
		if (thief == address(0x0)) {
			return _msgSender();
		}
		return thief;
	}

	/** READ */
	function getPaidTokens() external view override returns (uint256) {
		return PAID_TOKENS;
	}

	function getTokenTraits(uint256 tokenId)
		public
		view
		override
		blockIfChangingAddress
		blockIfChangingToken(tokenId)
		returns (bool, uint256)
	{
		return (tokenTraits[tokenId].isCop, tokenTraits[tokenId].alphaRank);
	}

	/** ADMIN */

	function goldenBaconAirdrop(uint256 qty) external onlyOwner {
		require(_tokenIds.current() + qty <= MAX_TOKENS, "All tokens minted");
		require(qty <= MAX_MINT_QTY, "Invalid mint qty");

		// mint golden bacon
		for (uint256 i = 0; i < qty; i++) {
			_tokenIds.increment();

			CopBacon memory sw = CopBacon(false, 10); // always bacon
			tokenTraits[_tokenIds.current()] = sw;
			isGoldenBacon[_tokenIds.current()] = true;
			emit BaconMinted(_tokenIds.current(), msg.sender, msg.sender);

			updateOriginAccess(_tokenIds.current());
			_safeMint(msg.sender, _tokenIds.current());
		}
	}
	
	/**
	 * called after deployment so that the contract can get random Bacon thieves
	 * @param _fryingPanAddress the address of the Frying Pan
	 */
	function setFryingPan(address _fryingPanAddress) external onlyOwner {
		theFryingPan = IFRYINGPAN(_fryingPanAddress);
	}

	function setGrease(address _newGreaseAddress) external onlyOwner {
		greaseERC20 = IGREASE(_newGreaseAddress);
	}

	function setRandomizer(address _newRandomizer) external onlyOwner {
		randomizer = IRandomizer(_newRandomizer);
	}

	function setMerkleRoot(bytes32 _root) external onlyOwner {
		root = _root;
	}

	// don't have to waste gas approving
	function transferFrom(
		address from,
		address to,
		uint256 tokenId
	) public virtual override(ERC721) blockIfChangingToken(tokenId) {
		if (_msgSender() != address(theFryingPan))
			require(
				_isApprovedOrOwner(_msgSender(), tokenId),
				"ERC721: transfer caller is not owner nor approved"
			);
		_transfer(from, to, tokenId);
	}

	//----------------------------------
	//----------- other code -----------
	//----------------------------------

	function isTokenValid(
		address _to,
		uint256 _tokenId,
		bytes32[] memory _proof
	) public view returns (bool) {
		// construct Merkle tree leaf from the inputs supplied
		bytes32 leaf = keccak256(abi.encodePacked(_to, _tokenId));
		// verify the proof supplied, and return the verification result
		return _proof.verify(root, leaf);
	}

	function getTokenWriteBlock(uint256 tokenId) external view returns (uint64) {
		return lastWriteToken[tokenId].blockNum;
	}

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

	function burn(uint256 tokenId) external whenNotPaused {
		require(ownerOf(tokenId) == tx.origin, "Oops you don't own that");
		if (tokenTraits[tokenId].isCop) {
			emit CopBurned(tokenId);
		} else {
			emit BaconBurned(tokenId);
		}
		_burn(tokenId);
	}

	function isApprovedOrOwner(address _spender, uint256 _tokenId) external view returns (bool) {
		return _isApprovedOrOwner(_spender, _tokenId);
	}

	function tokenURI(uint256 _tokenId) public view override returns (string memory) {
		require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
		return string(abi.encodePacked(_contractBaseURI, _tokenId.toString()));
	}

	function setBaseURI(string memory newBaseURI) external onlyDev {
		require(!locked, "locked functions");
		_contractBaseURI = newBaseURI;
	}

	function setContractURI(string memory newuri) external onlyDev {
		require(!locked, "locked functions");
		_contractURI = newuri;
	}

	function setPaused(bool _setPaused) public onlyOwner {
		return (_setPaused) ? _pause() : _unpause();
	}

	function contractURI() public view returns (string memory) {
		return _contractURI;
	}

	function reclaimERC20(IERC20 erc20Token) external onlyOwner {
		erc20Token.transfer(msg.sender, erc20Token.balanceOf(address(this)));
	}

	function reclaimERC721(IERC721 erc721Token, uint256 id) external onlyOwner {
		erc721Token.safeTransferFrom(address(this), msg.sender, id);
	}

	function changePricePerToken(uint256 newPrice) external onlyOwner {
		MINT_PRICE = newPrice;
	}

	function setMaxMintQty(uint16 newQty) external onlyOwner {
		MAX_MINT_QTY = newQty;
	}

	function setWhitelistMintMax(uint16 newWhitelistMintMax) external onlyOwner {
		WHITELIST_MINT_MAX = newWhitelistMintMax;
	}

	function setPaidTokensAmount(uint256 newAmount) external onlyOwner {
		require(newAmount < PAID_TOKENS, "only burn");
		PAID_TOKENS = newAmount;
	}

	function setMaxAmount(uint256 newAmount) external onlyOwner {
		require(newAmount < MAX_TOKENS, "only burn");
		MAX_TOKENS = newAmount;
	}

	function setWhitelistStartTime(uint256 newTime) external onlyOwner {
		whitelistStartTime = newTime;
	}

	// and for the eternity!
	function lockMetadata() external onlyDev {
		locked = true;
	}

	/** OVERRIDES FOR SAFETY */
	function updateOriginAccess(uint256 tokenId) internal {
		uint64 blockNum = uint64(block.number);
		uint64 time = uint64(block.timestamp);
		lastWriteAddress[tx.origin] = LastWrite(time, blockNum);
		lastWriteToken[tokenId] = LastWrite(time, blockNum);
	}

	function tokenOfOwnerByIndex(address owner, uint256 index)
		public
		view
		virtual
		override(ERC721Enumerable)
		blockIfChangingAddress
		returns (uint256)
	{
		require(lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?");
		uint256 tokenId = super.tokenOfOwnerByIndex(owner, index);
		require(lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
		return tokenId;
	}

	function balanceOf(address owner)
		public
		view
		virtual
		override(ERC721)
		blockIfChangingAddress
		returns (uint256)
	{
		require(lastWriteAddress[owner].blockNum < block.number, "hmmmm what doing?");
		return super.balanceOf(owner);
	}

	function ownerOf(uint256 tokenId)
		public
		view
		virtual
		override(ERC721)
		blockIfChangingAddress
		blockIfChangingToken(tokenId)
		returns (address)
	{
		address addr = super.ownerOf(tokenId);
		require(lastWriteAddress[addr].blockNum < block.number, "hmmmm what doing?");
		return addr;
	}

	function tokenByIndex(uint256 index)
		public
		view
		virtual
		override(ERC721Enumerable)
		returns (uint256)
	{
		uint256 tokenId = super.tokenByIndex(index);
		require(lastWriteToken[tokenId].blockNum < block.number, "hmmmm what doing?");
		return tokenId;
	}

	function approve(address to, uint256 tokenId)
		public
		virtual
		override(ERC721)
		blockIfChangingToken(tokenId)
	{
		super.approve(to, tokenId);
	}

	function getApproved(uint256 tokenId)
		public
		view
		virtual
		override(ERC721)
		blockIfChangingToken(tokenId)
		returns (address)
	{
		return super.getApproved(tokenId);
	}

	function setApprovalForAll(address operator, bool approved)
		public
		virtual
		override(ERC721)
		blockIfChangingAddress
	{
		super.setApprovalForAll(operator, approved);
	}

	function isApprovedForAll(address owner, address operator)
		public
		view
		virtual
		override(ERC721)
		blockIfChangingAddress
		returns (bool)
	{
		return super.isApprovedForAll(owner, operator);
	}

	function safeTransferFrom(
		address from,
		address to,
		uint256 tokenId
	) public virtual override(ERC721) blockIfChangingToken(tokenId) {
		super.safeTransferFrom(from, to, tokenId);
	}

	function safeTransferFrom(
		address from,
		address to,
		uint256 tokenId,
		bytes memory _data
	) public virtual override(ERC721) blockIfChangingToken(tokenId) {
		super.safeTransferFrom(from, to, tokenId, _data);
	}

	function _isContract(address _addr) internal view returns (bool) {
    	uint256 size;
    	assembly {
      		size := extcodesize(_addr)
    	}
    	return size > 0;
  	}
}

File 2 of 22 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

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

File 3 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 22 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 5 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 6 of 22 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 7 of 22 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 8 of 22 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 9 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 10 of 22 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

File 11 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 12 of 22 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 13 of 22 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 14 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 15 of 22 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 16 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 17 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 18 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 19 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 20 of 22 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 21 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 22 of 22 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BaconBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"BaconMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"CopBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"CopMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_MINT_QTY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAID_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MINT_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changePricePerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPaidTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenTraits","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenWriteBlock","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"goldenBaconAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"greaseERC20","outputs":[{"internalType":"contract IGREASE","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isGoldenBacon","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"isTokenValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"uint256","name":"_seed","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"erc20Token","type":"address"}],"name":"reclaimERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"erc721Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"reclaimERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fryingPanAddress","type":"address"}],"name":"setFryingPan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGreaseAddress","type":"address"}],"name":"setGrease","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setMaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newQty","type":"uint16"}],"name":"setMaxMintQty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setPaidTokensAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_setPaused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRandomizer","type":"address"}],"name":"setRandomizer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newWhitelistMintMax","type":"uint16"}],"name":"setWhitelistMintMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTime","type":"uint256"}],"name":"setWhitelistStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"theFryingPan","outputs":[{"internalType":"contract IFRYINGPAN","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"_seed","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

7f861a2b32074f84286119ec8f341bbe0a88912c888c3aadf7541fcb7c46df0e1f60155563621fa2906016556017805461ffff1916600a1790556107d0601855671bc16d674ec800006019556722b1c8c1227a0000601a5561c350601b55612710601c556101e0604052735aca27aee06a4ac9c839415271bbc4558f8b76796080908152732fe315378f06b56b865896b94adc6888e31b8ed760a052730c34f96e0f394b54333a2821e0e5a6270e1b821660c0527333a2ce8c986b3321c82cb127f3090f6c10d8d99060e0527331024f98dd8199431a2f9524c0bcb97e450d510161010052733ef47f7662ad686be6098a18e0f57d59c14c040b610120527304927b33a09ae5c5218f6fab00d0f20b2c3e9c40610140527350d24a0be76bc1f3a8b7eb70939149ef2eb64e616101605273519dfef58dbaef0d33edd1fb5b7d66eeca43db6261018052736f56708bfde8a2774c0adc1a727c3b7f2b9e52a86101a05273607ddd085fe37665b2abb8f08657d5c489296b896101c0526200018a90602490600b62000733565b5060408051610160810182526005808252602082015260079181019190915260036060820181905260026080830152600660a0830152600c60c0830152600f60e083015260196101008301526011610120830152610140820152620001f490602590600b6200079d565b50604051806060016040528060308152602001620057296030913980516200022591602791602090910190620007e0565b506040518060800160405280604c815260200162005759604c913980516200025691602891602090910190620007e0565b503480156200026457600080fd5b506024805480602002602001604051908101604052809291908181526020018280548015620002bd57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116200029e575b505050505060258054806020026020016040519081016040528092919081815260200182805480156200031057602002820191906000526020600020905b815481526020019060010190808311620002fb575b5050604080518082018252600f81526e23b930b7322a3432b33a2130b1b7b760891b60208083019182528351808501909452600684526511d51211519560d21b9084015281519195509193506200036c925060009190620007e0565b50805162000382906001906020840190620007e0565b5050600a805460ff19169055506200039a33620004eb565b6001600b558051825114620004115760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620004645760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000408565b60005b8251811015620004d057620004bb8382815181106200048a576200048a62000874565b6020026020010151838381518110620004a757620004a762000874565b60200260200101516200054560201b60201c565b80620004c781620008a0565b91505062000467565b5050602280546001600160a01b031916331790555062000916565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620005b25760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000408565b60008111620006045760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000408565b6001600160a01b0382166000908152600e602052604090205415620006805760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000408565b60108054600181019091557f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0319166001600160a01b0384169081179091556000908152600e60205260409020819055600c54620006ea908290620008be565b600c55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b8280548282559060005260206000209081019282156200078b579160200282015b828111156200078b57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000754565b50620007999291506200085d565b5090565b8280548282559060005260206000209081019282156200078b579160200282015b828111156200078b578251829060ff16905591602001919060010190620007be565b828054620007ee90620008d9565b90600052602060002090601f0160209004810192826200081257600085556200078b565b82601f106200082d57805160ff19168380011785556200078b565b828001600101855582156200078b579182015b828111156200078b57825182559160200191906001019062000840565b5b808211156200079957600081556001016200085e565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620008b757620008b76200088a565b5060010190565b60008219821115620008d457620008d46200088a565b500190565b600181811c90821680620008ee57607f821691505b602082108114156200091057634e487b7160e01b600052602260045260246000fd5b50919050565b614e0380620009266000396000f3fe60806040526004361061041f5760003560e01c8063715018a61161021e578063b11d451c11610123578063d79779b2116100ab578063e985e9c51161007a578063e985e9c514610ce2578063ebd1736814610d02578063ebf0c71714610d57578063f2fde38b14610d6d578063f47c84c514610d8d57600080fd5b8063d79779b214610c6f578063df72539614610ca5578063e33b7de314610cb8578063e8a3d48514610ccd57600080fd5b8063c084f540116100f2578063c084f54014610bd4578063c0e7274014610bea578063c87b56dd14610bff578063ce7c2ac214610c1f578063cf30901214610c5557600080fd5b8063b11d451c14610b5e578063b88d4fde14610b7e578063bc12186614610b9e578063c002d23d14610bbe57600080fd5b8063938e3d7b116101a65780639852595c116101755780639852595c14610aca578063989bdbb614610b0057806398ae99a814610b15578063a22cb46514610b28578063aca9938d14610b4857600080fd5b8063938e3d7b14610a3e57806394e5684714610a5e57806395d89b4114610a95578063964312e014610aaa57600080fd5b806386233071116101ed57806386233071146109b05780638905fd4f146109c55780638b83209b146109e55780638da5cb5b14610a055780639292caaf14610a2857600080fd5b8063715018a61461092e578063767bcab5146109435780637cb64759146109635780638462151c1461098357600080fd5b80633a98ef39116103245780634fe47f70116102ac5780636352211e1161027b5780636352211e146108995780636b7d2470146108b95780636fa48bc3146108d957806370a08231146108f95780637101ebca1461091957600080fd5b80634fe47f701461082157806355f804b3146108415780635c975abb1461086157806362a4f4bc1461087957600080fd5b806342842e0e116102f357806342842e0e1461078157806342966c68146107a1578063430c2081146107c157806348b75044146107e15780634f6ccce71461080157600080fd5b80633a98ef39146106f15780633dc94d9c146107065780634018b1f814610726578063406072a91461073b57600080fd5b806319165587116103a7578063275efe1a11610376578063275efe1a1461065b57806327de8f271461067b5780632b03a4aa1461069b5780632e143909146106b15780632f745c59146106d157600080fd5b806319165587146105cb5780631c0ce3d3146105eb57806323615a851461060b57806323b872dd1461063b57600080fd5b8063095ea7b3116103ee578063095ea7b31461051e57806310ec73741461053e57806316c38b3c1461055e57806316ffecb71461057e57806318160ddd146105ac57600080fd5b806301ffc9a71461046d57806306fdde03146104a257806307bd46b8146104c4578063081812fc146104e657600080fd5b36610468577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561047957600080fd5b5061048d6104883660046143e5565b610da3565b60405190151581526020015b60405180910390f35b3480156104ae57600080fd5b506104b7610dce565b604051610499919061445a565b3480156104d057600080fd5b506104e46104df366004614482565b610e60565b005b3480156104f257600080fd5b5061050661050136600461449f565b610ebb565b6040516001600160a01b039091168152602001610499565b34801561052a57600080fd5b506104e46105393660046144b8565b610f0d565b34801561054a57600080fd5b506104e46105593660046144e4565b610f5c565b34801561056a57600080fd5b506104e4610579366004614516565b610fa4565b34801561058a57600080fd5b506017546105999061ffff1681565b60405161ffff9091168152602001610499565b3480156105b857600080fd5b506008545b604051908152602001610499565b3480156105d757600080fd5b506104e46105e6366004614482565b610fec565b3480156105f757600080fd5b506104e461060636600461449f565b61111a565b34801561061757600080fd5b5061048d61062636600461449f565b601e6020526000908152604090205460ff1681565b34801561064757600080fd5b506104e4610656366004614533565b61114f565b34801561066757600080fd5b5061048d6106763660046145ba565b6111e2565b34801561068757600080fd5b506105bd61069636600461449f565b611247565b3480156106a757600080fd5b506105bd60185481565b3480156106bd57600080fd5b506104e46106cc36600461449f565b6112cf565b3480156106dd57600080fd5b506105bd6106ec3660046144b8565b611304565b3480156106fd57600080fd5b50600c546105bd565b34801561071257600080fd5b506104e461072136600461449f565b6113d8565b34801561073257600080fd5b50601c546105bd565b34801561074757600080fd5b506105bd61075636600461467d565b6001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b34801561078d57600080fd5b506104e461079c366004614533565b61144a565b3480156107ad57600080fd5b506104e46107bc36600461449f565b611495565b3480156107cd57600080fd5b5061048d6107dc3660046144b8565b611594565b3480156107ed57600080fd5b506104e46107fc36600461467d565b6115a0565b34801561080d57600080fd5b506105bd61081c36600461449f565b611779565b34801561082d57600080fd5b506104e461083c36600461449f565b6117c6565b34801561084d57600080fd5b506104e461085c36600461470d565b611838565b34801561086d57600080fd5b50600a5460ff1661048d565b34801561088557600080fd5b506104e46108943660046144e4565b6118bf565b3480156108a557600080fd5b506105066108b436600461449f565b6118f8565b3480156108c557600080fd5b506104e46108d43660046144b8565b6119cd565b3480156108e557600080fd5b506104e46108f436600461449f565b611a67565b34801561090557600080fd5b506105bd610914366004614482565b611c4e565b34801561092557600080fd5b506104b7611cde565b34801561093a57600080fd5b506104e4611d6c565b34801561094f57600080fd5b506104e461095e366004614482565b611da8565b34801561096f57600080fd5b506104e461097e36600461449f565b611dfa565b34801561098f57600080fd5b506109a361099e366004614482565b611e2f565b6040516104999190614755565b3480156109bc57600080fd5b5061048d611ee7565b3480156109d157600080fd5b506104e46109e0366004614482565b611efc565b3480156109f157600080fd5b50610506610a0036600461449f565b61200d565b348015610a1157600080fd5b50600a5461010090046001600160a01b0316610506565b348015610a3457600080fd5b506105bd60165481565b348015610a4a57600080fd5b506104e4610a5936600461470d565b61203d565b348015610a6a57600080fd5b50610a7e610a7936600461449f565b6120c0565b604080519215158352602083019190915201610499565b348015610aa157600080fd5b506104b7612162565b348015610ab657600080fd5b50602154610506906001600160a01b031681565b348015610ad657600080fd5b506105bd610ae5366004614482565b6001600160a01b03166000908152600f602052604090205490565b348015610b0c57600080fd5b506104e4612171565b6104e4610b23366004614799565b6121aa565b348015610b3457600080fd5b506104e4610b433660046147bb565b61244d565b348015610b5457600080fd5b506105bd60195481565b348015610b6a57600080fd5b506104e4610b79366004614482565b612496565b348015610b8a57600080fd5b506104e4610b993660046147e9565b6124e8565b348015610baa57600080fd5b50602054610506906001600160a01b031681565b348015610bca57600080fd5b506105bd601a5481565b348015610be057600080fd5b506105bd601c5481565b348015610bf657600080fd5b506104b761253b565b348015610c0b57600080fd5b506104b7610c1a36600461449f565b612548565b348015610c2b57600080fd5b506105bd610c3a366004614482565b6001600160a01b03166000908152600e602052604090205490565b348015610c6157600080fd5b5060265461048d9060ff1681565b348015610c7b57600080fd5b506105bd610c8a366004614482565b6001600160a01b031660009081526011602052604090205490565b6104e4610cb3366004614868565b6125f9565b348015610cc457600080fd5b50600d546105bd565b348015610cd957600080fd5b506104b7612964565b348015610cee57600080fd5b5061048d610cfd36600461467d565b612973565b348015610d0e57600080fd5b50610d3f610d1d36600461449f565b600090815260146020526040902054600160401b90046001600160401b031690565b6040516001600160401b039091168152602001610499565b348015610d6357600080fd5b506105bd60155481565b348015610d7957600080fd5b506104e4610d88366004614482565b6129e0565b348015610d9957600080fd5b506105bd601b5481565b60006001600160e01b0319821663780e9d6360e01b1480610dc85750610dc882612a7e565b92915050565b606060008054610ddd906148f7565b80601f0160208091040260200160405190810160405280929190818152602001828054610e09906148f7565b8015610e565780601f10610e2b57610100808354040283529160200191610e56565b820191906000526020600020905b815481529060010190602001808311610e3957829003601f168201915b5050505050905090565b600a546001600160a01b03610100909104163314610e995760405162461bcd60e51b8152600401610e909061492c565b60405180910390fd5b602080546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260146020526040812054829043600160401b9091046001600160401b031610610efb5760405162461bcd60e51b8152600401610e9090614961565b610f0483612ace565b91505b50919050565b600081815260146020526040902054819043600160401b9091046001600160401b031610610f4d5760405162461bcd60e51b8152600401610e9090614961565b610f578383612b63565b505050565b600a546001600160a01b03610100909104163314610f8c5760405162461bcd60e51b8152600401610e909061492c565b6017805461ffff191661ffff92909216919091179055565b600a546001600160a01b03610100909104163314610fd45760405162461bcd60e51b8152600401610e909061492c565b80610fe457610fe1612c74565b50565b610fe1612d07565b6001600160a01b0381166000908152600e60205260409020546110215760405162461bcd60e51b8152600401610e909061498c565b600061102c600d5490565b61103690476149e8565b90506000611063838361105e866001600160a01b03166000908152600f602052604090205490565b612d5f565b9050806110825760405162461bcd60e51b8152600401610e9090614a00565b6001600160a01b0383166000908152600f6020526040812080548392906110aa9084906149e8565b9250508190555080600d60008282546110c391906149e8565b909155506110d390508382612da5565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600a546001600160a01b0361010090910416331461114a5760405162461bcd60e51b8152600401610e909061492c565b601655565b600081815260146020526040902054819043600160401b9091046001600160401b03161061118f5760405162461bcd60e51b8152600401610e9090614961565b6020546001600160a01b0316336001600160a01b0316146111d1576111b5335b83612ebe565b6111d15760405162461bcd60e51b8152600401610e9090614a4b565b6111dc848484612f8d565b50505050565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052600090819060540160405160208183030381529060405280519060200120905061123c60155482856131389092919063ffffffff16565b9150505b9392505050565b6000601c54821161125a57506000919050565b6005601b54600261126b9190614a9c565b6112759190614ad1565b821161128c575069043c33c1937564800000919050565b6005601b54600461129d9190614a9c565b6112a79190614ad1565b82116112be5750690878678326eac9000000919050565b506910f0cf064dd592000000919050565b600a546001600160a01b036101009091041633146112ff5760405162461bcd60e51b8152600401610e909061492c565b601a55565b3260009081526013602052604081205443600160401b9091046001600160401b0316106113435760405162461bcd60e51b8152600401610e9090614961565b6001600160a01b03831660009081526013602052604090205443600160401b9091046001600160401b03161061138b5760405162461bcd60e51b8152600401610e9090614961565b6000611397848461314e565b60008181526014602052604090205490915043600160401b9091046001600160401b0316106112405760405162461bcd60e51b8152600401610e9090614961565b600a546001600160a01b036101009091041633146114085760405162461bcd60e51b8152600401610e909061492c565b601c5481106114455760405162461bcd60e51b815260206004820152600960248201526837b7363c90313ab93760b91b6044820152606401610e90565b601c55565b600081815260146020526040902054819043600160401b9091046001600160401b03161061148a5760405162461bcd60e51b8152600401610e9090614961565b6111dc8484846131e4565b600a5460ff16156114b85760405162461bcd60e51b8152600401610e9090614ae5565b326114c2826118f8565b6001600160a01b0316146115185760405162461bcd60e51b815260206004820152601760248201527f4f6f707320796f7520646f6e2774206f776e20746861740000000000000000006044820152606401610e90565b6000818152601d602052604090205460ff161561155f5760405181907f82c0e805aac3366c2ae2b33a8710e4c1a91f98b567ab7e83433e4e1c3485a38190600090a261158b565b60405181907f7d1aa707e55ca3b5e94639805bad011741adb6ad933fc9fc487ef5a6df89cea190600090a25b610fe1816131ff565b60006112408383612ebe565b6001600160a01b0381166000908152600e60205260409020546115d55760405162461bcd60e51b8152600401610e909061498c565b6001600160a01b0382166000908152601160205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611632573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116569190614b0f565b61166091906149e8565b90506000611699838361105e87876001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b9050806116b85760405162461bcd60e51b8152600401610e9090614a00565b6001600160a01b038085166000908152601260209081526040808320938716835292905290812080548392906116ef9084906149e8565b90915550506001600160a01b0384166000908152601160205260408120805483929061171c9084906149e8565b9091555061172d90508484836132a6565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b600080611785836132f8565b60008181526014602052604090205490915043600160401b9091046001600160401b031610610dc85760405162461bcd60e51b8152600401610e9090614961565b600a546001600160a01b036101009091041633146117f65760405162461bcd60e51b8152600401610e909061492c565b601b5481106118335760405162461bcd60e51b815260206004820152600960248201526837b7363c90313ab93760b91b6044820152606401610e90565b601b55565b6022546001600160a01b031633146118625760405162461bcd60e51b8152600401610e9090614b28565b60265460ff16156118a85760405162461bcd60e51b815260206004820152601060248201526f6c6f636b65642066756e6374696f6e7360801b6044820152606401610e90565b80516118bb906027906020840190614336565b5050565b600a546001600160a01b036101009091041633146118ef5760405162461bcd60e51b8152600401610e909061492c565b61ffff16601855565b3260009081526013602052604081205443600160401b9091046001600160401b0316106119375760405162461bcd60e51b8152600401610e9090614961565b600082815260146020526040902054829043600160401b9091046001600160401b0316106119775760405162461bcd60e51b8152600401610e9090614961565b60006119828461338b565b6001600160a01b03811660009081526013602052604090205490915043600160401b9091046001600160401b031610610f045760405162461bcd60e51b8152600401610e9090614961565b600a546001600160a01b036101009091041633146119fd5760405162461bcd60e51b8152600401610e909061492c565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b158015611a4b57600080fd5b505af1158015611a5f573d6000803e3d6000fd5b505050505050565b600a546001600160a01b03610100909104163314611a975760405162461bcd60e51b8152600401610e909061492c565b601b5481611aa460235490565b611aae91906149e8565b1115611acc5760405162461bcd60e51b8152600401610e9090614b4a565b60175461ffff16811115611af25760405162461bcd60e51b8152600401610e9090614b75565b60005b818110156118bb57611b0b602380546001019055565b6040805180820182526000808252600a6020808401918252602380548452601d82528584208551815490151560ff19918216178255935160019182015581548552601e90925285842080549093169091179091555492519192339283927f015eb83cb5a996a49b6fd3ca1cb8d4506550dab2c65cb737d3200d5228bab0dc91a4611c29611b9760235490565b604080518082018252426001600160401b039081168083524382166020808501828152326000908152601383528781209651875492519087166fffffffffffffffffffffffffffffffff1993841617600160401b918816820217909755875180890189529485528483019384529788526014909152949095209051815495519083169590941694909417921602179055565b611c3b33611c3660235490565b613402565b5080611c4681614b9f565b915050611af5565b3260009081526013602052604081205443600160401b9091046001600160401b031610611c8d5760405162461bcd60e51b8152600401610e9090614961565b6001600160a01b03821660009081526013602052604090205443600160401b9091046001600160401b031610611cd55760405162461bcd60e51b8152600401610e9090614961565b610dc88261341c565b60278054611ceb906148f7565b80601f0160208091040260200160405190810160405280929190818152602001828054611d17906148f7565b8015611d645780601f10611d3957610100808354040283529160200191611d64565b820191906000526020600020905b815481529060010190602001808311611d4757829003601f168201915b505050505081565b600a546001600160a01b03610100909104163314611d9c5760405162461bcd60e51b8152600401610e909061492c565b611da660006134a3565b565b600a546001600160a01b03610100909104163314611dd85760405162461bcd60e51b8152600401610e909061492c565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b03610100909104163314611e2a5760405162461bcd60e51b8152600401610e909061492c565b601555565b60606000611e3c83611c4e565b905080611e5d5760408051600080825260208201909252905b509392505050565b6000816001600160401b03811115611e7757611e77614574565b604051908082528060200260200182016040528015611ea0578160200160208202803683370190505b50905060005b82811015611e5557611eb88582611304565b828281518110611eca57611eca614bba565b602090810291909101015280611edf81614b9f565b915050611ea6565b6000601854611ef560235490565b1015905090565b600a546001600160a01b03610100909104163314611f2c5760405162461bcd60e51b8152600401610e909061492c565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015611f7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9e9190614b0f565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611fe9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118bb9190614bd0565b60006010828154811061202257612022614bba565b6000918252602090912001546001600160a01b031692915050565b6022546001600160a01b031633146120675760405162461bcd60e51b8152600401610e9090614b28565b60265460ff16156120ad5760405162461bcd60e51b815260206004820152601060248201526f6c6f636b65642066756e6374696f6e7360801b6044820152606401610e90565b80516118bb906028906020840190614336565b32600090815260136020526040812054819043600160401b9091046001600160401b0316106121015760405162461bcd60e51b8152600401610e9090614961565b600083815260146020526040902054839043600160401b9091046001600160401b0316106121415760405162461bcd60e51b8152600401610e9090614961565b5050506000908152601d60205260409020805460019091015460ff90911691565b606060018054610ddd906148f7565b6022546001600160a01b0316331461219b5760405162461bcd60e51b8152600401610e9090614b28565b6026805460ff19166001179055565b333b156121f05760405162461bcd60e51b815260206004820152601460248201527310dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b6044820152606401610e90565b33321461223f5760405162461bcd60e51b815260206004820152601a60248201527f50726f787920636f6e7472616374206e6f7420616c6c6f7765640000000000006044820152606401610e90565b600a5460ff16156122625760405162461bcd60e51b8152600401610e9090614ae5565b6002600b5414156122b55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e90565b6002600b55601b54826122c760235490565b6122d191906149e8565b11156122ef5760405162461bcd60e51b8152600401610e9090614b4a565b601854826122fc60235490565b61230691906149e8565b1161233e5760405162461bcd60e51b81526020600482015260086024820152676e6f74206c69766560c01b6044820152606401610e90565b60175461ffff168211156123645760405162461bcd60e51b8152600401610e9090614b75565b601c54602354101561242f57601c548261237d60235490565b61238791906149e8565b11156123d55760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610e90565b34601a54836123e49190614a9c565b1461242a5760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081c185e5b595b9d08185b5bdd5b9d60521b6044820152606401610e90565b61243a565b341561243a57600080fd5b61244482826134fd565b50506001600b55565b3260009081526013602052604090205443600160401b9091046001600160401b03161061248c5760405162461bcd60e51b8152600401610e9090614961565b6118bb828261378b565b600a546001600160a01b036101009091041633146124c65760405162461bcd60e51b8152600401610e909061492c565b602180546001600160a01b0319166001600160a01b0392909216919091179055565b600082815260146020526040902054829043600160401b9091046001600160401b0316106125285760405162461bcd60e51b8152600401610e9090614961565b61253485858585613796565b5050505050565b60288054611ceb906148f7565b6000818152600260205260409020546060906001600160a01b03166125c75760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610e90565b60276125d2836137c7565b6040516020016125e3929190614c09565b6040516020818303038152906040529050919050565b333b1561263f5760405162461bcd60e51b815260206004820152601460248201527310dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b6044820152606401610e90565b33321461268e5760405162461bcd60e51b815260206004820152601a60248201527f50726f787920636f6e7472616374206e6f7420616c6c6f7765640000000000006044820152606401610e90565b600a5460ff16156126b15760405162461bcd60e51b8152600401610e9090614ae5565b6002600b5414156127045760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e90565b6002600b5560165442116127455760405162461bcd60e51b81526020600482015260086024820152676e6f74206c69766560c01b6044820152606401610e90565b61278333858484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506111e292505050565b6127bf5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b6044820152606401610e90565b601b54856127cc60235490565b6127d691906149e8565b11156127f45760405162461bcd60e51b8152600401610e9090614b4a565b6018548561280160235490565b61280b91906149e8565b11156128525760405162461bcd60e51b81526020600482015260166024820152751cdbdb19081bdd5d08199bdc881dda1a5d195b1a5cdd60521b6044820152606401610e90565b60175461ffff168511156128785760405162461bcd60e51b8152600401610e9090614b75565b601c54602354101561294357601c548561289160235490565b61289b91906149e8565b11156128e95760405162461bcd60e51b815260206004820152601f60248201527f416c6c20746f6b656e73206f6e2d73616c6520616c726561647920736f6c64006044820152606401610e90565b34601954866128f89190614a9c565b1461293e5760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081c185e5b595b9d08185b5bdd5b9d60521b6044820152606401610e90565b61294e565b341561294e57600080fd5b61295885846134fd565b50506001600b55505050565b606060288054610ddd906148f7565b3260009081526013602052604081205443600160401b9091046001600160401b0316106129b25760405162461bcd60e51b8152600401610e9090614961565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16611240565b600a546001600160a01b03610100909104163314612a105760405162461bcd60e51b8152600401610e909061492c565b6001600160a01b038116612a755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e90565b610fe1816134a3565b60006001600160e01b031982166380ac58cd60e01b1480612aaf57506001600160e01b03198216635b5e139f60e01b145b80610dc857506301ffc9a760e01b6001600160e01b0319831614610dc8565b6000818152600260205260408120546001600160a01b0316612b475760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e90565b506000908152600460205260409020546001600160a01b031690565b6000612b6e8261338b565b9050806001600160a01b0316836001600160a01b03161415612bdc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e90565b336001600160a01b0382161480612bf85750612bf88133612973565b612c6a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610e90565b610f5783836138c4565b600a5460ff16612cbd5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e90565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600a5460ff1615612d2a5760405162461bcd60e51b8152600401610e9090614ae5565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612cea3390565b600c546001600160a01b0384166000908152600e602052604081205490918391612d899086614a9c565b612d939190614ad1565b612d9d9190614ca7565b949350505050565b80471015612df55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610e90565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612e42576040519150601f19603f3d011682016040523d82523d6000602084013e612e47565b606091505b5050905080610f575760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610e90565b6000818152600260205260408120546001600160a01b0316612f375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610e90565b6000612f428361338b565b9050806001600160a01b0316846001600160a01b03161480612f7d5750836001600160a01b0316612f7284610ebb565b6001600160a01b0316145b80612d9d5750612d9d8185612973565b826001600160a01b0316612fa08261338b565b6001600160a01b0316146130085760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610e90565b6001600160a01b03821661306a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e90565b613075838383613932565b6130806000826138c4565b6001600160a01b03831660009081526003602052604081208054600192906130a9908490614ca7565b90915550506001600160a01b03821660009081526003602052604081208054600192906130d79084906149e8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008261314585846139ea565b14949350505050565b60006131598361341c565b82106131bb5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610e90565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610f57838383604051806020016040528060008152506124e8565b600061320a8261338b565b905061321881600084613932565b6132236000836138c4565b6001600160a01b038116600090815260036020526040812080546001929061324c908490614ca7565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f57908490613a8e565b600061330360085490565b82106133665760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610e90565b6008828154811061337957613379614bba565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610dc85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610e90565b6118bb828260405180602001604052806000815250613b60565b60006001600160a01b0382166134875760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610e90565b506001600160a01b031660009081526003602052604090205490565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000805b838110156111dc57601f546001600160a01b0316637299054c6103e86001600160401b0361352e60235490565b61353890886149e8565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401602060405180830381865afa158015613581573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135a59190614b0f565b915060006135b283613b93565b905060006135cd6135c260085490565b6106969060016149e8565b90508015613648576021546001600160a01b0316639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561362f57600080fd5b505af1158015613643573d6000803e3d6000fd5b505050505b613656602380546001019055565b6000613663606486614cbe565b905060016000605983106136b6575060016001600160a01b0385163361368860235490565b6040517fd21c09fbb86df21368ed1d801f185395d31ffbd7e85fa70ad051b366ef3f27e190600090a46136f4565b6001600160a01b038516336136ca60235490565b6040517f015eb83cb5a996a49b6fd3ca1cb8d4506550dab2c65cb737d3200d5228bab0dc90600090a45b6136ff600a84614cbe565b61370a9060016149e8565b6040805180820190915282151581526020810182905290925080601d600061373160235490565b81526020808201929092526040016000208251815460ff191690151517815591015160019091015560235461376590611b97565b61377286611c3660235490565b505050505050808061378390614b9f565b915050613501565b6118bb338383613ce8565b61379f336111af565b6137bb5760405162461bcd60e51b8152600401610e9090614a4b565b6111dc84848484613db7565b6060816137eb5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561381557806137ff81614b9f565b915061380e9050600a83614ad1565b91506137ef565b6000816001600160401b0381111561382f5761382f614574565b6040519080825280601f01601f191660200182016040528015613859576020820181803683370190505b5090505b8415612d9d5761386e600183614ca7565b915061387b600a86614cbe565b6138869060306149e8565b60f81b81838151811061389b5761389b614bba565b60200101906001600160f81b031916908160001a9053506138bd600a86614ad1565b945061385d565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906138f98261338b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03831661398d5761398881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6139b0565b816001600160a01b0316836001600160a01b0316146139b0576139b08382613dea565b6001600160a01b0382166139c757610f5781613e87565b826001600160a01b0316826001600160a01b031614610f5757610f578282613f36565b600081815b8451811015611e55576000858281518110613a0c57613a0c614bba565b60200260200101519050808311613a4e576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613a7b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613a8681614b9f565b9150506139ef565b6000613ae3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613f7a9092919063ffffffff16565b805190915015610f575780806020019051810190613b019190614bd0565b610f575760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610e90565b613b6a8383613f89565b613b7760008484846140d7565b610f575760405162461bcd60e51b8152600401610e9090614cd2565b601f546000906001600160a01b0316637299054c6103e86001600160401b03613bbb60235490565b613bc590876149e8565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401602060405180830381865afa158015613c0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c329190614b0f565b9150601c54613c4060085490565b11613c4b5733610dc8565b605a613c58606484614cbe565b1015613c645733610dc8565b60205460405163236a70f360e11b8152600481018490526000916001600160a01b0316906346d4e1e690602401602060405180830381865afa158015613cae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cd29190614d24565b90506001600160a01b038116610dc85733610f04565b816001600160a01b0316836001600160a01b03161415613d4a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e90565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613dc2848484612f8d565b613dce848484846140d7565b6111dc5760405162461bcd60e51b8152600401610e9090614cd2565b60006001613df78461341c565b613e019190614ca7565b600083815260076020526040902054909150808214613e54576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613e9990600190614ca7565b60008381526009602052604081205460088054939450909284908110613ec157613ec1614bba565b906000526020600020015490508060088381548110613ee257613ee2614bba565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613f1a57613f1a614d41565b6001900381819060005260206000200160009055905550505050565b6000613f418361341c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6060612d9d84846000856141d5565b6001600160a01b038216613fdf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e90565b6000818152600260205260409020546001600160a01b0316156140445760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e90565b61405060008383613932565b6001600160a01b03821660009081526003602052604081208054600192906140799084906149e8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156141ca57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061411b903390899088908890600401614d57565b6020604051808303816000875af1925050508015614156575060408051601f3d908101601f1916820190925261415391810190614d94565b60015b6141b0573d808015614184576040519150601f19603f3d011682016040523d82523d6000602084013e614189565b606091505b5080516141a85760405162461bcd60e51b8152600401610e9090614cd2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612d9d565b506001949350505050565b6060824710156142365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610e90565b843b6142845760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e90565b600080866001600160a01b031685876040516142a09190614db1565b60006040518083038185875af1925050503d80600081146142dd576040519150601f19603f3d011682016040523d82523d6000602084013e6142e2565b606091505b50915091506142f28282866142fd565b979650505050505050565b6060831561430c575081611240565b82511561431c5782518084602001fd5b8160405162461bcd60e51b8152600401610e90919061445a565b828054614342906148f7565b90600052602060002090601f01602090048101928261436457600085556143aa565b82601f1061437d57805160ff19168380011785556143aa565b828001600101855582156143aa579182015b828111156143aa57825182559160200191906001019061438f565b506143b69291506143ba565b5090565b5b808211156143b657600081556001016143bb565b6001600160e01b031981168114610fe157600080fd5b6000602082840312156143f757600080fd5b8135611240816143cf565b60005b8381101561441d578181015183820152602001614405565b838111156111dc5750506000910152565b60008151808452614446816020860160208601614402565b601f01601f19169290920160200192915050565b602081526000611240602083018461442e565b6001600160a01b0381168114610fe157600080fd5b60006020828403121561449457600080fd5b81356112408161446d565b6000602082840312156144b157600080fd5b5035919050565b600080604083850312156144cb57600080fd5b82356144d68161446d565b946020939093013593505050565b6000602082840312156144f657600080fd5b813561ffff8116811461124057600080fd5b8015158114610fe157600080fd5b60006020828403121561452857600080fd5b813561124081614508565b60008060006060848603121561454857600080fd5b83356145538161446d565b925060208401356145638161446d565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156145b2576145b2614574565b604052919050565b6000806000606084860312156145cf57600080fd5b83356145da8161446d565b9250602084810135925060408501356001600160401b03808211156145fe57600080fd5b818701915087601f83011261461257600080fd5b81358181111561462457614624614574565b8060051b915061463584830161458a565b818152918301840191848101908a84111561464f57600080fd5b938501935b8385101561466d57843582529385019390850190614654565b8096505050505050509250925092565b6000806040838503121561469057600080fd5b823561469b8161446d565b915060208301356146ab8161446d565b809150509250929050565b60006001600160401b038311156146cf576146cf614574565b6146e2601f8401601f191660200161458a565b90508281528383830111156146f657600080fd5b828260208301376000602084830101529392505050565b60006020828403121561471f57600080fd5b81356001600160401b0381111561473557600080fd5b8201601f8101841361474657600080fd5b612d9d848235602084016146b6565b6020808252825182820181905260009190848201906040850190845b8181101561478d57835183529284019291840191600101614771565b50909695505050505050565b600080604083850312156147ac57600080fd5b50508035926020909101359150565b600080604083850312156147ce57600080fd5b82356147d98161446d565b915060208301356146ab81614508565b600080600080608085870312156147ff57600080fd5b843561480a8161446d565b9350602085013561481a8161446d565b92506040850135915060608501356001600160401b0381111561483c57600080fd5b8501601f8101871361484d57600080fd5b61485c878235602084016146b6565b91505092959194509250565b60008060008060006080868803121561488057600080fd5b85359450602086013593506040860135925060608601356001600160401b03808211156148ac57600080fd5b818801915088601f8301126148c057600080fd5b8135818111156148cf57600080fd5b8960208260051b85010111156148e457600080fd5b9699959850939650602001949392505050565b600181811c9082168061490b57607f821691505b60208210811415610f0757634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260119082015270686d6d6d6d207768617420646f696e673f60781b604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156149fb576149fb6149d2565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000816000190483118215151615614ab657614ab66149d2565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614ae057614ae0614abb565b500490565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600060208284031215614b2157600080fd5b5051919050565b60208082526008908201526737b7363c903232bb60c11b604082015260600190565b602080825260119082015270105b1b081d1bdad95b9cc81b5a5b9d1959607a1b604082015260600190565b60208082526010908201526f496e76616c6964206d696e742071747960801b604082015260600190565b6000600019821415614bb357614bb36149d2565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215614be257600080fd5b815161124081614508565b60008151614bff818560208601614402565b9290920192915050565b600080845481600182811c915080831680614c2557607f831692505b6020808410821415614c4557634e487b7160e01b86526022600452602486fd5b818015614c595760018114614c6a57614c97565b60ff19861689528489019650614c97565b60008b81526020902060005b86811015614c8f5781548b820152908501908301614c76565b505084890196505b50505050505061123c8185614bed565b600082821015614cb957614cb96149d2565b500390565b600082614ccd57614ccd614abb565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060208284031215614d3657600080fd5b81516112408161446d565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614d8a9083018461442e565b9695505050505050565b600060208284031215614da657600080fd5b8151611240816143cf565b60008251614dc3818460208701614402565b919091019291505056fea26469706673582212202f369ce70529761e9f57895ee86779c2aad6f41eccc7747f0aeb61242263c7e864736f6c634300080b003368747470733a2f2f6170692e6772616e6474686566746261636f6e2e636f6d2f76312f6e66742f6d657461646174612f697066733a2f2f516d6154656166453134434857464e507769766f53764c367a706844744a4c774c50544d364a4b743845745056792f636f6e7472616374732f636f6e74726163745f757269

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