Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 4,536 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21105574 | 20 days ago | IN | 0 ETH | 0.00005797 | ||||
Set Approval For... | 20997353 | 35 days ago | IN | 0 ETH | 0.00021576 | ||||
Set Approval For... | 20481961 | 107 days ago | IN | 0 ETH | 0.00009363 | ||||
Set Approval For... | 20207203 | 145 days ago | IN | 0 ETH | 0.0001 | ||||
Transfer From | 20146506 | 154 days ago | IN | 0 ETH | 0.00011553 | ||||
Transfer From | 20146504 | 154 days ago | IN | 0 ETH | 0.00017124 | ||||
Transfer From | 20146502 | 154 days ago | IN | 0 ETH | 0.00021603 | ||||
Set Approval For... | 19703627 | 216 days ago | IN | 0 ETH | 0.00017733 | ||||
Set Approval For... | 19567459 | 235 days ago | IN | 0 ETH | 0.00067829 | ||||
Set Approval For... | 19531885 | 240 days ago | IN | 0 ETH | 0.00120853 | ||||
Safe Transfer Fr... | 19488369 | 246 days ago | IN | 0 ETH | 0.00137387 | ||||
Set Approval For... | 19311416 | 271 days ago | IN | 0 ETH | 0.00124347 | ||||
Set Approval For... | 19150957 | 293 days ago | IN | 0 ETH | 0.00081449 | ||||
Set Approval For... | 19147149 | 294 days ago | IN | 0 ETH | 0.0007833 | ||||
Set Approval For... | 18939339 | 323 days ago | IN | 0 ETH | 0.00031612 | ||||
Set Approval For... | 18804023 | 342 days ago | IN | 0 ETH | 0.00073383 | ||||
Set Approval For... | 18800315 | 342 days ago | IN | 0 ETH | 0.00135985 | ||||
Set Approval For... | 18799472 | 343 days ago | IN | 0 ETH | 0.00149686 | ||||
Set Approval For... | 18557776 | 376 days ago | IN | 0 ETH | 0.00141628 | ||||
Set Approval For... | 18488949 | 386 days ago | IN | 0 ETH | 0.00048368 | ||||
Set Approval For... | 18350677 | 405 days ago | IN | 0 ETH | 0.00013865 | ||||
Set Approval For... | 18152858 | 433 days ago | IN | 0 ETH | 0.00020277 | ||||
Set Approval For... | 18111101 | 439 days ago | IN | 0 ETH | 0.00040486 | ||||
Set Approval For... | 18061673 | 446 days ago | IN | 0 ETH | 0.00078802 | ||||
Set Approval For... | 17966031 | 459 days ago | IN | 0 ETH | 0.00059326 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17012100 | 594 days ago | 0.00190142 ETH | ||||
17012100 | 594 days ago | 0.00282856 ETH | ||||
16505830 | 665 days ago | 0.00768252 ETH | ||||
16505830 | 665 days ago | 0.01142855 ETH | ||||
16505826 | 665 days ago | 0.03104051 ETH | ||||
16505826 | 665 days ago | 0.04617597 ETH | ||||
16505817 | 665 days ago | 0.12541623 ETH | ||||
16505817 | 665 days ago | 0.1865696 ETH | ||||
15040958 | 878 days ago | 0.00073224 ETH | ||||
15040958 | 878 days ago | 0.00108929 ETH | ||||
15040928 | 878 days ago | 0.00295857 ETH | ||||
15040928 | 878 days ago | 0.00440119 ETH | ||||
15040852 | 878 days ago | 0.01195385 ETH | ||||
15040852 | 878 days ago | 0.01778259 ETH | ||||
15040849 | 878 days ago | 0.04829841 ETH | ||||
15040849 | 878 days ago | 0.07184887 ETH | ||||
15040841 | 878 days ago | 0.19514509 ETH | ||||
15040841 | 878 days ago | 0.29029849 ETH | ||||
15040839 | 878 days ago | 0.78846504 ETH | ||||
15040839 | 878 days ago | 1.1729232 ETH | ||||
15040836 | 878 days ago | 3.18571734 ETH | ||||
15040836 | 878 days ago | 4.73908365 ETH | ||||
15040819 | 878 days ago | 12.87158523 ETH | ||||
15040819 | 878 days ago | 19.14781275 ETH | ||||
15040693 | 879 days ago | 52.006405 ETH |
Loading...
Loading
Contract Name:
AlphaGangGenerative
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./ERC721A.sol"; import "./interfaces/IAlphaGangGenerative.sol"; contract AlphaGangGenerative is ERC721A, Ownable { string public baseURI; uint256 public constant PRICE_WHALE = 49000000000000000; // 0.049 ether uint256 public constant PRICE = 69000000000000000; // 0.069 ether uint256 public price = PRICE; // 0.069 ether uint256 public constant SUPPLY = 5555; uint256 public maxSupply = 5777; address communityWallet = 0x08180E4DE9746BC1b3402aDd7fd0E61C9C100881; address payWallet = 0x08180E4DE9746BC1b3402aDd7fd0E61C9C100881; // Phase 1: Only WL and OG, Supply 999 // Phase 2: Only WL and OG, Supply 1999 // Phase 3: All, Supply 2555 uint8 public mintPhase; mapping(address => uint256) public walletMints; bool public revealed; bytes32 whiteListMerkleI; bytes32 whiteListMerkleII; bytes32 waitListMerkle; constructor( string memory _initBaseURI, bytes32 _wlMRI, bytes32 _wlMRII, bytes32 _w8lMR ) ERC721A("Alpha Gang Generative", "AGG") { baseURI = _initBaseURI; whiteListMerkleI = _wlMRI; whiteListMerkleII = _wlMRII; waitListMerkle = _w8lMR; _safeMint(address(this), 1); } modifier mintCompliance(uint256 _mintAmount, uint8 mintType) { require(msg.sender == tx.origin, "EOA only"); require((totalSupply() + _mintAmount) <= SUPPLY, "Max supply exceeded"); require(mintActive(mintType), "Sale is not active"); _; } function mintActive(uint8 mintType) public view returns (bool active) { uint256 _totalSupplyG2 = totalSupply(); // Note this will allow for last mint to go over allocation if (mintPhase == 1) return mintType == 1 && _totalSupplyG2 < 1000; if (mintPhase == 2) return mintType == 1 && _totalSupplyG2 < 3000; if (mintPhase == 3) return mintType > 0; if (mintPhase == 4) return true; return false; } function ogMint(uint256 _mintAmount, uint256 _stakeCount) external payable mintCompliance(_mintAmount, 1) { address _owner = msg.sender; uint256 allocation = AGStake.ogAllocation(_owner); uint256 _walletMints = walletMints[msg.sender]; require(allocation > _walletMints, "No allocation"); if (_mintAmount > allocation - _walletMints) { _mintAmount = allocation - _walletMints; } // get the price, whales get discount uint256 _price = allocation > 4 ? PRICE_WHALE : PRICE; require(msg.value >= allocation * _price, "Insufficient funds!"); uint256 firstTokenId = _nextTokenId(); walletMints[msg.sender] += _mintAmount; _mint(_owner, _mintAmount); // if _stake is selected if (_stakeCount > 0) { unchecked { uint256[] memory _tokensToStake = new uint256[](_mintAmount); for (uint256 i = 0; i < _stakeCount; i++) { _tokensToStake[i] = firstTokenId + i; } AGStake.stakeG2(_tokensToStake); } } } /** * @dev Function for white-listed members to mint a token * * Note having 2 separate functions will increase deployment cost but marginaly decrease minting cost */ function mintWhiteListI(bytes32[] calldata _merkleProof, bool _stake) external payable mintCompliance(1, 1) { require(msg.value >= price, "Insufficient funds!"); require(walletMints[msg.sender] < 2, "One pass per wallet"); require( MerkleProof.verify( _merkleProof, whiteListMerkleI, keccak256(abi.encodePacked(msg.sender)) // leaf ), "Invalid Merkle Proof." ); walletMints[msg.sender]++; _mint(msg.sender, 1); // if mint and stake call {stake} on {AGStakeFull} if (_stake) { uint256[] memory _tokensToStake = new uint256[](1); _tokensToStake[0] = _nextTokenId() - 1; AGStake.stakeG2(_tokensToStake); } } /** * @dev Function for white-listed members to mint two tokens * */ function mintWhiteListII(bytes32[] calldata _merkleProof, bool _stake) external payable mintCompliance(2, 1) { require(msg.value >= price * 2, "Insufficient funds!"); require(walletMints[msg.sender] < 1, "One pass per wallet"); require( MerkleProof.verify( _merkleProof, whiteListMerkleII, keccak256(abi.encodePacked(msg.sender)) // leaf ), "Invalid Merkle Proof." ); walletMints[msg.sender]++; _mint(msg.sender, 2); // if mint and stake call {stake} on {AGStakeFull} if (_stake) { uint256[] memory _tokensToStake = new uint256[](1); _tokensToStake[0] = _nextTokenId() - 1; _tokensToStake[0] = _nextTokenId() - 2; AGStake.stakeG2(_tokensToStake); } } /** * @dev Function for wait-listed members to mint a token * */ function mintWaitList(bytes32[] calldata _merkleProof, bool _stake) external payable mintCompliance(1, 2) { require(msg.value >= price, "Insufficient funds!"); require(walletMints[msg.sender] < 2, "One pass per wallet"); require( MerkleProof.verify( _merkleProof, waitListMerkle, keccak256(abi.encodePacked(msg.sender)) // leaf ), "Invalid Merkle Proof." ); walletMints[msg.sender]++; _mint(msg.sender, 1); // if mint and stake call {stake} on {AGStakeFull} if (_stake) { uint256[] memory _tokensToStake = new uint256[](1); _tokensToStake[0] = _nextTokenId() - 1; AGStake.stakeG2(_tokensToStake); } } function mintPublic(bool _stake) external payable mintCompliance(1, 0) { require(msg.value >= price, "Insufficient funds!"); require(walletMints[msg.sender] < 2, "One pass per wallet"); walletMints[msg.sender]++; _mint(msg.sender, 1); // if mint and stake call {stake} on {AGStakeFull} if (_stake) { uint256[] memory _tokensToStake = new uint256[](1); _tokensToStake[0] = _nextTokenId() - 1; AGStake.stakeG2(_tokensToStake); } } /** * @dev Minting for Community wallet and team * * This has additional 222 amount that it can tap into * Only for owners use */ function mintForAddress(uint256 _mintAmount, address _receiver) public onlyOwner { require( (totalSupply() + _mintAmount) <= maxSupply, "Max reserves exhausted." ); _mint(_receiver, _mintAmount); } function setRevealed() public onlyOwner { revealed = true; } /** * @dev sets a state of mint * * Requirements: * * - `_state` should be in: [0, 1, 2, 3, 4] * - 0 - mint not active, default * - 1 - sets mint to Phase 1 * - 2 - sets mint to Phase 2 * - 3 - sets mint to Phase 3 * - 4 - sets mint to Public Mint * - mint is not active by default */ function setSale(uint8 _state) public onlyOwner { mintPhase = _state; } /** * @dev Sets a Merkle proof() for a sale * * Requirements: * * - `_saleId` must be in: [0, 1, 2] * - 0 - sets a proof for { mintWhiteListI } * - 1 - sets a proof for { mintWhiteListII } * - 2 - sets a proof for { mintWaitList } * - `_state` bool value */ function setMerkle(uint256 _saleId, bytes32 _merkleRoot) public onlyOwner { if (_saleId == 0) { whiteListMerkleI = _merkleRoot; } if (_saleId == 1) { whiteListMerkleII = _merkleRoot; } if (_saleId == 2) { waitListMerkle = _merkleRoot; } } // owner wallet(55%), community wallet(45%) function withdraw() public onlyOwner { (bool hs, ) = payable(payWallet).call{ value: (address(this).balance * 45) / 100 }(""); require(hs); (bool os, ) = payable(communityWallet).call{ value: (address(this).balance * 55) / 100 }(""); require(os); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (!revealed) return _baseURI(); return super.tokenURI(_tokenId); } function tokensOfOwner(address _owner) external view returns (uint256[] memory ownerTokens) { uint256 supply = totalSupply(); uint256 _ownerTokenCount = balanceOf(_owner); uint256[] memory _ownerTokens = new uint256[](_ownerTokenCount); unchecked { uint256 index; for (uint256 tokenId = 1; tokenId <= supply; ++tokenId) { if (ownerOf(tokenId) == _owner) { _ownerTokens[index] = tokenId; ++index; } } } return _ownerTokens; } function setWallets(address _wallet, bool _payWallet) external onlyOwner { if (_payWallet) { payWallet = _wallet; } else { communityWallet = _wallet; } } /** * Sets the price for mint * To be used for Phase 3 of the mint */ function setPrice(uint256 _price) external onlyOwner { price = _price; } function setMaxSupply(uint256 _maxSupply) external onlyOwner { maxSupply = _maxSupply; } /** * Staking Contract addresse setter */ function setAGStake(address _agStake) external onlyOwner { AGStake = IAGStake(_agStake); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { 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 // ERC721A Contracts v4.0.0 // Creator: Chiru Labs // Modified by AlphaGang dev.dev pragma solidity ^0.8.4; import "erc721a/contracts/IERC721A.sol"; import "./interfaces/IAGStakeFull.sol"; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * Cannot transfer a staked token. */ error TransferIsLocked(); /** * Cannot transfer while token transfer is disabled. */ error TransferIsLockedGlobally(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // ref to staking contract. IAGStake AGStake; // transfer is locked for all items. // bool public allTransfersLocked; // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ""; } /** * @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 Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { // approve staking contract for all if (operator == address(AGStake)) return true; return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if ( !_checkContractOnERC721Received( address(0), to, updatedIndex++, _data ) ) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); // TODO add AGStake here bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); // // check for global lock // if (allTransfersLocked) revert TransferIsLockedGlobally(); // // Check for staking // if (AGStake.vaultG2(from, tokenId) != 0) revert TransferIsLocked(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received( _msgSenderERC721A(), from, tokenId, _data ) returns (bytes4 retval) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; interface IAlphaGangGenerative { function balanceOf(address account) external view returns (uint256); function transferFrom( address from, address to, uint256 tokenId ) external; function ownerOf(uint256 tokenId) external view returns (address); function setApprovalForAll(address operator, bool approved) external; function totalSupply() external view returns (uint256); function SUPPLY_MAX() external view returns (uint256); function mintActive(uint8 mintType) external view returns (bool); function tokensOfOwner(address _owner) external view returns (uint256[] memory ownerTokens); }
// 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 // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @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 LICENSE pragma solidity ^0.8.0; interface IAGStake { event StakedG2(address owner, uint256[] tokenIds, uint256 timestamp); event UnstakedG2(address owner, uint256[] tokenIds, uint256 timestamp); event StakedOG( address owner, uint256[] tokenIds, uint256[] counts, uint256 timestamp ); event StakedForMint( address owner, uint256[] tokenIds, uint256[] counts, uint256 timestamp ); event UnstakedOG( address owner, uint256[] tokenIds, uint256[] counts, uint256 timestamp ); event Claimed(address owner, uint256 amount, uint256 timestamp); function ogAllocation(address _owner) external view returns (uint256 _allocation); function vaultG2(address, uint256) external view returns (uint256); function stakeG2(uint256[] calldata tokenIds) external; function updateOGAllocation(address _owner, uint256 _count) external; }
{ "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
[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"bytes32","name":"_wlMRI","type":"bytes32"},{"internalType":"bytes32","name":"_wlMRII","type":"bytes32"},{"internalType":"bytes32","name":"_w8lMR","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_WHALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"mintType","type":"uint8"}],"name":"mintActive","outputs":[{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintPhase","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_stake","type":"bool"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"mintWaitList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"mintWhiteListI","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"bool","name":"_stake","type":"bool"}],"name":"mintWhiteListII","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_stakeCount","type":"uint256"}],"name":"ogMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_agStake","type":"address"}],"name":"setAGStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_state","type":"uint8"}],"name":"setSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_payWallet","type":"bool"}],"name":"setWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405266f5232269808000600b55611691600c55600d80547308180e4de9746bc1b3402add7fd0e61c9c1008816001600160a01b03199182168117909255600e805490911690911790553480156200005857600080fd5b50604051620037a1380380620037a18339810160408190526200007b916200050c565b6040518060400160405280601581526020017f416c7068612047616e672047656e6572617469766500000000000000000000008152506040518060400160405280600381526020016241474760e81b8152508160039080519060200190620000e592919062000421565b508051620000fb90600490602084019062000421565b505060018055506200010d3362000149565b83516200012290600a90602087019062000421565b506011839055601282905560138190556200013f3060016200019b565b50505050620006a4565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001bd828260405180602001604052806000815250620001c160201b60201c565b5050565b6001546001600160a01b038416620001eb57604051622e076360e81b815260040160405180910390fd5b826000036200020d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526006602090815260408083208054680100000000000000018902019055848352600590915290204260a01b86176001861460e11b1790558190818501903b15620002d9575b60405182906001600160a01b0388169060009060008051602062003781833981519152908290a460018201916200029e906000908890876200032d565b620002bc576040516368d2bf6b60e11b815260040160405180910390fd5b80821062000261578260015414620002d357600080fd5b6200030e565b5b6040516001830192906001600160a01b0388169060009060008051602062003781833981519152908290a4808210620002da575b506001556200032760008583866001600160e01b038516565b50505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029062000364903390899088908890600401620005df565b6020604051808303816000875af1925050508015620003a2575060408051601f3d908101601f191682019092526200039f9181019062000635565b60015b62000404573d808015620003d3576040519150601f19603f3d011682016040523d82523d6000602084013e620003d8565b606091505b508051600003620003fc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b8280546200042f9062000668565b90600052602060002090601f0160209004810192826200045357600085556200049e565b82601f106200046e57805160ff19168380011785556200049e565b828001600101855582156200049e579182015b828111156200049e57825182559160200191906001019062000481565b50620004ac929150620004b0565b5090565b5b80821115620004ac5760008155600101620004b1565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004fa578181015183820152602001620004e0565b83811115620003275750506000910152565b600080600080608085870312156200052357600080fd5b84516001600160401b03808211156200053b57600080fd5b818701915087601f8301126200055057600080fd5b815181811115620005655762000565620004c7565b604051601f8201601f19908116603f01168101908382118183101715620005905762000590620004c7565b816040528281528a6020848701011115620005aa57600080fd5b620005bd836020830160208801620004dd565b60208a015160408b01516060909b0151919c909b509098509650505050505050565b600060018060a01b0380871683528086166020840152508360408301526080606083015282518060808401526200061e8160a0850160208701620004dd565b601f01601f19169190910160a00195945050505050565b6000602082840312156200064857600080fd5b81516001600160e01b0319811681146200066157600080fd5b9392505050565b600181811c908216806200067d57607f821691505b6020821081036200069e57634e487b7160e01b600052602260045260246000fd5b50919050565b6130cd80620006b46000396000f3fe6080604052600436106102dc5760003560e01c80638462151c11610184578063c87b56dd116100d6578063efbd73f41161008a578063f2fde38b11610064578063f2fde38b1461079e578063f66d276b146107be578063febfec50146107de57600080fd5b8063efbd73f414610731578063f0293fd314610751578063f22fb1d31461077e57600080fd5b8063d61d7055116100bb578063d61d7055146106e3578063e985e9c5146106fe578063ec9110221461071e57600080fd5b8063c87b56dd146106ad578063d5abeb01146106cd57600080fd5b806395d89b4111610138578063af04646011610112578063af04646014610664578063b88d4fde14610677578063c50497ae1461069757600080fd5b806395d89b4114610619578063a035b1fe1461062e578063a22cb4651461064457600080fd5b80638da5cb5b116101695780638da5cb5b146105c85780639086018b146105e657806391b7f5ed146105f957600080fd5b80638462151c146105805780638d859f3e146105ad57600080fd5b80633ccfd60b1161023d5780636969e91b116101f157806370a08231116101cb57806370a0823114610538578063715018a61461055857806377845f641461056d57600080fd5b80636969e91b146104e35780636c0360eb146105035780636f8b44b01461051857600080fd5b80635183022711610222578063518302271461048957806355f804b3146104a35780636352211e146104c357600080fd5b80633ccfd60b1461045457806342842e0e1461046957600080fd5b806318160ddd1161029457806327d603571161027957806327d603571461040c57806334f780c41461041f5780633bd649681461043f57600080fd5b806318160ddd146103c557806323b872dd146103ec57600080fd5b8063081812fc116102c5578063081812fc14610338578063095ea7b31461037057806317881cbf1461039257600080fd5b806301ffc9a7146102e157806306fdde0314610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004612aa0565b6107fe565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b5061032b61089b565b60405161030d9190612b15565b34801561034457600080fd5b50610358610353366004612b28565b61092d565b6040516001600160a01b03909116815260200161030d565b34801561037c57600080fd5b5061039061038b366004612b5d565b61098a565b005b34801561039e57600080fd5b50600e546103b390600160a01b900460ff1681565b60405160ff909116815260200161030d565b3480156103d157600080fd5b5060025460015403600019015b60405190815260200161030d565b3480156103f857600080fd5b50610390610407366004612b87565b610a8e565b61039061041a366004612bd3565b610a9e565b34801561042b57600080fd5b5061039061043a366004612c57565b610dd8565b34801561044b57600080fd5b50610390610e67565b34801561046057600080fd5b50610390610ebe565b34801561047557600080fd5b50610390610484366004612b87565b610ff0565b34801561049557600080fd5b506010546103019060ff1681565b3480156104af57600080fd5b506103906104be366004612d16565b61100b565b3480156104cf57600080fd5b506103586104de366004612b28565b611066565b3480156104ef57600080fd5b506103906104fe366004612d5f565b611071565b34801561050f57600080fd5b5061032b6110db565b34801561052457600080fd5b50610390610533366004612b28565b611169565b34801561054457600080fd5b506103de610553366004612d5f565b6111b6565b34801561056457600080fd5b5061039061121e565b61039061057b366004612d7a565b611272565b34801561058c57600080fd5b506105a061059b366004612d5f565b6114e3565b60405161030d9190612d95565b3480156105b957600080fd5b506103de66f523226980800081565b3480156105d457600080fd5b506009546001600160a01b0316610358565b6103906105f4366004612bd3565b6115ac565b34801561060557600080fd5b50610390610614366004612b28565b611878565b34801561062557600080fd5b5061032b6118c5565b34801561063a57600080fd5b506103de600b5481565b34801561065057600080fd5b5061039061065f366004612c57565b6118d4565b610390610672366004612dd9565b611982565b34801561068357600080fd5b50610390610692366004612dfb565b611d0f565b3480156106a357600080fd5b506103de6115b381565b3480156106b957600080fd5b5061032b6106c8366004612b28565b611d59565b3480156106d957600080fd5b506103de600c5481565b3480156106ef57600080fd5b506103de66ae153d89fe800081565b34801561070a57600080fd5b50610301610719366004612e77565b611df1565b61039061072c366004612bd3565b611e3f565b34801561073d57600080fd5b5061039061074c366004612ea1565b612022565b34801561075d57600080fd5b506103de61076c366004612d5f565b600f6020526000908152604090205481565b34801561078a57600080fd5b50610301610799366004612ec4565b6120dd565b3480156107aa57600080fd5b506103906107b9366004612d5f565b61218f565b3480156107ca57600080fd5b506103906107d9366004612dd9565b61225f565b3480156107ea57600080fd5b506103906107f9366004612ec4565b6122d1565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061086157507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061089557507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600380546108aa90612ee7565b80601f01602080910402602001604051908101604052809291908181526020018280546108d690612ee7565b80156109235780601f106108f857610100808354040283529160200191610923565b820191906000526020600020905b81548152906001019060200180831161090657829003601f168201915b5050505050905090565b600061093882612354565b61096e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061099582612389565b9050806001600160a01b0316836001600160a01b0316036109e2576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610a32576109fc8133611df1565b610a32576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a99838383612411565b505050565b600180333214610ae05760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b60448201526064015b60405180910390fd5b6002546001546115b39184910360001901610afb9190612f37565b1115610b3f5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b610b48816120dd565b610b895760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600b54341015610bd15760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b336000908152600f6020526040902054600211610c265760405162461bcd60e51b815260206004820152601360248201527213db99481c185cdcc81c195c881dd85b1b195d606a1b6044820152606401610ad7565b610c9c858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b6040516020818303038152906040528051906020012061261b565b610ce85760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964204d65726b6c652050726f6f662e00000000000000000000006044820152606401610ad7565b336000908152600f60205260408120805491610d0383612f4f565b9190505550610d13336001612631565b8215610dd157604080516001808252818301909252600091602080830190803683370190505090506001610d4660015490565b610d509190612f68565b81600081518110610d6357610d63612f7f565b602090810291909101015260005460405162676abb60e61b81526001600160a01b03909116906319daaec090610d9d908490600401612d95565b600060405180830381600087803b158015610db757600080fd5b505af1158015610dcb573d6000803e3d6000fd5b50505050505b5050505050565b6009546001600160a01b03163314610e205760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b8015610e4757600e80546001600160a01b0384166001600160a01b03199091161790555050565b600d80546001600160a01b0319166001600160a01b0384161790555b5050565b6009546001600160a01b03163314610eaf5760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b6010805460ff19166001179055565b6009546001600160a01b03163314610f065760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600e546000906001600160a01b03166064610f2247602d612f95565b610f2c9190612fb4565b604051600081818185875af1925050503d8060008114610f68576040519150601f19603f3d011682016040523d82523d6000602084013e610f6d565b606091505b5050905080610f7b57600080fd5b600d546000906001600160a01b03166064610f97476037612f95565b610fa19190612fb4565b604051600081818185875af1925050503d8060008114610fdd576040519150601f19603f3d011682016040523d82523d6000602084013e610fe2565b606091505b5050905080610e6357600080fd5b610a9983838360405180602001604052806000815250611d0f565b6009546001600160a01b031633146110535760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b8051610e6390600a9060208401906129f1565b600061089582612389565b6009546001600160a01b031633146110b95760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b600a80546110e890612ee7565b80601f016020809104026020016040519081016040528092919081815260200182805461111490612ee7565b80156111615780601f1061113657610100808354040283529160200191611161565b820191906000526020600020905b81548152906001019060200180831161114457829003601f168201915b505050505081565b6009546001600160a01b031633146111b15760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600c55565b60006001600160a01b0382166111f8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146112665760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b6112706000612745565b565b600160003332146112b05760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b6044820152606401610ad7565b6002546001546115b391849103600019016112cb9190612f37565b111561130f5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b611318816120dd565b6113595760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600b543410156113a15760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b336000908152600f60205260409020546002116113f65760405162461bcd60e51b815260206004820152601360248201527213db99481c185cdcc81c195c881dd85b1b195d606a1b6044820152606401610ad7565b336000908152600f6020526040812080549161141183612f4f565b9190505550611421336001612631565b8215610a995760408051600180825281830190925260009160208083019080368337019050509050600161145460015490565b61145e9190612f68565b8160008151811061147157611471612f7f565b602090810291909101015260005460405162676abb60e61b81526001600160a01b03909116906319daaec0906114ab908490600401612d95565b600060405180830381600087803b1580156114c557600080fd5b505af11580156114d9573d6000803e3d6000fd5b5050505050505050565b60025460015460609160001991030160006114fd846111b6565b905060008167ffffffffffffffff81111561151a5761151a612c8a565b604051908082528060200260200182016040528015611543578160200160208202803683370190505b509050600060015b8481116115a157866001600160a01b031661156582611066565b6001600160a01b031603611599578083838151811061158657611586612f7f565b6020026020010181815250508160010191505b60010161154b565b509095945050505050565b600260013332146115ea5760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b6044820152606401610ad7565b6002546001546115b391849103600019016116059190612f37565b11156116495760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b611652816120dd565b6116935760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600b546116a1906002612f95565b3410156116e65760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b336000908152600f602052604090205460011161173b5760405162461bcd60e51b815260206004820152601360248201527213db99481c185cdcc81c195c881dd85b1b195d606a1b6044820152606401610ad7565b61179a858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610c81565b6117e65760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964204d65726b6c652050726f6f662e00000000000000000000006044820152606401610ad7565b336000908152600f6020526040812080549161180183612f4f565b9190505550611811336002612631565b8215610dd15760408051600180825281830190925260009160208083019080368337019050509050600161184460015490565b61184e9190612f68565b8160008151811061186157611861612f7f565b6020026020010181815250506002610d4660015490565b6009546001600160a01b031633146118c05760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600b55565b6060600480546108aa90612ee7565b336001600160a01b03831603611916576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b8160013332146119bf5760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b6044820152606401610ad7565b6002546001546115b391849103600019016119da9190612f37565b1115611a1e5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b611a27816120dd565b611a685760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600080546040517fab1c99fa000000000000000000000000000000000000000000000000000000008152336004820181905292916001600160a01b03169063ab1c99fa90602401602060405180830381865afa158015611acc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af09190612fd6565b336000908152600f6020526040902054909150808211611b525760405162461bcd60e51b815260206004820152600d60248201527f4e6f20616c6c6f636174696f6e000000000000000000000000000000000000006044820152606401610ad7565b611b5c8183612f68565b871115611b7057611b6d8183612f68565b96505b600060048311611b875766f5232269808000611b90565b66ae153d89fe80005b9050611b9c8184612f95565b341015611be15760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b6000611bec60015490565b336000908152600f6020526040812080549293508b92909190611c10908490612f37565b90915550611c209050858a612631565b8715611d045760008967ffffffffffffffff811115611c4157611c41612c8a565b604051908082528060200260200182016040528015611c6a578160200160208202803683370190505b50905060005b89811015611ca057808301828281518110611c8d57611c8d612f7f565b6020908102919091010152600101611c70565b5060005460405162676abb60e61b81526001600160a01b03909116906319daaec090611cd0908490600401612d95565b600060405180830381600087803b158015611cea57600080fd5b505af1158015611cfe573d6000803e3d6000fd5b50505050505b505050505050505050565b611d1a848484612411565b6001600160a01b0383163b15611d5357611d3684848484612797565b611d53576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611d6482612354565b611dd65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ad7565b60105460ff16611de857610895612883565b61089582612892565b600080546001600160a01b0390811690831603611e1057506001610895565b506001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b60016002333214611e7d5760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b6044820152606401610ad7565b6002546001546115b39184910360001901611e989190612f37565b1115611edc5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b611ee5816120dd565b611f265760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600b54341015611f6e5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b336000908152600f6020526040902054600211611fc35760405162461bcd60e51b815260206004820152601360248201527213db99481c185cdcc81c195c881dd85b1b195d606a1b6044820152606401610ad7565b610c9c858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610c81565b6009546001600160a01b0316331461206a5760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600c5460025460015484919003600019016120859190612f37565b11156120d35760405162461bcd60e51b815260206004820152601760248201527f4d6178207265736572766573206578686175737465642e0000000000000000006044820152606401610ad7565b610e638183612631565b60025460015460009182910360001901600e54909150600160a01b900460ff1660010361211f578260ff16600114801561211857506103e881105b9392505050565b600e54600160a01b900460ff1660020361214b578260ff1660011480156121185750610bb81192915050565b600e54600160a01b900460ff1660030361216957505060ff16151590565b600e54600160a01b900460ff166004036121865750600192915050565b50600092915050565b6009546001600160a01b031633146121d75760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b6001600160a01b0381166122535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ad7565b61225c81612745565b50565b6009546001600160a01b031633146122a75760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b816000036122b55760118190555b816001036122c35760128190555b81600203610e635760135550565b6009546001600160a01b031633146123195760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600e805460ff909216600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600081600111158015612368575060015482105b8015610895575050600090815260056020526040902054600160e01b161590565b600081806001116123df576001548110156123df5760008181526005602052604081205490600160e01b821690036123dd575b806000036121185750600019016000818152600560205260409020546123bc565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061241c82612389565b9050836001600160a01b0316816001600160a01b031614612469576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061248757506124878533611df1565b806124a25750336124978461092d565b6001600160a01b0316145b9050806124db576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661251b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083815260076020908152604080832080546001600160a01b03191690556001600160a01b0388811684526006835281842080546000190190558716835280832080546001019055858352600590915281207c02000000000000000000000000000000000000000000000000000000004260a01b87178117909155831690036125d5576001830160008181526005602052604081205490036125d35760015481146125d35760008181526005602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610dd1565b600082612628858461292e565b14949350505050565b6001546001600160a01b038316612674576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816000036126ae576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660009081526006602090815260408083208054680100000000000000018702019055838352600590915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126f95750600155505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906127cc903390899088908890600401612fef565b6020604051808303816000875af1925050508015612807575060408051601f3d908101601f191682019092526128049181019061302b565b60015b612865573d808015612835576040519150601f19603f3d011682016040523d82523d6000602084013e61283a565b606091505b50805160000361285d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a80546108aa90612ee7565b606061289d82612354565b6128d3576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006128dd612883565b905080516000036128fd5760405180602001604052806000815250612118565b80612907846129a2565b604051602001612918929190613048565b6040516020818303038152906040529392505050565b600081815b845181101561299a57600085828151811061295057612950612f7f565b602002602001015190508083116129765760008381526020829052604090209250612987565b600081815260208490526040902092505b508061299281612f4f565b915050612933565b509392505050565b604080516080810191829052607f0190826030600a8206018353600a90045b80156129df57600183039250600a81066030018353600a90046129c1565b50819003601f19909101908152919050565b8280546129fd90612ee7565b90600052602060002090601f016020900481019282612a1f5760008555612a65565b82601f10612a3857805160ff1916838001178555612a65565b82800160010185558215612a65579182015b82811115612a65578251825591602001919060010190612a4a565b50612a71929150612a75565b5090565b5b80821115612a715760008155600101612a76565b6001600160e01b03198116811461225c57600080fd5b600060208284031215612ab257600080fd5b813561211881612a8a565b60005b83811015612ad8578181015183820152602001612ac0565b83811115611d535750506000910152565b60008151808452612b01816020860160208601612abd565b601f01601f19169290920160200192915050565b6020815260006121186020830184612ae9565b600060208284031215612b3a57600080fd5b5035919050565b80356001600160a01b0381168114612b5857600080fd5b919050565b60008060408385031215612b7057600080fd5b612b7983612b41565b946020939093013593505050565b600080600060608486031215612b9c57600080fd5b612ba584612b41565b9250612bb360208501612b41565b9150604084013590509250925092565b80358015158114612b5857600080fd5b600080600060408486031215612be857600080fd5b833567ffffffffffffffff80821115612c0057600080fd5b818601915086601f830112612c1457600080fd5b813581811115612c2357600080fd5b8760208260051b8501011115612c3857600080fd5b602092830195509350612c4e9186019050612bc3565b90509250925092565b60008060408385031215612c6a57600080fd5b612c7383612b41565b9150612c8160208401612bc3565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612cbb57612cbb612c8a565b604051601f8501601f19908116603f01168101908282118183101715612ce357612ce3612c8a565b81604052809350858152868686011115612cfc57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d2857600080fd5b813567ffffffffffffffff811115612d3f57600080fd5b8201601f81018413612d5057600080fd5b61287b84823560208401612ca0565b600060208284031215612d7157600080fd5b61211882612b41565b600060208284031215612d8c57600080fd5b61211882612bc3565b6020808252825182820181905260009190848201906040850190845b81811015612dcd57835183529284019291840191600101612db1565b50909695505050505050565b60008060408385031215612dec57600080fd5b50508035926020909101359150565b60008060008060808587031215612e1157600080fd5b612e1a85612b41565b9350612e2860208601612b41565b925060408501359150606085013567ffffffffffffffff811115612e4b57600080fd5b8501601f81018713612e5c57600080fd5b612e6b87823560208401612ca0565b91505092959194509250565b60008060408385031215612e8a57600080fd5b612e9383612b41565b9150612c8160208401612b41565b60008060408385031215612eb457600080fd5b82359150612c8160208401612b41565b600060208284031215612ed657600080fd5b813560ff8116811461211857600080fd5b600181811c90821680612efb57607f821691505b602082108103612f1b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612f4a57612f4a612f21565b500190565b600060018201612f6157612f61612f21565b5060010190565b600082821015612f7a57612f7a612f21565b500390565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615612faf57612faf612f21565b500290565b600082612fd157634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612fe857600080fd5b5051919050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526130216080830184612ae9565b9695505050505050565b60006020828403121561303d57600080fd5b815161211881612a8a565b6000835161305a818460208801612abd565b83519083019061306e818360208801612abd565b0194935050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f019c5711c3d6bc4b796df91b605a0dffd892406df869d3180d7ca532d35a69964736f6c634300080d0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000000000000000000000000000000000000000000801464d164702d7b1d3927426f8447e0115b539fa9f8a96d20c526eec3765975512de06ac773c4297443aa050575e1ed50f0f7d4f311f7637848f5c300927672ab8003f1085b3a55f643f3730b0d07a1393cc4cadbae90bfc63bff88414a775f650000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d63396b765a776e7159766e4e743558536e523262684233414b7345474342444651674b6d724752474b5775360000000000000000000000
Deployed Bytecode
0x6080604052600436106102dc5760003560e01c80638462151c11610184578063c87b56dd116100d6578063efbd73f41161008a578063f2fde38b11610064578063f2fde38b1461079e578063f66d276b146107be578063febfec50146107de57600080fd5b8063efbd73f414610731578063f0293fd314610751578063f22fb1d31461077e57600080fd5b8063d61d7055116100bb578063d61d7055146106e3578063e985e9c5146106fe578063ec9110221461071e57600080fd5b8063c87b56dd146106ad578063d5abeb01146106cd57600080fd5b806395d89b4111610138578063af04646011610112578063af04646014610664578063b88d4fde14610677578063c50497ae1461069757600080fd5b806395d89b4114610619578063a035b1fe1461062e578063a22cb4651461064457600080fd5b80638da5cb5b116101695780638da5cb5b146105c85780639086018b146105e657806391b7f5ed146105f957600080fd5b80638462151c146105805780638d859f3e146105ad57600080fd5b80633ccfd60b1161023d5780636969e91b116101f157806370a08231116101cb57806370a0823114610538578063715018a61461055857806377845f641461056d57600080fd5b80636969e91b146104e35780636c0360eb146105035780636f8b44b01461051857600080fd5b80635183022711610222578063518302271461048957806355f804b3146104a35780636352211e146104c357600080fd5b80633ccfd60b1461045457806342842e0e1461046957600080fd5b806318160ddd1161029457806327d603571161027957806327d603571461040c57806334f780c41461041f5780633bd649681461043f57600080fd5b806318160ddd146103c557806323b872dd146103ec57600080fd5b8063081812fc116102c5578063081812fc14610338578063095ea7b31461037057806317881cbf1461039257600080fd5b806301ffc9a7146102e157806306fdde0314610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004612aa0565b6107fe565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b5061032b61089b565b60405161030d9190612b15565b34801561034457600080fd5b50610358610353366004612b28565b61092d565b6040516001600160a01b03909116815260200161030d565b34801561037c57600080fd5b5061039061038b366004612b5d565b61098a565b005b34801561039e57600080fd5b50600e546103b390600160a01b900460ff1681565b60405160ff909116815260200161030d565b3480156103d157600080fd5b5060025460015403600019015b60405190815260200161030d565b3480156103f857600080fd5b50610390610407366004612b87565b610a8e565b61039061041a366004612bd3565b610a9e565b34801561042b57600080fd5b5061039061043a366004612c57565b610dd8565b34801561044b57600080fd5b50610390610e67565b34801561046057600080fd5b50610390610ebe565b34801561047557600080fd5b50610390610484366004612b87565b610ff0565b34801561049557600080fd5b506010546103019060ff1681565b3480156104af57600080fd5b506103906104be366004612d16565b61100b565b3480156104cf57600080fd5b506103586104de366004612b28565b611066565b3480156104ef57600080fd5b506103906104fe366004612d5f565b611071565b34801561050f57600080fd5b5061032b6110db565b34801561052457600080fd5b50610390610533366004612b28565b611169565b34801561054457600080fd5b506103de610553366004612d5f565b6111b6565b34801561056457600080fd5b5061039061121e565b61039061057b366004612d7a565b611272565b34801561058c57600080fd5b506105a061059b366004612d5f565b6114e3565b60405161030d9190612d95565b3480156105b957600080fd5b506103de66f523226980800081565b3480156105d457600080fd5b506009546001600160a01b0316610358565b6103906105f4366004612bd3565b6115ac565b34801561060557600080fd5b50610390610614366004612b28565b611878565b34801561062557600080fd5b5061032b6118c5565b34801561063a57600080fd5b506103de600b5481565b34801561065057600080fd5b5061039061065f366004612c57565b6118d4565b610390610672366004612dd9565b611982565b34801561068357600080fd5b50610390610692366004612dfb565b611d0f565b3480156106a357600080fd5b506103de6115b381565b3480156106b957600080fd5b5061032b6106c8366004612b28565b611d59565b3480156106d957600080fd5b506103de600c5481565b3480156106ef57600080fd5b506103de66ae153d89fe800081565b34801561070a57600080fd5b50610301610719366004612e77565b611df1565b61039061072c366004612bd3565b611e3f565b34801561073d57600080fd5b5061039061074c366004612ea1565b612022565b34801561075d57600080fd5b506103de61076c366004612d5f565b600f6020526000908152604090205481565b34801561078a57600080fd5b50610301610799366004612ec4565b6120dd565b3480156107aa57600080fd5b506103906107b9366004612d5f565b61218f565b3480156107ca57600080fd5b506103906107d9366004612dd9565b61225f565b3480156107ea57600080fd5b506103906107f9366004612ec4565b6122d1565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061086157507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061089557507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600380546108aa90612ee7565b80601f01602080910402602001604051908101604052809291908181526020018280546108d690612ee7565b80156109235780601f106108f857610100808354040283529160200191610923565b820191906000526020600020905b81548152906001019060200180831161090657829003601f168201915b5050505050905090565b600061093882612354565b61096e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061099582612389565b9050806001600160a01b0316836001600160a01b0316036109e2576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610a32576109fc8133611df1565b610a32576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a99838383612411565b505050565b600180333214610ae05760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b60448201526064015b60405180910390fd5b6002546001546115b39184910360001901610afb9190612f37565b1115610b3f5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b610b48816120dd565b610b895760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600b54341015610bd15760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b336000908152600f6020526040902054600211610c265760405162461bcd60e51b815260206004820152601360248201527213db99481c185cdcc81c195c881dd85b1b195d606a1b6044820152606401610ad7565b610c9c858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b6040516020818303038152906040528051906020012061261b565b610ce85760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964204d65726b6c652050726f6f662e00000000000000000000006044820152606401610ad7565b336000908152600f60205260408120805491610d0383612f4f565b9190505550610d13336001612631565b8215610dd157604080516001808252818301909252600091602080830190803683370190505090506001610d4660015490565b610d509190612f68565b81600081518110610d6357610d63612f7f565b602090810291909101015260005460405162676abb60e61b81526001600160a01b03909116906319daaec090610d9d908490600401612d95565b600060405180830381600087803b158015610db757600080fd5b505af1158015610dcb573d6000803e3d6000fd5b50505050505b5050505050565b6009546001600160a01b03163314610e205760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b8015610e4757600e80546001600160a01b0384166001600160a01b03199091161790555050565b600d80546001600160a01b0319166001600160a01b0384161790555b5050565b6009546001600160a01b03163314610eaf5760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b6010805460ff19166001179055565b6009546001600160a01b03163314610f065760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600e546000906001600160a01b03166064610f2247602d612f95565b610f2c9190612fb4565b604051600081818185875af1925050503d8060008114610f68576040519150601f19603f3d011682016040523d82523d6000602084013e610f6d565b606091505b5050905080610f7b57600080fd5b600d546000906001600160a01b03166064610f97476037612f95565b610fa19190612fb4565b604051600081818185875af1925050503d8060008114610fdd576040519150601f19603f3d011682016040523d82523d6000602084013e610fe2565b606091505b5050905080610e6357600080fd5b610a9983838360405180602001604052806000815250611d0f565b6009546001600160a01b031633146110535760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b8051610e6390600a9060208401906129f1565b600061089582612389565b6009546001600160a01b031633146110b95760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b600a80546110e890612ee7565b80601f016020809104026020016040519081016040528092919081815260200182805461111490612ee7565b80156111615780601f1061113657610100808354040283529160200191611161565b820191906000526020600020905b81548152906001019060200180831161114457829003601f168201915b505050505081565b6009546001600160a01b031633146111b15760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600c55565b60006001600160a01b0382166111f8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146112665760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b6112706000612745565b565b600160003332146112b05760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b6044820152606401610ad7565b6002546001546115b391849103600019016112cb9190612f37565b111561130f5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b611318816120dd565b6113595760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600b543410156113a15760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b336000908152600f60205260409020546002116113f65760405162461bcd60e51b815260206004820152601360248201527213db99481c185cdcc81c195c881dd85b1b195d606a1b6044820152606401610ad7565b336000908152600f6020526040812080549161141183612f4f565b9190505550611421336001612631565b8215610a995760408051600180825281830190925260009160208083019080368337019050509050600161145460015490565b61145e9190612f68565b8160008151811061147157611471612f7f565b602090810291909101015260005460405162676abb60e61b81526001600160a01b03909116906319daaec0906114ab908490600401612d95565b600060405180830381600087803b1580156114c557600080fd5b505af11580156114d9573d6000803e3d6000fd5b5050505050505050565b60025460015460609160001991030160006114fd846111b6565b905060008167ffffffffffffffff81111561151a5761151a612c8a565b604051908082528060200260200182016040528015611543578160200160208202803683370190505b509050600060015b8481116115a157866001600160a01b031661156582611066565b6001600160a01b031603611599578083838151811061158657611586612f7f565b6020026020010181815250508160010191505b60010161154b565b509095945050505050565b600260013332146115ea5760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b6044820152606401610ad7565b6002546001546115b391849103600019016116059190612f37565b11156116495760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b611652816120dd565b6116935760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600b546116a1906002612f95565b3410156116e65760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b336000908152600f602052604090205460011161173b5760405162461bcd60e51b815260206004820152601360248201527213db99481c185cdcc81c195c881dd85b1b195d606a1b6044820152606401610ad7565b61179a858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610c81565b6117e65760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964204d65726b6c652050726f6f662e00000000000000000000006044820152606401610ad7565b336000908152600f6020526040812080549161180183612f4f565b9190505550611811336002612631565b8215610dd15760408051600180825281830190925260009160208083019080368337019050509050600161184460015490565b61184e9190612f68565b8160008151811061186157611861612f7f565b6020026020010181815250506002610d4660015490565b6009546001600160a01b031633146118c05760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600b55565b6060600480546108aa90612ee7565b336001600160a01b03831603611916576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b8160013332146119bf5760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b6044820152606401610ad7565b6002546001546115b391849103600019016119da9190612f37565b1115611a1e5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b611a27816120dd565b611a685760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600080546040517fab1c99fa000000000000000000000000000000000000000000000000000000008152336004820181905292916001600160a01b03169063ab1c99fa90602401602060405180830381865afa158015611acc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af09190612fd6565b336000908152600f6020526040902054909150808211611b525760405162461bcd60e51b815260206004820152600d60248201527f4e6f20616c6c6f636174696f6e000000000000000000000000000000000000006044820152606401610ad7565b611b5c8183612f68565b871115611b7057611b6d8183612f68565b96505b600060048311611b875766f5232269808000611b90565b66ae153d89fe80005b9050611b9c8184612f95565b341015611be15760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b6000611bec60015490565b336000908152600f6020526040812080549293508b92909190611c10908490612f37565b90915550611c209050858a612631565b8715611d045760008967ffffffffffffffff811115611c4157611c41612c8a565b604051908082528060200260200182016040528015611c6a578160200160208202803683370190505b50905060005b89811015611ca057808301828281518110611c8d57611c8d612f7f565b6020908102919091010152600101611c70565b5060005460405162676abb60e61b81526001600160a01b03909116906319daaec090611cd0908490600401612d95565b600060405180830381600087803b158015611cea57600080fd5b505af1158015611cfe573d6000803e3d6000fd5b50505050505b505050505050505050565b611d1a848484612411565b6001600160a01b0383163b15611d5357611d3684848484612797565b611d53576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611d6482612354565b611dd65760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ad7565b60105460ff16611de857610895612883565b61089582612892565b600080546001600160a01b0390811690831603611e1057506001610895565b506001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b60016002333214611e7d5760405162461bcd60e51b8152602060048201526008602482015267454f41206f6e6c7960c01b6044820152606401610ad7565b6002546001546115b39184910360001901611e989190612f37565b1115611edc5760405162461bcd60e51b815260206004820152601360248201527213585e081cdd5c1c1b1e48195e18d959591959606a1b6044820152606401610ad7565b611ee5816120dd565b611f265760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610ad7565b600b54341015611f6e5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610ad7565b336000908152600f6020526040902054600211611fc35760405162461bcd60e51b815260206004820152601360248201527213db99481c185cdcc81c195c881dd85b1b195d606a1b6044820152606401610ad7565b610c9c858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610c81565b6009546001600160a01b0316331461206a5760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600c5460025460015484919003600019016120859190612f37565b11156120d35760405162461bcd60e51b815260206004820152601760248201527f4d6178207265736572766573206578686175737465642e0000000000000000006044820152606401610ad7565b610e638183612631565b60025460015460009182910360001901600e54909150600160a01b900460ff1660010361211f578260ff16600114801561211857506103e881105b9392505050565b600e54600160a01b900460ff1660020361214b578260ff1660011480156121185750610bb81192915050565b600e54600160a01b900460ff1660030361216957505060ff16151590565b600e54600160a01b900460ff166004036121865750600192915050565b50600092915050565b6009546001600160a01b031633146121d75760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b6001600160a01b0381166122535760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ad7565b61225c81612745565b50565b6009546001600160a01b031633146122a75760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b816000036122b55760118190555b816001036122c35760128190555b81600203610e635760135550565b6009546001600160a01b031633146123195760405162461bcd60e51b815260206004820181905260248201526000805160206130788339815191526044820152606401610ad7565b600e805460ff909216600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600081600111158015612368575060015482105b8015610895575050600090815260056020526040902054600160e01b161590565b600081806001116123df576001548110156123df5760008181526005602052604081205490600160e01b821690036123dd575b806000036121185750600019016000818152600560205260409020546123bc565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061241c82612389565b9050836001600160a01b0316816001600160a01b031614612469576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061248757506124878533611df1565b806124a25750336124978461092d565b6001600160a01b0316145b9050806124db576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03841661251b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083815260076020908152604080832080546001600160a01b03191690556001600160a01b0388811684526006835281842080546000190190558716835280832080546001019055858352600590915281207c02000000000000000000000000000000000000000000000000000000004260a01b87178117909155831690036125d5576001830160008181526005602052604081205490036125d35760015481146125d35760008181526005602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610dd1565b600082612628858461292e565b14949350505050565b6001546001600160a01b038316612674576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816000036126ae576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660009081526006602090815260408083208054680100000000000000018702019055838352600590915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106126f95750600155505050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906127cc903390899088908890600401612fef565b6020604051808303816000875af1925050508015612807575060408051601f3d908101601f191682019092526128049181019061302b565b60015b612865573d808015612835576040519150601f19603f3d011682016040523d82523d6000602084013e61283a565b606091505b50805160000361285d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a80546108aa90612ee7565b606061289d82612354565b6128d3576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006128dd612883565b905080516000036128fd5760405180602001604052806000815250612118565b80612907846129a2565b604051602001612918929190613048565b6040516020818303038152906040529392505050565b600081815b845181101561299a57600085828151811061295057612950612f7f565b602002602001015190508083116129765760008381526020829052604090209250612987565b600081815260208490526040902092505b508061299281612f4f565b915050612933565b509392505050565b604080516080810191829052607f0190826030600a8206018353600a90045b80156129df57600183039250600a81066030018353600a90046129c1565b50819003601f19909101908152919050565b8280546129fd90612ee7565b90600052602060002090601f016020900481019282612a1f5760008555612a65565b82601f10612a3857805160ff1916838001178555612a65565b82800160010185558215612a65579182015b82811115612a65578251825591602001919060010190612a4a565b50612a71929150612a75565b5090565b5b80821115612a715760008155600101612a76565b6001600160e01b03198116811461225c57600080fd5b600060208284031215612ab257600080fd5b813561211881612a8a565b60005b83811015612ad8578181015183820152602001612ac0565b83811115611d535750506000910152565b60008151808452612b01816020860160208601612abd565b601f01601f19169290920160200192915050565b6020815260006121186020830184612ae9565b600060208284031215612b3a57600080fd5b5035919050565b80356001600160a01b0381168114612b5857600080fd5b919050565b60008060408385031215612b7057600080fd5b612b7983612b41565b946020939093013593505050565b600080600060608486031215612b9c57600080fd5b612ba584612b41565b9250612bb360208501612b41565b9150604084013590509250925092565b80358015158114612b5857600080fd5b600080600060408486031215612be857600080fd5b833567ffffffffffffffff80821115612c0057600080fd5b818601915086601f830112612c1457600080fd5b813581811115612c2357600080fd5b8760208260051b8501011115612c3857600080fd5b602092830195509350612c4e9186019050612bc3565b90509250925092565b60008060408385031215612c6a57600080fd5b612c7383612b41565b9150612c8160208401612bc3565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612cbb57612cbb612c8a565b604051601f8501601f19908116603f01168101908282118183101715612ce357612ce3612c8a565b81604052809350858152868686011115612cfc57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d2857600080fd5b813567ffffffffffffffff811115612d3f57600080fd5b8201601f81018413612d5057600080fd5b61287b84823560208401612ca0565b600060208284031215612d7157600080fd5b61211882612b41565b600060208284031215612d8c57600080fd5b61211882612bc3565b6020808252825182820181905260009190848201906040850190845b81811015612dcd57835183529284019291840191600101612db1565b50909695505050505050565b60008060408385031215612dec57600080fd5b50508035926020909101359150565b60008060008060808587031215612e1157600080fd5b612e1a85612b41565b9350612e2860208601612b41565b925060408501359150606085013567ffffffffffffffff811115612e4b57600080fd5b8501601f81018713612e5c57600080fd5b612e6b87823560208401612ca0565b91505092959194509250565b60008060408385031215612e8a57600080fd5b612e9383612b41565b9150612c8160208401612b41565b60008060408385031215612eb457600080fd5b82359150612c8160208401612b41565b600060208284031215612ed657600080fd5b813560ff8116811461211857600080fd5b600181811c90821680612efb57607f821691505b602082108103612f1b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612f4a57612f4a612f21565b500190565b600060018201612f6157612f61612f21565b5060010190565b600082821015612f7a57612f7a612f21565b500390565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615612faf57612faf612f21565b500290565b600082612fd157634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612fe857600080fd5b5051919050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526130216080830184612ae9565b9695505050505050565b60006020828403121561303d57600080fd5b815161211881612a8a565b6000835161305a818460208801612abd565b83519083019061306e818360208801612abd565b0194935050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f019c5711c3d6bc4b796df91b605a0dffd892406df869d3180d7ca532d35a69964736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000801464d164702d7b1d3927426f8447e0115b539fa9f8a96d20c526eec3765975512de06ac773c4297443aa050575e1ed50f0f7d4f311f7637848f5c300927672ab8003f1085b3a55f643f3730b0d07a1393cc4cadbae90bfc63bff88414a775f650000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d63396b765a776e7159766e4e743558536e523262684233414b7345474342444651674b6d724752474b5775360000000000000000000000
-----Decoded View---------------
Arg [0] : _initBaseURI (string): ipfs://Qmc9kvZwnqYvnNt5XSnR2bhB3AKsEGCBDFQgKmrGRGKWu6
Arg [1] : _wlMRI (bytes32): 0x1464d164702d7b1d3927426f8447e0115b539fa9f8a96d20c526eec376597551
Arg [2] : _wlMRII (bytes32): 0x2de06ac773c4297443aa050575e1ed50f0f7d4f311f7637848f5c300927672ab
Arg [3] : _w8lMR (bytes32): 0x8003f1085b3a55f643f3730b0d07a1393cc4cadbae90bfc63bff88414a775f65
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 1464d164702d7b1d3927426f8447e0115b539fa9f8a96d20c526eec376597551
Arg [2] : 2de06ac773c4297443aa050575e1ed50f0f7d4f311f7637848f5c300927672ab
Arg [3] : 8003f1085b3a55f643f3730b0d07a1393cc4cadbae90bfc63bff88414a775f65
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [5] : 697066733a2f2f516d63396b765a776e7159766e4e743558536e523262684233
Arg [6] : 414b7345474342444651674b6d724752474b5775360000000000000000000000
Loading...
Loading
Loading...
Loading
OVERVIEW
77% Staked - Earning $GANG - True Owner Count, 2013/3009.Alpha Gang is a Community-focused Hip Hop and Artist Themed Collection, of 3009 Unique Generative NFTs, which provide access to our curated Alpha, Discord Integrated Trackers, Hyper Node, Exclusive Giveaways, Tools, a ...Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.