Contract 0x51992c5CD2E8A282d5fD21731Af6BFaA0C0B1E57 2

Token Contract 
 
 
Txn Hash
Method
Block
From
To
Value
0x308b126a4fe673b19fbaeb215356639cec3ce38d299f84ec94865cb7d09a885bSet Approval For...160293852022-11-23 1:21:594 days 23 hrs agoENS Name crypto-castle.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00028569 10.77629146
0x17fe5ec56ef7cfe7158d24f4fb6f7d5a21515c38c7769d2e4cf5a98526eb6287Set Approval For...160224652022-11-22 2:08:115 days 22 hrs ago0x05467ecea464e1704c3fd142ef9ba816ba7a7088 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00040254 15.18402606
0xee9aef994235cd63114d3f8b32dfaa0910048ca35b34f1da9aa9e7c93e643d7dSet Approval For...160047442022-11-19 14:46:118 days 10 hrs ago0xd7018ac2e1def5da1dc54531ed673f47afafc3b1 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.0005665 11.69906702
0x4d5fb7c89bfef1ad17b45068408a87c90c60e3ca621018cd2fad950e04601fa4__New Live Mint ...160003862022-11-19 0:09:479 days 41 mins agoENS Name operator.brightmoments.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00042157 14.51913659
0x2e308eccf11521f0a027a2e0fa7f21e4c956457ff679ac1dba4e6e0afce587cb_Live Mint Burn160003832022-11-19 0:09:119 days 41 mins agoENS Name operator.brightmoments.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00091621 16.96790138
0xf957f778bebaa709175fbfb198c5133a9eb78a676d6d302aabe30725eb162e23__New Live Mint ...160003802022-11-19 0:08:359 days 42 mins agoENS Name operator.brightmoments.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00048199 16.60684486
0x3db0f5ec02c5363e208a7b058a667edd2536a0dda547235506a02620e056f22fSafe Transfer Fr...159984472022-11-18 17:39:479 days 7 hrs ago0x66716b476c1d24c0d229748daa4c023e252ebaa7 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00076757 14.79171501
0x30efeeddd0198c500754eac126360e44cf99a1a9ad97095debb11ca6e4d8a147Safe Transfer Fr...159979532022-11-18 15:59:479 days 8 hrs agoENS Name vault.futureace.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.001297 25
0x8c9655312c9737a4492521d59cf97df47a93affe0b16e89cc13f36e65ca076eaSafe Transfer Fr...159978772022-11-18 15:44:359 days 9 hrs agoENS Name future.brightmoments.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00063034 13.38533398
0x2ac233b801a7f9bb1f8f7fe467592ae550ac23d695c36779f67eb23b7c438283Safe Transfer Fr...159978732022-11-18 15:43:479 days 9 hrs agoENS Name future.brightmoments.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00071446 13.7682294
0xf69ca997edf384cb23511c563257f27670e07aaeb6165b5e481a5defddf6b865Safe Transfer Fr...159978532022-11-18 15:39:479 days 9 hrs agoENS Name higa.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00101131 13.29307343
0x4e98159c60ae356e08942550f36c49a81f08344bc82fc08193dea3a726ab1a14Safe Transfer Fr...159978212022-11-18 15:33:239 days 9 hrs agoENS Name higa.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.0010376 13.22715204
0xa1b3b23c58a109026f6fb4cddcf94227187ee8340d7b57f9815563771c8657f2Set Approval For...159976602022-11-18 15:00:599 days 9 hrs ago0x55a9398961b496547c102294e644c29691e1bb44 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00086041 17.75986006
0x5c89342f488d6a5c292f8af6cc3370d679761c98d547588dafc18c7bc51e3aeeSet Approval For...159976542022-11-18 14:59:479 days 9 hrs ago0x55a9398961b496547c102294e644c29691e1bb44 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00067764 13.97002334
0x6a6e17c66574a36ef7bd0ae1b0b6b6c09869838c0fa083be7bafe63b566b8d51Safe Transfer Fr...159976522022-11-18 14:59:239 days 9 hrs agoENS Name mazzi.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00096448 13.97961311
0xc20b5c3632a57b18f6682553d1b3e3e4a6fe2fdbe5fa8626676ec12b07d2d4ccSet Approval For...159946732022-11-18 5:01:119 days 19 hrs agoENS Name rantum.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00062882 12.97955105
0xb5db95edfa64f3d0f7f5456380bb8a4afa1097a60e1e012f39dae81f9707e0b4Set Approval For...159937722022-11-18 1:59:479 days 22 hrs ago0xd722755aa3d8b2e9521209ee5014d0e446b82ff5 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00058064 11.97041869
0x10730ceff12bfa369e5617f6287741fdaa74c9f7890421d750dfcbb1a74f9b78Set Approval For...159937702022-11-18 1:59:239 days 22 hrs ago0xd722755aa3d8b2e9521209ee5014d0e446b82ff5 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00064247 13.24501175
0xa9bbd8873e68178b7488ba5e333bfbdfee00a3766e1892675693ffe1b91eee18Safe Transfer Fr...159925702022-11-17 21:57:5910 days 2 hrs ago0xbbb3e3f35bc02b492e415c61b8947d948981b9fa IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00061204 13
0xb48098a04be93161d336060c28ee0d7eb9195450ce97dbd79f1f5820536f73adSafe Transfer Fr...159924132022-11-17 21:26:1110 days 3 hrs agoENS Name stefancontiero.eth IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00077592 14.95276298
0x97bb444ef33d267bbcdf56173b062655e8770b70af50942483eda1306e4d4e2fSafe Transfer Fr...159924062022-11-17 21:24:4710 days 3 hrs ago0x920ff78f6cf61d55e493f7cda850e4c826222d74 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00082705 15.93797974
0x9b616d0c2e7745e4f2d872e0d6c64365f9294e0d0a4f4f11d188b43475af124eSafe Transfer Fr...159920872022-11-17 20:20:2310 days 4 hrs ago0xa0d62722c4b8624d8005883ecaaad491f0c212de IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00139579 26.90425537
0x445806ffa2f1b676c1849590a4be79c22532c3a13c533bc15827490d1f50ca54Set Approval For...159914522022-11-17 18:11:5910 days 6 hrs ago0x3fea88c36fdd8a390520959daad0f0db484c8105 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.00097361 20.07165313
0xa7e39aaa0904fe470bff2e2cc752ae34921bf13ac926b4ea70d5b948c408405dSet Approval For...159913922022-11-17 17:59:4710 days 6 hrs ago0xede15bdefff82b96f2207ecb5bc556ec6f7dc911 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.0011405 23.5121367
0xe72afec5e5b878fbeb2aa0d51ee30ce991cedfa80e7521cad78a9cd3b997eefaSet Approval For...159910632022-11-17 16:53:4710 days 7 hrs ago0x175d385df58ab1fe341afad3c742c28a80777249 IN  Mint Pass Mexico City | MPMX: MPMX Token0 Ether0.0011627423.98057003
[ Download CSV Export 

OVERVIEW

Mint Pass Mexico City provides a claim to attend NFT Art CDMX and mint a generative artwork from one of the ten artists that are randomly mapped and revealed to each Mint Pass (0-9). The artists (in alphabetical order) are not yet associated with a unique Artist ID. Artist to ...

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xe852815fdefb3962c20abf1fa79a5566c5a8c886888e66168d771dcfa50b844d156482222022-09-30 19:24:3558 days 5 hrs ago Mint Pass Mexico City | MPMX: MPMX Token 0xb96e81f80b3aeef65cb6d0e280b15fd5dbe71937162.01255539 Ether
0xc40dcd31ebf5e18446ed4f7cbddea5ad80b11396b855efe7ee1dc77d2c06eff6155923212022-09-22 23:59:2366 days 51 mins ago Mint Pass Mexico City | MPMX: MPMX Token 0xb96e81f80b3aeef65cb6d0e280b15fd5dbe71937150.91580502 Ether
0xc0deddb9e165373ec28e6c2d31d42b579295b153d94b694a8991c9dbae2d7878155555232022-09-17 19:56:5971 days 4 hrs ago Mint Pass Mexico City | MPMX: MPMX Token 0xb96e81f80b3aeef65cb6d0e280b15fd5dbe71937253.00590841 Ether
0x49748469eb70c1e7c6763f12cc8cd307dc20fa3a3130591417510ae213423e51155484032022-09-16 19:58:2372 days 4 hrs ago Mint Pass Mexico City | MPMX: MPMX Token 0xb96e81f80b3aeef65cb6d0e280b15fd5dbe71937130.94165435 Ether
0x77f8d4dafdc6fa15079bac53f0b65c6bef2f56b5bc914f22e74f12e96928f941155477442022-09-16 17:45:2372 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX TokenENS Name operator.brightmoments.eth1 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX TokenENS Name canis.eth0.04431314 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX TokenENS Name doost.eth0.17725258 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0xf8a7cecd532e3a153400205202feea4aa57bd7090.26587887 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0x1b108378c6e3d9e233864a6eed8e02e0966e8ec80.11078286 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0xb0f393bbb16b6436b16d593cc3c2b87cfe791a0f0.13293943 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX TokenENS Name jiwa.eth0.53175775 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0xaf1c0bace177288e0ebc8956242b30ede92111bc0.26587887 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0x76b6782ec5f1a3f88c26c50db4de3f2a3fed32ab0.39881831 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0x3a7f1c9d4c0ca70e62db0c4f10e9d265498e8af00.19940915 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0x2f68df8d65801915b9e025b274649d175a2417cc0.97488921 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX TokenENS Name f5ve.eth0.2437223 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX TokenENS Name biggiestarvault.eth0.2437223 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0x1b108378c6e3d9e233864a6eed8e02e0966e8ec80.2437223 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0x204b6d7e5baeb28fdf2270c6172eb141e3a720580.2437223 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX TokenENS Name ronakd.eth0.2437223 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX TokenENS Name pixelpete.eth0.26587887 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0x17d6d775e534802767c2cd4f65cdc647b481e8570.26587887 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0xda3c325ab45b30aeb476b026fe6a777443ca04f30.59084194 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX TokenENS Name chrissi.eth0.29542097 Ether
0x60970d82e31cd632ccf016ec3dde29885b4cde3c120aa26a748d14ab4824befd155477382022-09-16 17:44:1172 days 7 hrs ago Mint Pass Mexico City | MPMX: MPMX Token0xeae448e1537aa3c6b2a37e2ab26bba7ca2de94361.18168389 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MPMX

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 16 : MPMX.sol
//SPDX-License-Identifier: MIT-BROUGKR
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                             @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                             @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@             @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@              @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@              @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@             @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                           @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                                @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                             @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                             @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/**
 * @dev: @brougkr
 */
pragma solidity 0.8.17;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IMPO} from "./IMPO.sol";
import {ERC721MP} from "./ERC721MP.sol";
contract MPMX is ERC721MP, Ownable, ReentrancyGuard
{    
    struct MintPass
    {
        uint _PriceStart;                       // [0] -> _PriceStart
        uint _PriceEnd;                         // [1] -> _PriceEnd
        uint _MaximumAvailableForSale;          // [2] -> _MaximumAvailableForSale
        uint _StartingBlockUnixTimestamp;       // [3] -> _StartingBlockUnixTimestamp
        uint _SecondsBetweenPriceDecay;         // [4] -> _SecondsBetweenPriceDecay
        bool _ActivePublic;                     // [5] -> _ActivePublic
        bool _ActiveBrightList;                 // [6] -> _ActiveBrightList
        bytes32 _Root;                          // [7] -> _Root
    }
    struct MintPack
    {
        uint _PriceStart;                       // [0] => _PriceStart 
        uint _PriceEnd;                         // [1] => _PriceEnd
        uint _MaximumAvailableForSale;          // [2] => _MaximumAvailableForSale
        uint _StartingBlockUnixTimestamp;       // [3] => _StartingBlockUnixTimestamp
        uint _SecondsBetweenPriceDecay;         // [4] => _SecondsBetweenPriceDecay
        bool _ActivePublic;                     // [5] => _ActivePublic
        bool _ActiveBrightList;                 // [6] => _ActiveBrightList
        bytes32 _Root;                          // [7] => _Root
    }
    struct InternalSale
    {
        uint _AmountSold;         // [0] -> _AmountSold
        uint _FinalClearingPrice; // [1] -> _FinalClearingPrice
        uint _UniqueSales;        // [2] -> _UniqueSales
    }
    struct InternalSaleMintPack
    {
        uint _AmountSold;         // [0] -> _AmountSold
        uint _FinalClearingPrice; // [1] -> _FinalClearingPrice
    }
    struct UserSaleInformation
    {
        // Mint Pass Information
        uint _MintPassCurrentPrice;    // [0] -> _MintPassCurrentPrice
        uint _MintPassAmountPurchased; // [1] -> _MintPassAmountPurchased
        uint _MintPassAllocation;      // [2] -> _MintPassAllocation
        uint _MintPassAmountRemaining; // [3] -> _MintPassAmountRemaining
        bool _MintPassEligible;        // [4] -> _MintPassEligible
        bool _MintPassSalePaused;      // [5] -> _MintPassSalePaused

        // Mint Pack Information
        uint _MintPackCurrentPrice;    // [6] -> _MintPackCurrentPrice
        uint _MintPackAmountPurchased; // [7] -> _MintPackAmountPurchased
        uint _MintPackAllocation;      // [8] -> _MintPackAllocation
        uint _MintPackAmountRemaining; // [9] -> _MintPackAmountRemaining
        bool _MintPackEligible;        // [10] -> _MintPackEligible
        bool _MintPackSalePaused;      // [11] -> _MintPackSalePaused
    }
    struct SaleInformation
    {
        // Mint Pass Information
        uint _MintPassCurrentPrice;  // [0] -> _MintPassCurrentPrice
        uint _MintPassRemaining;     // [1] -> _MintPassRemaining
        uint _MintPassSaleStartTime; // [2] -> _MintPassSaleStartTime
        uint _MintPassStartingPrice; // [3] -> _MintPassStartingPrice
        uint _MintPassEndingPrice;   // [4] -> _MintPassEndingPrice

        // Mint Pack Information 
        uint _MintPackCurrentPrice;  // [6] -> _MintPackCurrentPrice
        uint _MintPackRemaining;     // [7] -> _MintPackRemaining
        uint _MintPackSaleStartTime; // [8] -> _MintPackSaleStartTime
        uint _MintPackStartingPrice; // [9] -> _MintPackStartingPrice
        uint _MintPackEndingPrice;   // [10] -> _MintPackEndingPrice
    }
    struct UserHoldings
    {
        uint[] _TokenIDs;         // [0] -> _TokenIDs
        uint[] _ArtistIDs;        // [1] -> _ArtistIDs
        uint _FinalClearingPrice; // [2] -> _FinalClearingPrice
    }
    struct MPMXHoldings
    {
        uint[] _TokenIDs; 
        uint[] _ArtistIDs;
        bool _ArtistRevealedIDs;
        bool _ArtistRevealedNames;
    }
    MintPass public MintPassSale = MintPass(
        20 ether,   // [0] -> _PriceStart    
        0.5 ether,  // [1] -> _PriceEnd   
        417,        // [2] -> _MaximumAvailableForSale
        1663347600, // [3] -> _StartingBlockUnixTimestamp
        677,        // [4] -> _SecondsBetweenPriceDecay
        false,      // [5] -> _ActivePublic
        true,       // [6] -> _ActiveBrightList
        0x0         // [7] -> _Root
    ); 
    MintPack public MintPackSale = MintPack(
        200 ether,  // [0] -> _PriceStart     
        5 ether,    // [1] -> _PriceEnd     
        10,         // [2] -> _MaximumAvailableForSale
        1663347600, // [3] -> _StartingBlockUnixTimestamp
        677,        // [4] -> _SecondsBetweenPriceDecay
        false,      // [5] -> _ActivePublic
        true,       // [6] -> _ActiveBrightList
        0x0         // [7] -> _Root
    );
    InternalSale public MintPassInternalSale = InternalSale(
        0,   // [0] -> _AmountSold
        0,   // [1] -> _FinalClearingPrice
        0    // [2] -> _UniqueSales
    );
    InternalSaleMintPack public MintPackInternalSale = InternalSaleMintPack(
        0,   // [0] -> _AmountSold
        0    // [1] -> _FinalClearingPrice
    );

    mapping(uint=>string) public ArtistNames;                  // `ArtistID` => `Artist Name` (Post-Randomized)
    mapping(uint=>uint) public ArtistID;                       // `TokenID` => `ArtistID` (Post-Randomized)
    mapping(uint=>address) public UniqueSaleIndexToAddress;    // `OrderID` => `Recipient`
    mapping(uint=>uint) public UniqueSalePurchaseAmount;       // `OrderID` => `Order Amount`
    mapping(uint=>uint) public UniqueSaleToOrderValue;         // `OrderID` => `Order Value`
    mapping(address=>uint) public _MintPassPurchasedAmt;       // `Wallet` => `Total Purchased Amount`
    mapping(address=>uint) public _MintPackPurchasedAmt;       // `Wallet` => `Total Purchased Amount`
    mapping(address=>uint) public _WalletAllocationsMintPass;  // `Wallet` => `Amount To Purchase`
    mapping(address=>uint) public _WalletAllocationsMintPack;  // `Wallet` => `Allocation`

    string public baseURI = "ipfs://QmUZ9CRbFLtDa8wmCLU3TXUt5WrJM32M9w6RLF717yyeNM/";
    uint[] public MintPackStartingIndexes;
    bool public OptionsActive;
    address public Option = 0x08ebADbc44F0f76CAFC6FD49e53247Cc9798eddD;
    address public _LiveMint = 0x7603C5eed8e57Ad795ec5F0081eFB21d1eEBf937;   
    address public _BRT_MULTISIG = 0xB96E81f80b3AEEf65CB6d0E280b15FD5DBE71937;
    
    event MerkleRootsChanged(bytes32 OldRootMintPass, bytes32 OldRootMintPack, bytes32 NewRootMintPass, bytes32 NewRootMintPack);
    event PurchasedMintPack(address Recipient, uint Amount, uint MessageValue, uint PurchaseValue, uint AmountSold);
    event Purchased(address Recipient, uint Amount, uint MessageValue, uint PurchaseValue, uint AmountSold);
    event RandomArtistIDsSeeded(string URL, uint[] NewArtistIDs);
    event MerkleRootChanged(bytes32 OldRoot, bytes32 NewRoot);
    event OptionRedeemed(uint[] TokenIDs, address Recipient);
    event ArtistNamesSeeded(string URL, string[] Names);
    event NewStartingTimestamp(uint Timestamp);
    event ClaimStateSwitched(bool State);
    event Refunded(uint RefundAmount);

    constructor() ERC721MP("Mint Pass Mexico City | MPMX", "MPMX")
    { 
        // Transfers Ownership 
        _transferOwnership(0xe06F5FAE754e81Bc050215fF89B03d9e9FF20700); // operator.brightmoments.eth
        _WhitelistedSender[0xe06F5FAE754e81Bc050215fF89B03d9e9FF20700] = true;

        // Reserves Mint Passes - TokenIDs Are Irrelevant - The Randomized ArtistIDs Will Be Mapped After The Sale Concludes
        _mint(address(this), 333);  // GTMX Holder Option Reserve:  [TokenIDs: 000 - 332] (333)                            
        _mint(_BRT_MULTISIG, 150);  // Artist Reservation & BM Dao: [TokenIDs: 333 - 482] (150)
                                    // Mint Packs:                                        (100)
                                    // Remaining For Sale:                                (417)
    } 

    /*---------------------
     * EXTERNAL FUNCTIONS *
    ----------------------*/

    /**
     * @dev Purchases NFTs
     */
    function PurchasePass(uint Amount, bytes32[] calldata Proof) external payable nonReentrant
    { 
        require(block.timestamp >= MintPassSale._StartingBlockUnixTimestamp, "MPMX: Sale Not Started Yet");
        require(MintPassSale._ActivePublic || MintPassSale._ActiveBrightList, "MPMX: Sale Not Active");
        if(MintPassInternalSale._AmountSold + Amount > MintPassSale._MaximumAvailableForSale)
        {
            Amount = MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold;
        }
        uint NewAmountSold = MintPassInternalSale._AmountSold + Amount;
        require(NewAmountSold <= MintPassSale._MaximumAvailableForSale, "MPMX: Sold Out");
        uint NewUserPurchasedAmount = _MintPassPurchasedAmt[msg.sender] + Amount;
        require(Amount > 0, "MPMX: Incorrect Amount");
        if(MintPassSale._ActiveBrightList) 
        { 
            require(VerifyBrightList(msg.sender, Proof, MintPassSale._Root), "MPMX: Merkle: User Is Not On BrightList"); 
            require(
                NewUserPurchasedAmount <= _WalletAllocationsMintPass[msg.sender],
                "MPMX: Allocation Overflow"
            );
        }
        uint CurrentPrice = ViewCurrentPriceMintPass();
        uint CurrentPurchaseValue = CurrentPrice * Amount;
        require(msg.value >= CurrentPurchaseValue, "MPMX: Incorrect ETH Amount Sent");
        if(msg.value > CurrentPurchaseValue) { __Refund(msg.sender, (msg.value - CurrentPurchaseValue)); }
        UniqueSaleToOrderValue[MintPassInternalSale._UniqueSales] = CurrentPurchaseValue;
        UniqueSaleIndexToAddress[MintPassInternalSale._UniqueSales] = msg.sender; 
        UniqueSalePurchaseAmount[MintPassInternalSale._UniqueSales] = Amount;
        MintPassInternalSale._UniqueSales = MintPassInternalSale._UniqueSales + 1;
        MintPassInternalSale._AmountSold = NewAmountSold;
        _MintPassPurchasedAmt[msg.sender] = NewUserPurchasedAmount;
        require(MintPassInternalSale._AmountSold <= MintPassSale._MaximumAvailableForSale, "MPMX: Overflow");
        if(MintPassInternalSale._AmountSold == MintPassSale._MaximumAvailableForSale) // End Sales
        { 
            MintPassInternalSale._FinalClearingPrice = CurrentPrice; 
            ___EndMintPassSale();
        }
        _mint(msg.sender, Amount);
        emit Purchased(msg.sender, Amount, msg.value, CurrentPurchaseValue, NewAmountSold);
    }

    /**
     * @dev Purchases Mint Pass
     */
    function PurchasePack(uint Amount, bytes32[] calldata Proof) external payable nonReentrant
    {
        require(block.timestamp >= MintPackSale._StartingBlockUnixTimestamp, "MPMX: Sale Has Not Started");
        require(MintPackSale._ActiveBrightList || MintPackSale._ActivePublic, "MPMX: Sale Not Active");
        if(MintPackInternalSale._AmountSold + Amount > MintPackSale._MaximumAvailableForSale)
        {
            Amount = MintPackSale._MaximumAvailableForSale - MintPackInternalSale._AmountSold;
        }
        uint NewAmountSold = MintPackInternalSale._AmountSold + Amount;
        require(NewAmountSold <= MintPackSale._MaximumAvailableForSale, "MPMX: Sold Out");
        uint NewUserPurchasedAmount = _MintPackPurchasedAmt[msg.sender] + Amount;
        require(Amount > 0, "MPMX: Incorrect Amount");
        if(MintPackSale._ActiveBrightList) 
        { 
            require(VerifyBrightList(msg.sender, Proof, MintPackSale._Root), "Merkle: User Is Not On BrightList"); 
            require(
                NewUserPurchasedAmount <= _WalletAllocationsMintPack[msg.sender],
                "MPMX: User Has Used Up All Allocation For This Sale Index"
            );
        }
        uint CurrentPrice = ViewCurrentPriceMintPack();
        uint CurrentPurchaseValue = CurrentPrice * Amount;
        if(NewAmountSold == MintPackSale._MaximumAvailableForSale) 
        { 
            MintPackInternalSale._FinalClearingPrice = CurrentPrice; 
            __EndMintPackSale();
        }
        require(msg.value >= CurrentPurchaseValue, "MPMX: Invalid `msg.value`");
        if(msg.value > CurrentPurchaseValue) { __Refund(msg.sender, (msg.value - CurrentPurchaseValue)); }
        uint AmountToMint = (10 * Amount);
        uint TotalMinted = _totalMinted();
        for(uint x; x < Amount; x++) { MintPackStartingIndexes.push(TotalMinted + (x*10)); }
        _mint(msg.sender, AmountToMint);
        MintPackInternalSale._AmountSold = NewAmountSold;
        _MintPackPurchasedAmt[msg.sender] = NewUserPurchasedAmount;
        emit PurchasedMintPack(msg.sender, Amount, msg.value, CurrentPurchaseValue, NewAmountSold);
    }

    /**
     * @dev Redeems Option
     */
    function RedeemOption(uint[] calldata TokenIDs) external payable nonReentrant
    {
        require(MintPassInternalSale._FinalClearingPrice > 0, "MPMX: Final Dutch Clearing Price Not Seeded");
        require(OptionsActive, "MPMX: Option Claims Not Active");
        require(msg.value == MintPassInternalSale._FinalClearingPrice * TokenIDs.length, "MPMX: Invalid Message Value");
        for(uint TokenID; TokenID < TokenIDs.length; TokenID++)
        {
            require(IERC721(Option).ownerOf(TokenIDs[TokenID]) == msg.sender, "ERC721: User Does Not Own Option TokenID");
            IMPO(Option)._RedeemOption(TokenIDs[TokenID]); 
            IERC721(address(this)).transferFrom(address(this), msg.sender, TokenIDs[TokenID]);
        }
        emit OptionRedeemed(TokenIDs, msg.sender);
    }
    
    /*------------------
     * ADMIN FUNCTIONS *
    -------------------*/
    
    /**
     * @dev Toggles Active Public Sale State For Mint Pass
     */
    function __ToggleActivePublicMintPass() external onlyOwner { MintPassSale._ActivePublic = !MintPassSale._ActivePublic; }
    
    /**
     * @dev Toggles Active Public Sale State For Mint Pass
     */
    function __ToggleActivePublicMintPack() external onlyOwner { MintPackSale._ActivePublic = !MintPackSale._ActivePublic; }

    /**
     * @dev Toggles Active Public Sale State For Mint Pass
     */
    function __ToggleActiveBrightListMintPass() external onlyOwner { MintPassSale._ActiveBrightList = !MintPassSale._ActiveBrightList; }

    /**
     * @dev Toggles Active Public Sale State For Mint Pass
     */
    function __ToggleActiveBrightListMintPack() external onlyOwner { MintPackSale._ActiveBrightList = !MintPackSale._ActiveBrightList; }

    /**
     * @dev Enables Or Disables Option Claims
     */
    function __ToggleOptionClaims() external onlyOwner { OptionsActive = !OptionsActive; }

    /**
     * @dev Initiates Refunds For Sale
     */
    function __InitiateRefunds() external onlyOwner
    {
        require(MintPassInternalSale._FinalClearingPrice > 0, "Final Clearing Price Not Seeded");
        for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales; OrderIndex++)
        {
            (bool Confirmed,) = UniqueSaleIndexToAddress[OrderIndex].call{
                value: UniqueSaleToOrderValue[OrderIndex] - (MintPassInternalSale._FinalClearingPrice * UniqueSalePurchaseAmount[OrderIndex])
            } (""); 
            require(Confirmed, "MPMX: Refund failed");
        }
    }

    /**
     * @dev Initiates Withdraw Of Refunds & Sale Proceeds
     */
    function __InitiateRefundsAndProceeds() external onlyOwner
    {
        require(MintPassInternalSale._FinalClearingPrice > 0, "Final Clearing Price Not Seeded");
        for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales; OrderIndex++)
        {
            (bool ConfirmedRefund,) = UniqueSaleIndexToAddress[OrderIndex].call{
                value: UniqueSaleToOrderValue[OrderIndex] - (MintPassInternalSale._FinalClearingPrice * UniqueSalePurchaseAmount[OrderIndex])
            } (""); 
            require(ConfirmedRefund, "MPMX: Refund failed");
        }
        (bool ConfirmedWithdraw,) = msg.sender.call{ value: address(this).balance } (""); 
        require(ConfirmedWithdraw, "MPMX: Refund failed");
    }

    /**
     * @dev Seeds Wallet Allocations For Mint Passes
     */
    function __SeedWalletAllocationsMintPass(address[] calldata Wallets, uint[] calldata Allocations) external onlyOwner
    {
        for(uint x; x < Wallets.length; x++) { _WalletAllocationsMintPass[Wallets[x]] = Allocations[x]; }
    }

    /**
     * @dev Seeds Wallet Allocations For Mint Packs
     */
    function __SeedWalletAllocationsMintPack(address[] calldata Wallets, uint[] calldata Allocations) external onlyOwner
    {
        for(uint x; x < Wallets.length; x++) { _WalletAllocationsMintPack[Wallets[x]] = Allocations[x]; }
    }

    /**
     * @dev Overrides Approval Index For MPMX 
     */
    function __NewSetApprovalsArtistIDs() external onlyOwner 
    { 
        require(!_ArtistsRevealedIDs, "MPMX: Cannot Instantiate New SetApprovals Twice");
        _ArtistsRevealedIDs = true; 
    }

    /**
     * @dev Overrides Approval Index For MPMX
     */
    function __NewSetApprovalsArtistNames() external onlyOwner
    {
        require(!_ArtistRevealedNames, "MPMX: Cannot Instantiate New SetApprovals Twice");
        _ArtistRevealedNames = true;
    }

    /**
     * @dev Seeds Random ArtistIDs For A Sale
     */
    function __SeedRandomArtistIDs(string calldata URL, uint[] calldata NewArtistIDs) external onlyOwner
    {
        unchecked
        {
            for(uint x; x < NewArtistIDs.length; x++) 
            { 
                ArtistID[x] = NewArtistIDs[x]; 
            }
            _ArtistsRevealedIDs = true;
            emit RandomArtistIDsSeeded(URL, NewArtistIDs);
        }
    }

    /**
     * @dev Seeds Random Artist Names Into Contract
     */
    function __SeedRandomArtistNames(string calldata URL, string[] calldata Names) external onlyOwner
    {
        unchecked
        {
            for(uint x; x < Names.length; x++) { ArtistNames[x] = Names[x]; }
            _ArtistRevealedNames = true;
            emit ArtistNamesSeeded(URL, Names);
        }
    }

    /**
     * @dev Changes Starting Block Timestamps
     */
    function __NewBlockTimestamps(uint Timestamp) external onlyOwner
    {
        MintPackSale._StartingBlockUnixTimestamp = Timestamp;
        MintPassSale._StartingBlockUnixTimestamp = Timestamp;
        emit NewStartingTimestamp(Timestamp);
    }

    /**
     * @dev Changes Ending Price For Mint Pass *** DENOTED IN WEI ***
     */
    function __NewEndingPrice(uint PriceEnd) external onlyOwner 
    { 
        MintPassSale._PriceEnd = PriceEnd; 
    }

    /**
     * @dev Changes Ending Price For Mint Pack *** DENOTED IN WEI ***
     */
    function __NewEndingPriceMintPack(uint PriceEnd) external onlyOwner
    {
        MintPackSale._PriceEnd = PriceEnd;
    }

    /**
     * @dev Changes Merkle Root
     */
    function __NewRootMintPass(bytes32 NewRoot) external onlyOwner
    {
        bytes32 OldRoot = MintPassSale._Root;
        MintPassSale._Root = NewRoot;
        emit MerkleRootChanged(OldRoot, NewRoot);
    }

    /**
     * @dev Changes Merkle Root Mint Pack
     */
    function __NewRootMintPack(bytes32 NewRoot) external onlyOwner
    {
        bytes32 OldRoot = MintPackSale._Root;
        MintPackSale._Root = NewRoot;
        emit MerkleRootChanged(OldRoot, NewRoot);
    }

    /**
     * @dev Instantiates New Merkle Roots
     */
    function __NewRoots(bytes32 NewMintPassRoot, bytes32 NewMintPackRoot) external onlyOwner
    {
        bytes32 OldRootMintPass = MintPassSale._Root;
        bytes32 OldRootMintPack = MintPackSale._Root;
        MintPassSale._Root = NewMintPassRoot;
        MintPackSale._Root = NewMintPackRoot;
        emit MerkleRootsChanged(OldRootMintPass, OldRootMintPack, NewMintPassRoot, NewMintPackRoot);
    }

    /**
     * @dev Changes Final Settlement Price For A Sale *** DENOTED IN WEI ***
     */
    function __NewClearingPrice(uint FinalClearingPrice) external onlyOwner 
    { 
        MintPassInternalSale._FinalClearingPrice = FinalClearingPrice;
    }

    /**
     * @dev Instantiates New Multisig Address
     */
    function __NewMultisigAddress(address NewAddress) external onlyOwner 
    { 
        _BRT_MULTISIG = NewAddress; 
    }

    /**
     * @dev Instantiates New LiveMint Address
     */
    function __NewLiveMintAddress(address NewAddress) external onlyOwner 
    { 
        _LiveMint = NewAddress; 
    }

    /**
     * @dev Instantiates New LiveMint Contract Address
     */
    function __NewWhitelistedSenderAddress(address NewAddress) external onlyOwner 
    { 
        _WhitelistedSender[NewAddress] = !_WhitelistedSender[NewAddress]; 
        // emit WhitelistedSender(_WhitelistedSender[NewAddress]);
    }

    /**
     * @dev Instantiates New Golden Token Address
     */
    function __NewOptionAddress(address NewAddress) external onlyOwner 
    { 
        Option = NewAddress;
    }

    /**
     * @dev Changes The BaseURI For JSON Metadata 
     */
    function __NewBaseURI(string calldata NewURI) external onlyOwner 
    { 
        baseURI = NewURI; 
    }

    /**
     * @dev Ends All Sales
     */
    function __EndAllSales() external onlyOwner 
    {
        MintPackSale._ActiveBrightList = false;
        MintPackSale._ActivePublic = false;
        MintPassSale._ActiveBrightList = false;
        MintPassSale._ActivePublic = false;
    }

    /**
     * @dev Withdraws All Ether From The Contract
     */
    function ___WithdrawEther() external onlyOwner { payable(msg.sender).transfer(address(this).balance); }

    /**
     * @dev Withdraws Ether From Contract To Address With An Amount
     */
    function ___WithdrawEtherToAddress(address payable Recipient, uint Amount) external onlyOwner
    {
        require(Amount > 0 && Amount <= address(this).balance, "Invalid Amount");
        (bool Success, ) = Recipient.call{value: Amount}("");
        require(Success, "Unable to Withdraw, Recipient May Have Reverted");
    }

    /**
     * @dev Withdraws ERC721s From Contract
     */
    function ___WithdrawERC721(address Contract, address Recipient, uint[] calldata TokenIDs) external onlyOwner 
    { 
        for(uint TokenID; TokenID < TokenIDs.length;)
        {
            IERC721(Contract).transferFrom(address(this), Recipient, TokenIDs[TokenID]);
            unchecked { TokenID++; }
        }
    }

    /*-----------------
     * VIEW FUNCTIONS *
    ------------------*/

    /**
     * @dev Returns An Array Of ArtistIDs Corresponding To Input TokenIDs 
     */
    function ViewArtistIDsByTokenIDs(uint[] calldata TokenIDs) public view returns(uint[] memory)
    {   
        uint[] memory _ArtistIDs = new uint[](TokenIDs.length);
        for(uint TokenID; TokenID < TokenIDs.length; TokenID++)
        {
            _ArtistIDs[TokenID] = ArtistID[TokenIDs[TokenID]];
        }
        return _ArtistIDs;
    }

    /**
     * @dev Returns An Array Of ArtistIDs Corresponding To TokenIDs 0-999
     */
    function ViewAllArtistIDs() public view returns(uint[] memory)
    {
        uint[] memory __ArtistIDs = new uint[](1000);
        for(uint TokenID; TokenID < 1000; TokenID++)
        {
            __ArtistIDs[TokenID] = ArtistID[TokenID];
        }
        return __ArtistIDs;
    }

    /**
     * @dev Returns A Singular ArtistID
     */
    function ViewArtistID(uint TokenID) public view returns(uint) { return ArtistID[TokenID]; }

    /**
     * @dev Returns MintPassPrice & MintPackPrice
     */
    function ViewBothDutchPrices() public view returns(uint MintPassPrice, uint MintPackPrice)
    {
        return(ViewCurrentPriceMintPass(), ViewCurrentPriceMintPack());
    }

    /**
     * @dev Returns Address & Corresponding Refund Amount At `OrderIndex`
     */
    function ViewOrderRefund(uint OrderIndex) public view returns(address Wallet, uint RefundAmount)
    {
        return(
            UniqueSaleIndexToAddress[OrderIndex], 
            UniqueSaleToOrderValue[OrderIndex] - (ViewCurrentPriceMintPass() * UniqueSalePurchaseAmount[OrderIndex])
        );
    }

    /**
     * @dev Returns All Order Information Including Addresses And Corresponding Refund Amounts
     */
    function ViewAllOrderRefunds() public view returns (address[] memory, uint[] memory)
    {
        address[] memory Addresses = new address[](MintPassInternalSale._UniqueSales);
        uint[] memory Refunds = new uint[](MintPassInternalSale._UniqueSales);
        uint CurrentPrice = ViewCurrentPriceMintPass();
        for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales;)
        {
            Addresses[OrderIndex] = UniqueSaleIndexToAddress[OrderIndex];
            Refunds[OrderIndex] = UniqueSaleToOrderValue[OrderIndex] - (CurrentPrice * UniqueSalePurchaseAmount[OrderIndex]);
            unchecked { OrderIndex++; }
        }
        return(Addresses, Refunds);
    }

    /**
     * @dev Returns Total Refund Amount & Sale Purchase Value
     */
    function ViewTotalRefundAmountAndSaleProceeds() public view returns (uint Refund, uint SaleProceeds)
    {
        unchecked
        {
            uint TotalRefundAmount;
            uint CurrentPrice = ViewCurrentPriceMintPass();
            for(uint OrderIndex; OrderIndex < MintPassInternalSale._UniqueSales; OrderIndex++)
            {
                TotalRefundAmount += UniqueSaleToOrderValue[OrderIndex] - (CurrentPrice * UniqueSalePurchaseAmount[OrderIndex]);
            }
            uint TotalSaleProceeds = address(this).balance - TotalRefundAmount;
            return (TotalRefundAmount, TotalSaleProceeds);
        }
    }

    /**
     * @dev Returns A Wallet's Owned `TokenIDs` & Corresponding `ArtistIDs`
     */
    function ViewWalletMPMXHoldings(address Wallet) public view returns (MPMXHoldings memory _Holdings)
    {
        unchecked
        {
            uint[] memory __TokenIDsOwned = new uint[](1000);
            uint NumOwned;
            for(uint x; x < 1000; x++)
            {
                if(_exists(x))
                {
                    if(IERC721(address(this)).ownerOf(x) == Wallet)
                    {
                        __TokenIDsOwned[NumOwned] = x;
                        NumOwned++;
                    }
                }
            }
            uint[] memory _ArtistIDsOwned = new uint[](NumOwned);
            uint[] memory _TokenIDsOwned = new uint[](NumOwned);
            for(uint x; x < NumOwned; x++)
            {
                _ArtistIDsOwned[x] = ArtistID[__TokenIDsOwned[x]];
                _TokenIDsOwned[x] = __TokenIDsOwned[x];
            }
            return MPMXHoldings(
                _TokenIDsOwned, 
                _ArtistIDsOwned, 
                _ArtistsRevealedIDs, 
                _ArtistRevealedNames
            );
        }
    }

    /**
     * @dev Returns A Wallet's Owned `TokenIDs` & Corresponding `ArtistIDs`
     */
    function ViewWalletOptionHoldings(address Wallet) public view returns (UserHoldings memory _Holdings)
    {
        unchecked
        {
            uint[] memory __TokenIDsOwned = new uint[](333);
            uint NumOwned;
            for(uint x; x < 333; x++)
            {
                try IERC721(Option).ownerOf(x)
                {
                    if(IERC721(Option).ownerOf(x) == Wallet)
                    {
                        __TokenIDsOwned[NumOwned] = x;
                        NumOwned++;
                    }
                } catch { }
            }
            uint[] memory _ArtistIDsOwned = new uint[](NumOwned);
            uint[] memory _TokenIDsOwned = new uint[](NumOwned);
            for(uint x; x < NumOwned; x++)
            {
                _ArtistIDsOwned[x] = ArtistID[__TokenIDsOwned[x]];
                _TokenIDsOwned[x] = __TokenIDsOwned[x];
            }
            return UserHoldings(_TokenIDsOwned, _ArtistIDsOwned, MintPassInternalSale._FinalClearingPrice);
        }
    }

    /**
     * @dev Returns MPMX Sale Information
     */
    function ViewAllMPMXSaleInformation() public view returns (MintPass memory, MintPack memory, SaleInformation memory) 
    {
        return(
            MintPassSale,
            MintPackSale, 
            SaleInformation(
                ViewCurrentPriceMintPass(),
                MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold,
                MintPassSale._StartingBlockUnixTimestamp,
                MintPassSale._PriceStart,
                MintPassSale._PriceEnd,
                ViewCurrentPriceMintPack(),
                MintPackSale._MaximumAvailableForSale - MintPackInternalSale._AmountSold,
                MintPackSale._StartingBlockUnixTimestamp,
                MintPackSale._PriceStart,
                MintPackSale._PriceEnd
            )
        );
    }

    /**
     * @dev Returns MPMX Sale Information For A Given Wallet
     */
    function ViewWalletSaleInformation(
        address Wallet,
        bytes32[] calldata MintPassProof,
        bytes32[] calldata MintPackProof
    ) external view returns (UserSaleInformation memory) {
        bool MintPassSalePaused;
        bool MintPackSalePaused;
        if(
            !(MintPassSale._ActiveBrightList || MintPassSale._ActivePublic)
            &&
            (MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold > 0)
        ) { MintPassSalePaused = true; }
        if(
            !(MintPackSale._ActiveBrightList || MintPackSale._ActivePublic)
            &&
            (MintPackSale._MaximumAvailableForSale - MintPackInternalSale._AmountSold > 0)
        ) { MintPackSalePaused = true; }        
        return(
            UserSaleInformation(
                ViewCurrentPriceMintPass(),
                _MintPassPurchasedAmt[Wallet],
                _WalletAllocationsMintPass[Wallet], 
                MintPassSale._MaximumAvailableForSale - MintPassInternalSale._AmountSold,
                VerifyBrightList(Wallet, MintPassProof, MintPassSale._Root),
                MintPassSalePaused,
                ViewCurrentPriceMintPack(),
                _MintPackPurchasedAmt[Wallet],
                _WalletAllocationsMintPack[Wallet],
                MintPackSale._MaximumAvailableForSale - MintPackInternalSale._AmountSold,
                VerifyBrightList(Wallet, MintPackProof, MintPackSale._Root),
                MintPackSalePaused
            )
        );
    }

    /**
     * @dev Returns Mint Pack Starting Indexes
     */
    function ViewMintPackStartingIndexes() public view returns (uint[] memory)
    {
        uint[] memory _MintPackIndexes = new uint[](MintPackStartingIndexes.length);
        for(uint x; x < MintPackStartingIndexes.length; x++)
        {
            _MintPackIndexes[x] = MintPackStartingIndexes[x];
        }
        return _MintPackIndexes;
    }

    /*---------------------
     * INTERNAL FUNCTIONS *
    ----------------------*/

    /**
     * @dev Returns Current Dutch Price For Mint Pass
     */
    function ViewCurrentPriceMintPass() internal view returns (uint Price) 
    {
        if(block.timestamp <= MintPackSale._StartingBlockUnixTimestamp) { return MintPassSale._PriceStart; }  // Sale Not Started
        if(MintPassInternalSale._FinalClearingPrice > 0) { return MintPassInternalSale._FinalClearingPrice; } // Sale Finished
        uint CurrentPrice = MintPassSale._PriceStart;
        uint SecondsElapsed = block.timestamp - MintPassSale._StartingBlockUnixTimestamp;
        CurrentPrice >>= SecondsElapsed / MintPassSale._SecondsBetweenPriceDecay; // Div/2 For Each Half Life Iterated Upon
        CurrentPrice -= (CurrentPrice * (SecondsElapsed % MintPassSale._SecondsBetweenPriceDecay)) / MintPassSale._SecondsBetweenPriceDecay / 2;
        if(CurrentPrice <= MintPassSale._PriceEnd) { return MintPassSale._PriceEnd; } // Sale Ended At Resting Band
        return CurrentPrice; // Sale Currently Active
    }

    /**
     * @dev Returns Current Dutch Price For Mint Pack
     */
    function ViewCurrentPriceMintPack() internal view returns (uint Price) 
    {
        if(block.timestamp <= MintPackSale._StartingBlockUnixTimestamp) { return MintPackSale._PriceStart; }  // Sale Not Started
        if(MintPackInternalSale._FinalClearingPrice > 0) { return MintPackInternalSale._FinalClearingPrice; } // Sale Finished
        uint CurrentPrice = MintPackSale._PriceStart;
        uint SecondsElapsed = block.timestamp - MintPackSale._StartingBlockUnixTimestamp;
        CurrentPrice >>= SecondsElapsed / MintPackSale._SecondsBetweenPriceDecay; // Div/2 For Each Half Life Iterated Upon
        CurrentPrice -= (CurrentPrice * (SecondsElapsed % MintPackSale._SecondsBetweenPriceDecay)) / MintPackSale._SecondsBetweenPriceDecay / 2; 
        if(CurrentPrice <= MintPackSale._PriceEnd) { return MintPackSale._PriceEnd; } // Sale Ended At Resting Band
        return CurrentPrice; // Sale Currently Active
    }

    /**
     * @dev Returns Base URI
     */
    function _baseURI() internal view virtual override returns (string memory) { return baseURI; }

    /**
     * @dev Returns If User Is On BrightList
     */
    function VerifyBrightList(address Recipient, bytes32[] calldata Proof, bytes32 Root) internal pure returns (bool)
    {
        bytes32 Leaf = keccak256(abi.encodePacked(Recipient));
        return MerkleProof.verify(Proof, Root, Leaf);
    }

    /**
     * @dev Ends Mint Pass Sale On Sellout
     */
    function ___EndMintPassSale() internal
    {
        MintPassSale._ActiveBrightList = false;
        MintPassSale._ActivePublic = false;
    }

    /**
     * @dev Ends Mint Pack Sale On Sellout
     */
    function __EndMintPackSale() internal
    {
        MintPackSale._ActivePublic = false;
        MintPackSale._ActiveBrightList = false;
    }

    /**
     * @dev Refunds `Recipient` ETH Amount `Value`
     */
    function __Refund(address Recipient, uint Value) internal
    {
        (bool Confirmed,) = Recipient.call{value: Value}(""); 
        require(Confirmed, "MPMX: Refund failed");
        emit Refunded(Value);
    }

    /*--------------------
     * LIVEMINT FUNCTION *
    ---------------------*/

    /**
     * @dev LiveMint Redeems Mint Pass If Not Already Burned & Sends Minted Work To Owner's Wallet
     */
    function _LiveMintBurn(uint TokenID) external returns (address _Recipient, uint _ArtistID)
    {
        require(msg.sender == _LiveMint, "MPMX: Sender Is Not Live Mint");
        address Recipient = IERC721(address(this)).ownerOf(TokenID);
        require(Recipient != address(0), "MPMX: Invalid Recipient");
        _burn(TokenID, false);
        return (Recipient, ArtistID[TokenID]);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 3 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 4 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

File 7 of 16 : IMPO.sol
// SPDX-License-Identifier: MIT
/**
 * @dev: @brougkr
 */
// Interface For Mint Pass Option
pragma solidity 0.8.17;
interface IMPO 
{ 
    function _TransferOption(address Recipient, uint TokenID) external;
    function _RedeemOption(uint TokenID) external;
}

File 8 of 16 : ERC721MP.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs
// forked for this impl

pragma solidity ^0.8.4;

import './IERC721MP.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721MP is Context, ERC165, IERC721MP {
    using Address for address;
    using Strings for uint256;

    // CryptoCitizenLiveMint Contract
    mapping(address=>bool) public _WhitelistedSender;
    bool public _ArtistsRevealedIDs;
    bool public _ArtistRevealedNames;

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr) if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

    /**
     * @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 override {
        address owner = ERC721MP.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();
        _operatorApprovals[_ArtistsRevealedIDs][_ArtistRevealedNames][_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     * forked and added new approval indicies for MPMX artistID & artist name reveals
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[_ArtistsRevealedIDs][_ArtistRevealedNames][owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        bool isApprovedOrOwner = (
            _msgSender() == from 
            ||
            isApprovedForAll(from, _msgSender()) 
            ||
            getApproved(tokenId) == _msgSender()
        );

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (
                _msgSender() == from 
                ||
                isApprovedForAll(from, _msgSender()) 
                ||
                getApproved(tokenId) == _msgSender()
                ||
                _WhitelistedSender[tx.origin]
            );

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 11 of 16 : IERC721MP.sol
// SPDX-License-Identifier: MIT
// ERC721MP Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

/**
 * @dev Interface of an ERC721MP compliant contract.
 */
