Source Code
Latest 25 from a total of 2,872 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Redeem Artist Pa... | 15246368 | 1195 days ago | IN | 0 ETH | 0.00109682 | ||||
| _Live Mint Artis... | 15246360 | 1195 days ago | IN | 0 ETH | 0.00298983 | ||||
| _Live Mint Artis... | 15246120 | 1195 days ago | IN | 0 ETH | 0.00212567 | ||||
| _Live Mint Artis... | 15246111 | 1195 days ago | IN | 0 ETH | 0.00273207 | ||||
| _Live Mint Artis... | 15246110 | 1195 days ago | IN | 0 ETH | 0.00271033 | ||||
| _Live Mint Artis... | 15246110 | 1195 days ago | IN | 0 ETH | 0.00280743 | ||||
| _Live Mint Artis... | 15246108 | 1195 days ago | IN | 0 ETH | 0.00299004 | ||||
| _Live Mint Artis... | 15246108 | 1195 days ago | IN | 0 ETH | 0.00309716 | ||||
| _Live Mint Artis... | 15246107 | 1195 days ago | IN | 0 ETH | 0.00288157 | ||||
| _Live Mint Artis... | 15246106 | 1195 days ago | IN | 0 ETH | 0.0028345 | ||||
| _Live Mint Artis... | 15246106 | 1195 days ago | IN | 0 ETH | 0.0028345 | ||||
| _Live Mint Artis... | 15246106 | 1195 days ago | IN | 0 ETH | 0.00293605 | ||||
| _Live Mint Artis... | 15246106 | 1195 days ago | IN | 0 ETH | 0.0028345 | ||||
| _Live Mint Artis... | 15246106 | 1195 days ago | IN | 0 ETH | 0.0028345 | ||||
| _Live Mint Artis... | 15246106 | 1195 days ago | IN | 0 ETH | 0.00293605 | ||||
| _Live Mint Artis... | 15246106 | 1195 days ago | IN | 0 ETH | 0.0028345 | ||||
| _Live Mint Artis... | 15246093 | 1195 days ago | IN | 0 ETH | 0.0031938 | ||||
| _Live Mint Artis... | 15246091 | 1195 days ago | IN | 0 ETH | 0.00340454 | ||||
| _Live Mint Artis... | 15246088 | 1195 days ago | IN | 0 ETH | 0.00280728 | ||||
| Redeem Artist Pa... | 15246088 | 1195 days ago | IN | 0 ETH | 0.00082855 | ||||
| _Live Mint Artis... | 15246087 | 1195 days ago | IN | 0 ETH | 0.0026959 | ||||
| _Live Mint Artis... | 15246087 | 1195 days ago | IN | 0 ETH | 0.0026959 | ||||
| _Live Mint Artis... | 15246086 | 1195 days ago | IN | 0 ETH | 0.00306812 | ||||
| _Live Mint Artis... | 15246085 | 1195 days ago | IN | 0 ETH | 0.00281665 | ||||
| _Live Mint Artis... | 15246085 | 1195 days ago | IN | 0 ETH | 0.00281665 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
CryptoCitizenLiveMint
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT-BROUGKR
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/**
* @dev: @brougkr
*/
pragma solidity 0.8.14;
import {IERC721} from '@openzeppelin/contracts/interfaces/IERC721.sol';
import {ERC721} from '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import {IERC20} from '@openzeppelin/contracts/interfaces/IERC20.sol';
import {Pausable} from '@openzeppelin/contracts/security/Pausable.sol';
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 {IArtBlocks} from './IArtBlocks.sol';
import {IRandomEdition} from './IRandomEdition.sol';
contract CryptoCitizenLiveMint is Ownable, Pausable, ReentrancyGuard
{
/*-------------------*/
/* STATE VARIABLES */
/*-------------------*/
bytes32 private immutable _MINTER_ROLE = keccak256("MINTER_ROLE"); // Minter Role
bytes32 private immutable _DEACTIVATED_ROLE = keccak256("DELISTED_ROLE"); // Deactivated Role
address public immutable _BRTMULTISIG = 0xcff43A597911a9457071d89d2b2AC3D5b1862b86; // BRT Multisig Burn Address (mint.brightmoments.eth)
address public _ERC20_BRT_Token = 0x9EaFE760bC0eb62f0f9c5DCa18012478d9d8B2D2; // BRT ERC-20 Contract Address
address public _ArtBlocksMintingContractCitizens = 0xDd06d8483868Cd0C5E69C24eEaA2A5F2bEaFd42b; // ArtBlocks Minting Contract Citizens
address public _ArtBlocksMintingContractArtists = 0x7b9a45E278b5B374bb2d96C65665d4360C97BF01; // ArtBlocks Minting Contract Artists
address public _ArtBlocksCoreContractCitizens = 0xbDdE08BD57e5C9fD563eE7aC61618CB2ECdc0ce0; // ArtBlocks Citizen NFT Collection Contract Address
address public _ArtBlocksCoreContractArtists = 0x0A1BBD57033F57E7B6743621b79fCB9Eb2CE3676; // ArtBlocks Artist NFT Collection Contract Address
address public _GoldenToken = 0xC2A3c3543701009d36C0357177a62E0F6459e8A9; // Golden Token Contract Address
uint public _ArtBlocksProjectID = 4; // ArtBlocks Project ID
uint public _CurrentCityIndex; // Current City Index
uint _QRIndex = 333; // QR Code Index
bytes32 public Root = 0x6d206441d8e1510b00e84caaba4a2c7bf848f36f10a5b11d04379bc457d1124b; // Merkle Root
/*-------------------*/
/* MAPPINGS */
/*-------------------*/
mapping(uint => mapping(address => bool)) public RedeemedQR; // Returns If User Has BrightList Minted NFT
mapping(uint => mapping(address => uint)) public QRAllocation; // Returns User's QR Code Allocation
mapping(uint => mapping(uint => mapping(uint => address))) public BrightListArtist; // Returns Address Of Minting Receiver For Artist Mint
mapping(uint => mapping(uint => mapping(uint => uint))) public SelectedTimeSlotArtistMintPass; // Returns Selected TimeSlot Corresponding To Artist Mint Pass
mapping(uint => mapping(uint => mapping(uint => bool))) public DelegateStatusArtist; // Returns Delegate Status Of Artist TicketID
mapping(uint => mapping(uint => mapping(uint => bool))) public MintedArtist; // Returns Boolean If Artist MintPass ID Has Minted Or Not
mapping(uint => mapping(uint => address)) public BrightListCitizen; // Returns Address Of Minting Receiver For CryptoCitizen Mint
mapping(uint => mapping(uint => address)) public ArtistMintPasses; // Returns Contract Address Of Artist Mint Pass NFT
mapping(uint => mapping(uint => address)) public ArtistContracts; // Returns Contract Address Of Artist Collection NFT
mapping(uint => mapping(uint => bool)) public MintType; // Artist Mint Type (true for ArtBlocks | false for Random Edition)
mapping(uint => mapping(uint => uint)) public BookingsAvailable; // Returns Amount Of Bookings Available For Input TimeSlot
mapping(uint => mapping(uint => uint)) public SelectedTimeSlotGoldenTicket; // Returns Selected TimeSlot Corresponding To Golden Ticket
mapping(uint => mapping(uint => bool)) public MintedCitizen; // Returns Boolean If Golden Ticket ID Has Minted Or Not
mapping(uint => mapping(uint => bool)) public DelegateStatusCitizen; // Returns Delegate Status Of Citizen TicketID
mapping(address => bytes32) private Role; // BRT Minter Role Mapping
/*-------------------*/
/* EVENTS */
/*-------------------*/
/**
* @dev Emitted When `Redeemer` IRL-mints CryptoCitizen Corresponding To Their Redeemed `TicketID`.
**/
event LiveMintComplete(address indexed Redeemer, uint TicketID, uint TokenID, bool Delegate);
/**
* @dev Emitted When `Redeemer` IRL-Mints Artist Corresponding To `ArtistID`
*/
event LiveMintCompleteArtist(address indexed Redeemer, uint ArtistID, uint TicketID, uint TokenID, bool Delegate);
/**
* @dev Emitted When `Redeemer` Redeems Golden Token Corresponding To `TicketID`
**/
event GoldenTokenRedeemed(address indexed Redeemer, uint TicketID, uint Slot, bool Delegate);
/**
* @dev Emitted When `Redeemer` Redeems Golden Token Corresponding To `TicketID`
**/
event QRRedeemed(address indexed Redeemer, uint TicketID, uint Slot);
/**
* @dev Emitted When `Redeemer` Redeems Artist Mint Pass Corresponding To `TicketID`
*/
event ArtistMintPassRedeemed(address indexed Redeemer, uint ArtistID, uint TicketID, uint Slot, bool Delegate);
/**
* @dev Emitted When `NewMinter` Is Added To BRT Minter List
*/
event MinterAdded(address NewMinter);
/**
* @dev Emitted When `RemovedMinter` Is Removed From BRT Minter List
*/
event MinterRemoved(address RemovedMinter);
/**
* @dev Emitted When `NewProjectID` Replaces `OldProjectID`
*/
event ModifiedProjectID(uint OldProjectID, uint NewProjectID);
/**
* @dev Emitted When `NewMintingAddress` Replaces `OldMintingAddress`
*/
event ArtBlocksMintingAddressChanged(address OldMintingAddress, address NewMintingAddress);
/**
* @dev Emitted When `NewCoreAddress` Replaces `OldCoreAddress` For ArtBlocks Citizen Mints
*/
event ArtBlocksCoreAddressChanged(address OldCoreAddress, address NewCoreAddress);
/**
* @dev Emitted When `NewCoreAddress` Replaces `OldCoreAddress` For ArtBlocks Artist Mints
*/
event ArtBlocksCoreAddressChangedArtist(address OldCoreAddress, address NewCoreAddress);
/**
* @dev Emitted When `NewGTAddress` Replaces `OldGTAddress`
*/
event GoldenTokenAddressChanged(address OldGTAddress, address NewGTAddress);
/**
* @dev Emitted When `NewERC20Address` Replaces `OldERC20Address`
*/
event ERC20AddressChanged(address OldERC20Address, address NewERC20Address);
/**
* @dev Emitted When `NewIndex` Replaces `OldIndex`
*/
event CurrentCityIndexChanged(uint OldIndex, uint NewIndex);
/**
* @dev Emitted When Singular Timeslot Changes From `OldAmount` to `NewAmount`
*/
event TimeSlotChanged(uint OldAmount, uint NewAmount);
/**
* @dev Emitted When Multiple Timeslot Changes Occur
*/
event TimeSlotsChanged(uint[] Slots, uint[] Amounts);
/**
* @dev Emitted When Artist Contract Address Changes
*/
event ArtistContractAddressChanged(address OldContractAddress, address NewContractAddress);
/**
* @dev Emitted When Artist Mint Type Changes
*/
event ArtistMintTypeChanged(bool OldMintType, bool NewMintType);
/**
* @dev Emitted When Multisig Address Changes
*/
event MultisigAddressChanged(address OldAddress, address NewAddress);
/**
* @dev Emitted When New City State Variables Are Modified
*/
event NewCityStarted(
address ERC20_BRT_TokenAddress,
address ArtBlocksMintingContractAddress,
address ArtBlocksCoreContractAddressCitizen,
address ArtBlocksCoreContractAddressArtist,
address GoldenTokenAddress,
uint ArtBlocksProjectID,
uint CurrentCityIndex,
uint QRIndex
);
/**
* @dev Emitted When New Artists Are Seeded Into The Contract
*/
event NewArtists(uint[] ArtistIDs, address[] MintPasses, address[] MintingAddresses, bool[] MintTypes);
/**
* @dev Emitted When Merkle Root Is Changed
*/
event MerkleRootChanged(bytes32 OldRoot, bytes32 NewRoot);
/*-------------------*/
/* CONSTRUCTOR */
/*-------------------*/
/**
* @dev Pre-Approves 1000 BRT For Purchasing, Grants BRT Minter Roles, & Transfers Ownership To BRT Multisig
**/
constructor()
{
Role[0x1A0a3E3AE390a0710f8A6d00587082273eA8F6C9] = _MINTER_ROLE; // BRT Minter #1
Role[0x4d8013b0c264034CBf22De9DF33e22f58D52F207] = _MINTER_ROLE; // BRT Minter #2
Role[0x4D9A8CF2fE52b8D49C7F7EAA87b2886c2bCB4160] = _MINTER_ROLE; // BRT Minter #3
Role[0x124fd966A0D83aA020D3C54AE2c9f4800b46F460] = _MINTER_ROLE; // BRT Minter #4
Role[0x100469feA90Ac1Fe1073E1B2b5c020A8413635c4] = _MINTER_ROLE; // BRT Minter #5
Role[0x756De4236373fd17652b377315954ca327412bBA] = _MINTER_ROLE; // BRT Minter #6
Role[0xc5Dfba6ef7803665C1BDE478B51Bd7eB257A2Cb9] = _MINTER_ROLE; // BRT Minter #7
Role[0xFBF32b29Bcf8fEe32d43a4Bfd3e7249daec457C0] = _MINTER_ROLE; // BRT Minter #8
Role[0xF2A15A83DEE7f03C70936449037d65a1C100FF27] = _MINTER_ROLE; // BRT Minter #9
Role[0x1D2BAB965a4bB72f177Cd641C7BacF3d8257230D] = _MINTER_ROLE; // BRT Minter #10
Role[0x2e51E8b950D72BDf003b58E357C2BA28FB77c7fB] = _MINTER_ROLE; // BRT Minter #11
Role[0x8a7186dECb91Da854090be8226222eA42c5eeCb6] = _MINTER_ROLE; // BRT Minter #12
BookingsAvailable[_CurrentCityIndex][20220701] = 100;
BookingsAvailable[_CurrentCityIndex][20220703] = 100;
BookingsAvailable[_CurrentCityIndex][20220706] = 100;
BookingsAvailable[_CurrentCityIndex][20220708] = 100;
BookingsAvailable[_CurrentCityIndex][20220709] = 100;
BookingsAvailable[_CurrentCityIndex][20220713] = 100;
BookingsAvailable[_CurrentCityIndex][20220715] = 100;
BookingsAvailable[_CurrentCityIndex][20220716] = 100;
BookingsAvailable[_CurrentCityIndex][20220720] = 100;
BookingsAvailable[_CurrentCityIndex][20220722] = 100;
BookingsAvailable[_CurrentCityIndex][20220723] = 100;
BookingsAvailable[_CurrentCityIndex][20220727] = 100;
BookingsAvailable[_CurrentCityIndex][20220729] = 100;
BookingsAvailable[_CurrentCityIndex][20220730] = 100;
ArtistMintPasses[_CurrentCityIndex][7] = 0x40ee4A63f6773D06F70629962AfCF52Af9AB38ed;
ArtistMintPasses[_CurrentCityIndex][8] = 0x85885ADeD016Ba8a88593338928C88D99316ace9;
ArtistMintPasses[_CurrentCityIndex][9] = 0x2E42CcE2b828f2176013075F37f7b64dF378fB45;
ArtistMintPasses[_CurrentCityIndex][10] = 0xD0Ca41E0098Ffa698d9a4d33b61006a490678d94;
ArtistMintPasses[_CurrentCityIndex][11] = 0xB22c69E6Ca346051F20207dB031810B596838138;
ArtistMintPasses[_CurrentCityIndex][12] = 0x373E6C537F0CD423948694a93Ec1DfE5eB06eFfe;
IERC20(_ERC20_BRT_Token).approve( // CryptoCitizens
_ArtBlocksMintingContractCitizens,
0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff // Maximum Approval
);
IERC20(0x3dF1a91Fa71c24C8c52afcE62dbA54351CBA7a63).approve( // MPLC
_ArtBlocksMintingContractArtists,
0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff // Maximum Approval
);
}
/*-------------------*/
/* PUBLIC FUNCTIONS */
/*-------------------*/
/**
* @dev Redeems Golden Token & BrightLists Address To Receive CryptoCitizen
**/
function RedeemGT(uint TicketID, uint TimeSlot, bool Delegate) public nonReentrant whenNotPaused
{
require(BookingsAvailable[_CurrentCityIndex][TimeSlot] > 0, "LiveMint: TimeSlot Fully Booked");
require(IERC721(_GoldenToken).ownerOf(TicketID) == msg.sender, "ERC721: Sender Does Not Own Token With The Input Token ID");
IERC721(_GoldenToken).transferFrom(msg.sender, _BRTMULTISIG, TicketID);
require(IERC721(_GoldenToken).ownerOf(TicketID) == _BRTMULTISIG, "ERC721: Golden Token Redemption Failed");
BookingsAvailable[_CurrentCityIndex][TimeSlot]--;
SelectedTimeSlotGoldenTicket[_CurrentCityIndex][TicketID] = TimeSlot;
BrightListCitizen[_CurrentCityIndex][TicketID] = msg.sender;
DelegateStatusCitizen[_CurrentCityIndex][TicketID] = Delegate;
emit GoldenTokenRedeemed(msg.sender, TicketID, TimeSlot, Delegate);
}
/**
* @dev Redeems Artist Mint Pass & BrightLists Address To Receive Artist Mint
**/
function RedeemArtistPass(uint ArtistID, uint TicketID, uint TimeSlot, bool Delegate) public nonReentrant whenNotPaused
{
require(BookingsAvailable[_CurrentCityIndex][TimeSlot] > 0, "LiveMint: TimeSlot Fully Booked");
address ArtistMintPass = resolveArtistMintPass(ArtistID);
require(IERC721(ArtistMintPass).ownerOf(TicketID) == msg.sender, "ERC721: Sender Does Not Own Token With The Input Token ID");
IERC721(ArtistMintPass).transferFrom(msg.sender, _BRTMULTISIG, TicketID);
require(IERC721(ArtistMintPass).ownerOf(TicketID) == _BRTMULTISIG, "ERC721: Golden Token Redemption Failed");
BrightListArtist[_CurrentCityIndex][ArtistID][TicketID] = msg.sender;
SelectedTimeSlotArtistMintPass[_CurrentCityIndex][ArtistID][TicketID] = TimeSlot;
DelegateStatusArtist[_CurrentCityIndex][ArtistID][TicketID] = Delegate;
emit ArtistMintPassRedeemed(msg.sender, ArtistID, TicketID, TimeSlot, Delegate);
}
/**
* @dev Redeems Spot For IRL Minting
*/
function RedeemQR(uint TimeSlot, bytes32[] calldata Proof) public nonReentrant whenNotPaused
{
require(BookingsAvailable[_CurrentCityIndex][TimeSlot] > 0, "LiveMint: TimeSlot Fully Booked");
require(!RedeemedQR[_CurrentCityIndex][msg.sender], "LiveMint: User Has Already Redeemed");
require(QRAllocation[_CurrentCityIndex][msg.sender] == 0, "LiveMint: Use RedeemQRAllocation() Function");
require(readBrightListMerkle(msg.sender, Proof), "LiveMint: User Is Not On BrightList");
if(!RedeemedQR[_CurrentCityIndex][msg.sender]) { RedeemedQR[_CurrentCityIndex][msg.sender] = true; }
BookingsAvailable[_CurrentCityIndex][TimeSlot]--;
SelectedTimeSlotGoldenTicket[_CurrentCityIndex][_QRIndex] = TimeSlot;
BrightListCitizen[_CurrentCityIndex][_QRIndex] = msg.sender;
emit QRRedeemed(msg.sender, _QRIndex, TimeSlot);
_QRIndex++;
}
/**
* @dev Redeems QR Codes If User Has More Than 1 Allocation
*/
function RedeemQRAllocation(uint TimeSlot, bytes32[] calldata Proof) public nonReentrant whenNotPaused
{
require(BookingsAvailable[_CurrentCityIndex][TimeSlot] > 0, "LiveMint: TimeSlot Fully Booked");
require(QRAllocation[_CurrentCityIndex][msg.sender] > 0, "LiveMint: User Has No QR Allocation To Redeem");
require(readBrightListMerkle(msg.sender, Proof), "LiveMint: User Is Not On BrightList");
if(!RedeemedQR[_CurrentCityIndex][msg.sender]) { RedeemedQR[_CurrentCityIndex][msg.sender] = true; }
QRAllocation[_CurrentCityIndex][msg.sender]--;
BookingsAvailable[_CurrentCityIndex][TimeSlot]--;
SelectedTimeSlotGoldenTicket[_CurrentCityIndex][_QRIndex] = TimeSlot;
BrightListCitizen[_CurrentCityIndex][_QRIndex] = msg.sender;
emit QRRedeemed(msg.sender, _QRIndex, TimeSlot);
_QRIndex++;
}
/*-------------------*/
/* BRT STAFF */
/*-------------------*/
/**
* @dev IRL Minting Function Available Only At Bright Moments NFT Art Gallery
**/
function _LiveMint(uint TicketID) public onlyMinter whenNotPaused
{
address Recipient = readBrightListCitizen(TicketID);
require(!MintedCitizen[_CurrentCityIndex][TicketID], "LiveMint: Golden Token Already Minted");
require(Recipient != address(0), "LiveMint: Golden Token Entered Is Not Brightlisted");
BrightListCitizen[_CurrentCityIndex][TicketID] = address(0);
MintedCitizen[_CurrentCityIndex][TicketID] = true;
uint TokenID = IArtBlocks(_ArtBlocksMintingContractCitizens).purchase(_ArtBlocksProjectID);
IERC721(_ArtBlocksCoreContractCitizens).transferFrom(address(this), Recipient, TokenID);
emit LiveMintComplete(Recipient, TicketID, TokenID, DelegateStatusCitizen[_CurrentCityIndex][TicketID]);
}
/**
* @dev IRL Minting Function Available Only At Bright Moments NFT Art Gallery
**/
function _LiveMintArtist(uint ArtistID, uint TicketID) public onlyMinter whenNotPaused
{
address Recipient = readBrightListArtist(ArtistID, TicketID);
require(!MintedArtist[_CurrentCityIndex][ArtistID][TicketID], "LiveMint: Artist Mint Pass Already Minted");
require(Recipient != address(0), "LiveMint: Mint Pass Entered Is Not Brightlisted");
BrightListArtist[_CurrentCityIndex][ArtistID][TicketID] = address(0);
MintedArtist[_CurrentCityIndex][ArtistID][TicketID] = true;
address ArtistMintingContractAddress = resolveArtistContract(ArtistID);
bool ArtBlocksMint = resolveArtistMint(ArtistID);
if(ArtBlocksMint)
{
uint TokenID = IArtBlocks(ArtistMintingContractAddress).purchase(ArtistID);
IERC721(_ArtBlocksCoreContractArtists).transferFrom(address(this), Recipient, TokenID);
emit LiveMintCompleteArtist(Recipient, ArtistID, TicketID, TokenID, DelegateStatusArtist[_CurrentCityIndex][ArtistID][TicketID]);
}
else
{
uint TokenID = IRandomEdition(ArtistMintingContractAddress)._Mint(Recipient, 1);
emit LiveMintCompleteArtist(Recipient, ArtistID, TicketID, TokenID, DelegateStatusArtist[_CurrentCityIndex][ArtistID][TicketID]);
}
}
/*-------------------*/
/* ADMIN FUNCTIONS */
/*-------------------*/
/**
* @dev Approves BRT For Purchasing On ArtBlocks Contract
**/
function __ApproveERC20(address BRT, address Operator, uint Amount) external onlyOwner { IERC20(BRT).approve(Operator, Amount); }
/**
* @dev Batch Approves BRT For Purchasing
*/
function __BatchApproveERC20(address[] calldata ERC20s, address[] calldata Operators, uint[] calldata Amounts) external onlyOwner
{
require(ERC20s.length == Operators.length && Operators.length == Amounts.length, "LiveMint: Arrays Must Be Equal Length");
for(uint i; i < ERC20s.length; i++)
{
IERC20(ERC20s[i]).approve(Operators[i], Amounts[i]);
}
}
/**
* @dev Grants Address BRT Minter Role
**/
function __MinterAdd(address Minter) external onlyOwner
{
Role[Minter] = _MINTER_ROLE;
emit MinterAdded(Minter);
}
/**
* @dev Deactivates Address From BRT Minter Role
**/
function __MinterRemove(address Minter) external onlyOwner
{
Role[Minter] = _DEACTIVATED_ROLE;
emit MinterRemoved(Minter);
}
/**
* @dev Modifies ArtBlocks Minting Address Citizens
*/
function __ChangeArtBlocksMintingAddress(address NewMintingAddress) external onlyOwner
{
address OldMintingAddress = _ArtBlocksMintingContractCitizens;
_ArtBlocksMintingContractCitizens = NewMintingAddress;
emit ArtBlocksMintingAddressChanged(OldMintingAddress, _ArtBlocksMintingContractCitizens);
}
/**
* @dev Modifies ArtBlocks Minting Address Artists
*/
function __ChangeArtBlocksMintingAddressArtists(address NewMintingAddress) external onlyOwner
{
address OldMintingAddress = _ArtBlocksMintingContractArtists;
_ArtBlocksMintingContractArtists = NewMintingAddress;
emit ArtBlocksMintingAddressChanged(OldMintingAddress, _ArtBlocksMintingContractArtists);
}
/**
* @dev Modifies ArtBlocks Core Address Citizens
*/
function __ChangeArtBlocksCoreAddress(address NewMintingAddress) external onlyOwner
{
address OldMintingAddress = _ArtBlocksCoreContractCitizens;
_ArtBlocksCoreContractCitizens = NewMintingAddress;
emit ArtBlocksCoreAddressChanged(OldMintingAddress, _ArtBlocksCoreContractCitizens);
}
/**
* @dev Modifies ArtBlocks Core Address Artists
*/
function __ChangeArtBlocksCoreAddressArtist(address NewMintingAddress) external onlyOwner
{
address OldMintingAddress = _ArtBlocksCoreContractArtists;
_ArtBlocksCoreContractArtists = NewMintingAddress;
emit ArtBlocksCoreAddressChangedArtist(OldMintingAddress, _ArtBlocksCoreContractArtists);
}
/**
* @dev Modifies Artist Contract Addresses
*/
function __ChangeArtistContractAddresses(uint[] calldata ArtistIDs, address[] calldata NewContractAddresses) external onlyOwner
{
require(ArtistIDs.length == NewContractAddresses.length, "Arrays Must Be Of Equal Length");
for(uint ArtistID; ArtistID < ArtistIDs.length; ArtistID++)
{
address OldArtistContractAddress = resolveArtistContract(ArtistIDs[ArtistID]);
ArtistContracts[_CurrentCityIndex][ArtistIDs[ArtistID]] = NewContractAddresses[ArtistID];
emit ArtistContractAddressChanged(OldArtistContractAddress, NewContractAddresses[ArtistID]);
}
}
/**
* @dev Changes Artist Mint Passes
*/
function __ChangeArtistMintPasses(uint[] calldata ArtistIDs, address[] calldata NewContractAddresses) external onlyOwner
{
require(ArtistIDs.length == NewContractAddresses.length, "Arrays Must Be Of Equal Length");
for(uint x; x < ArtistIDs.length; x++)
{
address OldArtistContractAddress = ArtistMintPasses[_CurrentCityIndex][ArtistIDs[x]];
ArtistMintPasses[_CurrentCityIndex][ArtistIDs[x]] = NewContractAddresses[x];
emit ArtistContractAddressChanged(OldArtistContractAddress, NewContractAddresses[x]);
}
}
/**
* @dev Modifies Artist Mint Types
* note: True For ArtBlocks | False For Random Edition
*/
function __ChangeArtistMintTypes(uint[] calldata ArtistIDs, bool[] calldata NewMintTypes) external onlyOwner
{
for(uint x; x < ArtistIDs.length; x++)
{
bool OldMintType = resolveArtistMint(ArtistIDs[x]);
MintType[_CurrentCityIndex][ArtistIDs[x]] = NewMintTypes[x];
emit ArtistMintTypeChanged(OldMintType, NewMintTypes[x]);
}
}
/**
* @dev Modifies The Current ArtBlocks ProjectID
**/
function __ChangeArtBlocksProjectID(uint ArtBlocksProjectID) external onlyOwner
{
uint OldProjectID = _ArtBlocksProjectID;
_ArtBlocksProjectID = ArtBlocksProjectID;
emit ModifiedProjectID(OldProjectID, _ArtBlocksProjectID);
}
/**
* @dev Modifies Golden Token Address
*/
function __ChangeGoldenTokenAddress(address NewGTAddress) external onlyOwner
{
address OldAddress = _GoldenToken;
_GoldenToken = NewGTAddress;
emit GoldenTokenAddressChanged(OldAddress, _GoldenToken);
}
/**
* @dev Modifies ERC20 BRT Minting Token Address
*/
function __ChangeERC20Address(address NewERC20Address) external onlyOwner
{
address OldAddress = _ERC20_BRT_Token;
_ERC20_BRT_Token = NewERC20Address;
emit ERC20AddressChanged(OldAddress, _ERC20_BRT_Token);
}
/**
* @dev Modifies Current City Index
*/
function __ChangeCityIndex(uint Index) external onlyOwner
{
uint OldIndex = _CurrentCityIndex;
_CurrentCityIndex = Index;
emit CurrentCityIndexChanged(OldIndex, _CurrentCityIndex);
}
/**
* @dev Changes TimeSlot At Index `Slot`
* note: Slot is denoted in YYYY-DD-MM with no -'s (20220101) for Jan 1st
*/
function __ChangeTimeSlot(uint Slot, uint Amount) external onlyOwner
{
uint OldAmount = BookingsAvailable[_CurrentCityIndex][Slot];
BookingsAvailable[_CurrentCityIndex][Slot] = Amount;
emit TimeSlotChanged(OldAmount, Amount);
}
/**
* @dev Changes Multiple TimeSlots
* note: Slot is denoted in YYYY-DD-MM with no -'s (20220101) for Jan 1st
*/
function __ChangeTimeSlots(uint[] calldata Slots, uint[] calldata Amounts) external onlyOwner
{
require(Slots.length == Amounts.length, "Arrays Must Match Length");
for(uint i; i < Slots.length; i++)
{
BookingsAvailable[_CurrentCityIndex][Slots[i]] = Amounts[i];
}
emit TimeSlotsChanged(Slots, Amounts);
}
/**
* @dev Sets QR Allocation
*/
function __ChangeQRAllocations(address[] calldata Addresses, uint[] calldata Amounts) external onlyOwner
{
for(uint x; x < Addresses.length; x++)
{
QRAllocation[_CurrentCityIndex][Addresses[x]] = Amounts[x];
}
}
/**
* @dev Sets QR Index
*/
function __ChangeQRIndex(uint NewIndex) external onlyOwner { _QRIndex = NewIndex; }
/**
* @dev Batch Changes State Variables For LiveMint
* note: __ApproveBRT(_ERC20_BRT_Token) Will Need To Be Called On This Contract After This Function
* note: This Is So That Variables Can Be Double Checked & Mint Will Not Be Active Until That Is Complete
*/
function __NewCity(
address ERC20TokenAddress,
address ArtBlocksMintingContractAddress,
address ArtBlocksCoreContractAddress,
address ArtBlocksCoreContractAddressArtist,
address GoldenTokenAddress,
uint ArtBlocksProjectID,
uint CurrentCityIndex,
uint QRIndex
)
external onlyOwner
{
_ERC20_BRT_Token = ERC20TokenAddress;
_ArtBlocksMintingContractCitizens = ArtBlocksMintingContractAddress;
_ArtBlocksCoreContractCitizens = ArtBlocksCoreContractAddress;
_ArtBlocksCoreContractArtists = ArtBlocksCoreContractAddressArtist;
_GoldenToken = GoldenTokenAddress;
_ArtBlocksProjectID = ArtBlocksProjectID;
_CurrentCityIndex = CurrentCityIndex;
_QRIndex = QRIndex;
emit NewCityStarted(
_ERC20_BRT_Token,
_ArtBlocksMintingContractCitizens,
_ArtBlocksCoreContractCitizens,
_ArtBlocksCoreContractArtists,
_GoldenToken,
_ArtBlocksProjectID,
_CurrentCityIndex,
_QRIndex
);
}
/**
* @dev Instantiates New Artists At `CurrentCityIndex` => `ArtistID[i]`
* @dev note: ArtistIDs = uint[]
* @dev note: MintPasses = address[] (this is the MintPass contract addresses)
* @dev note: MintingAddresses = address[] (this is the NFTs to be Minted)
* @dev note: MintTypes = bool[] (true for ArtBlocks) | (false for Random Edition)
*/
function __NewArtists(
uint[] calldata ArtistIDs,
address[] calldata MintPasses,
address[] calldata MintingAddresses,
bool[] calldata MintTypes
) external onlyOwner {
require(
ArtistIDs.length == MintPasses.length
&& MintPasses.length == MintingAddresses.length
&& MintingAddresses.length == MintTypes.length,
"LiveMint: Array Lengths Must Be Of Equal Value"
);
for(uint i; i < ArtistIDs.length; i++)
{
ArtistMintPasses[_CurrentCityIndex][ArtistIDs[i]] = MintPasses[i];
ArtistContracts[_CurrentCityIndex][ArtistIDs[i]] = MintingAddresses[i];
MintType[_CurrentCityIndex][ArtistIDs[i]] = MintTypes[i];
}
emit NewArtists(ArtistIDs, MintPasses, MintingAddresses, MintTypes);
}
/**
* @dev Changes Merkle Root
*/
function __NewRoot(bytes32 NewRoot) external onlyOwner
{
bytes32 OldRoot = Root;
Root = NewRoot;
emit MerkleRootChanged(OldRoot, NewRoot);
}
/**
* @dev Withdraws Any Ether Mistakenly Sent to Contract to Multisig
**/
function __WithdrawEther() external onlyOwner { payable(msg.sender).transfer(address(this).balance); }
/**
* @dev Withdraws ERC20 Tokens to Multisig
**/
function __WithdrawERC20(address tokenAddress) external onlyOwner
{
IERC20 erc20Token = IERC20(tokenAddress);
uint balance = erc20Token.balanceOf(address(this));
require(balance > 0, "0 ERC20 Balance At `tokenAddress`");
erc20Token.transfer(msg.sender, balance);
}
/**
* @dev Withdraws Any NFT Mistakenly Sent To This Contract.
*/
function __WithdrawERC721(address ContractAddress, address Recipient, uint TokenID) external onlyOwner
{
IERC721(ContractAddress).transferFrom(address(this), Recipient, TokenID);
}
/*-------------------*/
/* PUBLIC VIEW */
/*-------------------*/
/**
* @dev Returns BrightListed Address Corresponding to Golden Ticket `TicketID`
**/
function readBrightListCitizen(uint TicketID) public view returns(address)
{
return BrightListCitizen[_CurrentCityIndex][TicketID];
}
/**
* @dev Returns BrightListed Address Corresponding to Mint Pass `ArtistID` & `TicketID`
*/
function readBrightListArtist(uint ArtistID, uint TicketID) public view returns(address)
{
return BrightListArtist[_CurrentCityIndex][ArtistID][TicketID];
}
/**
* @dev Returns Artist NFT Contract Address Correpsonding To ArtistID (1 through 10)
*/
function resolveArtistContract(uint ArtistID) public view returns(address)
{
return ArtistContracts[_CurrentCityIndex][ArtistID];
}
/**
* @dev Returns Artist Mint Pass Contract Address Correpsonding To ArtistID
*/
function resolveArtistMintPass(uint ArtistID) public view returns(address)
{
return ArtistMintPasses[_CurrentCityIndex][ArtistID];
}
/**
* @dev Batch Returns Owned Artist Mint Passes
*/
function resolveArtistMintPasses(uint[] calldata ArtistIDs) public view returns(address[] memory)
{
address[] memory MintPasses = new address[](ArtistIDs.length);
for(uint i; i < ArtistIDs.length; i++)
{
address x = resolveArtistMintPass(ArtistIDs[i]);
MintPasses[i] = x;
}
return MintPasses;
}
/**
* @dev Returns Artist ArtBlocks Mint Type (true for ArtBlocks Mint) | (false for Random Edition Mint)
*/
function resolveArtistMint(uint ArtistID) public view returns(bool)
{
return MintType[_CurrentCityIndex][ArtistID];
}
/**
* @dev Returns Booked TimeSlot For Golden Ticket Corresponding `TicketID`
*/
function readTimeSlotGoldenTicket(uint TicketID) public view returns(uint)
{
return SelectedTimeSlotGoldenTicket[_CurrentCityIndex][TicketID];
}
/**
* @dev Returns Booked TimeSlot For Artist Mint Pass Corresponding To `TicketID`
*/
function readTimeSlotArtistMintPass(uint ArtistID, uint TicketID) public view returns(uint)
{
return SelectedTimeSlotArtistMintPass[_CurrentCityIndex][ArtistID][TicketID];
}
/**
* @dev Returns If Golden Token Corresponding To `TicketID` Has Been Minted
*/
function readMintedCitizen(uint TicketID) public view returns(bool)
{
return MintedCitizen[_CurrentCityIndex][TicketID];
}
/**
* @dev Returns If Artist Mint Pass Corresponding To `TicketID` Has Been Minted
*/
function readMintedArtist(uint ArtistID, uint TicketID) public view returns(bool)
{
return MintedArtist[_CurrentCityIndex][ArtistID][TicketID];
}
/**
* @dev Returns Owner Of Mint Pass Corresponding To `TicketID`
*/
function readOwnerOfMintPass(uint ArtistID, uint TicketID) public view returns(address)
{
return IERC721(resolveArtistMintPass(ArtistID)).ownerOf(TicketID);
}
/**
* @dev Returns Owner Of Golden Token Corresponding To `TicketID`
*/
function readOwnerOfGoldenToken(uint TicketID) public view returns(address)
{
return IERC721(_GoldenToken).ownerOf(TicketID);
}
/**
* @dev Returns Artist Metadata
*/
function readMetadataArtist(uint ArtistID, uint TokenID) public view returns(string memory)
{
if(!resolveArtistMint(ArtistID))
{
return IRandomEdition(resolveArtistContract(ArtistID)).tokenURI(TokenID);
}
else if(resolveArtistMint(ArtistID))
{
return IArtBlocks(resolveArtistContract(ArtistID)).tokenURI(TokenID);
}
else { return "Artist NFT Corresponding To `TicketID` Not Minted"; }
}
/**
* @dev Returns Citizen Metadata
*/
function readMetadataCitizen(uint TokenID) public view returns (string memory)
{
return IArtBlocks(_ArtBlocksCoreContractCitizens).tokenURI(TokenID);
}
/**
* @dev Returns If Recipient Address Is BrightListed
*/
function readBrightListMerkle(address Recipient, bytes32[] memory Proof) public view returns(bool)
{
bytes32 Leaf = keccak256(abi.encodePacked(Recipient));
return MerkleProof.verify(Proof, Root, Leaf);
}
/**
* @dev Returns If User Is On BrightList & Has Not Redeemed QR Code
*/
function readQREligibility(address Recipient, bytes32[] memory Proof) public view returns(bool)
{
bytes32 Leaf = keccak256(abi.encodePacked(Recipient));
if(
MerkleProof.verify(Proof, Root, Leaf)
&&
!RedeemedQR[_CurrentCityIndex][Recipient]
) { return true; }
else { return false; }
}
/**
* @dev Returns If User Is On BrightList & Has More Than One Allocation For QR Code
*/
function readQRAllocationEligibility(address Recipient, bytes32[] memory Proof) public view returns(bool)
{
bytes32 Leaf = keccak256(abi.encodePacked(Recipient));
if(
MerkleProof.verify(Proof, Root, Leaf)
&&
QRAllocation[_CurrentCityIndex][Recipient] > 0
) { return true; }
else { return false; }
}
/**
* @dev Returns # Of Available Timeslots
*/
function readTimeSlotAvailable(uint TimeSlot) public view returns(uint)
{
return BookingsAvailable[_CurrentCityIndex][TimeSlot];
}
/**
* @dev Batch Returns If Wallet Owns Multiple TokenIDs Of Multiple NFTs
*/
function readNFTsOwnedTokenIDs(
address Wallet,
address[] calldata NFTAddresses,
uint Range
) public view returns (uint[][] memory) {
uint[][] memory OwnedIDs = new uint[][](NFTAddresses.length);
for(uint x; x < NFTAddresses.length; x++)
{
IERC721 NFT = IERC721(NFTAddresses[x]);
uint[] memory temp = new uint[](Range);
uint counter;
for(uint y; y <= Range; y++)
{
try NFT.ownerOf(y)
{
if(NFT.ownerOf(y) == Wallet)
{
temp[counter] = y;
counter++;
}
} catch { }
}
uint[] memory FormattedOwnedIDs = new uint[](counter);
uint index;
for(uint z; z < counter; z++)
{
if(temp[z] != 0 || (z == 0 && temp[z] == 0))
{
FormattedOwnedIDs[index] = temp[z];
index++;
}
}
OwnedIDs[x] = FormattedOwnedIDs;
}
return OwnedIDs;
}
/**
* @dev Returns Batch Metadata
*/
function readBatchMetadata(
address[] calldata ContractAddresses,
uint[][] calldata TokenIDs
) public view returns(string[][] memory) {
string[][] memory Metadata = new string[][](TokenIDs.length);
for(uint ProjectID; ProjectID < ContractAddresses.length; ProjectID++)
{
string[] memory ProjectMetadata = new string[](TokenIDs[ProjectID].length);
for(uint TokenID; TokenID < TokenIDs[ProjectID].length; TokenID++)
{
ProjectMetadata[TokenID] = ERC721(ContractAddresses[ProjectID]).tokenURI(TokenIDs[ProjectID][TokenID]);
}
Metadata[ProjectID] = ProjectMetadata;
}
return Metadata;
}
/*-------------------*/
/* MODIFIERS */
/*-------------------*/
/**
* @dev Function Modifier That Allows Only BrightListed BRT Minters To Access
**/
modifier onlyMinter()
{
require(Role[msg.sender] == _MINTER_ROLE, "OnlyMinter: Caller Is Not Approved BRT Minter");
_;
}
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev 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);
}
}// 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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = _efficientHash(computedHash, proofElement);
} else {
// Hash(current element of the proof + current computed hash)
computedHash = _efficientHash(proofElement, computedHash);
}
}
return computedHash;
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;
interface IArtBlocks
{
function purchase(uint256 _projectId) payable external returns (uint tokenID);
function tokenURI(uint256 _tokenId) external view returns (string memory);
}//SPDX-License-Identifier: MIT
pragma solidity 0.8.14;
interface IRandomEdition
{
function _Mint(address Recipient, uint Amount) external returns(uint tokenID); //Mints Random Edition
function tokenURI(uint256 tokenId) external view returns (string memory); //Returns IPFS Metadata
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// 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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// 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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `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);
/**
* @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);
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"OldCoreAddress","type":"address"},{"indexed":false,"internalType":"address","name":"NewCoreAddress","type":"address"}],"name":"ArtBlocksCoreAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"OldCoreAddress","type":"address"},{"indexed":false,"internalType":"address","name":"NewCoreAddress","type":"address"}],"name":"ArtBlocksCoreAddressChangedArtist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"OldMintingAddress","type":"address"},{"indexed":false,"internalType":"address","name":"NewMintingAddress","type":"address"}],"name":"ArtBlocksMintingAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"OldContractAddress","type":"address"},{"indexed":false,"internalType":"address","name":"NewContractAddress","type":"address"}],"name":"ArtistContractAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"Redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"ArtistID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"TicketID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"Slot","type":"uint256"},{"indexed":false,"internalType":"bool","name":"Delegate","type":"bool"}],"name":"ArtistMintPassRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"OldMintType","type":"bool"},{"indexed":false,"internalType":"bool","name":"NewMintType","type":"bool"}],"name":"ArtistMintTypeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"OldIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"NewIndex","type":"uint256"}],"name":"CurrentCityIndexChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"OldERC20Address","type":"address"},{"indexed":false,"internalType":"address","name":"NewERC20Address","type":"address"}],"name":"ERC20AddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"OldGTAddress","type":"address"},{"indexed":false,"internalType":"address","name":"NewGTAddress","type":"address"}],"name":"GoldenTokenAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"Redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"TicketID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"Slot","type":"uint256"},{"indexed":false,"internalType":"bool","name":"Delegate","type":"bool"}],"name":"GoldenTokenRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"Redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"TicketID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"TokenID","type":"uint256"},{"indexed":false,"internalType":"bool","name":"Delegate","type":"bool"}],"name":"LiveMintComplete","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"Redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"ArtistID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"TicketID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"TokenID","type":"uint256"},{"indexed":false,"internalType":"bool","name":"Delegate","type":"bool"}],"name":"LiveMintCompleteArtist","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":"address","name":"NewMinter","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"RemovedMinter","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"OldProjectID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"NewProjectID","type":"uint256"}],"name":"ModifiedProjectID","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"OldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"NewAddress","type":"address"}],"name":"MultisigAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"ArtistIDs","type":"uint256[]"},{"indexed":false,"internalType":"address[]","name":"MintPasses","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"MintingAddresses","type":"address[]"},{"indexed":false,"internalType":"bool[]","name":"MintTypes","type":"bool[]"}],"name":"NewArtists","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"ERC20_BRT_TokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"ArtBlocksMintingContractAddress","type":"address"},{"indexed":false,"internalType":"address","name":"ArtBlocksCoreContractAddressCitizen","type":"address"},{"indexed":false,"internalType":"address","name":"ArtBlocksCoreContractAddressArtist","type":"address"},{"indexed":false,"internalType":"address","name":"GoldenTokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"ArtBlocksProjectID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"CurrentCityIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"QRIndex","type":"uint256"}],"name":"NewCityStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"Redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"TicketID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"Slot","type":"uint256"}],"name":"QRRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"OldAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"NewAmount","type":"uint256"}],"name":"TimeSlotChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"Slots","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"Amounts","type":"uint256[]"}],"name":"TimeSlotsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ArtistContracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ArtistMintPasses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"BookingsAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"BrightListArtist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"BrightListCitizen","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"DelegateStatusArtist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"DelegateStatusCitizen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"MintType","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"MintedArtist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"MintedCitizen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"QRAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"},{"internalType":"uint256","name":"TicketID","type":"uint256"},{"internalType":"uint256","name":"TimeSlot","type":"uint256"},{"internalType":"bool","name":"Delegate","type":"bool"}],"name":"RedeemArtistPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"TicketID","type":"uint256"},{"internalType":"uint256","name":"TimeSlot","type":"uint256"},{"internalType":"bool","name":"Delegate","type":"bool"}],"name":"RedeemGT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"TimeSlot","type":"uint256"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"RedeemQR","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"TimeSlot","type":"uint256"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"RedeemQRAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"RedeemedQR","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"SelectedTimeSlotArtistMintPass","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"SelectedTimeSlotGoldenTicket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ArtBlocksCoreContractArtists","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ArtBlocksCoreContractCitizens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ArtBlocksMintingContractArtists","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ArtBlocksMintingContractCitizens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ArtBlocksProjectID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_BRTMULTISIG","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_CurrentCityIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_ERC20_BRT_Token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_GoldenToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"_LiveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"},{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"_LiveMintArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"BRT","type":"address"},{"internalType":"address","name":"Operator","type":"address"},{"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"__ApproveERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"ERC20s","type":"address[]"},{"internalType":"address[]","name":"Operators","type":"address[]"},{"internalType":"uint256[]","name":"Amounts","type":"uint256[]"}],"name":"__BatchApproveERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewMintingAddress","type":"address"}],"name":"__ChangeArtBlocksCoreAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewMintingAddress","type":"address"}],"name":"__ChangeArtBlocksCoreAddressArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewMintingAddress","type":"address"}],"name":"__ChangeArtBlocksMintingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewMintingAddress","type":"address"}],"name":"__ChangeArtBlocksMintingAddressArtists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtBlocksProjectID","type":"uint256"}],"name":"__ChangeArtBlocksProjectID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ArtistIDs","type":"uint256[]"},{"internalType":"address[]","name":"NewContractAddresses","type":"address[]"}],"name":"__ChangeArtistContractAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ArtistIDs","type":"uint256[]"},{"internalType":"address[]","name":"NewContractAddresses","type":"address[]"}],"name":"__ChangeArtistMintPasses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ArtistIDs","type":"uint256[]"},{"internalType":"bool[]","name":"NewMintTypes","type":"bool[]"}],"name":"__ChangeArtistMintTypes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"Index","type":"uint256"}],"name":"__ChangeCityIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewERC20Address","type":"address"}],"name":"__ChangeERC20Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewGTAddress","type":"address"}],"name":"__ChangeGoldenTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"Addresses","type":"address[]"},{"internalType":"uint256[]","name":"Amounts","type":"uint256[]"}],"name":"__ChangeQRAllocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NewIndex","type":"uint256"}],"name":"__ChangeQRIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"Slot","type":"uint256"},{"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"__ChangeTimeSlot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"Slots","type":"uint256[]"},{"internalType":"uint256[]","name":"Amounts","type":"uint256[]"}],"name":"__ChangeTimeSlots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"Minter","type":"address"}],"name":"__MinterAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"Minter","type":"address"}],"name":"__MinterRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ArtistIDs","type":"uint256[]"},{"internalType":"address[]","name":"MintPasses","type":"address[]"},{"internalType":"address[]","name":"MintingAddresses","type":"address[]"},{"internalType":"bool[]","name":"MintTypes","type":"bool[]"}],"name":"__NewArtists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"ERC20TokenAddress","type":"address"},{"internalType":"address","name":"ArtBlocksMintingContractAddress","type":"address"},{"internalType":"address","name":"ArtBlocksCoreContractAddress","type":"address"},{"internalType":"address","name":"ArtBlocksCoreContractAddressArtist","type":"address"},{"internalType":"address","name":"GoldenTokenAddress","type":"address"},{"internalType":"uint256","name":"ArtBlocksProjectID","type":"uint256"},{"internalType":"uint256","name":"CurrentCityIndex","type":"uint256"},{"internalType":"uint256","name":"QRIndex","type":"uint256"}],"name":"__NewCity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"NewRoot","type":"bytes32"}],"name":"__NewRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"__WithdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"ContractAddress","type":"address"},{"internalType":"address","name":"Recipient","type":"address"},{"internalType":"uint256","name":"TokenID","type":"uint256"}],"name":"__WithdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"__WithdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"ContractAddresses","type":"address[]"},{"internalType":"uint256[][]","name":"TokenIDs","type":"uint256[][]"}],"name":"readBatchMetadata","outputs":[{"internalType":"string[][]","name":"","type":"string[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"},{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"readBrightListArtist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"readBrightListCitizen","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Recipient","type":"address"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"readBrightListMerkle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"},{"internalType":"uint256","name":"TokenID","type":"uint256"}],"name":"readMetadataArtist","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TokenID","type":"uint256"}],"name":"readMetadataCitizen","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"},{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"readMintedArtist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"readMintedCitizen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Wallet","type":"address"},{"internalType":"address[]","name":"NFTAddresses","type":"address[]"},{"internalType":"uint256","name":"Range","type":"uint256"}],"name":"readNFTsOwnedTokenIDs","outputs":[{"internalType":"uint256[][]","name":"","type":"uint256[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"readOwnerOfGoldenToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"},{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"readOwnerOfMintPass","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Recipient","type":"address"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"readQRAllocationEligibility","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Recipient","type":"address"},{"internalType":"bytes32[]","name":"Proof","type":"bytes32[]"}],"name":"readQREligibility","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"},{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"readTimeSlotArtistMintPass","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TimeSlot","type":"uint256"}],"name":"readTimeSlotAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TicketID","type":"uint256"}],"name":"readTimeSlotGoldenTicket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"}],"name":"resolveArtistContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"}],"name":"resolveArtistMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ArtistID","type":"uint256"}],"name":"resolveArtistMintPass","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ArtistIDs","type":"uint256[]"}],"name":"resolveArtistMintPasses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60e06040527f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66080527f0ca2130f35d7180a61feea714de11e4b72dd995ef848ffe34d9f2c765186442f60a05273cff43a597911a9457071d89d2b2ac3d5b1862b8660c052600280546001600160a01b0319908116739eafe760bc0eb62f0f9c5dca18012478d9d8b2d21790915560038054821673dd06d8483868cd0c5e69c24eeaa2a5f2beafd42b179055600480548216737b9a45e278b5b374bb2d96c65665d4360c97bf0117815560058054831673bdde08bd57e5c9fd563ee7ac61618cb2ecdc0ce0179055600680548316730a1bbd57033f57e7b6743621b79fcb9eb2ce36761790556007805490921673c2a3c3543701009d36c0357177a62e0f6459e8a91790915560085561014d600a557f6d206441d8e1510b00e84caaba4a2c7bf848f36f10a5b11d04379bc457d1124b600b553480156200015f57600080fd5b506200016b33620006dc565b6000805460ff60a01b19168155600180556080517f59949c6e6a657843e811692bea55658ed4dc9d0ced119747eb5fef98cb62e9a88190557f8fb0d0ecebff0260671f20ea7ea659c4bd9fa4e23a57deb448997eeda93027ea8190557f65314243dc6b0dff32d332771116f52549879c7776994f953a32b03aafede9b98190557f2ab53ee904a2a2ea4c20f890173345878290898a12c35fbf42951ad22637826c8190557ff563ebc74cbb6c8588326791ec7b7e7377972806b2a451502d7d1597f5164e9f8190557f3dbb4462368c6c296d8ddbe85e8d4fc98867cdff37b8667bf696ecc8ff75751e8190557f177073b1315b7fd7734c5a662f28117cc333fb3143881d8bab4846f95a78cb4d8190557fc0ddc98ac043aa1ceff36b4648758f8301a826773ddc587ed73bdc730d3b62718190557f295b5425c3f2acf02a3069d68d8b4ee06f88de927d0f770ed979e4f0206554368190557fb23124edaca84de97c8db47e55c2174e102c5b30853d87c1d89f7edfff1983e18190557f682d0a2cb916ea812617113d577444a96c66efda3fd9fc5e6d59d7c225646cd38190557f8a46c00ed27733d31dfa47b6a475c46b9847a21bdd43c9bed7cac6a3f3846d97556009805482526016602081815260408085206301348b1d86528252808520606490819055845486528383528186206301348b1f87528352818620819055845486528383528186206301348b2287528352818620819055845486528383528186206301348b2487528352818620819055845486528383528186206301348b2587528352818620819055845486528383528186206301348b2987528352818620819055845486528383528186206301348b2b87528352818620819055845486528383528186206301348b2c87528352818620819055845486528383528186206301348b3087528352818620819055845486528383528186206301348b3287528352818620819055845486528383528186206301348b3387528352818620819055845486528383528186206301348b3787528352818620819055845486528383528186206301348b3987528352818620819055845486529282528085206301348b3a865282528085209290925582548452601380825282852060078652825282852080546001600160a01b03199081167340ee4a63f6773d06f70629962afcf52af9ab38ed1790915584548652818352838620600887528352838620805482167385885aded016ba8a88593338928c88d99316ace917905584548652818352838620858752835283862080548216732e42cce2b828f2176013075f37f7b64df378fb4517905584548652818352838620600a875283528386208054821673d0ca41e0098ffa698d9a4d33b61006a490678d9417905584548652818352838620600b875283528386208054821673b22c69e6ca346051f20207db031810b596838138179055935485528152818420600c8552905291829020805490911673373e6c537f0cd423948694a93ec1dfe5eb06effe179055600254600354915163095ea7b360e01b81526001600160a01b0392831660048201526001600160fc1b03602482015291169063095ea7b3906044016020604051808303816000875af115801562000619573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200063f91906200072c565b506004805460405163095ea7b360e01b81526001600160a01b03909116918101919091526001600160fc1b036024820152733df1a91fa71c24c8c52afce62dba54351cba7a639063095ea7b3906044016020604051808303816000875af1158015620006af573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006d591906200072c565b5062000757565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200073f57600080fd5b815180151581146200075057600080fd5b9392505050565b60805160a05160c0516156d8620007b160003960008181610a21015281816121e30152818161226e01528181613c520152613cd901526000612568015260008181610e9d015281816129d501526142e201526156d86000f3fe608060405234801561001057600080fd5b506004361061054a5760003560e01c806376bce864116102bc578063ad06726411610186578063c4607e5a116100e3578063e7ee79ba11610097578063f2fde38b1161007c578063f2fde38b14610de2578063f820e21314610df5578063fbf17d1d14610dfe57600080fd5b8063e7ee79ba14610dbc578063ea44e47b14610dcf57600080fd5b8063dcf6609c116100c8578063dcf6609c14610d6b578063e0203e3214610d7e578063e314e86a14610d9157600080fd5b8063c4607e5a14610d45578063d4c7f5d214610d5857600080fd5b8063b669d1841161013a578063bc61c94f1161011f578063bc61c94f14610cff578063c31dec9814610d12578063c421a38614610d3257600080fd5b8063b669d18414610cb8578063b95247ab14610cec57600080fd5b8063b45284651161016b578063b452846514610c43578063b54c235814610c6e578063b61f796314610ca557600080fd5b8063ad06726414610bfa578063ae9f672314610c0d57600080fd5b80638da5cb5b11610234578063a361870f116101e8578063a6a09bbe116101cd578063a6a09bbe14610ba5578063a899a59014610bad578063aaf31b5f14610bc057600080fd5b8063a361870f14610b65578063a3bda46614610b7857600080fd5b80639ea801a1116102195780639ea801a114610b09578063a078a06f14610b1c578063a1daab5b14610b2f57600080fd5b80638da5cb5b14610ae557806395f0d97914610af657600080fd5b806385970d7e1161028b57806388d3187e1161027057806388d3187e14610a7157806388d3f12114610a9e57806389f2d07214610ad257600080fd5b806385970d7e14610a1c57806386170b5a14610a4357600080fd5b806376bce864146109b55780637e5d1f22146109c85780637e6db805146109db578063807f8ec4146109ee57600080fd5b8063330a5a5d1161041857806356167f05116103755780635f814b3d11610329578063652c7e391161030e578063652c7e391461096f578063656a1c3a1461098257806366e3a96b146109a257600080fd5b80635f814b3d1461095357806362d2ed991461095c57600080fd5b80635ba6ef1c1161035a5780635ba6ef1c1461090e5780635c975abb1461092e5780635dbbe83d1461094057600080fd5b806356167f05146108c75780635b4c2a70146108fb57600080fd5b806344a6da6a116103cc5780634ef2a556116103b15780634ef2a556146108715780634fdf9ccb14610884578063554a4059146108b457600080fd5b806344a6da6a1461084b5780634ed5a01f1461085e57600080fd5b80633adeeab6116103fd5780633adeeab6146107eb5780633ec5cb3d146107fe578063422d6e011461083857600080fd5b8063330a5a5d146107ad5780633477a5c7146107d857600080fd5b8063202e094a116104c65780632679f5a61161047a5780632c1850cb1161045f5780632c1850cb146107745780632ccf799414610787578063305cc9d31461079a57600080fd5b80632679f5a61461074e5780632a0978671461076157600080fd5b80632219ea9f116104ab5780632219ea9f146106f85780632318a1de1461070b5780632366b5b51461071e57600080fd5b8063202e094a146106d2578063215e6cda146106e557600080fd5b80631289d3981161051d57806316fbf6da1161050257806316fbf6da1461063f57806319894779146106735780631d728849146106a457600080fd5b80631289d398146105e157806313c9197f1461061f57600080fd5b806302ccb2101461054f57806309b345c61461056b5780630d6c2673146105b95780631010761d146105ce575b600080fd5b610558600b5481565b6040519081526020015b60405180910390f35b6105a1610579366004614b50565b600954600090815260146020908152604080832093835292905220546001600160a01b031690565b6040516001600160a01b039091168152602001610562565b6105cc6105c7366004614b7e565b610e32565b005b6105cc6105dc366004614b50565b610ef2565b61060f6105ef366004614b9b565b600c60209081526000928352604080842090915290825290205460ff1681565b6040519015158152602001610562565b61063261062d366004614c17565b610f80565b6040516105629190614cdb565b6105a161064d366004614d80565b60136020908152600092835260408084209091529082529020546001600160a01b031681565b610558610681366004614da2565b600f60209081526000938452604080852082529284528284209052825290205481565b61060f6106b2366004614d80565b601960209081526000928352604080842090915290825290205460ff1681565b6105cc6106e0366004614b7e565b6111c4565b6105cc6106f3366004614dce565b611266565b6105cc610706366004614e58565b611388565b6105cc610719366004614b7e565b611768565b61060f61072c366004614b50565b6009546000908152601560209081526040808320938352929052205460ff1690565b6105cc61075c366004614d80565b61180a565b6105a161076f366004614d80565b6118b1565b6105cc610782366004614b7e565b6118e6565b6105cc610795366004614b7e565b611988565b6105cc6107a8366004614b50565b611a2a565b6105586107bb366004614d80565b601660209081526000928352604080842090915290825290205481565b6105cc6107e6366004614ea4565b611ab0565b6105cc6107f9366004614b7e565b611b65565b6105a161080c366004614da2565b600e6020908152600093845260408085208252928452828420905282529020546001600160a01b031681565b6105cc610846366004614b50565b611c07565b6004546105a1906001600160a01b031681565b6105a161086c366004614b50565b611c8d565b6005546105a1906001600160a01b031681565b61060f610892366004614b50565b6009546000908152601860209081526040808320938352929052205460ff1690565b6105cc6108c2366004614e58565b611cfb565b6105a16108d5366004614d80565b60126020908152600092835260408084209091529082529020546001600160a01b031681565b6105cc610909366004614ef3565b611fcd565b61092161091c366004614f2c565b612420565b6040516105629190614f6e565b600054600160a01b900460ff1661060f565b6105cc61094e366004614b7e565b612502565b61055860095481565b6002546105a1906001600160a01b031681565b6105cc61097d366004614c17565b6125b6565b610995610990366004614b50565b6127ab565b6040516105629190614fbb565b6109956109b0366004614d80565b612836565b61060f6109c3366004615015565b612972565b6105cc6109d6366004614d80565b6129c3565b6105cc6109e93660046150d0565b612ecf565b61060f6109fc366004614d80565b601860209081526000928352604080842090915290825290205460ff1681565b6105a17f000000000000000000000000000000000000000000000000000000000000000081565b61060f610a51366004614d80565b601560209081526000928352604080842090915290825290205460ff1681565b610558610a7f366004614b50565b6009546000908152601760209081526040808320938352929052205490565b61060f610aac366004614da2565b601160209081526000938452604080852082529284528284209052825290205460ff1681565b61060f610ae0366004615015565b61317d565b6000546001600160a01b03166105a1565b6105cc610b04366004614c17565b613211565b6105cc610b17366004614b7e565b6133fe565b6105cc610b2a366004614b7e565b6135d5565b6105a1610b3d366004614b50565b600954600090815260136020908152604080832093835292905220546001600160a01b031690565b6105cc610b73366004614c17565b613677565b610558610b86366004614b50565b6009546000908152601660209081526040808320938352929052205490565b6105cc6137f9565b6105cc610bbb366004614c17565b613870565b61060f610bce366004614d80565b600954600090815260116020908152604080832094835293815283822092825291909152205460ff1690565b6006546105a1906001600160a01b031681565b6105a1610c1b366004614b50565b600954600090815260126020908152604080832093835292905220546001600160a01b031690565b610558610c51366004614b9b565b600d60209081526000928352604080842090915290825290205481565b610558610c7c366004614d80565b6009546000908152600f6020908152604080832094835293815283822092825291909152205490565b61060f610cb3366004615015565b613946565b6105a1610cc6366004614d80565b60146020908152600092835260408084209091529082529020546001600160a01b031681565b6105cc610cfa366004614b50565b6139cb565b6105cc610d0d366004615194565b613a18565b610d25610d203660046151d5565b613e7e565b6040516105629190615231565b6105a1610d40366004614d80565b6141ac565b6105cc610d53366004614ea4565b61423a565b6003546105a1906001600160a01b031681565b6105cc610d79366004614b50565b6142d0565b6105cc610d8c3660046152bb565b614679565b610558610d9f366004614d80565b601760209081526000928352604080842090915290825290205481565b6007546105a1906001600160a01b031681565b6105cc610ddd366004614c17565b61485d565b6105cc610df0366004614b7e565b6149b1565b61055860085481565b61060f610e0c366004614da2565b601060209081526000938452604080852082529284528284209052825290205460ff1681565b6000546001600160a01b03163314610e7f5760405162461bcd60e51b8152602060048201819052602482015260008051602061568383398151915260448201526064015b60405180910390fd5b6001600160a01b0381166000818152601a60209081526040918290207f0000000000000000000000000000000000000000000000000000000000000000905590519182527f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f691015b60405180910390a150565b6000546001600160a01b03163314610f3a5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600980549082905560408051828152602081018490527fd81e4554b6404363f9a2ab085fc04910f4d20930399c9978bd365f9c1f074fef91015b60405180910390a15050565b606060008267ffffffffffffffff811115610f9d57610f9d614fce565b604051908082528060200260200182016040528015610fd057816020015b6060815260200190600190039081610fbb5790505b50905060005b858110156111ba576000858583818110610ff257610ff2615355565b9050602002810190611004919061536b565b905067ffffffffffffffff81111561101e5761101e614fce565b60405190808252806020026020018201604052801561105157816020015b606081526020019060019003908161103c5790505b50905060005b86868481811061106957611069615355565b905060200281019061107b919061536b565b90508110156111875788888481811061109657611096615355565b90506020020160208101906110ab9190614b7e565b6001600160a01b031663c87b56dd8888868181106110cb576110cb615355565b90506020028101906110dd919061536b565b848181106110ed576110ed615355565b905060200201356040518263ffffffff1660e01b815260040161111291815260200190565b600060405180830381865afa15801561112f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261115791908101906153b5565b82828151811061116957611169615355565b6020026020010181905250808061117f9061545f565b915050611057565b508083838151811061119b5761119b615355565b60200260200101819052505080806111b29061545f565b915050610fd6565b5095945050505050565b6000546001600160a01b0316331461120c5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600380546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fa7afa785bc9db9a508487983d37f8223f3581fd5ae43238b3e2cc1c752e454209101610f74565b6000546001600160a01b031633146112ae5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600280546001600160a01b038a81166001600160a01b03199283168117909355600380548b83169084168117909155600580548b84169085168117909155600680548b8516908616811790915560078054948b1694909516841790945560088890556009879055600a869055604080519586526020860192909252908401526060830191909152608082015260a0810184905260c0810183905260e081018290527fa4c396c18d6df8f1716565979a731fb7a2a7f531dac8feff9961db676760802f90610100015b60405180910390a15050505050505050565b6002600154036113da5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e76565b6002600155600054600160a01b900460ff161561142c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b60095460009081526016602090815260408083208684529091529020546114955760405162461bcd60e51b815260206004820152601f60248201527f4c6976654d696e743a2054696d65536c6f742046756c6c7920426f6f6b6564006044820152606401610e76565b6009546000908152600c6020908152604080832033845290915290205460ff16156115285760405162461bcd60e51b815260206004820152602360248201527f4c6976654d696e743a20557365722048617320416c726561647920526564656560448201527f6d656400000000000000000000000000000000000000000000000000000000006064820152608401610e76565b6009546000908152600d60209081526040808320338452909152902054156115b85760405162461bcd60e51b815260206004820152602b60248201527f4c6976654d696e743a205573652052656465656d5152416c6c6f636174696f6e60448201527f28292046756e6374696f6e0000000000000000000000000000000000000000006064820152608401610e76565b6115f53383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061297292505050565b61164d5760405162461bcd60e51b815260206004820152602360248201527f4c6976654d696e743a2055736572204973204e6f74204f6e204272696768744c6044820152621a5cdd60ea1b6064820152608401610e76565b6009546000908152600c6020908152604080832033845290915290205460ff16611699576009546000908152600c602090815260408083203384529091529020805460ff191660011790555b600954600090815260166020908152604080832086845290915281208054916116c183615478565b9091555050600980546000908152601760209081526040808320600a8054855290835281842088905593548352601282528083208454845282529182902080546001600160a01b03191633908117909155925482519081529081018690527f2673188ee23126ed6a84d5d4ede1a77325cbc9664f0469b8533d6626b286727b910160405180910390a2600a805490600061175a8361545f565b909155505060018055505050565b6000546001600160a01b031633146117b05760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600280546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fa16259dba741c92b10d2339202358f678b6e920cea826df223eaa52c7b0a2c969101610f74565b6000546001600160a01b031633146118525760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b60095460009081526016602090815260408083208584528252918290208054908490558251818152918201849052917fdf9b2218770e8deab4ef5e5f3ee24b327ec522bdc844804c1d5ef90122e97663910160405180910390a1505050565b6009546000908152600e6020908152604080832085845282528083208484529091529020546001600160a01b03165b92915050565b6000546001600160a01b0316331461192e5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600480546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fa7afa785bc9db9a508487983d37f8223f3581fd5ae43238b3e2cc1c752e454209101610f74565b6000546001600160a01b031633146119d05760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600580546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527feed30cc21a856f488d40f0d214e9500d9eb8d6bdb2864966b023337e08036dde9101610f74565b6000546001600160a01b03163314611a725760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600880549082905560408051828152602081018490527f820f5f360bca3379a6943534639f36721a4ca8cf5ee114f045279880d83bdfcc9101610f74565b6000546001600160a01b03163314611af85760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6040516323b872dd60e01b81523060048201526001600160a01b038381166024830152604482018390528416906323b872dd90606401600060405180830381600087803b158015611b4857600080fd5b505af1158015611b5c573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b03163314611bad5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600680546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527ff2dc2552e164dfbe9c12877a26af83b10daae00fb40eb709638db99a44cc08669101610f74565b6000546001600160a01b03163314611c4f5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600b80549082905560408051828152602081018490527f123d88ba82600dfc3f219f8885c691b0ff020caa535666874b3f5174973757fe9101610f74565b6007546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa158015611cd7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e0919061548f565b600260015403611d4d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e76565b6002600155600054600160a01b900460ff1615611d9f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b6009546000908152601660209081526040808320868452909152902054611e085760405162461bcd60e51b815260206004820152601f60248201527f4c6976654d696e743a2054696d65536c6f742046756c6c7920426f6f6b6564006044820152606401610e76565b6009546000908152600d60209081526040808320338452909152902054611e975760405162461bcd60e51b815260206004820152602d60248201527f4c6976654d696e743a205573657220486173204e6f20515220416c6c6f63617460448201527f696f6e20546f2052656465656d000000000000000000000000000000000000006064820152608401610e76565b611ed43383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061297292505050565b611f2c5760405162461bcd60e51b815260206004820152602360248201527f4c6976654d696e743a2055736572204973204e6f74204f6e204272696768744c6044820152621a5cdd60ea1b6064820152608401610e76565b6009546000908152600c6020908152604080832033845290915290205460ff16611f78576009546000908152600c602090815260408083203384529091529020805460ff191660011790555b6009546000908152600d602090815260408083203384529091528120805491611fa083615478565b9091555050600954600090815260166020908152604080832086845290915281208054916116c183615478565b60026001540361201f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e76565b6002600155600054600160a01b900460ff16156120715760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b60095460009081526016602090815260408083208584529091529020546120da5760405162461bcd60e51b815260206004820152601f60248201527f4c6976654d696e743a2054696d65536c6f742046756c6c7920426f6f6b6564006044820152606401610e76565b6007546040516331a9108f60e11b81526004810185905233916001600160a01b031690636352211e90602401602060405180830381865afa158015612123573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612147919061548f565b6001600160a01b0316146121c35760405162461bcd60e51b815260206004820152603960248201527f4552433732313a2053656e64657220446f6573204e6f74204f776e20546f6b6560448201527f6e20576974682054686520496e70757420546f6b656e204944000000000000006064820152608401610e76565b6007546040516323b872dd60e01b81523360048201526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116602483015260448201869052909116906323b872dd90606401600060405180830381600087803b15801561223757600080fd5b505af115801561224b573d6000803e3d6000fd5b50506007546040516331a9108f60e11b8152600481018790526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811694509091169150636352211e90602401602060405180830381865afa1580156122bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e0919061548f565b6001600160a01b0316146123455760405162461bcd60e51b815260206004820152602660248201527f4552433732313a20476f6c64656e20546f6b656e20526564656d7074696f6e2060448201526511985a5b195960d21b6064820152608401610e76565b6009546000908152601660209081526040808320858452909152812080549161236d83615478565b909155505060098054600090815260176020908152604080832087845282528083208690558354835260128252808320878452825280832080546001600160a01b031916339081179091559354835260198252808320878452825291829020805485151560ff19909116811790915582518781529182018690528183015290517f6b58bb32ddb6dae0807a03b64a7cfc579641f9f374fb731a83e9e09db5d6c0af9181900360600190a250506001805550565b606060008267ffffffffffffffff81111561243d5761243d614fce565b604051908082528060200260200182016040528015612466578160200160208202803683370190505b50905060005b838110156124fa5760006124ba86868481811061248b5761248b615355565b90506020020135600954600090815260136020908152604080832093835292905220546001600160a01b031690565b9050808383815181106124cf576124cf615355565b6001600160a01b039092166020928302919091019091015250806124f28161545f565b91505061246c565b509392505050565b6000546001600160a01b0316331461254a5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6001600160a01b0381166000818152601a60209081526040918290207f0000000000000000000000000000000000000000000000000000000000000000905590519182527fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929101610ee7565b6000546001600160a01b031633146125fe5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b82811461264d5760405162461bcd60e51b815260206004820152601e60248201527f417272617973204d757374204265204f6620457175616c204c656e67746800006044820152606401610e76565b60005b838110156127a45760095460009081526013602052604081208187878581811061267c5761267c615355565b60209081029290920135835250810191909152604001600020546001600160a01b031690508383838181106126b3576126b3615355565b90506020020160208101906126c89190614b7e565b6009546000908152601360205260408120908888868181106126ec576126ec615355565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f860ead3570a96ef2984879abc0a5f74c77ffae534930253982a3284e3a01aabd8185858581811061275957612759615355565b905060200201602081019061276e9190614b7e565b604080516001600160a01b0393841681529290911660208301520160405180910390a1508061279c8161545f565b915050612650565b5050505050565b6005546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018390526060916001600160a01b03169063c87b56dd90602401600060405180830381865afa15801561280e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118e091908101906153b5565b606061285e836009546000908152601560209081526040808320938352929052205460ff1690565b6129025760095460009081526014602090815260408083208684529091529020546001600160a01b03165b6001600160a01b031663c87b56dd836040518263ffffffff1660e01b81526004016128b691815260200190565b600060405180830381865afa1580156128d3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128fb91908101906153b5565b90506118e0565b600954600090815260156020908152604080832086845290915290205460ff16156129525760095460009081526014602090815260408083208684529091529020546001600160a01b0316612889565b6040518060600160405280603181526020016156526031913990506118e0565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506129bb83600b5483614a7e565b949350505050565b336000908152601a60205260409020547f000000000000000000000000000000000000000000000000000000000000000014612a575760405162461bcd60e51b815260206004820152602d60248201527f4f6e6c794d696e7465723a2043616c6c6572204973204e6f7420417070726f7660448201526c32b21021292a1026b4b73a32b960991b6064820152608401610e76565b600054600160a01b900460ff1615612aa45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b6000612ab083836118b1565b6009546000908152601160209081526040808320878452825280832086845290915290205490915060ff1615612b4e5760405162461bcd60e51b815260206004820152602960248201527f4c6976654d696e743a20417274697374204d696e74205061737320416c72656160448201527f6479204d696e74656400000000000000000000000000000000000000000000006064820152608401610e76565b6001600160a01b038116612bca5760405162461bcd60e51b815260206004820152602f60248201527f4c6976654d696e743a204d696e74205061737320456e7465726564204973204e60448201527f6f74204272696768746c697374656400000000000000000000000000000000006064820152608401610e76565b600980546000908152600e602090815260408083208784528252808320868452825280832080546001600160a01b0319169055835483526011825280832087845282528083208684528252808320805460ff1916600117905592548083526014825283832087845282528383205490835260158252838320878452909152919020546001600160a01b039091169060ff168015612dbc5760405163efef39a160e01b8152600481018690526000906001600160a01b0384169063efef39a1906024016020604051808303816000875af1158015612cab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ccf91906154ac565b6006546040516323b872dd60e01b81523060048201526001600160a01b038781166024830152604482018490529293509116906323b872dd90606401600060405180830381600087803b158015612d2557600080fd5b505af1158015612d39573d6000803e3d6000fd5b505060095460009081526010602090815260408083208b845282528083208a84528252918290205482518b81529182018a905281830186905260ff161515606082015290516001600160a01b03881693507f3086372a0edc0afc8f7cc64433e69264e5daf9fe1236c0badd715d46f3e0c31f92509081900360800190a2506127a4565b6040517f7d21ce4d0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526001602483015260009190841690637d21ce4d906044016020604051808303816000875af1158015612e28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e4c91906154ac565b60095460009081526010602090815260408083208a845282528083208984528252918290205482518a815291820189905281830184905260ff161515606082015290519192506001600160a01b038616917f3086372a0edc0afc8f7cc64433e69264e5daf9fe1236c0badd715d46f3e0c31f9181900360800190a2505050505050565b6000546001600160a01b03163314612f175760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b8685148015612f2557508483145b8015612f3057508281145b612fa25760405162461bcd60e51b815260206004820152602e60248201527f4c6976654d696e743a204172726179204c656e67746873204d7573742042652060448201527f4f6620457175616c2056616c75650000000000000000000000000000000000006064820152608401610e76565b60005b8781101561313f57868682818110612fbf57612fbf615355565b9050602002016020810190612fd49190614b7e565b6009546000908152601360205260408120908b8b85818110612ff857612ff8615355565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555084848281811061304357613043615355565b90506020020160208101906130589190614b7e565b6009546000908152601460205260408120908b8b8581811061307c5761307c615355565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282828181106130c7576130c7615355565b90506020020160208101906130dc91906154c5565b6009546000908152601560205260408120908b8b8581811061310057613100615355565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806131379061545f565b915050612fa5565b507f713836007fc38eff49bfbfe567c85449ce57a9cea01100abd11ad4fe4323c22d888888888888888860405161137698979695949392919061557a565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506131c683600b5483614a7e565b80156131f857506009546000908152600c602090815260408083206001600160a01b038816845290915290205460ff16155b156132075760019150506118e0565b60009150506118e0565b6000546001600160a01b031633146132595760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b8281146132a85760405162461bcd60e51b815260206004820152601e60248201527f417272617973204d757374204265204f6620457175616c204c656e67746800006044820152606401610e76565b60005b838110156127a45760006132f98686848181106132ca576132ca615355565b90506020020135600954600090815260146020908152604080832093835292905220546001600160a01b031690565b905083838381811061330d5761330d615355565b90506020020160208101906133229190614b7e565b60095460009081526014602052604081209088888681811061334657613346615355565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f860ead3570a96ef2984879abc0a5f74c77ffae534930253982a3284e3a01aabd818585858181106133b3576133b3615355565b90506020020160208101906133c89190614b7e565b604080516001600160a01b0393841681529290911660208301520160405180910390a150806133f68161545f565b9150506132ab565b6000546001600160a01b031633146134465760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156134a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134cc91906154ac565b9050600081116135445760405162461bcd60e51b815260206004820152602160248201527f302045524332302042616c616e63652041742060746f6b656e4164647265737360448201527f60000000000000000000000000000000000000000000000000000000000000006064820152608401610e76565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290526001600160a01b0383169063a9059cbb906044015b6020604051808303816000875af11580156135ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135cf9190615602565b50505050565b6000546001600160a01b0316331461361d5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600780546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f51530a3c00bfe4e6f08c190a530609fef61c6152c6f823c57fd378b832e1998d9101610f74565b6000546001600160a01b031633146136bf5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b60005b838110156127a457600061370a8686848181106136e1576136e1615355565b905060200201356009546000908152601560209081526040808320938352929052205460ff1690565b905083838381811061371e5761371e615355565b905060200201602081019061373391906154c5565b60095460009081526015602052604081209088888681811061375757613757615355565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055507fbf47cc4a716200ae502190ced53e414e19a4fa881c6dd0cc31b545c16f7a2c05818585858181106137b7576137b7615355565b90506020020160208101906137cc91906154c5565b60408051921515835290151560208301520160405180910390a150806137f18161545f565b9150506136c2565b6000546001600160a01b031633146138415760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b60405133904780156108fc02916000818181858888f1935050505015801561386d573d6000803e3d6000fd5b50565b6000546001600160a01b031633146138b85760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b60005b838110156127a4578282828181106138d5576138d5615355565b90506020020135600d60006009548152602001908152602001600020600087878581811061390557613905615355565b905060200201602081019061391a9190614b7e565b6001600160a01b031681526020810191909152604001600020558061393e8161545f565b9150506138bb565b6040516bffffffffffffffffffffffff19606084901b166020820152600090819060340160405160208183030381529060405280519060200120905061398f83600b5483614a7e565b80156131f857506009546000908152600d602090815260408083206001600160a01b0388168452909152902054156132075760019150506118e0565b6000546001600160a01b03163314613a135760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600a55565b600260015403613a6a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e76565b6002600155600054600160a01b900460ff1615613abc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b6009546000908152601660209081526040808320858452909152902054613b255760405162461bcd60e51b815260206004820152601f60248201527f4c6976654d696e743a2054696d65536c6f742046756c6c7920426f6f6b6564006044820152606401610e76565b60095460009081526013602090815260408083208784529091528120546001600160a01b03166040516331a9108f60e11b81526004810186905290915033906001600160a01b03831690636352211e90602401602060405180830381865afa158015613b95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bb9919061548f565b6001600160a01b031614613c355760405162461bcd60e51b815260206004820152603960248201527f4552433732313a2053656e64657220446f6573204e6f74204f776e20546f6b6560448201527f6e20576974682054686520496e70757420546f6b656e204944000000000000006064820152608401610e76565b6040516323b872dd60e01b81523360048201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166024830152604482018690528216906323b872dd90606401600060405180830381600087803b158015613ca557600080fd5b505af1158015613cb9573d6000803e3d6000fd5b50506040516331a9108f60e11b8152600481018790526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116935084169150636352211e90602401602060405180830381865afa158015613d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d4a919061548f565b6001600160a01b031614613daf5760405162461bcd60e51b815260206004820152602660248201527f4552433732313a20476f6c64656e20546f6b656e20526564656d7074696f6e2060448201526511985a5b195960d21b6064820152608401610e76565b600980546000908152600e602090815260408083208984528252808320888452825280832080546001600160a01b0319163390811790915584548452600f83528184208a85528352818420898552835281842088905593548352601082528083208984528252808320888452825291829020805486151560ff1990911681179091558251898152918201889052818301879052606082015290517fa5ae6a47a6e9c27543588b1434014869e4531df2528bc69f949259f6e12911e19181900360800190a2505060018055505050565b606060008367ffffffffffffffff811115613e9b57613e9b614fce565b604051908082528060200260200182016040528015613ece57816020015b6060815260200190600190039081613eb95790505b50905060005b848110156111ba576000868683818110613ef057613ef0615355565b9050602002016020810190613f059190614b7e565b905060008567ffffffffffffffff811115613f2257613f22614fce565b604051908082528060200260200182016040528015613f4b578160200160208202803683370190505b5090506000805b87811161407a576040516331a9108f60e11b8152600481018290526001600160a01b03851690636352211e90602401602060405180830381865afa925050508015613fba575060408051601f3d908101601f19168201909252613fb79181019061548f565b60015b1561406857506040516331a9108f60e11b8152600481018290526001600160a01b03808d169190861690636352211e90602401602060405180830381865afa15801561400a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061402e919061548f565b6001600160a01b031603614068578083838151811061404f5761404f615355565b6020908102919091010152816140648161545f565b9250505b806140728161545f565b915050613f52565b5060008167ffffffffffffffff81111561409657614096614fce565b6040519080825280602002602001820160405280156140bf578160200160208202803683370190505b5090506000805b83811015614175578481815181106140e0576140e0615355565b60200260200101516000141580614119575080158015614119575084818151811061410d5761410d615355565b60200260200101516000145b156141635784818151811061413057614130615355565b602002602001015183838151811061414a5761414a615355565b60209081029190910101528161415f8161545f565b9250505b8061416d8161545f565b9150506140c6565b508187878151811061418957614189615355565b6020026020010181905250505050505080806141a49061545f565b915050613ed4565b60095460009081526013602090815260408083208584529091528082205490516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e90602401602060405180830381865afa15801561420f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614233919061548f565b9392505050565b6000546001600160a01b031633146142825760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526024820183905284169063095ea7b39060440161358c565b336000908152601a60205260409020547f0000000000000000000000000000000000000000000000000000000000000000146143645760405162461bcd60e51b815260206004820152602d60248201527f4f6e6c794d696e7465723a2043616c6c6572204973204e6f7420417070726f7660448201526c32b21021292a1026b4b73a32b960991b6064820152608401610e76565b600054600160a01b900460ff16156143b15760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b6009546000818152601260209081526040808320858452825280832054938352601882528083208584529091529020546001600160a01b039091169060ff16156144635760405162461bcd60e51b815260206004820152602560248201527f4c6976654d696e743a20476f6c64656e20546f6b656e20416c7265616479204d60448201527f696e7465640000000000000000000000000000000000000000000000000000006064820152608401610e76565b6001600160a01b0381166144df5760405162461bcd60e51b815260206004820152603260248201527f4c6976654d696e743a20476f6c64656e20546f6b656e20456e7465726564204960448201527f73204e6f74204272696768746c697374656400000000000000000000000000006064820152608401610e76565b600980546000908152601260209081526040808320868452825280832080546001600160a01b031916905592548252601881528282208583529052818120805460ff19166001179055600354600854925163efef39a160e01b8152600481019390935290916001600160a01b039091169063efef39a1906024016020604051808303816000875af1158015614578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061459c91906154ac565b6005546040516323b872dd60e01b81523060048201526001600160a01b038581166024830152604482018490529293509116906323b872dd90606401600060405180830381600087803b1580156145f257600080fd5b505af1158015614606573d6000803e3d6000fd5b5050600954600090815260196020908152604080832088845282529182902054825188815291820186905260ff1615158183015290516001600160a01b03861693507fd4ed97c0f7798e6cec51a7c479c4fee6f13d7400b109f3cd2e11d7192dee6c7692509081900360600190a2505050565b6000546001600160a01b031633146146c15760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b84831480156146cf57508281145b6147415760405162461bcd60e51b815260206004820152602560248201527f4c6976654d696e743a20417272617973204d75737420426520457175616c204c60448201527f656e6774680000000000000000000000000000000000000000000000000000006064820152608401610e76565b60005b85811015611b5c5786868281811061475e5761475e615355565b90506020020160208101906147739190614b7e565b6001600160a01b031663095ea7b386868481811061479357614793615355565b90506020020160208101906147a89190614b7e565b8585858181106147ba576147ba615355565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526001600160a01b03909416600485015260200291909101356024830152506044016020604051808303816000875af1158015614826573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061484a9190615602565b50806148558161545f565b915050614744565b6000546001600160a01b031633146148a55760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b8281146148f45760405162461bcd60e51b815260206004820152601860248201527f417272617973204d757374204d61746368204c656e67746800000000000000006044820152606401610e76565b60005b8381101561496d5782828281811061491157614911615355565b90506020020135601660006009548152602001908152602001600020600087878581811061494157614941615355565b9050602002013581526020019081526020016000208190555080806149659061545f565b9150506148f7565b507f5f9e37b8f3f7392196eedca2e6b71d0d7630fe97a0507b149fef5c14cf27c025848484846040516149a3949392919061561f565b60405180910390a150505050565b6000546001600160a01b031633146149f95760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6001600160a01b038116614a755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e76565b61386d81614a94565b600082614a8b8584614ae4565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b84518110156124fa576000858281518110614b0657614b06615355565b60200260200101519050808311614b2c5760008381526020829052604090209250614b3d565b600081815260208490526040902092505b5080614b488161545f565b915050614ae9565b600060208284031215614b6257600080fd5b5035919050565b6001600160a01b038116811461386d57600080fd5b600060208284031215614b9057600080fd5b813561423381614b69565b60008060408385031215614bae57600080fd5b823591506020830135614bc081614b69565b809150509250929050565b60008083601f840112614bdd57600080fd5b50813567ffffffffffffffff811115614bf557600080fd5b6020830191508360208260051b8501011115614c1057600080fd5b9250929050565b60008060008060408587031215614c2d57600080fd5b843567ffffffffffffffff80821115614c4557600080fd5b614c5188838901614bcb565b90965094506020870135915080821115614c6a57600080fd5b50614c7787828801614bcb565b95989497509550505050565b60005b83811015614c9e578181015183820152602001614c86565b838111156135cf5750506000910152565b60008151808452614cc7816020860160208601614c83565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060059250604081841b8701018488016000805b84811015614d7157898403603f19018652825180518086529089019089860190808a1b87018b01855b82811015614d5b57601f19898303018452614d49828651614caf565b948d0194938d01939150600101614d2d565b50988b0198965050509288019250600101614d04565b50919998505050505050505050565b60008060408385031215614d9357600080fd5b50508035926020909101359150565b600080600060608486031215614db757600080fd5b505081359360208301359350604090920135919050565b600080600080600080600080610100898b031215614deb57600080fd5b8835614df681614b69565b97506020890135614e0681614b69565b96506040890135614e1681614b69565b95506060890135614e2681614b69565b94506080890135614e3681614b69565b979a969950949793969560a0850135955060c08501359460e001359350915050565b600080600060408486031215614e6d57600080fd5b83359250602084013567ffffffffffffffff811115614e8b57600080fd5b614e9786828701614bcb565b9497909650939450505050565b600080600060608486031215614eb957600080fd5b8335614ec481614b69565b92506020840135614ed481614b69565b929592945050506040919091013590565b801515811461386d57600080fd5b600080600060608486031215614f0857600080fd5b83359250602084013591506040840135614f2181614ee5565b809150509250925092565b60008060208385031215614f3f57600080fd5b823567ffffffffffffffff811115614f5657600080fd5b614f6285828601614bcb565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015614faf5783516001600160a01b031683529284019291840191600101614f8a565b50909695505050505050565b6020815260006142336020830184614caf565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561500d5761500d614fce565b604052919050565b6000806040838503121561502857600080fd5b823561503381614b69565b915060208381013567ffffffffffffffff8082111561505157600080fd5b818601915086601f83011261506557600080fd5b81358181111561507757615077614fce565b8060051b9150615088848301614fe4565b81815291830184019184810190898411156150a257600080fd5b938501935b838510156150c0578435825293850193908501906150a7565b8096505050505050509250929050565b6000806000806000806000806080898b0312156150ec57600080fd5b883567ffffffffffffffff8082111561510457600080fd5b6151108c838d01614bcb565b909a50985060208b013591508082111561512957600080fd5b6151358c838d01614bcb565b909850965060408b013591508082111561514e57600080fd5b61515a8c838d01614bcb565b909650945060608b013591508082111561517357600080fd5b506151808b828c01614bcb565b999c989b5096995094979396929594505050565b600080600080608085870312156151aa57600080fd5b84359350602085013592506040850135915060608501356151ca81614ee5565b939692955090935050565b600080600080606085870312156151eb57600080fd5b84356151f681614b69565b9350602085013567ffffffffffffffff81111561521257600080fd5b61521e87828801614bcb565b9598909750949560400135949350505050565b6000602080830181845280855180835260408601915060408160051b87010192508387016000805b838110156152ad57888603603f19018552825180518088529088019088880190845b818110156152975783518352928a0192918a019160010161527b565b5090975050509386019391860191600101615259565b509398975050505050505050565b600080600080600080606087890312156152d457600080fd5b863567ffffffffffffffff808211156152ec57600080fd5b6152f88a838b01614bcb565b9098509650602089013591508082111561531157600080fd5b61531d8a838b01614bcb565b9096509450604089013591508082111561533657600080fd5b5061534389828a01614bcb565b979a9699509497509295939492505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261538257600080fd5b83018035915067ffffffffffffffff82111561539d57600080fd5b6020019150600581901b3603821315614c1057600080fd5b6000602082840312156153c757600080fd5b815167ffffffffffffffff808211156153df57600080fd5b818401915084601f8301126153f357600080fd5b81518181111561540557615405614fce565b615418601f8201601f1916602001614fe4565b915080825285602082850101111561542f57600080fd5b615440816020840160208601614c83565b50949350505050565b634e487b7160e01b600052601160045260246000fd5b60006001820161547157615471615449565b5060010190565b60008161548757615487615449565b506000190190565b6000602082840312156154a157600080fd5b815161423381614b69565b6000602082840312156154be57600080fd5b5051919050565b6000602082840312156154d757600080fd5b813561423381614ee5565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561551457600080fd5b8260051b8083602087013760009401602001938452509192915050565b8183526000602080850194508260005b8581101561556f57813561555481614b69565b6001600160a01b031687529582019590820190600101615541565b509495945050505050565b60808152600061558e608083018a8c6154e2565b6020838203818501526155a2828a8c615531565b915083820360408501526155b782888a615531565b8481036060860152858152869250810160005b868110156155f15783356155dd81614ee5565b1515825292820192908201906001016155ca565b509c9b505050505050505050505050565b60006020828403121561561457600080fd5b815161423381614ee5565b6040815260006156336040830186886154e2565b82810360208401526156468185876154e2565b97965050505050505056fe417274697374204e465420436f72726573706f6e64696e6720546f20605469636b6574494460204e6f74204d696e7465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212202d1fc9f8ef1b40183920072c6dd7303c1caeefdca32df62714f63c9f624a234264736f6c634300080e0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061054a5760003560e01c806376bce864116102bc578063ad06726411610186578063c4607e5a116100e3578063e7ee79ba11610097578063f2fde38b1161007c578063f2fde38b14610de2578063f820e21314610df5578063fbf17d1d14610dfe57600080fd5b8063e7ee79ba14610dbc578063ea44e47b14610dcf57600080fd5b8063dcf6609c116100c8578063dcf6609c14610d6b578063e0203e3214610d7e578063e314e86a14610d9157600080fd5b8063c4607e5a14610d45578063d4c7f5d214610d5857600080fd5b8063b669d1841161013a578063bc61c94f1161011f578063bc61c94f14610cff578063c31dec9814610d12578063c421a38614610d3257600080fd5b8063b669d18414610cb8578063b95247ab14610cec57600080fd5b8063b45284651161016b578063b452846514610c43578063b54c235814610c6e578063b61f796314610ca557600080fd5b8063ad06726414610bfa578063ae9f672314610c0d57600080fd5b80638da5cb5b11610234578063a361870f116101e8578063a6a09bbe116101cd578063a6a09bbe14610ba5578063a899a59014610bad578063aaf31b5f14610bc057600080fd5b8063a361870f14610b65578063a3bda46614610b7857600080fd5b80639ea801a1116102195780639ea801a114610b09578063a078a06f14610b1c578063a1daab5b14610b2f57600080fd5b80638da5cb5b14610ae557806395f0d97914610af657600080fd5b806385970d7e1161028b57806388d3187e1161027057806388d3187e14610a7157806388d3f12114610a9e57806389f2d07214610ad257600080fd5b806385970d7e14610a1c57806386170b5a14610a4357600080fd5b806376bce864146109b55780637e5d1f22146109c85780637e6db805146109db578063807f8ec4146109ee57600080fd5b8063330a5a5d1161041857806356167f05116103755780635f814b3d11610329578063652c7e391161030e578063652c7e391461096f578063656a1c3a1461098257806366e3a96b146109a257600080fd5b80635f814b3d1461095357806362d2ed991461095c57600080fd5b80635ba6ef1c1161035a5780635ba6ef1c1461090e5780635c975abb1461092e5780635dbbe83d1461094057600080fd5b806356167f05146108c75780635b4c2a70146108fb57600080fd5b806344a6da6a116103cc5780634ef2a556116103b15780634ef2a556146108715780634fdf9ccb14610884578063554a4059146108b457600080fd5b806344a6da6a1461084b5780634ed5a01f1461085e57600080fd5b80633adeeab6116103fd5780633adeeab6146107eb5780633ec5cb3d146107fe578063422d6e011461083857600080fd5b8063330a5a5d146107ad5780633477a5c7146107d857600080fd5b8063202e094a116104c65780632679f5a61161047a5780632c1850cb1161045f5780632c1850cb146107745780632ccf799414610787578063305cc9d31461079a57600080fd5b80632679f5a61461074e5780632a0978671461076157600080fd5b80632219ea9f116104ab5780632219ea9f146106f85780632318a1de1461070b5780632366b5b51461071e57600080fd5b8063202e094a146106d2578063215e6cda146106e557600080fd5b80631289d3981161051d57806316fbf6da1161050257806316fbf6da1461063f57806319894779146106735780631d728849146106a457600080fd5b80631289d398146105e157806313c9197f1461061f57600080fd5b806302ccb2101461054f57806309b345c61461056b5780630d6c2673146105b95780631010761d146105ce575b600080fd5b610558600b5481565b6040519081526020015b60405180910390f35b6105a1610579366004614b50565b600954600090815260146020908152604080832093835292905220546001600160a01b031690565b6040516001600160a01b039091168152602001610562565b6105cc6105c7366004614b7e565b610e32565b005b6105cc6105dc366004614b50565b610ef2565b61060f6105ef366004614b9b565b600c60209081526000928352604080842090915290825290205460ff1681565b6040519015158152602001610562565b61063261062d366004614c17565b610f80565b6040516105629190614cdb565b6105a161064d366004614d80565b60136020908152600092835260408084209091529082529020546001600160a01b031681565b610558610681366004614da2565b600f60209081526000938452604080852082529284528284209052825290205481565b61060f6106b2366004614d80565b601960209081526000928352604080842090915290825290205460ff1681565b6105cc6106e0366004614b7e565b6111c4565b6105cc6106f3366004614dce565b611266565b6105cc610706366004614e58565b611388565b6105cc610719366004614b7e565b611768565b61060f61072c366004614b50565b6009546000908152601560209081526040808320938352929052205460ff1690565b6105cc61075c366004614d80565b61180a565b6105a161076f366004614d80565b6118b1565b6105cc610782366004614b7e565b6118e6565b6105cc610795366004614b7e565b611988565b6105cc6107a8366004614b50565b611a2a565b6105586107bb366004614d80565b601660209081526000928352604080842090915290825290205481565b6105cc6107e6366004614ea4565b611ab0565b6105cc6107f9366004614b7e565b611b65565b6105a161080c366004614da2565b600e6020908152600093845260408085208252928452828420905282529020546001600160a01b031681565b6105cc610846366004614b50565b611c07565b6004546105a1906001600160a01b031681565b6105a161086c366004614b50565b611c8d565b6005546105a1906001600160a01b031681565b61060f610892366004614b50565b6009546000908152601860209081526040808320938352929052205460ff1690565b6105cc6108c2366004614e58565b611cfb565b6105a16108d5366004614d80565b60126020908152600092835260408084209091529082529020546001600160a01b031681565b6105cc610909366004614ef3565b611fcd565b61092161091c366004614f2c565b612420565b6040516105629190614f6e565b600054600160a01b900460ff1661060f565b6105cc61094e366004614b7e565b612502565b61055860095481565b6002546105a1906001600160a01b031681565b6105cc61097d366004614c17565b6125b6565b610995610990366004614b50565b6127ab565b6040516105629190614fbb565b6109956109b0366004614d80565b612836565b61060f6109c3366004615015565b612972565b6105cc6109d6366004614d80565b6129c3565b6105cc6109e93660046150d0565b612ecf565b61060f6109fc366004614d80565b601860209081526000928352604080842090915290825290205460ff1681565b6105a17f000000000000000000000000cff43a597911a9457071d89d2b2ac3d5b1862b8681565b61060f610a51366004614d80565b601560209081526000928352604080842090915290825290205460ff1681565b610558610a7f366004614b50565b6009546000908152601760209081526040808320938352929052205490565b61060f610aac366004614da2565b601160209081526000938452604080852082529284528284209052825290205460ff1681565b61060f610ae0366004615015565b61317d565b6000546001600160a01b03166105a1565b6105cc610b04366004614c17565b613211565b6105cc610b17366004614b7e565b6133fe565b6105cc610b2a366004614b7e565b6135d5565b6105a1610b3d366004614b50565b600954600090815260136020908152604080832093835292905220546001600160a01b031690565b6105cc610b73366004614c17565b613677565b610558610b86366004614b50565b6009546000908152601660209081526040808320938352929052205490565b6105cc6137f9565b6105cc610bbb366004614c17565b613870565b61060f610bce366004614d80565b600954600090815260116020908152604080832094835293815283822092825291909152205460ff1690565b6006546105a1906001600160a01b031681565b6105a1610c1b366004614b50565b600954600090815260126020908152604080832093835292905220546001600160a01b031690565b610558610c51366004614b9b565b600d60209081526000928352604080842090915290825290205481565b610558610c7c366004614d80565b6009546000908152600f6020908152604080832094835293815283822092825291909152205490565b61060f610cb3366004615015565b613946565b6105a1610cc6366004614d80565b60146020908152600092835260408084209091529082529020546001600160a01b031681565b6105cc610cfa366004614b50565b6139cb565b6105cc610d0d366004615194565b613a18565b610d25610d203660046151d5565b613e7e565b6040516105629190615231565b6105a1610d40366004614d80565b6141ac565b6105cc610d53366004614ea4565b61423a565b6003546105a1906001600160a01b031681565b6105cc610d79366004614b50565b6142d0565b6105cc610d8c3660046152bb565b614679565b610558610d9f366004614d80565b601760209081526000928352604080842090915290825290205481565b6007546105a1906001600160a01b031681565b6105cc610ddd366004614c17565b61485d565b6105cc610df0366004614b7e565b6149b1565b61055860085481565b61060f610e0c366004614da2565b601060209081526000938452604080852082529284528284209052825290205460ff1681565b6000546001600160a01b03163314610e7f5760405162461bcd60e51b8152602060048201819052602482015260008051602061568383398151915260448201526064015b60405180910390fd5b6001600160a01b0381166000818152601a60209081526040918290207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6905590519182527f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f691015b60405180910390a150565b6000546001600160a01b03163314610f3a5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600980549082905560408051828152602081018490527fd81e4554b6404363f9a2ab085fc04910f4d20930399c9978bd365f9c1f074fef91015b60405180910390a15050565b606060008267ffffffffffffffff811115610f9d57610f9d614fce565b604051908082528060200260200182016040528015610fd057816020015b6060815260200190600190039081610fbb5790505b50905060005b858110156111ba576000858583818110610ff257610ff2615355565b9050602002810190611004919061536b565b905067ffffffffffffffff81111561101e5761101e614fce565b60405190808252806020026020018201604052801561105157816020015b606081526020019060019003908161103c5790505b50905060005b86868481811061106957611069615355565b905060200281019061107b919061536b565b90508110156111875788888481811061109657611096615355565b90506020020160208101906110ab9190614b7e565b6001600160a01b031663c87b56dd8888868181106110cb576110cb615355565b90506020028101906110dd919061536b565b848181106110ed576110ed615355565b905060200201356040518263ffffffff1660e01b815260040161111291815260200190565b600060405180830381865afa15801561112f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261115791908101906153b5565b82828151811061116957611169615355565b6020026020010181905250808061117f9061545f565b915050611057565b508083838151811061119b5761119b615355565b60200260200101819052505080806111b29061545f565b915050610fd6565b5095945050505050565b6000546001600160a01b0316331461120c5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600380546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fa7afa785bc9db9a508487983d37f8223f3581fd5ae43238b3e2cc1c752e454209101610f74565b6000546001600160a01b031633146112ae5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600280546001600160a01b038a81166001600160a01b03199283168117909355600380548b83169084168117909155600580548b84169085168117909155600680548b8516908616811790915560078054948b1694909516841790945560088890556009879055600a869055604080519586526020860192909252908401526060830191909152608082015260a0810184905260c0810183905260e081018290527fa4c396c18d6df8f1716565979a731fb7a2a7f531dac8feff9961db676760802f90610100015b60405180910390a15050505050505050565b6002600154036113da5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e76565b6002600155600054600160a01b900460ff161561142c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b60095460009081526016602090815260408083208684529091529020546114955760405162461bcd60e51b815260206004820152601f60248201527f4c6976654d696e743a2054696d65536c6f742046756c6c7920426f6f6b6564006044820152606401610e76565b6009546000908152600c6020908152604080832033845290915290205460ff16156115285760405162461bcd60e51b815260206004820152602360248201527f4c6976654d696e743a20557365722048617320416c726561647920526564656560448201527f6d656400000000000000000000000000000000000000000000000000000000006064820152608401610e76565b6009546000908152600d60209081526040808320338452909152902054156115b85760405162461bcd60e51b815260206004820152602b60248201527f4c6976654d696e743a205573652052656465656d5152416c6c6f636174696f6e60448201527f28292046756e6374696f6e0000000000000000000000000000000000000000006064820152608401610e76565b6115f53383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061297292505050565b61164d5760405162461bcd60e51b815260206004820152602360248201527f4c6976654d696e743a2055736572204973204e6f74204f6e204272696768744c6044820152621a5cdd60ea1b6064820152608401610e76565b6009546000908152600c6020908152604080832033845290915290205460ff16611699576009546000908152600c602090815260408083203384529091529020805460ff191660011790555b600954600090815260166020908152604080832086845290915281208054916116c183615478565b9091555050600980546000908152601760209081526040808320600a8054855290835281842088905593548352601282528083208454845282529182902080546001600160a01b03191633908117909155925482519081529081018690527f2673188ee23126ed6a84d5d4ede1a77325cbc9664f0469b8533d6626b286727b910160405180910390a2600a805490600061175a8361545f565b909155505060018055505050565b6000546001600160a01b031633146117b05760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600280546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fa16259dba741c92b10d2339202358f678b6e920cea826df223eaa52c7b0a2c969101610f74565b6000546001600160a01b031633146118525760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b60095460009081526016602090815260408083208584528252918290208054908490558251818152918201849052917fdf9b2218770e8deab4ef5e5f3ee24b327ec522bdc844804c1d5ef90122e97663910160405180910390a1505050565b6009546000908152600e6020908152604080832085845282528083208484529091529020546001600160a01b03165b92915050565b6000546001600160a01b0316331461192e5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600480546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fa7afa785bc9db9a508487983d37f8223f3581fd5ae43238b3e2cc1c752e454209101610f74565b6000546001600160a01b031633146119d05760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600580546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527feed30cc21a856f488d40f0d214e9500d9eb8d6bdb2864966b023337e08036dde9101610f74565b6000546001600160a01b03163314611a725760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600880549082905560408051828152602081018490527f820f5f360bca3379a6943534639f36721a4ca8cf5ee114f045279880d83bdfcc9101610f74565b6000546001600160a01b03163314611af85760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6040516323b872dd60e01b81523060048201526001600160a01b038381166024830152604482018390528416906323b872dd90606401600060405180830381600087803b158015611b4857600080fd5b505af1158015611b5c573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b03163314611bad5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600680546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527ff2dc2552e164dfbe9c12877a26af83b10daae00fb40eb709638db99a44cc08669101610f74565b6000546001600160a01b03163314611c4f5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600b80549082905560408051828152602081018490527f123d88ba82600dfc3f219f8885c691b0ff020caa535666874b3f5174973757fe9101610f74565b6007546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa158015611cd7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e0919061548f565b600260015403611d4d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e76565b6002600155600054600160a01b900460ff1615611d9f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b6009546000908152601660209081526040808320868452909152902054611e085760405162461bcd60e51b815260206004820152601f60248201527f4c6976654d696e743a2054696d65536c6f742046756c6c7920426f6f6b6564006044820152606401610e76565b6009546000908152600d60209081526040808320338452909152902054611e975760405162461bcd60e51b815260206004820152602d60248201527f4c6976654d696e743a205573657220486173204e6f20515220416c6c6f63617460448201527f696f6e20546f2052656465656d000000000000000000000000000000000000006064820152608401610e76565b611ed43383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061297292505050565b611f2c5760405162461bcd60e51b815260206004820152602360248201527f4c6976654d696e743a2055736572204973204e6f74204f6e204272696768744c6044820152621a5cdd60ea1b6064820152608401610e76565b6009546000908152600c6020908152604080832033845290915290205460ff16611f78576009546000908152600c602090815260408083203384529091529020805460ff191660011790555b6009546000908152600d602090815260408083203384529091528120805491611fa083615478565b9091555050600954600090815260166020908152604080832086845290915281208054916116c183615478565b60026001540361201f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e76565b6002600155600054600160a01b900460ff16156120715760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b60095460009081526016602090815260408083208584529091529020546120da5760405162461bcd60e51b815260206004820152601f60248201527f4c6976654d696e743a2054696d65536c6f742046756c6c7920426f6f6b6564006044820152606401610e76565b6007546040516331a9108f60e11b81526004810185905233916001600160a01b031690636352211e90602401602060405180830381865afa158015612123573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612147919061548f565b6001600160a01b0316146121c35760405162461bcd60e51b815260206004820152603960248201527f4552433732313a2053656e64657220446f6573204e6f74204f776e20546f6b6560448201527f6e20576974682054686520496e70757420546f6b656e204944000000000000006064820152608401610e76565b6007546040516323b872dd60e01b81523360048201526001600160a01b037f000000000000000000000000cff43a597911a9457071d89d2b2ac3d5b1862b868116602483015260448201869052909116906323b872dd90606401600060405180830381600087803b15801561223757600080fd5b505af115801561224b573d6000803e3d6000fd5b50506007546040516331a9108f60e11b8152600481018790526001600160a01b037f000000000000000000000000cff43a597911a9457071d89d2b2ac3d5b1862b86811694509091169150636352211e90602401602060405180830381865afa1580156122bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e0919061548f565b6001600160a01b0316146123455760405162461bcd60e51b815260206004820152602660248201527f4552433732313a20476f6c64656e20546f6b656e20526564656d7074696f6e2060448201526511985a5b195960d21b6064820152608401610e76565b6009546000908152601660209081526040808320858452909152812080549161236d83615478565b909155505060098054600090815260176020908152604080832087845282528083208690558354835260128252808320878452825280832080546001600160a01b031916339081179091559354835260198252808320878452825291829020805485151560ff19909116811790915582518781529182018690528183015290517f6b58bb32ddb6dae0807a03b64a7cfc579641f9f374fb731a83e9e09db5d6c0af9181900360600190a250506001805550565b606060008267ffffffffffffffff81111561243d5761243d614fce565b604051908082528060200260200182016040528015612466578160200160208202803683370190505b50905060005b838110156124fa5760006124ba86868481811061248b5761248b615355565b90506020020135600954600090815260136020908152604080832093835292905220546001600160a01b031690565b9050808383815181106124cf576124cf615355565b6001600160a01b039092166020928302919091019091015250806124f28161545f565b91505061246c565b509392505050565b6000546001600160a01b0316331461254a5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6001600160a01b0381166000818152601a60209081526040918290207f0ca2130f35d7180a61feea714de11e4b72dd995ef848ffe34d9f2c765186442f905590519182527fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929101610ee7565b6000546001600160a01b031633146125fe5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b82811461264d5760405162461bcd60e51b815260206004820152601e60248201527f417272617973204d757374204265204f6620457175616c204c656e67746800006044820152606401610e76565b60005b838110156127a45760095460009081526013602052604081208187878581811061267c5761267c615355565b60209081029290920135835250810191909152604001600020546001600160a01b031690508383838181106126b3576126b3615355565b90506020020160208101906126c89190614b7e565b6009546000908152601360205260408120908888868181106126ec576126ec615355565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f860ead3570a96ef2984879abc0a5f74c77ffae534930253982a3284e3a01aabd8185858581811061275957612759615355565b905060200201602081019061276e9190614b7e565b604080516001600160a01b0393841681529290911660208301520160405180910390a1508061279c8161545f565b915050612650565b5050505050565b6005546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018390526060916001600160a01b03169063c87b56dd90602401600060405180830381865afa15801561280e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118e091908101906153b5565b606061285e836009546000908152601560209081526040808320938352929052205460ff1690565b6129025760095460009081526014602090815260408083208684529091529020546001600160a01b03165b6001600160a01b031663c87b56dd836040518263ffffffff1660e01b81526004016128b691815260200190565b600060405180830381865afa1580156128d3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128fb91908101906153b5565b90506118e0565b600954600090815260156020908152604080832086845290915290205460ff16156129525760095460009081526014602090815260408083208684529091529020546001600160a01b0316612889565b6040518060600160405280603181526020016156526031913990506118e0565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506129bb83600b5483614a7e565b949350505050565b336000908152601a60205260409020547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a614612a575760405162461bcd60e51b815260206004820152602d60248201527f4f6e6c794d696e7465723a2043616c6c6572204973204e6f7420417070726f7660448201526c32b21021292a1026b4b73a32b960991b6064820152608401610e76565b600054600160a01b900460ff1615612aa45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b6000612ab083836118b1565b6009546000908152601160209081526040808320878452825280832086845290915290205490915060ff1615612b4e5760405162461bcd60e51b815260206004820152602960248201527f4c6976654d696e743a20417274697374204d696e74205061737320416c72656160448201527f6479204d696e74656400000000000000000000000000000000000000000000006064820152608401610e76565b6001600160a01b038116612bca5760405162461bcd60e51b815260206004820152602f60248201527f4c6976654d696e743a204d696e74205061737320456e7465726564204973204e60448201527f6f74204272696768746c697374656400000000000000000000000000000000006064820152608401610e76565b600980546000908152600e602090815260408083208784528252808320868452825280832080546001600160a01b0319169055835483526011825280832087845282528083208684528252808320805460ff1916600117905592548083526014825283832087845282528383205490835260158252838320878452909152919020546001600160a01b039091169060ff168015612dbc5760405163efef39a160e01b8152600481018690526000906001600160a01b0384169063efef39a1906024016020604051808303816000875af1158015612cab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ccf91906154ac565b6006546040516323b872dd60e01b81523060048201526001600160a01b038781166024830152604482018490529293509116906323b872dd90606401600060405180830381600087803b158015612d2557600080fd5b505af1158015612d39573d6000803e3d6000fd5b505060095460009081526010602090815260408083208b845282528083208a84528252918290205482518b81529182018a905281830186905260ff161515606082015290516001600160a01b03881693507f3086372a0edc0afc8f7cc64433e69264e5daf9fe1236c0badd715d46f3e0c31f92509081900360800190a2506127a4565b6040517f7d21ce4d0000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526001602483015260009190841690637d21ce4d906044016020604051808303816000875af1158015612e28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e4c91906154ac565b60095460009081526010602090815260408083208a845282528083208984528252918290205482518a815291820189905281830184905260ff161515606082015290519192506001600160a01b038616917f3086372a0edc0afc8f7cc64433e69264e5daf9fe1236c0badd715d46f3e0c31f9181900360800190a2505050505050565b6000546001600160a01b03163314612f175760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b8685148015612f2557508483145b8015612f3057508281145b612fa25760405162461bcd60e51b815260206004820152602e60248201527f4c6976654d696e743a204172726179204c656e67746873204d7573742042652060448201527f4f6620457175616c2056616c75650000000000000000000000000000000000006064820152608401610e76565b60005b8781101561313f57868682818110612fbf57612fbf615355565b9050602002016020810190612fd49190614b7e565b6009546000908152601360205260408120908b8b85818110612ff857612ff8615355565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555084848281811061304357613043615355565b90506020020160208101906130589190614b7e565b6009546000908152601460205260408120908b8b8581811061307c5761307c615355565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282828181106130c7576130c7615355565b90506020020160208101906130dc91906154c5565b6009546000908152601560205260408120908b8b8581811061310057613100615355565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806131379061545f565b915050612fa5565b507f713836007fc38eff49bfbfe567c85449ce57a9cea01100abd11ad4fe4323c22d888888888888888860405161137698979695949392919061557a565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506131c683600b5483614a7e565b80156131f857506009546000908152600c602090815260408083206001600160a01b038816845290915290205460ff16155b156132075760019150506118e0565b60009150506118e0565b6000546001600160a01b031633146132595760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b8281146132a85760405162461bcd60e51b815260206004820152601e60248201527f417272617973204d757374204265204f6620457175616c204c656e67746800006044820152606401610e76565b60005b838110156127a45760006132f98686848181106132ca576132ca615355565b90506020020135600954600090815260146020908152604080832093835292905220546001600160a01b031690565b905083838381811061330d5761330d615355565b90506020020160208101906133229190614b7e565b60095460009081526014602052604081209088888681811061334657613346615355565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055507f860ead3570a96ef2984879abc0a5f74c77ffae534930253982a3284e3a01aabd818585858181106133b3576133b3615355565b90506020020160208101906133c89190614b7e565b604080516001600160a01b0393841681529290911660208301520160405180910390a150806133f68161545f565b9150506132ab565b6000546001600160a01b031633146134465760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156134a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134cc91906154ac565b9050600081116135445760405162461bcd60e51b815260206004820152602160248201527f302045524332302042616c616e63652041742060746f6b656e4164647265737360448201527f60000000000000000000000000000000000000000000000000000000000000006064820152608401610e76565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290526001600160a01b0383169063a9059cbb906044015b6020604051808303816000875af11580156135ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135cf9190615602565b50505050565b6000546001600160a01b0316331461361d5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600780546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f51530a3c00bfe4e6f08c190a530609fef61c6152c6f823c57fd378b832e1998d9101610f74565b6000546001600160a01b031633146136bf5760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b60005b838110156127a457600061370a8686848181106136e1576136e1615355565b905060200201356009546000908152601560209081526040808320938352929052205460ff1690565b905083838381811061371e5761371e615355565b905060200201602081019061373391906154c5565b60095460009081526015602052604081209088888681811061375757613757615355565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055507fbf47cc4a716200ae502190ced53e414e19a4fa881c6dd0cc31b545c16f7a2c05818585858181106137b7576137b7615355565b90506020020160208101906137cc91906154c5565b60408051921515835290151560208301520160405180910390a150806137f18161545f565b9150506136c2565b6000546001600160a01b031633146138415760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b60405133904780156108fc02916000818181858888f1935050505015801561386d573d6000803e3d6000fd5b50565b6000546001600160a01b031633146138b85760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b60005b838110156127a4578282828181106138d5576138d5615355565b90506020020135600d60006009548152602001908152602001600020600087878581811061390557613905615355565b905060200201602081019061391a9190614b7e565b6001600160a01b031681526020810191909152604001600020558061393e8161545f565b9150506138bb565b6040516bffffffffffffffffffffffff19606084901b166020820152600090819060340160405160208183030381529060405280519060200120905061398f83600b5483614a7e565b80156131f857506009546000908152600d602090815260408083206001600160a01b0388168452909152902054156132075760019150506118e0565b6000546001600160a01b03163314613a135760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b600a55565b600260015403613a6a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e76565b6002600155600054600160a01b900460ff1615613abc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b6009546000908152601660209081526040808320858452909152902054613b255760405162461bcd60e51b815260206004820152601f60248201527f4c6976654d696e743a2054696d65536c6f742046756c6c7920426f6f6b6564006044820152606401610e76565b60095460009081526013602090815260408083208784529091528120546001600160a01b03166040516331a9108f60e11b81526004810186905290915033906001600160a01b03831690636352211e90602401602060405180830381865afa158015613b95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bb9919061548f565b6001600160a01b031614613c355760405162461bcd60e51b815260206004820152603960248201527f4552433732313a2053656e64657220446f6573204e6f74204f776e20546f6b6560448201527f6e20576974682054686520496e70757420546f6b656e204944000000000000006064820152608401610e76565b6040516323b872dd60e01b81523360048201526001600160a01b037f000000000000000000000000cff43a597911a9457071d89d2b2ac3d5b1862b8681166024830152604482018690528216906323b872dd90606401600060405180830381600087803b158015613ca557600080fd5b505af1158015613cb9573d6000803e3d6000fd5b50506040516331a9108f60e11b8152600481018790526001600160a01b037f000000000000000000000000cff43a597911a9457071d89d2b2ac3d5b1862b868116935084169150636352211e90602401602060405180830381865afa158015613d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d4a919061548f565b6001600160a01b031614613daf5760405162461bcd60e51b815260206004820152602660248201527f4552433732313a20476f6c64656e20546f6b656e20526564656d7074696f6e2060448201526511985a5b195960d21b6064820152608401610e76565b600980546000908152600e602090815260408083208984528252808320888452825280832080546001600160a01b0319163390811790915584548452600f83528184208a85528352818420898552835281842088905593548352601082528083208984528252808320888452825291829020805486151560ff1990911681179091558251898152918201889052818301879052606082015290517fa5ae6a47a6e9c27543588b1434014869e4531df2528bc69f949259f6e12911e19181900360800190a2505060018055505050565b606060008367ffffffffffffffff811115613e9b57613e9b614fce565b604051908082528060200260200182016040528015613ece57816020015b6060815260200190600190039081613eb95790505b50905060005b848110156111ba576000868683818110613ef057613ef0615355565b9050602002016020810190613f059190614b7e565b905060008567ffffffffffffffff811115613f2257613f22614fce565b604051908082528060200260200182016040528015613f4b578160200160208202803683370190505b5090506000805b87811161407a576040516331a9108f60e11b8152600481018290526001600160a01b03851690636352211e90602401602060405180830381865afa925050508015613fba575060408051601f3d908101601f19168201909252613fb79181019061548f565b60015b1561406857506040516331a9108f60e11b8152600481018290526001600160a01b03808d169190861690636352211e90602401602060405180830381865afa15801561400a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061402e919061548f565b6001600160a01b031603614068578083838151811061404f5761404f615355565b6020908102919091010152816140648161545f565b9250505b806140728161545f565b915050613f52565b5060008167ffffffffffffffff81111561409657614096614fce565b6040519080825280602002602001820160405280156140bf578160200160208202803683370190505b5090506000805b83811015614175578481815181106140e0576140e0615355565b60200260200101516000141580614119575080158015614119575084818151811061410d5761410d615355565b60200260200101516000145b156141635784818151811061413057614130615355565b602002602001015183838151811061414a5761414a615355565b60209081029190910101528161415f8161545f565b9250505b8061416d8161545f565b9150506140c6565b508187878151811061418957614189615355565b6020026020010181905250505050505080806141a49061545f565b915050613ed4565b60095460009081526013602090815260408083208584529091528082205490516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e90602401602060405180830381865afa15801561420f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614233919061548f565b9392505050565b6000546001600160a01b031633146142825760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526024820183905284169063095ea7b39060440161358c565b336000908152601a60205260409020547f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6146143645760405162461bcd60e51b815260206004820152602d60248201527f4f6e6c794d696e7465723a2043616c6c6572204973204e6f7420417070726f7660448201526c32b21021292a1026b4b73a32b960991b6064820152608401610e76565b600054600160a01b900460ff16156143b15760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e76565b6009546000818152601260209081526040808320858452825280832054938352601882528083208584529091529020546001600160a01b039091169060ff16156144635760405162461bcd60e51b815260206004820152602560248201527f4c6976654d696e743a20476f6c64656e20546f6b656e20416c7265616479204d60448201527f696e7465640000000000000000000000000000000000000000000000000000006064820152608401610e76565b6001600160a01b0381166144df5760405162461bcd60e51b815260206004820152603260248201527f4c6976654d696e743a20476f6c64656e20546f6b656e20456e7465726564204960448201527f73204e6f74204272696768746c697374656400000000000000000000000000006064820152608401610e76565b600980546000908152601260209081526040808320868452825280832080546001600160a01b031916905592548252601881528282208583529052818120805460ff19166001179055600354600854925163efef39a160e01b8152600481019390935290916001600160a01b039091169063efef39a1906024016020604051808303816000875af1158015614578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061459c91906154ac565b6005546040516323b872dd60e01b81523060048201526001600160a01b038581166024830152604482018490529293509116906323b872dd90606401600060405180830381600087803b1580156145f257600080fd5b505af1158015614606573d6000803e3d6000fd5b5050600954600090815260196020908152604080832088845282529182902054825188815291820186905260ff1615158183015290516001600160a01b03861693507fd4ed97c0f7798e6cec51a7c479c4fee6f13d7400b109f3cd2e11d7192dee6c7692509081900360600190a2505050565b6000546001600160a01b031633146146c15760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b84831480156146cf57508281145b6147415760405162461bcd60e51b815260206004820152602560248201527f4c6976654d696e743a20417272617973204d75737420426520457175616c204c60448201527f656e6774680000000000000000000000000000000000000000000000000000006064820152608401610e76565b60005b85811015611b5c5786868281811061475e5761475e615355565b90506020020160208101906147739190614b7e565b6001600160a01b031663095ea7b386868481811061479357614793615355565b90506020020160208101906147a89190614b7e565b8585858181106147ba576147ba615355565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526001600160a01b03909416600485015260200291909101356024830152506044016020604051808303816000875af1158015614826573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061484a9190615602565b50806148558161545f565b915050614744565b6000546001600160a01b031633146148a55760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b8281146148f45760405162461bcd60e51b815260206004820152601860248201527f417272617973204d757374204d61746368204c656e67746800000000000000006044820152606401610e76565b60005b8381101561496d5782828281811061491157614911615355565b90506020020135601660006009548152602001908152602001600020600087878581811061494157614941615355565b9050602002013581526020019081526020016000208190555080806149659061545f565b9150506148f7565b507f5f9e37b8f3f7392196eedca2e6b71d0d7630fe97a0507b149fef5c14cf27c025848484846040516149a3949392919061561f565b60405180910390a150505050565b6000546001600160a01b031633146149f95760405162461bcd60e51b815260206004820181905260248201526000805160206156838339815191526044820152606401610e76565b6001600160a01b038116614a755760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610e76565b61386d81614a94565b600082614a8b8584614ae4565b14949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b84518110156124fa576000858281518110614b0657614b06615355565b60200260200101519050808311614b2c5760008381526020829052604090209250614b3d565b600081815260208490526040902092505b5080614b488161545f565b915050614ae9565b600060208284031215614b6257600080fd5b5035919050565b6001600160a01b038116811461386d57600080fd5b600060208284031215614b9057600080fd5b813561423381614b69565b60008060408385031215614bae57600080fd5b823591506020830135614bc081614b69565b809150509250929050565b60008083601f840112614bdd57600080fd5b50813567ffffffffffffffff811115614bf557600080fd5b6020830191508360208260051b8501011115614c1057600080fd5b9250929050565b60008060008060408587031215614c2d57600080fd5b843567ffffffffffffffff80821115614c4557600080fd5b614c5188838901614bcb565b90965094506020870135915080821115614c6a57600080fd5b50614c7787828801614bcb565b95989497509550505050565b60005b83811015614c9e578181015183820152602001614c86565b838111156135cf5750506000910152565b60008151808452614cc7816020860160208601614c83565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060059250604081841b8701018488016000805b84811015614d7157898403603f19018652825180518086529089019089860190808a1b87018b01855b82811015614d5b57601f19898303018452614d49828651614caf565b948d0194938d01939150600101614d2d565b50988b0198965050509288019250600101614d04565b50919998505050505050505050565b60008060408385031215614d9357600080fd5b50508035926020909101359150565b600080600060608486031215614db757600080fd5b505081359360208301359350604090920135919050565b600080600080600080600080610100898b031215614deb57600080fd5b8835614df681614b69565b97506020890135614e0681614b69565b96506040890135614e1681614b69565b95506060890135614e2681614b69565b94506080890135614e3681614b69565b979a969950949793969560a0850135955060c08501359460e001359350915050565b600080600060408486031215614e6d57600080fd5b83359250602084013567ffffffffffffffff811115614e8b57600080fd5b614e9786828701614bcb565b9497909650939450505050565b600080600060608486031215614eb957600080fd5b8335614ec481614b69565b92506020840135614ed481614b69565b929592945050506040919091013590565b801515811461386d57600080fd5b600080600060608486031215614f0857600080fd5b83359250602084013591506040840135614f2181614ee5565b809150509250925092565b60008060208385031215614f3f57600080fd5b823567ffffffffffffffff811115614f5657600080fd5b614f6285828601614bcb565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015614faf5783516001600160a01b031683529284019291840191600101614f8a565b50909695505050505050565b6020815260006142336020830184614caf565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561500d5761500d614fce565b604052919050565b6000806040838503121561502857600080fd5b823561503381614b69565b915060208381013567ffffffffffffffff8082111561505157600080fd5b818601915086601f83011261506557600080fd5b81358181111561507757615077614fce565b8060051b9150615088848301614fe4565b81815291830184019184810190898411156150a257600080fd5b938501935b838510156150c0578435825293850193908501906150a7565b8096505050505050509250929050565b6000806000806000806000806080898b0312156150ec57600080fd5b883567ffffffffffffffff8082111561510457600080fd5b6151108c838d01614bcb565b909a50985060208b013591508082111561512957600080fd5b6151358c838d01614bcb565b909850965060408b013591508082111561514e57600080fd5b61515a8c838d01614bcb565b909650945060608b013591508082111561517357600080fd5b506151808b828c01614bcb565b999c989b5096995094979396929594505050565b600080600080608085870312156151aa57600080fd5b84359350602085013592506040850135915060608501356151ca81614ee5565b939692955090935050565b600080600080606085870312156151eb57600080fd5b84356151f681614b69565b9350602085013567ffffffffffffffff81111561521257600080fd5b61521e87828801614bcb565b9598909750949560400135949350505050565b6000602080830181845280855180835260408601915060408160051b87010192508387016000805b838110156152ad57888603603f19018552825180518088529088019088880190845b818110156152975783518352928a0192918a019160010161527b565b5090975050509386019391860191600101615259565b509398975050505050505050565b600080600080600080606087890312156152d457600080fd5b863567ffffffffffffffff808211156152ec57600080fd5b6152f88a838b01614bcb565b9098509650602089013591508082111561531157600080fd5b61531d8a838b01614bcb565b9096509450604089013591508082111561533657600080fd5b5061534389828a01614bcb565b979a9699509497509295939492505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261538257600080fd5b83018035915067ffffffffffffffff82111561539d57600080fd5b6020019150600581901b3603821315614c1057600080fd5b6000602082840312156153c757600080fd5b815167ffffffffffffffff808211156153df57600080fd5b818401915084601f8301126153f357600080fd5b81518181111561540557615405614fce565b615418601f8201601f1916602001614fe4565b915080825285602082850101111561542f57600080fd5b615440816020840160208601614c83565b50949350505050565b634e487b7160e01b600052601160045260246000fd5b60006001820161547157615471615449565b5060010190565b60008161548757615487615449565b506000190190565b6000602082840312156154a157600080fd5b815161423381614b69565b6000602082840312156154be57600080fd5b5051919050565b6000602082840312156154d757600080fd5b813561423381614ee5565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561551457600080fd5b8260051b8083602087013760009401602001938452509192915050565b8183526000602080850194508260005b8581101561556f57813561555481614b69565b6001600160a01b031687529582019590820190600101615541565b509495945050505050565b60808152600061558e608083018a8c6154e2565b6020838203818501526155a2828a8c615531565b915083820360408501526155b782888a615531565b8481036060860152858152869250810160005b868110156155f15783356155dd81614ee5565b1515825292820192908201906001016155ca565b509c9b505050505050505050505050565b60006020828403121561561457600080fd5b815161423381614ee5565b6040815260006156336040830186886154e2565b82810360208401526156468185876154e2565b97965050505050505056fe417274697374204e465420436f72726573706f6e64696e6720546f20605469636b6574494460204e6f74204d696e7465644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212202d1fc9f8ef1b40183920072c6dd7303c1caeefdca32df62714f63c9f624a234264736f6c634300080e0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.