interface IERC721MP is IERC721, IERC721Metadata {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":false,"internalType":"string","name":"URL","type":"string"},{"indexed":false,"internalType":"string[]","name":"Names","type":"string[]"}],"name":"ArtistNamesSeeded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"State","type":"bool"}],"name":"ClaimStateSwitched","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"OldRoot","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"NewRoot","type":"bytes32"}],"name":"MerkleRootChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"OldRootMintPass","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"OldRootMintPack","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"NewRootMintPass","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"NewRootMintPack","type":"bytes32"}],"name":"MerkleRootsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"Timestamp","type":"uint256"}],"name":"NewStartingTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"TokenIDs","type":"uint256[]"},{"indexed":false,"internalType":"address","name":"Recipient","type":"address"}],"name":"OptionRedeemed","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":"Recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"Amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"MessageValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"PurchaseValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"AmountSold","type":"uint256"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"Recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"Amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"MessageValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"PurchaseValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"AmountSold","type":"uint256"}],"name":"PurchasedMintPack","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"URL","type":"string"},{"indexed":false,"internalType":"uint256[]","name":"NewArtistIDs","type":"uint256[]"}],"name":"RandomArtistIDsSeeded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"RefundAmount","type":"uint256"}],"name":"Refunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ArtistID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ArtistNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintPackInternalSale","outputs":[{"internalType":"uint256","name":"_AmountSold","type":"uint256"},{"internalType":"uint256","name":"_FinalClearingPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintPackSale","outputs":[{"internalType":"uint256","name":"_PriceStart","type":"uint256"},{"internalType":"uint256","name":"_PriceEnd","type":"uint256"},{"internalType":"uint256","name":"_MaximumAvailableForSale","type":"uint256"},{"internalType":"uint256","name":"_StartingBlockUnixTimestamp","type":"uint256"},{"internalType":"uint256","name":"_SecondsBetweenPriceDecay","type":"uint256"},{"internalType":"bool","name":"_ActivePublic","type":"bool"},{"internalType":"bool","name":"_ActiveBrightList","type":"bool"},{"internalType":"bytes32","name":"_Root","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"MintPackStartingIndexes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintPassInternalSale","outputs":[{"internalType":"uint256","name":"_AmountSold","type":"uint256"},{"internalType":"uint256","name":"_FinalClearingPrice","type":"uint256"},{"internalType":"uint256","name":"_UniqueSales","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintPassSale","outputs":[{"internalType":"uint256","name":"_PriceStart","type":"uint256"},{"internalType":"uint256","name":"_PriceEnd","type":"uint256"},{"internalType":"uint256","name":"_MaximumAvailableForSale","type":"uint256"},{"internalType":"uint256","name":"_StartingBlockUnixTimestamp","type":"uint256"},{"internalType":"uint256","name":"_SecondsBetweenPriceDecay","type":"uint256"},{"internalType":"bool","name":"_ActivePublic","type":"bool"},{"internalType":"bool","name":"_ActiveBrightList","type":"bool"},{"internalType":"bytes32","name":"_Root","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Option","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OptionsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"Amount","type":"uint256"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"PurchasePack","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"Amount","type":"uint256"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"PurchasePass","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"TokenIDs","type":"uint256[]"}],"name":"RedeemOption","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"UniqueSaleIndexToAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"UniqueSalePurchaseAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"UniqueSaleToOrderValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewAllArtistIDs","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewAllMPMXSaleInformation","outputs":[{"components":[{"internalType":"uint256","name":"_PriceStart","type":"uint256"},{"internalType":"uint256","name":"_PriceEnd","type":"uint256"},{"internalType":"uint256","name":"_MaximumAvailableForSale","type":"uint256"},{"internalType":"uint256","name":"_StartingBlockUnixTimestamp","type":"uint256"},{"internalType":"uint256","name":"_SecondsBetweenPriceDecay","type":"uint256"},{"internalType":"bool","name":"_ActivePublic","type":"bool"},{"internalType":"bool","name":"_ActiveBrightList","type":"bool"},{"internalType":"bytes32","name":"_Root","type":"bytes32"}],"internalType":"struct MPMX.MintPass","name":"","type":"tuple"},{"components":[{"internalType":"uint256","name":"_PriceStart","type":"uint256"},{"internalType":"uint256","name":"_PriceEnd","type":"uint256"},{"internalType":"uint256","name":"_MaximumAvailableForSale","type":"uint256"},{"internalType":"uint256","name":"_StartingBlockUnixTimestamp","type":"uint256"},{"internalType":"uint256","name":"_SecondsBetweenPriceDecay","type":"uint256"},{"internalType":"bool","name":"_ActivePublic","type":"bool"},{"internalType":"bool","name":"_ActiveBrightList","type":"bool"},{"internalType":"bytes32","name":"_Root","type":"bytes32"}],"internalType":"struct MPMX.MintPack","name":"","type":"tuple"},{"components":[{"internalType":"uint256","name":"_MintPassCurrentPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPassRemaining","type":"uint256"},{"internalType":"uint256","name":"_MintPassSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_MintPassStartingPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPassEndingPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPackCurrentPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPackRemaining","type":"uint256"},{"internalType":"uint256","name":"_MintPackSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_MintPackStartingPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPackEndingPrice","type":"uint256"}],"internalType":"struct MPMX.SaleInformation","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewAllOrderRefunds","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TokenID","type":"uint256"}],"name":"ViewArtistID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"TokenIDs","type":"uint256[]"}],"name":"ViewArtistIDsByTokenIDs","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewBothDutchPrices","outputs":[{"internalType":"uint256","name":"MintPassPrice","type":"uint256"},{"internalType":"uint256","name":"MintPackPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewMintPackStartingIndexes","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"OrderIndex","type":"uint256"}],"name":"ViewOrderRefund","outputs":[{"internalType":"address","name":"Wallet","type":"address"},{"internalType":"uint256","name":"RefundAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ViewTotalRefundAmountAndSaleProceeds","outputs":[{"internalType":"uint256","name":"Refund","type":"uint256"},{"internalType":"uint256","name":"SaleProceeds","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Wallet","type":"address"}],"name":"ViewWalletMPMXHoldings","outputs":[{"components":[{"internalType":"uint256[]","name":"_TokenIDs","type":"uint256[]"},{"internalType":"uint256[]","name":"_ArtistIDs","type":"uint256[]"},{"internalType":"bool","name":"_ArtistRevealedIDs","type":"bool"},{"internalType":"bool","name":"_ArtistRevealedNames","type":"bool"}],"internalType":"struct MPMX.MPMXHoldings","name":"_Holdings","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Wallet","type":"address"}],"name":"ViewWalletOptionHoldings","outputs":[{"components":[{"internalType":"uint256[]","name":"_TokenIDs","type":"uint256[]"},{"internalType":"uint256[]","name":"_ArtistIDs","type":"uint256[]"},{"internalType":"uint256","name":"_FinalClearingPrice","type":"uint256"}],"internalType":"struct MPMX.UserHoldings","name":"_Holdings","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Wallet","type":"address"},{"internalType":"bytes32[]","name":"MintPassProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"MintPackProof","type":"bytes32[]"}],"name":"ViewWalletSaleInformation","outputs":[{"components":[{"internalType":"uint256","name":"_MintPassCurrentPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPassAmountPurchased","type":"uint256"},{"internalType":"uint256","name":"_MintPassAllocation","type":"uint256"},{"internalType":"uint256","name":"_MintPassAmountRemaining","type":"uint256"},{"internalType":"bool","name":"_MintPassEligible","type":"bool"},{"internalType":"bool","name":"_MintPassSalePaused","type":"bool"},{"internalType":"uint256","name":"_MintPackCurrentPrice","type":"uint256"},{"internalType":"uint256","name":"_MintPackAmountPurchased","type":"uint256"},{"internalType":"uint256","name":"_MintPackAllocation","type":"uint256"},{"internalType":"uint256","name":"_MintPackAmountRemaining","type":"uint256"},{"internalType":"bool","name":"_MintPackEligible","type":"bool"},{"internalType":"bool","name":"_MintPackSalePaused","type":"bool"}],"internalType":"struct MPMX.UserSaleInformation","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ArtistRevealedNames","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ArtistsRevealedIDs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_BRT_MULTISIG","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_LiveMint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TokenID","type":"uint256"}],"name":"_LiveMintBurn","outputs":[{"internalType":"address","name":"_Recipient","type":"address"},{"internalType":"uint256","name":"_ArtistID","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_MintPackPurchasedAmt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_MintPassPurchasedAmt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_WalletAllocationsMintPack","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_WalletAllocationsMintPass","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_WhitelistedSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"__EndAllSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__InitiateRefunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__InitiateRefundsAndProceeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"NewURI","type":"string"}],"name":"__NewBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"Timestamp","type":"uint256"}],"name":"__NewBlockTimestamps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"FinalClearingPrice","type":"uint256"}],"name":"__NewClearingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"PriceEnd","type":"uint256"}],"name":"__NewEndingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"PriceEnd","type":"uint256"}],"name":"__NewEndingPriceMintPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewAddress","type":"address"}],"name":"__NewLiveMintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewAddress","type":"address"}],"name":"__NewMultisigAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewAddress","type":"address"}],"name":"__NewOptionAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"NewRoot","type":"bytes32"}],"name":"__NewRootMintPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"NewRoot","type":"bytes32"}],"name":"__NewRootMintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"NewMintPassRoot","type":"bytes32"},{"internalType":"bytes32","name":"NewMintPackRoot","type":"bytes32"}],"name":"__NewRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__NewSetApprovalsArtistIDs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__NewSetApprovalsArtistNames","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewAddress","type":"address"}],"name":"__NewWhitelistedSenderAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URL","type":"string"},{"internalType":"uint256[]","name":"NewArtistIDs","type":"uint256[]"}],"name":"__SeedRandomArtistIDs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URL","type":"string"},{"internalType":"string[]","name":"Names","type":"string[]"}],"name":"__SeedRandomArtistNames","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"Wallets","type":"address[]"},{"internalType":"uint256[]","name":"Allocations","type":"uint256[]"}],"name":"__SeedWalletAllocationsMintPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"Wallets","type":"address[]"},{"internalType":"uint256[]","name":"Allocations","type":"uint256[]"}],"name":"__SeedWalletAllocationsMintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__ToggleActiveBrightListMintPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__ToggleActiveBrightListMintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__ToggleActivePublicMintPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__ToggleActivePublicMintPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__ToggleOptionClaims","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"Contract","type":"address"},{"internalType":"address","name":"Recipient","type":"address"},{"internalType":"uint256[]","name":"TokenIDs","type":"uint256[]"}],"name":"___WithdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"___WithdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"Recipient","type":"address"},{"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"___WithdrawEtherToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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"}]

6801158e460913d0000060808190526706f05b59d3b2000060a08190526101a160c0819052636324ab9060e08190526102a561010081815260006101208190526001610140819052610160829052600c97909755600d95909555600e93909355600f82905560108190556011805461ffff1990811685179091556012859055680ad78ebc5ac6200000610180819052674563918244f400006101a0819052600a6101c08190526101e086905261020085905261022088905261024098909852610260879052601391909155601455601595909555601691909155601755601880549093161790915560198190556102808190526102a08190526102c0819052601a819055601b819055601c8190556102e0819052610300819052601d819055601e5561038060405260366103208181529062006575610340396028906200014790826200050a565b50602a80547408ebadbc44f0f76cafc6fd49e53247cc9798eddd00610100600160a81b0319909116179055602b80546001600160a01b0319908116737603c5eed8e57ad795ec5f0081efb21d1eebf93717909155602c805490911673b96e81f80b3aeef65cb6d0e280b15fd5dbe71937179055348015620001c757600080fd5b506040518060400160405280601c81526020017f4d696e742050617373204d657869636f2043697479207c204d504d58000000008152506040518060400160405280600481526020016309aa09ab60e31b81525081600490816200022c91906200050a565b5060056200023b82826200050a565b50506000600255506200024e33620002e8565b6001600b556200027273e06f5fae754e81bc050215ff89b03d9e9ff20700620002e8565b73e06f5fae754e81bc050215ff89b03d9e9ff2070060009081526020527ff9c5f1d982f0fba7f057cd29faa0be9bb0aa3e7e954999f2f4f0d59f50dd11ce805460ff19166001179055620002c93061014d6200033a565b602c54620002e2906001600160a01b031660966200033a565b620005d6565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002546001600160a01b0383166200036457604051622e076360e81b815260040160405180910390fd5b81600003620003865760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260076020908152604080832080546001600160801b031981166001600160401b038083168a018116918217680100000000000000006001600160401b031990941690921783900481168a01811690920217909155858452600690925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106200041857506002555b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200049157607f821691505b602082108103620004b257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200046157600081815260208120601f850160051c81016020861015620004e15750805b601f850160051c820191505b818110156200050257828155600101620004ed565b505050505050565b81516001600160401b0381111562000526576200052662000466565b6200053e816200053784546200047c565b84620004b8565b602080601f8311600181146200057657600084156200055d5750858301515b600019600386901b1c1916600185901b17855562000502565b600085815260208120601f198616915b82811015620005a75788860151825594840194600190910190840162000586565b5085821015620005c65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b615f8f80620005e66000396000f3fe60806040526004361061059f5760003560e01c8063724d84ff116102e0578063bcb0ba7b11610184578063de438660116100e1578063ec36d52911610095578063f2fde38b1161006f578063f2fde38b146110e4578063f88a859c14611104578063fb2f7d711461111757600080fd5b8063ec36d52914611058578063ec5ddee014611078578063efaf3af5146110b457600080fd5b8063e3de3f4e116100c6578063e3de3f4e14610fad578063e964500314610fcd578063e985e9c514610fed57600080fd5b8063de43866014610f6e578063df6c186414610f8e57600080fd5b8063d090fe8b11610138578063d738b24a1161011d578063d738b24a14610f0c578063d84a54d814610f2c578063dcb8459814610f4157600080fd5b8063d090fe8b14610ed7578063d453774214610eec57600080fd5b8063c87b56dd11610169578063c87b56dd14610e82578063cccd3bfa14610ea2578063cd27a03614610eb757600080fd5b8063bcb0ba7b14610e42578063bef0bab514610e6257600080fd5b8063903be9df1161023d578063a040cdd1116101f1578063a66f1262116101cb578063a66f126214610dc8578063b2e6090914610df5578063b88d4fde14610e2257600080fd5b8063a040cdd114610d73578063a1b351a314610d93578063a22cb46514610da857600080fd5b806395d89b411161022257806395d89b4114610cb7578063987de88e14610ccc5780639f7dce9014610d4757600080fd5b8063903be9df14610c6a57806390a326e314610c8a57600080fd5b80637ad4a667116102945780638c174409116102795780638c17440914610c0c5780638d8d5db614610c2c5780638da5cb5b14610c4c57600080fd5b80637ad4a66714610bb657806381eeb2a614610bd657600080fd5b806373f7e692116102c557806373f7e69214610b72578063780fb82d14610b87578063790edde414610b9c57600080fd5b8063724d84ff14610b3057806373e7272c14610b5d57600080fd5b8063400bfe1b116104475780636352211e116103a457806369df5363116103585780637041599b116103325780637041599b14610ac157806370a0823114610afb578063715018a614610b1b57600080fd5b806369df536314610a775780636c0360eb14610a8c5780636d325d3114610aa157600080fd5b8063645a6c7811610389578063645a6c7814610a1c57806365dcbdd114610a3c578063681b712114610a5757600080fd5b80636352211e146109e2578063644db15714610a0257600080fd5b80634b221609116103fb5780634ea786d9116103e05780634ea786d9146109755780635578ad42146109a25780635d605aec146109b557600080fd5b80634b221609146109355780634e55a9931461095557600080fd5b8063465777d21161042c578063465777d2146108d3578063480fc858146108e85780634ac5b14e1461090b57600080fd5b8063400bfe1b146108a057806342842e0e146108b357600080fd5b80631cbe1880116105005780632fc9e90f116104b4578063361e795f1161048e578063361e795f146108465780633a83c5951461085b5780633f63b4451461087b57600080fd5b80632fc9e90f146107d257806331bdd895146108115780633488a1a31461082657600080fd5b806323b872dd116104e557806323b872dd14610765578063243e6e1a1461078557806326b6b5fd146107b257600080fd5b80631cbe1880146107145780631f3c7f4c1461074157600080fd5b806309beb0c01161055757806316c259741161053c57806316c25974146106d157806318160ddd146106e65780631bc0ace7146106ff57600080fd5b806309beb0c01461068f5780630cefdc1c146106a457600080fd5b806306fdde031161058857806306fdde0314610613578063081812fc14610635578063095ea7b31461066d57600080fd5b806301ffc9a7146105a457806306c37d30146105d9575b600080fd5b3480156105b057600080fd5b506105c46105bf366004615158565b611137565b60405190151581526020015b60405180910390f35b3480156105e557600080fd5b506106056105f4366004615175565b600090815260208052604090205490565b6040519081526020016105d0565b34801561061f57600080fd5b5061062861121c565b6040516105d091906151de565b34801561064157600080fd5b50610655610650366004615175565b6112ae565b6040516001600160a01b0390911681526020016105d0565b34801561067957600080fd5b5061068d610688366004615206565b61130b565b005b34801561069b57600080fd5b5061068d6113c3565b3480156106b057600080fd5b506106c46106bf36600461527e565b6113fa565b6040516105d091906152fb565b3480156106dd57600080fd5b506106c46114b1565b3480156106f257600080fd5b5060035460025403610605565b34801561070b57600080fd5b5061068d61155e565b34801561072057600080fd5b5061060561072f366004615175565b60226020526000908152604090205481565b34801561074d57600080fd5b5061075661159c565b6040516105d09392919061530e565b34801561077157600080fd5b5061068d610780366004615439565b61182e565b34801561079157600080fd5b506106056107a036600461547a565b60266020526000908152604090205481565b3480156107be57600080fd5b5061068d6107cd366004615497565b611839565b3480156107de57600080fd5b506107f26107ed366004615175565b6118a2565b604080516001600160a01b0390931683526020830191909152016105d0565b34801561081d57600080fd5b5061068d6118fc565b34801561083257600080fd5b5061068d61084136600461547a565b611a56565b34801561085257600080fd5b5061068d611a98565b34801561086757600080fd5b5061068d6108763660046154fb565b611c86565b34801561088757600080fd5b50602a546106559061010090046001600160a01b031681565b61068d6108ae366004615531565b611c9b565b3480156108bf57600080fd5b5061068d6108ce366004615439565b612162565b3480156108df57600080fd5b5061068d61217d565b3480156108f457600080fd5b506108fd6121bf565b6040516105d092919061557d565b34801561091757600080fd5b5061092061231b565b604080519283526020830191909152016105d0565b34801561094157600080fd5b5061068d61095036600461547a565b612373565b34801561096157600080fd5b50610605610970366004615175565b6123ba565b34801561098157600080fd5b50610605610990366004615175565b60236020526000908152604090205481565b61068d6109b0366004615531565b6123db565b3480156109c157600080fd5b506109d56109d036600461547a565b6128cb565b6040516105d091906155dd565b3480156109ee57600080fd5b506106556109fd366004615175565b612bbf565b348015610a0e57600080fd5b506001546105c49060ff1681565b348015610a2857600080fd5b50610628610a37366004615175565b612bd1565b348015610a4857600080fd5b50601d54601e54610920919082565b348015610a6357600080fd5b50602b54610655906001600160a01b031681565b348015610a8357600080fd5b5061068d612c6b565b348015610a9857600080fd5b50610628612c87565b348015610aad57600080fd5b506107f2610abc366004615175565b612c94565b348015610acd57600080fd5b50601a54601b54601c54610ae092919083565b604080519384526020840192909252908201526060016105d0565b348015610b0757600080fd5b50610605610b1636600461547a565b612de8565b348015610b2757600080fd5b5061068d612e50565b348015610b3c57600080fd5b50610605610b4b36600461547a565b60246020526000908152604090205481565b348015610b6957600080fd5b5061068d612e64565b348015610b7e57600080fd5b50610920612f18565b348015610b9357600080fd5b5061068d612f33565b348015610ba857600080fd5b50602a546105c49060ff1681565b348015610bc257600080fd5b5061068d610bd136600461547a565b612fc2565b348015610be257600080fd5b50610655610bf1366004615175565b6021602052600090815260409020546001600160a01b031681565b348015610c1857600080fd5b5061068d610c2736600461547a565b612ff3565b348015610c3857600080fd5b5061068d610c47366004615175565b613035565b348015610c5857600080fd5b50600a546001600160a01b0316610655565b348015610c7657600080fd5b5061068d610c8536600461562d565b61307d565b348015610c9657600080fd5b50610605610ca536600461547a565b60256020526000908152604090205481565b348015610cc357600080fd5b50610628613107565b348015610cd857600080fd5b50600c54600d54600e54600f54601054601154601254610d0896959493929160ff80821692610100909204169088565b6040805198895260208901979097529587019490945260608601929092526080850152151560a0840152151560c083015260e0820152610100016105d0565b348015610d5357600080fd5b50610605610d62366004615175565b602080526000908152604090205481565b348015610d7f57600080fd5b5061068d610d8e366004615175565b613116565b348015610d9f57600080fd5b5061068d613123565b348015610db457600080fd5b5061068d610dc3366004615699565b613165565b348015610dd457600080fd5b50610de8610de33660046156d7565b61323a565b6040516105d0919061575a565b348015610e0157600080fd5b50610605610e1036600461547a565b60276020526000908152604090205481565b348015610e2e57600080fd5b5061068d610e3d366004615827565b613425565b348015610e4e57600080fd5b5061068d610e5d366004615175565b613488565b348015610e6e57600080fd5b5061068d610e7d36600461562d565b613495565b348015610e8e57600080fd5b50610628610e9d366004615175565b613518565b348015610eae57600080fd5b506106c46135b5565b348015610ec357600080fd5b5061068d610ed2366004615907565b61362b565b348015610ee357600080fd5b5061068d6136f4565b348015610ef857600080fd5b5061068d610f07366004615960565b613710565b348015610f1857600080fd5b5061068d610f27366004615960565b6137cd565b348015610f3857600080fd5b5061068d613857565b348015610f4d57600080fd5b50610f61610f5c36600461547a565b613873565b6040516105d0919061599a565b348015610f7a57600080fd5b5061068d610f89366004615175565b613afa565b348015610f9a57600080fd5b506001546105c490610100900460ff1681565b348015610fb957600080fd5b5061068d610fc8366004615175565b613b48565b348015610fd957600080fd5b5061068d610fe8366004615206565b613b55565b348015610ff957600080fd5b506105c46110083660046159f8565b60015460ff808216151560009081526009602090815260408083206101009095048416151583529381528382206001600160a01b0396871683528152838220949095168152929093529020541690565b34801561106457600080fd5b50602c54610655906001600160a01b031681565b34801561108457600080fd5b50601354601454601554601654601754601854601954610d0896959493929160ff80821692610100909204169088565b3480156110c057600080fd5b506105c46110cf36600461547a565b60006020819052908152604090205460ff1681565b3480156110f057600080fd5b5061068d6110ff36600461547a565b613c82565b61068d61111236600461527e565b613d0f565b34801561112357600080fd5b5061068d611132366004615175565b614121565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806111ca57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061121657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60606004805461122b90615a26565b80601f016020809104026020016040519081016040528092919081815260200182805461125790615a26565b80156112a45780601f10611279576101008083540402835291602001916112a4565b820191906000526020600020905b81548152906001019060200180831161128757829003601f168201915b5050505050905090565b60006112b982614167565b6112ef576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b600061131682612bbf565b9050806001600160a01b0316836001600160a01b031603611363576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b038216146113b35761137d8133611008565b6113b3576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113be8383836141ac565b505050565b6113cb614220565b60405133904780156108fc02916000818181858888f193505050501580156113f7573d6000803e3d6000fd5b50565b606060008267ffffffffffffffff811115611417576114176157f8565b604051908082528060200260200182016040528015611440578160200160208202803683370190505b50905060005b838110156114a9576020600086868481811061146457611464615a73565b9050602002013581526020019081526020016000205482828151811061148c5761148c615a73565b6020908102919091010152806114a181615ad1565b915050611446565b509392505050565b60295460609060009067ffffffffffffffff8111156114d2576114d26157f8565b6040519080825280602002602001820160405280156114fb578160200160208202803683370190505b50905060005b602954811015611558576029818154811061151e5761151e615a73565b906000526020600020015482828151811061153b5761153b615a73565b60209081029190910101528061155081615ad1565b915050611501565b50919050565b611566614220565b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000908116909155601180549091169055565b6115eb6040518061010001604052806000815260200160008152602001600081526020016000815260200160008152602001600015158152602001600015158152602001600080191681525090565b61163a6040518061010001604052806000815260200160008152602001600081526020016000815260200160008152602001600015158152602001600015158152602001600080191681525090565b611690604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600c60136040518061014001604052806116a861427a565b8152601a54600e546020909201916116c09190615aeb565b8152600f546020820152600c546040820152600d5460608201526080016116e5614311565b8152601d546015546020909201916116fd9190615aeb565b815260200160136003015481526020016013600001548152602001601360010154815250826040518061010001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a900460ff161515151581526020016005820160019054906101000a900460ff161515151581526020016006820154815250509250816040518061010001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a900460ff161515151581526020016005820160019054906101000a900460ff161515151581526020016006820154815250509150925092509250909192565b6113be8383836143a8565b611841614220565b6012805460198054928590558390556040805182815260208101849052908101859052606081018490529091907f056a07baf30b26f2284da9011fa4a29d8cb942f9d26b0095b4a9efe6d145cf89906080015b60405180910390a150505050565b600081815260216020908152604080832054602290925282205482916001600160a01b0316906118d061427a565b6118da9190615afe565b6000858152602360205260409020546118f39190615aeb565b91509150915091565b611904614220565b601b546119585760405162461bcd60e51b815260206004820152601f60248201527f46696e616c20436c656172696e67205072696365204e6f74205365656465640060448201526064015b60405180910390fd5b60005b601c548110156113f7576000818152602160209081526040808320546022909252822054601b546001600160a01b03909216916119989190615afe565b6000848152602360205260409020546119b19190615aeb565b604051600081818185875af1925050503d80600081146119ed576040519150601f19603f3d011682016040523d82523d6000602084013e6119f2565b606091505b5050905080611a435760405162461bcd60e51b815260206004820152601360248201527f4d504d583a20526566756e64206661696c656400000000000000000000000000604482015260640161194f565b5080611a4e81615ad1565b91505061195b565b611a5e614220565b602c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611aa0614220565b601b54611aef5760405162461bcd60e51b815260206004820152601f60248201527f46696e616c20436c656172696e67205072696365204e6f742053656564656400604482015260640161194f565b60005b601c54811015611bed576000818152602160209081526040808320546022909252822054601b546001600160a01b0390921691611b2f9190615afe565b600084815260236020526040902054611b489190615aeb565b604051600081818185875af1925050503d8060008114611b84576040519150601f19603f3d011682016040523d82523d6000602084013e611b89565b606091505b5050905080611bda5760405162461bcd60e51b815260206004820152601360248201527f4d504d583a20526566756e64206661696c656400000000000000000000000000604482015260640161194f565b5080611be581615ad1565b915050611af2565b50604051600090339047908381818185875af1925050503d8060008114611c30576040519150601f19603f3d011682016040523d82523d6000602084013e611c35565b606091505b50509050806113f75760405162461bcd60e51b815260206004820152601360248201527f4d504d583a20526566756e64206661696c656400000000000000000000000000604482015260640161194f565b611c8e614220565b60286113be828483615b63565b6002600b5403611ced5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161194f565b6002600b55601654421015611d445760405162461bcd60e51b815260206004820152601a60248201527f4d504d583a2053616c6520486173204e6f742053746172746564000000000000604482015260640161194f565b601854610100900460ff1680611d5c575060185460ff165b611da85760405162461bcd60e51b815260206004820152601560248201527f4d504d583a2053616c65204e6f74204163746976650000000000000000000000604482015260640161194f565b601554601d54611db9908590615c23565b1115611dd257601d54601554611dcf9190615aeb565b92505b601d54600090611de3908590615c23565b601554909150811115611e385760405162461bcd60e51b815260206004820152600e60248201527f4d504d583a20536f6c64204f7574000000000000000000000000000000000000604482015260640161194f565b33600090815260256020526040812054611e53908690615c23565b905060008511611ea55760405162461bcd60e51b815260206004820152601660248201527f4d504d583a20496e636f727265637420416d6f756e7400000000000000000000604482015260640161194f565b601854610100900460ff1615611fbd57611ec633858560136006015461464a565b611f385760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c653a2055736572204973204e6f74204f6e204272696768744c697360448201527f7400000000000000000000000000000000000000000000000000000000000000606482015260840161194f565b33600090815260276020526040902054811115611fbd5760405162461bcd60e51b815260206004820152603960248201527f4d504d583a205573657220486173205573656420557020416c6c20416c6c6f6360448201527f6174696f6e20466f7220546869732053616c6520496e64657800000000000000606482015260840161194f565b6000611fc7614311565b90506000611fd58783615afe565b601554909150840361201357601e829055612013601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000169055565b803410156120635760405162461bcd60e51b815260206004820152601960248201527f4d504d583a20496e76616c696420606d73672e76616c75656000000000000000604482015260640161194f565b8034111561207e5761207e336120798334615aeb565b6146e5565b600061208b88600a615afe565b9050600061209860025490565b905060005b898110156120e45760296120b282600a615afe565b6120bc9084615c23565b81546001810183556000928352602090922090910155806120dc81615ad1565b91505061209d565b506120ef33836147c0565b601d86905533600081815260256020908152604091829020889055815192835282018b905234828201526060820185905260808201889052517f773fcbdf88ade4673804d7b1aa956c3ccbe8f146c50451e771f960f7dba34bc09181900360a00190a150506001600b5550505050505050565b6113be83838360405180602001604052806000815250613425565b612185614220565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b6060806000601a6002015467ffffffffffffffff8111156121e2576121e26157f8565b60405190808252806020026020018201604052801561220b578160200160208202803683370190505b5090506000601a6002015467ffffffffffffffff81111561222e5761222e6157f8565b604051908082528060200260200182016040528015612257578160200160208202803683370190505b509050600061226461427a565b905060005b601c548110156123105760008181526021602052604090205484516001600160a01b03909116908590839081106122a2576122a2615a73565b6001600160a01b039092166020928302919091018201526000828152602290915260409020546122d29083615afe565b6000828152602360205260409020546122eb9190615aeb565b8382815181106122fd576122fd615a73565b6020908102919091010152600101612269565b509194909350915050565b60008060008061232961427a565b905060005b601c54811015612365576000818152602260209081526040808320546023909252909120549083029003929092019160010161232e565b509093478590039350915050565b61237b614220565b602a80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b602981815481106123ca57600080fd5b600091825260209091200154905081565b6002600b540361242d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161194f565b6002600b55600f544210156124845760405162461bcd60e51b815260206004820152601a60248201527f4d504d583a2053616c65204e6f74205374617274656420596574000000000000604482015260640161194f565b60115460ff168061249c5750601154610100900460ff165b6124e85760405162461bcd60e51b815260206004820152601560248201527f4d504d583a2053616c65204e6f74204163746976650000000000000000000000604482015260640161194f565b600e54601a546124f9908590615c23565b111561251257601a54600e5461250f9190615aeb565b92505b601a54600090612523908590615c23565b600e549091508111156125785760405162461bcd60e51b815260206004820152600e60248201527f4d504d583a20536f6c64204f7574000000000000000000000000000000000000604482015260640161194f565b33600090815260246020526040812054612593908690615c23565b9050600085116125e55760405162461bcd60e51b815260206004820152601660248201527f4d504d583a20496e636f727265637420416d6f756e7400000000000000000000604482015260640161194f565b601154610100900460ff16156126d757612606338585600c6006015461464a565b6126785760405162461bcd60e51b815260206004820152602760248201527f4d504d583a204d65726b6c653a2055736572204973204e6f74204f6e2042726960448201527f6768744c69737400000000000000000000000000000000000000000000000000606482015260840161194f565b336000908152602660205260409020548111156126d75760405162461bcd60e51b815260206004820152601960248201527f4d504d583a20416c6c6f636174696f6e204f766572666c6f7700000000000000604482015260640161194f565b60006126e161427a565b905060006126ef8783615afe565b9050803410156127415760405162461bcd60e51b815260206004820152601f60248201527f4d504d583a20496e636f72726563742045544820416d6f756e742053656e7400604482015260640161194f565b8034111561275757612757336120798334615aeb565b601c80546000908152602360209081526040808320859055835483526021825280832080547fffffffffffffffffffffffff000000000000000000000000000000000000000016331790558354835260229091529020889055546127bc906001615c23565b601c55601a848155336000908152602460205260409020849055600e54905411156128295760405162461bcd60e51b815260206004820152600e60248201527f4d504d583a204f766572666c6f77000000000000000000000000000000000000604482015260640161194f565b600e54601a540361286657601b829055612866601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000169055565b61287033886147c0565b60408051338152602081018990523481830152606081018390526080810186905290517f5f5252e81556cf80e49da97ac40f17af2fb3b00e318b675ae93089f555bfa3809181900360a00190a150506001600b555050505050565b6128ef60405180606001604052806060815260200160608152602001600081525090565b6040805161014d8082526129c08201909252600091602082016129a0803683370190505090506000805b61014d811015612a7357602a546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526101009091046001600160a01b031690636352211e90602401602060405180830381865afa9250505080156129a5575060408051601f3d908101601f191682019092526129a291810190615c36565b60015b15612a6b5750602a546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b038781169261010090041690636352211e90602401602060405180830381865afa158015612a14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a389190615c36565b6001600160a01b031603612a6b5780838381518110612a5957612a59615a73565b60209081029190910101526001909101905b600101612919565b5060008167ffffffffffffffff811115612a8f57612a8f6157f8565b604051908082528060200260200182016040528015612ab8578160200160208202803683370190505b50905060008267ffffffffffffffff811115612ad657612ad66157f8565b604051908082528060200260200182016040528015612aff578160200160208202803683370190505b50905060005b83811015612b975760206000868381518110612b2357612b23615a73565b6020026020010151815260200190815260200160002054838281518110612b4c57612b4c615a73565b602002602001018181525050848181518110612b6a57612b6a615a73565b6020026020010151828281518110612b8457612b84615a73565b6020908102919091010152600101612b05565b50604080516060810182529182526020820192909252601b5491810191909152949350505050565b6000612bca82614975565b5192915050565b601f6020526000908152604090208054612bea90615a26565b80601f0160208091040260200160405190810160405280929190818152602001828054612c1690615a26565b8015612c635780601f10612c3857610100808354040283529160200191612c63565b820191906000526020600020905b815481529060010190602001808311612c4657829003601f168201915b505050505081565b612c73614220565b602a805460ff19811660ff90911615179055565b60288054612bea90615a26565b602b5460009081906001600160a01b03163314612cf35760405162461bcd60e51b815260206004820152601d60248201527f4d504d583a2053656e646572204973204e6f74204c697665204d696e74000000604482015260640161194f565b6040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018490526000903090636352211e90602401602060405180830381865afa158015612d4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d6f9190615c36565b90506001600160a01b038116612dc75760405162461bcd60e51b815260206004820152601760248201527f4d504d583a20496e76616c696420526563697069656e74000000000000000000604482015260640161194f565b612dd2846000614afe565b6000938452602080526040909320549293915050565b60006001600160a01b038216612e2a576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b612e58614220565b612e626000614daa565b565b612e6c614220565b600154610100900460ff1615612eea5760405162461bcd60e51b815260206004820152602f60248201527f4d504d583a2043616e6e6f7420496e7374616e7469617465204e65772053657460448201527f417070726f76616c732054776963650000000000000000000000000000000000606482015260840161194f565b600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100179055565b600080612f2361427a565b612f2b614311565b915091509091565b612f3b614220565b60015460ff1615612fb45760405162461bcd60e51b815260206004820152602f60248201527f4d504d583a2043616e6e6f7420496e7374616e7469617465204e65772053657460448201527f417070726f76616c732054776963650000000000000000000000000000000000606482015260840161194f565b6001805460ff191681179055565b612fca614220565b6001600160a01b03166000908152602081905260409020805460ff19811660ff90911615179055565b612ffb614220565b602b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b61303d614220565b6016819055600f8190556040518181527f01a1275c6b737669759df0bbde4c0157e375c47ec3e2ae639907bbb69264ca939060200160405180910390a150565b613085614220565b60005b83811015613100578282828181106130a2576130a2615a73565b90506020020135602760008787858181106130bf576130bf615a73565b90506020020160208101906130d4919061547a565b6001600160a01b03168152602081019190915260400160002055806130f881615ad1565b915050613088565b5050505050565b60606005805461122b90615a26565b61311e614220565b601b55565b61312b614220565b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b336001600160a01b038316036131a7576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015460ff8082161515600090815260096020908152604080832061010090950490931615158252928352818120338083529084528282206001600160a01b03871680845290855291839020805460ff19168615159081179091559251928352909290917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6132a660405180610180016040528060008152602001600081526020016000815260200160008152602001600015158152602001600015158152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b6011546000908190610100900460ff16806132c3575060115460ff165b1580156132df5750601a54600e546000916132dd91615aeb565b115b156132e957600191505b601854610100900460ff1680613301575060185460ff165b15801561331d5750601d5460155460009161331b91615aeb565b115b15613326575060015b60405180610180016040528061333a61427a565b81526001600160a01b038a1660008181526024602090815260408083205482860152928252602690528190205490820152601a54600e546060909201916133819190615aeb565b81526020016133978a8a8a600c6006015461464a565b1515815260200183151581526020016133ae614311565b81526001600160a01b038a1660008181526025602090815260408083205482860152928252602790528190205490820152601d546015546060909201916133f59190615aeb565b815260200161340b8a888860136006015461464a565b151581526020018215158152509250505095945050505050565b6134308484846143a8565b6001600160a01b0383163b156134825761344c84848484614e14565b613482576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b613490614220565b600d55565b61349d614220565b60005b83811015613100578282828181106134ba576134ba615a73565b90506020020135602660008787858181106134d7576134d7615a73565b90506020020160208101906134ec919061547a565b6001600160a01b031681526020810191909152604001600020558061351081615ad1565b9150506134a0565b606061352382614167565b613559576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000613563614f5f565b9050805160000361358357604051806020016040528060008152506135ae565b8061358d84614f6e565b60405160200161359e929190615c53565b6040516020818303038152906040525b9392505050565b604080516103e8808252617d2082019092526060916000919060208201617d008036833701905050905060005b6103e8811015611558576000818152602080526040902054825183908390811061360e5761360e615a73565b60209081029190910101528061362381615ad1565b9150506135e2565b613633614220565b60005b8181101561310057846001600160a01b03166323b872dd308686868681811061366157613661615a73565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156136d057600080fd5b505af11580156136e4573d6000803e3d6000fd5b5050600190920191506136369050565b6136fc614220565b6018805460ff19811660ff90911615179055565b613718614220565b60005b8181101561376a5782828281811061373557613735615a73565b90506020028101906137479190615caa565b6000838152601f6020526040902091613761919083615b63565b5060010161371b565b50600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790556040517fc5a8248bdf1cb5cb1f04091ae34d1ad3a57dcc23ff22e321b87b1a9a54be339490611894908690869086908690615d3a565b6137d5614220565b60005b81811015613814578282828181106137f2576137f2615a73565b60008481526020808052604090912091029290920135909155506001016137d8565b506001805460ff1916811790556040517f1b1c02440430742ef34f9e52ad1c88b622a1f1abf44f49bd7aa08c3b47c54ff790611894908690869086908690615e54565b61385f614220565b6011805460ff19811660ff90911615179055565b6040805160808101825260608082526020808301829052600083850181905291830182905283516103e8808252617d2082019095529293919291908201617d00803683370190505090506000805b6103e8811015613998576138d481614167565b15613990576040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018290526001600160a01b038616903090636352211e90602401602060405180830381865afa158015613939573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061395d9190615c36565b6001600160a01b031603613990578083838151811061397e5761397e615a73565b60209081029190910101526001909101905b6001016138c1565b5060008167ffffffffffffffff8111156139b4576139b46157f8565b6040519080825280602002602001820160405280156139dd578160200160208202803683370190505b50905060008267ffffffffffffffff8111156139fb576139fb6157f8565b604051908082528060200260200182016040528015613a24578160200160208202803683370190505b50905060005b83811015613abc5760206000868381518110613a4857613a48615a73565b6020026020010151815260200190815260200160002054838281518110613a7157613a71615a73565b602002602001018181525050848181518110613a8f57613a8f615a73565b6020026020010151828281518110613aa957613aa9615a73565b6020908102919091010152600101613a2a565b5060408051608081018252918252602082019290925260015460ff808216151593830193909352610100900490911615156060820152949350505050565b613b02614220565b601980549082905560408051828152602081018490527f123d88ba82600dfc3f219f8885c691b0ff020caa535666874b3f5174973757fe91015b60405180910390a15050565b613b50614220565b601455565b613b5d614220565b600081118015613b6d5750478111155b613bb95760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420416d6f756e74000000000000000000000000000000000000604482015260640161194f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613c06576040519150601f19603f3d011682016040523d82523d6000602084013e613c0b565b606091505b50509050806113be5760405162461bcd60e51b815260206004820152602f60248201527f556e61626c6520746f2057697468647261772c20526563697069656e74204d6160448201527f7920486176652052657665727465640000000000000000000000000000000000606482015260840161194f565b613c8a614220565b6001600160a01b038116613d065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161194f565b6113f781614daa565b6002600b5403613d615760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161194f565b6002600b55601b54613ddb5760405162461bcd60e51b815260206004820152602b60248201527f4d504d583a2046696e616c20447574636820436c656172696e6720507269636560448201527f204e6f7420536565646564000000000000000000000000000000000000000000606482015260840161194f565b602a5460ff16613e2d5760405162461bcd60e51b815260206004820152601e60248201527f4d504d583a204f7074696f6e20436c61696d73204e6f74204163746976650000604482015260640161194f565b601b54613e3b908290615afe565b3414613e895760405162461bcd60e51b815260206004820152601b60248201527f4d504d583a20496e76616c6964204d6573736167652056616c75650000000000604482015260640161194f565b60005b818110156140dc57602a54339061010090046001600160a01b0316636352211e858585818110613ebe57613ebe615a73565b905060200201356040518263ffffffff1660e01b8152600401613ee391815260200190565b602060405180830381865afa158015613f00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f249190615c36565b6001600160a01b031614613fa05760405162461bcd60e51b815260206004820152602860248201527f4552433732313a205573657220446f6573204e6f74204f776e204f7074696f6e60448201527f20546f6b656e4944000000000000000000000000000000000000000000000000606482015260840161194f565b602a5461010090046001600160a01b03166391c6c36a848484818110613fc857613fc8615a73565b905060200201356040518263ffffffff1660e01b8152600401613fed91815260200190565b600060405180830381600087803b15801561400757600080fd5b505af115801561401b573d6000803e3d6000fd5b50505050306001600160a01b03166323b872dd303386868681811061404257614042615a73565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156140b157600080fd5b505af11580156140c5573d6000803e3d6000fd5b5050505080806140d490615ad1565b915050613e8c565b507f513b8168de8fbc704ca87544ae842eb6c5cc715a88fdff9bf5720c9e5806a20882823360405161411093929190615e86565b60405180910390a150506001600b55565b614129614220565b601280549082905560408051828152602081018490527f123d88ba82600dfc3f219f8885c691b0ff020caa535666874b3f5174973757fe9101613b3c565b6000600254821080156112165750506000908152600660205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526008602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600a546001600160a01b03163314612e625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161194f565b601654600090421161428d5750600c5490565b601b541561429c5750601b5490565b600c54600f546000906142af9042615aeb565b6010549091506142bf9082615ee2565b60105492901c916002906142d38184615ef6565b6142dd9085615afe565b6142e79190615ee2565b6142f19190615ee2565b6142fb9083615aeb565b600d549092508211611558575050600d54919050565b6016546000904211614324575060135490565b601e54156143335750601e5490565b6013546016546000906143469042615aeb565b6017549091506143569082615ee2565b60175492901c9160029061436a8184615ef6565b6143749085615afe565b61437e9190615ee2565b6143889190615ee2565b6143929083615aeb565b6014549092508211611558575050601454919050565b60006143b382614975565b9050836001600160a01b031681600001516001600160a01b031614614404576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061442257506144228533611008565b8061443d575033614432846112ae565b6001600160a01b0316145b905080614476576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166144b6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6144c2600084876141ac565b6001600160a01b03858116600090815260076020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080547fffffffff00000000000000000000000000000000000000000000000000000000169094177401000000000000000000000000000000000000000042909216919091021783558701808452922080549193909116614601576002548214614601578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613100565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606086901b16602082015260009081906034016040516020818303038152906040528051906020012090506146d98585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508792508591506150a39050565b9150505b949350505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614732576040519150601f19603f3d011682016040523d82523d6000602084013e614737565b606091505b50509050806147885760405162461bcd60e51b815260206004820152601360248201527f4d504d583a20526566756e64206661696c656400000000000000000000000000604482015260640161194f565b6040518281527f3d2a04f53164bedf9a8a46353305d6b2d2261410406df3b41f99ce6489dc003c9060200160405180910390a1505050565b6002546001600160a01b038316614803576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160000361483d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260076020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168a018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168a01811690920217909155858452600690925290912080547fffffffff0000000000000000000000000000000000000000000000000000000016909217740100000000000000000000000000000000000000004290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106149295750600255505050565b604080516060810182526000808252602082018190529181019190915281600254811015614acc57600081815260066020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff16151591810182905290614aca5780516001600160a01b031615614a36579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215614ac5579392505050565b614a36565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000614b0983614975565b80519091508215614ba2576000336001600160a01b0383161480614b325750614b328233611008565b80614b4d575033614b42866112ae565b6001600160a01b0316145b80614b6757503260009081526020819052604090205460ff165b905080614ba0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b614bae600085836141ac565b6001600160a01b038082166000818152600760209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff8084169190910181167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600690945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff4290931674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090911690971796909617167c0100000000000000000000000000000000000000000000000000000000178555918901808452922080549194909116614d5f576002548214614d5f578054602087015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506003805460010190555050565b600a80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a0290614e62903390899088908890600401615f0a565b6020604051808303816000875af1925050508015614e9d575060408051601f3d908101601f19168201909252614e9a91810190615f3c565b60015b614f14573d808015614ecb576040519150601f19603f3d011682016040523d82523d6000602084013e614ed0565b606091505b508051600003614f0c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506146dd565b60606028805461122b90615a26565b606081600003614fb157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115614fdb5780614fc581615ad1565b9150614fd49050600a83615ee2565b9150614fb5565b60008167ffffffffffffffff811115614ff657614ff66157f8565b6040519080825280601f01601f191660200182016040528015615020576020820181803683370190505b5090505b84156146dd57615035600183615aeb565b9150615042600a86615ef6565b61504d906030615c23565b60f81b81838151811061506257615062615a73565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061509c600a86615ee2565b9450615024565b6000826150b085846150b9565b14949350505050565b600081815b84518110156114a9576150ea828683815181106150dd576150dd615a73565b60200260200101516150fe565b9150806150f681615ad1565b9150506150be565b600081831061511a5760008281526020849052604090206135ae565b5060009182526020526040902090565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146113f757600080fd5b60006020828403121561516a57600080fd5b81356135ae8161512a565b60006020828403121561518757600080fd5b5035919050565b60005b838110156151a9578181015183820152602001615191565b50506000910152565b600081518084526151ca81602086016020860161518e565b601f01601f19169290920160200192915050565b6020815260006135ae60208301846151b2565b6001600160a01b03811681146113f757600080fd5b6000806040838503121561521957600080fd5b8235615224816151f1565b946020939093013593505050565b60008083601f84011261524457600080fd5b50813567ffffffffffffffff81111561525c57600080fd5b6020830191508360208260051b850101111561527757600080fd5b9250929050565b6000806020838503121561529157600080fd5b823567ffffffffffffffff8111156152a857600080fd5b6152b485828601615232565b90969095509350505050565b600081518084526020808501945080840160005b838110156152f0578151875295820195908201906001016152d4565b509495945050505050565b6020815260006135ae60208301846152c0565b610340810161536a8286805182526020810151602083015260408101516040830152606081015160608301526080810151608083015260a0810151151560a083015260c0810151151560c083015260e081015160e08301525050565b835161010083810191909152602085015161012084015260408501516101408401526060850151610160840152608085015161018084015260a085015115156101a084015260c085015115156101c084015260e08501516101e08401528351610200840152602084015161022084015260408401516102408401526060840151610260840152608084015161028084015260a08401516102a084015260c08401516102c084015260e08401516102e0840152830151610300830152610120909201516103209091015292915050565b60008060006060848603121561544e57600080fd5b8335615459816151f1565b92506020840135615469816151f1565b929592945050506040919091013590565b60006020828403121561548c57600080fd5b81356135ae816151f1565b600080604083850312156154aa57600080fd5b50508035926020909101359150565b60008083601f8401126154cb57600080fd5b50813567ffffffffffffffff8111156154e357600080fd5b60208301915083602082850101111561527757600080fd5b6000806020838503121561550e57600080fd5b823567ffffffffffffffff81111561552557600080fd5b6152b4858286016154b9565b60008060006040848603121561554657600080fd5b83359250602084013567ffffffffffffffff81111561556457600080fd5b61557086828701615232565b9497909650939450505050565b604080825283519082018190526000906020906060840190828701845b828110156155bf5781516001600160a01b03168452928401929084019060010161559a565b505050838103828501526155d381866152c0565b9695505050505050565b6020815260008251606060208401526155f960808401826152c0565b90506020840151601f1984830301604085015261561682826152c0565b915050604084015160608401528091505092915050565b6000806000806040858703121561564357600080fd5b843567ffffffffffffffff8082111561565b57600080fd5b61566788838901615232565b9096509450602087013591508082111561568057600080fd5b5061568d87828801615232565b95989497509550505050565b600080604083850312156156ac57600080fd5b82356156b7816151f1565b9150602083013580151581146156cc57600080fd5b809150509250929050565b6000806000806000606086880312156156ef57600080fd5b85356156fa816151f1565b9450602086013567ffffffffffffffff8082111561571757600080fd5b61572389838a01615232565b9096509450604088013591508082111561573c57600080fd5b5061574988828901615232565b969995985093965092949392505050565b600061018082019050825182526020830151602083015260408301516040830152606083015160608301526080830151615798608084018215159052565b5060a08301516157ac60a084018215159052565b5060c0838101519083015260e080840151908301526101008084015190830152610120808401519083015261014080840151151590830152610160928301511515929091019190915290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561583d57600080fd5b8435615848816151f1565b93506020850135615858816151f1565b925060408501359150606085013567ffffffffffffffff8082111561587c57600080fd5b818701915087601f83011261589057600080fd5b8135818111156158a2576158a26157f8565b604051601f8201601f19908116603f011681019083821181831017156158ca576158ca6157f8565b816040528281528a60208487010111156158e357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000806060858703121561591d57600080fd5b8435615928816151f1565b93506020850135615938816151f1565b9250604085013567ffffffffffffffff81111561595457600080fd5b61568d87828801615232565b6000806000806040858703121561597657600080fd5b843567ffffffffffffffff8082111561598e57600080fd5b615667888389016154b9565b6020815260008251608060208401526159b660a08401826152c0565b90506020840151601f198483030160408501526159d382826152c0565b9150506040840151151560608401526060840151151560808401528091505092915050565b60008060408385031215615a0b57600080fd5b8235615a16816151f1565b915060208301356156cc816151f1565b600181811c90821680615a3a57607f821691505b602082108103611558577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006000198203615ae457615ae4615aa2565b5060010190565b8181038181111561121657611216615aa2565b808202811582820484141761121657611216615aa2565b601f8211156113be57600081815260208120601f850160051c81016020861015615b3c5750805b601f850160051c820191505b81811015615b5b57828155600101615b48565b505050505050565b67ffffffffffffffff831115615b7b57615b7b6157f8565b615b8f83615b898354615a26565b83615b15565b6000601f841160018114615bc35760008515615bab5750838201355b600019600387901b1c1916600186901b178355613100565b600083815260209020601f19861690835b82811015615bf45786850135825560209485019460019092019101615bd4565b5086821015615c115760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8082018082111561121657611216615aa2565b600060208284031215615c4857600080fd5b81516135ae816151f1565b60008351615c6581846020880161518e565b835190830190615c7981836020880161518e565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112615cdf57600080fd5b83018035915067ffffffffffffffff821115615cfa57600080fd5b60200191503681900382131561527757600080fd5b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b604081526000615d4e604083018688615d0f565b602083820381850152818583528183019050818660051b8401018760005b88811015615df957601f1986840301845281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18b3603018112615daf57600080fd5b8a01858101903567ffffffffffffffff811115615dcb57600080fd5b803603821315615dda57600080fd5b615de5858284615d0f565b958701959450505090840190600101615d6c565b50909a9950505050505050505050565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115615e3b57600080fd5b8260051b80836020870137939093016020019392505050565b604081526000615e68604083018688615d0f565b8281036020840152615e7b818587615e09565b979650505050505050565b604081526000615e9a604083018587615e09565b90506001600160a01b0383166020830152949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082615ef157615ef1615eb3565b500490565b600082615f0557615f05615eb3565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526155d360808301846151b2565b600060208284031215615f4e57600080fd5b81516135ae8161512a56fea26469706673582212207f5f0ebef1a7368ec047c2768a67e041a7ea3183011b50476288a24d3a997b8464736f6c63430008110033697066733a2f2f516d555a39435262464c74446138776d434c5533545855743557724a4d33324d397736524c463731377979654e4d2f

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

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