Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 3,403 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Redeem | 20640548 | 7 days ago | IN | 0 ETH | 0.00037488 | ||||
Redeem | 20368549 | 45 days ago | IN | 0 ETH | 0.00252043 | ||||
In Case Nft Get ... | 20368518 | 45 days ago | IN | 0 ETH | 0.00037453 | ||||
Redeem | 20368462 | 45 days ago | IN | 0 ETH | 0.00227628 | ||||
In Case Nft Get ... | 20368456 | 45 days ago | IN | 0 ETH | 0.00036457 | ||||
Redeem | 20354587 | 47 days ago | IN | 0 ETH | 0.00107957 | ||||
In Case Nft Get ... | 20354581 | 47 days ago | IN | 0 ETH | 0.00018445 | ||||
Redeem | 20354518 | 47 days ago | IN | 0 ETH | 0.00127828 | ||||
In Case Nft Get ... | 20354505 | 47 days ago | IN | 0 ETH | 0.0001756 | ||||
Redeem | 20354451 | 47 days ago | IN | 0 ETH | 0.0011303 | ||||
In Case Nft Get ... | 20354445 | 47 days ago | IN | 0 ETH | 0.00017187 | ||||
Redeem | 20266944 | 59 days ago | IN | 0 ETH | 0.00104786 | ||||
In Case Nft Get ... | 20266939 | 59 days ago | IN | 0 ETH | 0.0001674 | ||||
Redeem | 20266353 | 59 days ago | IN | 0 ETH | 0.00113711 | ||||
In Case Nft Get ... | 20266348 | 59 days ago | IN | 0 ETH | 0.00017202 | ||||
Redeem | 20266321 | 59 days ago | IN | 0 ETH | 0.00099238 | ||||
In Case Nft Get ... | 20266314 | 59 days ago | IN | 0 ETH | 0.00016422 | ||||
Redeem | 20266261 | 59 days ago | IN | 0 ETH | 0.00106688 | ||||
In Case Nft Get ... | 20266253 | 59 days ago | IN | 0 ETH | 0.00019094 | ||||
Redeem | 20266169 | 60 days ago | IN | 0 ETH | 0.00112832 | ||||
In Case Nft Get ... | 20266164 | 60 days ago | IN | 0 ETH | 0.000174 | ||||
Redeem | 20259735 | 60 days ago | IN | 0 ETH | 0.00076671 | ||||
In Case Nft Get ... | 20259721 | 60 days ago | IN | 0 ETH | 0.000127 | ||||
Redeem | 20259684 | 60 days ago | IN | 0 ETH | 0.00108902 | ||||
In Case Nft Get ... | 20259679 | 60 days ago | IN | 0 ETH | 0.00013742 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
15647979 | 707 days ago | 397.11560816 ETH |
Loading...
Loading
Contract Name:
WhIsBeVandalzPeriphery
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; // interfaces import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import { IERC165 } from "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; // library import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import { Constants } from "./Constants.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { DataTypes } from "./types/DataTypes.sol"; import { Errors } from "./types/Errors.sol"; // contracts import { ERC721RandomlyAssignVandalzTierPeriphery } from "./ERC721RandomlyAssignVandalzTierPeriphery.sol"; import { ERC721Burnable } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol"; import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; import { ERC165Storage } from "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; interface IWhIsBeVandalz { function creatorMint(address _to, uint256[] memory _tokenIds) external; function TIERS() external view returns (uint256); function renounceOwnership() external; function transferOwnership(address newOwner) external; function setTier( uint256[] memory _tierIndex, uint256[] memory _from, uint256[] memory _to ) external; function setSupply(uint256 _supply) external; function reveal() external; function setBaseExtension(string memory _newBaseExtension) external; function setBaseURI(string memory _newBaseURI) external; function setNotRevealedURI(string memory _notRevealedURI) external; function withdrawETH() external; function transferAccidentallyLockedTokens(IERC20 _token, uint256 _amount) external; function setRoyaltyInfo(address $royaltyAddress, uint256 $percentage) external; } interface IGoodKarmaToken { function burnTokenForVandal(address holderAddress) external; } struct MintDetails { address collectionAddress; address beneficiary; uint256 tokenId; } contract WhIsBeVandalzPeriphery is ERC721RandomlyAssignVandalzTierPeriphery, ERC721Holder, ERC165Storage, ERC1155Holder, VRFConsumerBaseV2, Ownable { //==Constants==// // bytes4 constants for ERC165 bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; bytes4 private constant _INTERFACE_ID_IERC2981 = 0x2a55205a; bytes4 private constant _INTERFACE_ID_IERC721Metadata = 0x5b5e139f; bytes4 private constant _INTERFACE_ID_IERC165 = 0x01ffc9a7; bytes4 private constant _INTERFACE_ID_IERC1155 = 0xf23a6e61; /** * @notice * @dev */ VRFCoordinatorV2Interface public COORDINATOR; /** * @notice * @dev */ LinkTokenInterface public immutable LINKTOKEN; /** * @notice * @dev */ uint256[] public groupTier15678Indexes; /** * @notice * @dev */ uint256[] public groupTier135678Indexes; /** * @notice * @dev */ address public whisbeVandalz; /** * @notice * @dev */ bool public redeemPaused = true; /** * @notice * @dev */ bool public publicMintPaused = true; /** * @notice * @dev */ bool public whitelistState = true; /** * @notice * @dev */ uint64 public s_subscriptionId; /** * @notice list of allowlist address hashed * @dev the merkle root hash allowlist */ bytes32 public merkleRoot; /** * @notice * @dev */ uint256 public publicSalePrice = 0.1 ether; /** * @notice * @dev */ uint256 public vrnfRequestCounter; /** * @notice * @dev */ uint256 public publicMintTier3Counter; /** * @notice * @dev */ uint256 public publicMintTierGroup15678Counter; /** * @notice * @dev */ uint256 public publicMintTier3Cap = 600; /** * @notice * @dev */ uint256 public publicMintTierGroup15678Cap = 992; /** * @notice The gas lane to use, which specifies the maximum gas price to bump to. */ bytes32 public keyHash = 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef; /** * @notice estimate gas used by fulfillRandomWords() */ uint32 public callbackGasLimit = 1000000; /** * @notice The minimum number of confirmation blocks on VRF requests before oracles respond */ uint16 public requestConfirmations = 3; /** * @notice * @dev */ mapping(address => bool) public acceptedCollections; /** * @notice nft burn tracker * @dev increments the counter whenever nft is redeemed */ mapping(address => uint256) public burnCounter; /** * @notice public mint tracker per wallet * @dev maps amount of "publicly" minted vandalz per wallet */ mapping(address => uint256) public publicMintCounter; /** * @notice * @dev */ mapping(uint256 => MintDetails[]) public s_requestIdToMintDetails; /** * @notice * @dev */ mapping(uint256 => mapping(uint256 => uint256[])) public s_requestIdToTierIndexes; /** * @dev Throws if timestamp already set. */ modifier redeemNotPaused() { require(redeemPaused == false, "Redeem is paused"); _; } /** * @dev Throws if timestamp already set. */ modifier publicMintNotPaused() { require(publicMintPaused == false, "Public mint is paused"); _; } //===Constructor===// /** * @notice * @dev * @param _whisbeVandalz address of WhIsBeVandalz NFT * @param _totalSupply maximum pieces if the collection * @param _tiers list of tier details */ constructor( address _whisbeVandalz, address _vrfCoordinator, // mainnet - 0x271682DEB8C4E0901D1a1550aD2e64D568E69909 address _link_token_contract, // mainnet - 0x514910771AF9Ca656af840dff83E8264EcF986CA uint256 _totalSupply, DataTypes.Tier[] memory _tiers ) VRFConsumerBaseV2(_vrfCoordinator) ERC721RandomlyAssignVandalzTierPeriphery(_totalSupply, 1) { uint256 _tiersLen = _tiers.length; whisbeVandalz = _whisbeVandalz; if (_tiersLen != IWhIsBeVandalz(whisbeVandalz).TIERS()) { revert Errors.WhisbeVandalzPeriphery__EightTiersRequired(_tiersLen); } // whitelisted collections acceptedCollections[address(Constants.EXTINCTION_OPEN_EDITION_BY_WHISBE)] = true; acceptedCollections[address(Constants.THE_HORNED_KARMA_CHAMELEON_BURN_REDEMPTION_BY_WHISBE)] = true; acceptedCollections[address(Constants.KARMA_KEY_BLACK_BY_WHISBE)] = true; acceptedCollections[address(Constants.KARMA_KEYS_BY_WHISBE)] = true; acceptedCollections[address(Constants.GOOD_KARMA_TOKEN)] = true; // tiers for (uint256 _i; _i < _tiersLen; _i++) { tiers.push(_tiers[_i]); } // custom : group tiers 1,5,6,7,& 8 groupTier15678Indexes.push(0); // tier1 , group index -> 0 groupTier15678Indexes.push(4); // tier5 , group index -> 1 groupTier15678Indexes.push(5); // tier6 , group index -> 2 groupTier15678Indexes.push(6); // tier7 , group index -> 3 groupTier15678Indexes.push(7); // tier8 , group index -> 4 // group tiers 1,3,5,6,7,& 8 groupTier135678Indexes.push(0); // tier1 , group index -> 0 groupTier135678Indexes.push(2); // tier3 , group index -> 1 groupTier135678Indexes.push(4); // tier5 , group index -> 2 groupTier135678Indexes.push(5); // tier6 , group index -> 3 groupTier135678Indexes.push(6); // tier7 , group index -> 4 groupTier135678Indexes.push(7); // tier8 , group index -> 5 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_IERC2981); _registerInterface(_INTERFACE_ID_IERC721Metadata); _registerInterface(_INTERFACE_ID_IERC165); _registerInterface(_INTERFACE_ID_IERC1155); COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator); LINKTOKEN = LinkTokenInterface(_link_token_contract); //Create a new subscription when you deploy the contract. createNewSubscription(); } receive() external payable {} /** * @notice * @dev */ function setWhIsBeVandalz(address _whisbeVandalz) external onlyOwner { whisbeVandalz = _whisbeVandalz; } /** * @notice top up subscription with $LINK * @dev can be accessed by owner only * @param _amount $LINK amount to top up */ function topUpSubscription(uint256 _amount) external onlyOwner { LINKTOKEN.transferAndCall(address(COORDINATOR), _amount, abi.encode(s_subscriptionId)); } /** * @notice add a consumer to the subscription. * @dev can be accessed by owner only * @param _consumerAddress consumer address */ function addConsumer(address _consumerAddress) external onlyOwner { COORDINATOR.addConsumer(s_subscriptionId, _consumerAddress); } /** * @notice remove a consumer from subscription. * @dev can be accessed by owner only * @param _consumerAddress consumer address */ function removeConsumer(address _consumerAddress) external onlyOwner { COORDINATOR.removeConsumer(s_subscriptionId, _consumerAddress); } /** * @notice cancel the subscription and send the remaining LINK to a wallet address. * @dev can be accessed by owner only * @param _receivingWallet receiving wallet address */ function cancelSubscription(address _receivingWallet) external onlyOwner { COORDINATOR.cancelSubscription(s_subscriptionId, _receivingWallet); s_subscriptionId = 0; } /** * @notice transfer this contract's $LINK fund to an address. * @dev 1000000000000000000 = 1 LINK, can be accessed by owner only * @param _amount $LINK amount * @param _to address of recipient */ function withdraw(uint256 _amount, address _to) external onlyOwner { LINKTOKEN.transfer(_to, _amount); } function setKeyHash(bytes32 _keyHash) external onlyOwner { keyHash = _keyHash; } function setCallbackGaslimit(uint32 _callbackGasLimit) external onlyOwner { callbackGasLimit = _callbackGasLimit; } function setRequestConfirmations(uint16 _requestConfirmations) external onlyOwner { requestConfirmations = _requestConfirmations; } function redeem(address[] memory _collections, uint256[][] memory _tokenIds) external redeemNotPaused { uint256 _collectionsLen = _collections.length; require(_collectionsLen == _tokenIds.length, ""); uint32 _numWords; for (uint256 _j; _j < _collectionsLen; _j++) { if (!acceptedCollections[_collections[_j]]) { revert Errors.WhisbeVandalzPeriphery__InvalidCollection(_collections[_j]); } uint256 _tokenIdsLen = _tokenIds[_j].length; for (uint256 _i; _i < _tokenIdsLen; _i++) { // escrow if (_collections[_j] == Constants.GOOD_KARMA_TOKEN) { IERC1155(_collections[_j]).safeTransferFrom(msg.sender, address(this), 0, 1, ""); // 1 from tier 15678 _numWords += 1; } else { ERC721Burnable(_collections[_j]).safeTransferFrom(msg.sender, address(this), _tokenIds[_j][_i]); if (_collections[_j] == Constants.EXTINCTION_OPEN_EDITION_BY_WHISBE) { // 1 from tier 4 // 1 from tier 15678 _numWords += 2; } else if (_collections[_j] == Constants.THE_HORNED_KARMA_CHAMELEON_BURN_REDEMPTION_BY_WHISBE) { // 1 from tier 2 // 1 from tier 4 // 8 from tier 1,5,6,7,8 _numWords += 10; } else if (_collections[_j] == Constants.KARMA_KEY_BLACK_BY_WHISBE) { // 1 from tier 4 // 1 from tier 1,5,6,7,8 _numWords += 2; } else if (_collections[_j] == Constants.KARMA_KEYS_BY_WHISBE) { // 1 from tier 1,5,6,7,8 _numWords += 1; } } } } uint256 _requestId = COORDINATOR.requestRandomWords( keyHash, s_subscriptionId, requestConfirmations, callbackGasLimit, _numWords ); vrnfRequestCounter += 1; uint256 _index; for (uint256 _j; _j < _collectionsLen; _j++) { uint256 _tokenIdsLen = _tokenIds[_j].length; for (uint256 _i; _i < _tokenIdsLen; _i++) { // construct mint details if (_collections[_j] == Constants.EXTINCTION_OPEN_EDITION_BY_WHISBE) { // 1 from tier 4 // 1 from tier 15678 s_requestIdToMintDetails[_requestId].push( MintDetails({ collectionAddress: _collections[_j], beneficiary: msg.sender, tokenId: _tokenIds[_j][_i] }) ); _index = s_requestIdToMintDetails[_requestId].length - 1; s_requestIdToTierIndexes[_requestId][_index].push(3); s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 } else if (_collections[_j] == Constants.GOOD_KARMA_TOKEN) { // 1 from tier 15678 s_requestIdToMintDetails[_requestId].push( MintDetails({ collectionAddress: _collections[_j], beneficiary: msg.sender, tokenId: _tokenIds[_j][_i] }) ); _index = s_requestIdToMintDetails[_requestId].length - 1; s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 } else { if (_collections[_j] == Constants.THE_HORNED_KARMA_CHAMELEON_BURN_REDEMPTION_BY_WHISBE) { // 1 from tier 2 // 1 from tier 4 // 8 from tier 1,5,6,7,8 s_requestIdToMintDetails[_requestId].push( MintDetails({ collectionAddress: _collections[_j], beneficiary: msg.sender, tokenId: _tokenIds[_j][_i] }) ); _index = s_requestIdToMintDetails[_requestId].length - 1; s_requestIdToTierIndexes[_requestId][_index].push(1); s_requestIdToTierIndexes[_requestId][_index].push(3); s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 } else if (_collections[_j] == Constants.KARMA_KEY_BLACK_BY_WHISBE) { // 1 from tier 4 // 1 from tier 1,5,6,7,8 s_requestIdToMintDetails[_requestId].push( MintDetails({ collectionAddress: _collections[_j], beneficiary: msg.sender, tokenId: _tokenIds[_j][_i] }) ); _index = s_requestIdToMintDetails[_requestId].length - 1; s_requestIdToTierIndexes[_requestId][_index].push(3); s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 } else if (_collections[_j] == Constants.KARMA_KEYS_BY_WHISBE) { // 1 from tier 1,5,6,7,8 s_requestIdToMintDetails[_requestId].push( MintDetails({ collectionAddress: _collections[_j], beneficiary: msg.sender, tokenId: _tokenIds[_j][_i] }) ); _index = s_requestIdToMintDetails[_requestId].length - 1; s_requestIdToTierIndexes[_requestId][_index].push(8); // 8 means tier group 15678 } } } } } /** * @notice * @dev */ function migrateTokenMatrix( uint256[] memory _tierIndexes, uint256[] memory _offsets, uint256[] memory _tokenIndexes ) external onlyOwner { _updateTokenMatrix(_tierIndexes, _offsets, _tokenIndexes); } /** * @notice * @dev */ function airDropWhisbeVandalzToOG(address _to) external onlyOwner { uint256 _requestId = COORDINATOR.requestRandomWords(keyHash, s_subscriptionId, requestConfirmations, callbackGasLimit, 1); vrnfRequestCounter += 1; s_requestIdToMintDetails[_requestId].push( MintDetails({ collectionAddress: address(0), beneficiary: _to, tokenId: 0 }) ); s_requestIdToTierIndexes[_requestId][s_requestIdToMintDetails[_requestId].length - 1].push(8); // 8 means tier group 15678 } /** * @notice * @dev */ function creatorMintWhisbeVandalz( address _to, uint256[] memory _tokenIds, uint256[] memory _tierIndexes, uint256[] memory _offsets, uint256[] memory _tokenIndexes ) external onlyOwner { uint256 _tokenIdlen = _tokenIds.length; uint256 _tierIndexesLen = _tierIndexes.length; require(_tokenIdlen == _tierIndexesLen, "creatorMintWhisbeVandalz: length mismatch"); IWhIsBeVandalz(whisbeVandalz).creatorMint(_to, _tokenIds); for (uint256 _i; _i < _tierIndexesLen; _i++) { if (_tierIndexes[_i] == 0) { _checkAndUpdateGroupTier15678TokenAvailability(0); _checkAndUpdateGroupTier135678TokenAvailability(0); } if (_tierIndexes[_i] == 2) { _checkAndUpdateGroupTier135678TokenAvailability(2); } if (_tierIndexes[_i] >= 4 && _tierIndexes[_i] <= 7) { _checkAndUpdateGroupTier15678TokenAvailability(_tierIndexes[_i] - 3); _checkAndUpdateGroupTier135678TokenAvailability(_tierIndexes[_i] - 2); } } _updateTokenMatrix(_tierIndexes, _offsets, _tokenIndexes); } /** * @notice * @dev */ function pauseRedeem(bool _state) external onlyOwner { redeemPaused = _state; } /** * @notice * @dev */ function updateMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } /** * @notice * @dev */ function pausePublicMint(bool _state) external onlyOwner { publicMintPaused = _state; } /** * @notice * @dev */ function setPublicSalePrice(uint256 _publicSalePrice) external onlyOwner { publicSalePrice = _publicSalePrice; } /** * @notice * @dev */ function setWhitelistState(bool _state) external onlyOwner { whitelistState = _state; } /** * @notice * @dev */ function withdrawETH() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } /** * @notice * @dev */ function renounceWhisbeVandalzOwnership() external onlyOwner { IWhIsBeVandalz(whisbeVandalz).renounceOwnership(); } /** * @notice * @dev */ function transferWhisbeVandalzOwnership(address newOwner) external onlyOwner { IWhIsBeVandalz(whisbeVandalz).transferOwnership(newOwner); } function setWhisbeVandalzTier( uint256[] memory _tierIndex, uint256[] memory _from, uint256[] memory _to ) external onlyOwner { IWhIsBeVandalz(whisbeVandalz).setTier(_tierIndex, _from, _to); } function setWhisbeVandalzSupply(uint256 _supply) external onlyOwner { IWhIsBeVandalz(whisbeVandalz).setSupply(_supply); } function revealWhisbeVandalz() external onlyOwner { IWhIsBeVandalz(whisbeVandalz).reveal(); } function setWhisbeVandalzBaseExtension(string memory _newBaseExtension) external onlyOwner { IWhIsBeVandalz(whisbeVandalz).setBaseExtension(_newBaseExtension); } function setWhisbeVandalzBaseURI(string memory _newBaseURI) external onlyOwner { IWhIsBeVandalz(whisbeVandalz).setBaseURI(_newBaseURI); } function setWhisbeVandalzNotRevealedURI(string memory _notRevealedURI) external onlyOwner { IWhIsBeVandalz(whisbeVandalz).setNotRevealedURI(_notRevealedURI); } function withdrawWhisbeVandalzETH() external onlyOwner { IWhIsBeVandalz(whisbeVandalz).withdrawETH(); } function transferWhisbeVandalzAccidentallyLockedTokens(IERC20 _token, uint256 _amount) external onlyOwner { IWhIsBeVandalz(whisbeVandalz).transferAccidentallyLockedTokens(_token, _amount); } function setWhisbeVandalzRoyaltyInfo(address $royaltyAddress, uint256 $percentage) external onlyOwner { IWhIsBeVandalz(whisbeVandalz).setRoyaltyInfo($royaltyAddress, $percentage); } function setPublicMintTier3Cap(uint256 _amount) external onlyOwner { publicMintTier3Cap = _amount; } function setPublicMintTierGroup15678Cap(uint256 _amount) external onlyOwner { publicMintTierGroup15678Cap = _amount; } function inCaseNftGetStuck( address _beneficiary, address _collection, uint256 _tokenId ) external onlyOwner { if (_collection == Constants.GOOD_KARMA_TOKEN) { IERC1155(_collection).safeTransferFrom(address(this), _beneficiary, 0, 1, ""); } else { ERC721Burnable(_collection).safeTransferFrom(address(this), _beneficiary, _tokenId); } } function getMintDetails(uint256 _requestId) external view returns (MintDetails[] memory) { return s_requestIdToMintDetails[_requestId]; } function getTierIndexes(uint256 _requestId, uint256 _index) external view returns (uint256[] memory) { return s_requestIdToTierIndexes[_requestId][_index]; } function supportsInterface(bytes4 $interfaceId) public view override(ERC165Storage, ERC1155Receiver) returns (bool) { return super.supportsInterface($interfaceId); } /** * @notice * @dev * @param _proof a */ function publicMint(bytes32[] memory _proof) public payable publicMintNotPaused { // Notes: 1592 will be comprised of Tier 3 pieces (625 pieces) // Remaining pieces chosen from Tier 1/5/6/7/8 if ( publicMintTier3Counter >= publicMintTier3Cap && publicMintTierGroup15678Counter >= publicMintTierGroup15678Cap ) { revert Errors.WhisbeVandalzPeriphery__PublicMintOver(); } // cannot mint more than two Vandalz if (publicMintCounter[msg.sender] >= 2) { revert Errors.WhisbeVandalzPeriphery__PublicMintUpToTwoPerWallet(); } if (msg.value != publicSalePrice) { revert Errors.WhisbeVandalzPeriphery__IncorrectPublicSalePrice(); } if (whitelistState) { _isWhitelistedAddress(_proof); } uint256 _requestId = COORDINATOR.requestRandomWords(keyHash, s_subscriptionId, requestConfirmations, callbackGasLimit, 1); vrnfRequestCounter += 1; s_requestIdToMintDetails[_requestId].push( MintDetails({ collectionAddress: address(0), beneficiary: msg.sender, tokenId: 0 }) ); s_requestIdToTierIndexes[_requestId][s_requestIdToMintDetails[_requestId].length - 1].push(9); // 9 means tier group 135678 } function fulfillRandomWords(uint256 _requestId, uint256[] memory _randomWords) internal override { uint256 _nftLen = s_requestIdToMintDetails[_requestId].length; uint256[] memory _ids = new uint256[](_randomWords.length); uint256 _tierIndexesLen; uint256 _ranCounter; for (uint256 _i; _i < _nftLen; _i++) { if (s_requestIdToMintDetails[_requestId][_i].collectionAddress != address(0)) { _burnNFT(s_requestIdToMintDetails[_requestId][_i]); } _tierIndexesLen = s_requestIdToTierIndexes[_requestId][_i].length; for (uint256 _j; _j < _tierIndexesLen; _j++) { uint256 _tierIndex = s_requestIdToTierIndexes[_requestId][_i][_j]; if (_tierIndex == 8) { // tier group 15678 uint256 _groupTier15678IndexesLen = groupTier15678Indexes.length; if (_groupTier15678IndexesLen == 0) { revert Errors.WhisbeVandalzPeriphery__NoGroupTier15678Group(); } uint256 _randomTier15678GroupIndex = _randomWords[_ranCounter] % _groupTier15678IndexesLen; // check and update tier group based on each tier's token availability _checkAndUpdateGroupTier15678TokenAvailability(_randomTier15678GroupIndex); if (_randomTier15678GroupIndex == 0) { _checkAndUpdateGroupTier135678TokenAvailability(_randomTier15678GroupIndex); } else { _checkAndUpdateGroupTier135678TokenAvailability(_randomTier15678GroupIndex + 1); } _ids[_ranCounter] = _nextTokenFromTier( _randomWords[_ranCounter], groupTier15678Indexes[_randomTier15678GroupIndex] ); } else if (_tierIndex == 9) { // public mint if ( publicMintTier3Counter >= publicMintTier3Cap && publicMintTierGroup15678Counter >= publicMintTierGroup15678Cap ) { revert Errors.WhisbeVandalzPeriphery__PublicMintOver(); } if ( publicMintTier3Counter < publicMintTier3Cap && publicMintTierGroup15678Counter < publicMintTierGroup15678Cap ) { uint256 _groupTier135678IndexesLen = groupTier135678Indexes.length; if (_groupTier135678IndexesLen == 0) { revert Errors.WhisbeVandalzPeriphery__NoGroupTier135678Group(); } // get random tier index from tier group uint256 _randomTier135678GroupIndex = _randomWords[_ranCounter] % _groupTier135678IndexesLen; if (groupTier135678Indexes[_randomTier135678GroupIndex] == 2) { publicMintTier3Counter += 1; } else { publicMintTierGroup15678Counter += 1; } // check and update tier group based on each tier's token availability _checkAndUpdateGroupTier135678TokenAvailability(_randomTier135678GroupIndex); if (_randomTier135678GroupIndex == 0) { _checkAndUpdateGroupTier15678TokenAvailability(_randomTier135678GroupIndex); } else if (_randomTier135678GroupIndex >= 2 && _randomTier135678GroupIndex <= 5) { _checkAndUpdateGroupTier15678TokenAvailability(_randomTier135678GroupIndex - 1); } _ids[_ranCounter] = _nextTokenFromTier( _randomWords[_ranCounter], groupTier135678Indexes[_randomTier135678GroupIndex] ); } else if (publicMintTierGroup15678Counter < publicMintTierGroup15678Cap) { uint256 _groupTier15678IndexesLen = groupTier15678Indexes.length; if (_groupTier15678IndexesLen == 0) { revert Errors.WhisbeVandalzPeriphery__NoGroupTier15678Group(); } uint256 _randomTier15678GroupIndex = _randomWords[_ranCounter] % _groupTier15678IndexesLen; // check and update tier group based on each tier's token availability _checkAndUpdateGroupTier15678TokenAvailability(_randomTier15678GroupIndex); publicMintTierGroup15678Counter += 1; if (_randomTier15678GroupIndex == 0) { _checkAndUpdateGroupTier135678TokenAvailability(_randomTier15678GroupIndex); } else { _checkAndUpdateGroupTier135678TokenAvailability(_randomTier15678GroupIndex + 1); } _ids[_ranCounter] = _nextTokenFromTier( _randomWords[_ranCounter], groupTier15678Indexes[_randomTier15678GroupIndex] ); } publicMintCounter[s_requestIdToMintDetails[_requestId][_i].beneficiary] += 1; } else { _ids[_ranCounter] = _nextTokenFromTier(_randomWords[_ranCounter], _tierIndex); if (_tierIndex == 0 || _tierIndex == 4 || _tierIndex == 5 || _tierIndex == 6 || _tierIndex == 7) { _checkAndUpdateGroupTier15678TokenAvailability(_tierIndex); } if ( _tierIndex == 0 || _tierIndex == 2 || _tierIndex == 4 || _tierIndex == 5 || _tierIndex == 6 || _tierIndex == 7 ) { _checkAndUpdateGroupTier135678TokenAvailability(_tierIndex); } } _ranCounter += 1; } } IWhIsBeVandalz(whisbeVandalz).creatorMint(s_requestIdToMintDetails[_requestId][0].beneficiary, _ids); } /** * @notice function to check via merkle proof whether an address is whitelisted * @param _proof the nodes required for the merkle proof */ function _isWhitelistedAddress(bytes32[] memory _proof) internal view { bytes32 addressHash = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_proof, merkleRoot, addressHash), "Whitelist: caller is not whitelisted"); } /** * @dev * @param _index */ function _checkAndUpdateGroupTier15678TokenAvailability(uint256 _index) private { if (availableTierTokenCount(groupTier15678Indexes[_index]) == 0) { groupTier15678Indexes[_index] = groupTier15678Indexes[groupTier15678Indexes.length - 1]; groupTier15678Indexes.pop(); } } /** * @dev * @param _index */ function _checkAndUpdateGroupTier135678TokenAvailability(uint256 _index) private { if (availableTierTokenCount(groupTier135678Indexes[_index]) == 0) { groupTier135678Indexes[_index] = groupTier135678Indexes[groupTier135678Indexes.length - 1]; groupTier135678Indexes.pop(); } } /** * @dev Create a new subscription when the contract is initially deployed. */ function createNewSubscription() private onlyOwner { s_subscriptionId = COORDINATOR.createSubscription(); // Add this contract as a consumer of its own subscription. COORDINATOR.addConsumer(s_subscriptionId, address(this)); } function _burnNFT(MintDetails memory _mintDetails) private { if (_mintDetails.collectionAddress == Constants.EXTINCTION_OPEN_EDITION_BY_WHISBE) { ERC721Burnable(_mintDetails.collectionAddress).safeTransferFrom( address(this), whisbeVandalz, _mintDetails.tokenId ); } else if (_mintDetails.collectionAddress == Constants.GOOD_KARMA_TOKEN) { IGoodKarmaToken(_mintDetails.collectionAddress).burnTokenForVandal(address(this)); } else { ERC721Burnable(_mintDetails.collectionAddress).burn(_mintDetails.tokenId); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Storage.sol) pragma solidity ^0.8.0; import "./ERC165.sol"; /** * @dev Storage based implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165Storage is ERC165 { /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// 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 pragma solidity ^0.8.7; /** * @title * @author */ library Constants { address public constant EXTINCTION_OPEN_EDITION_BY_WHISBE = 0xcD136E30b316837C190241e838639c619516Fdf9; address public constant THE_HORNED_KARMA_CHAMELEON_BURN_REDEMPTION_BY_WHISBE = 0x41C884CC6847a95CfFf4EaC251173ea72C3c5eFB; address public constant KARMA_KEY_BLACK_BY_WHISBE = 0xe2C2613E647Ebd03fdC71a1Cf1fD1F938321356c; address public constant KARMA_KEYS_BY_WHISBE = 0xA53e7Fd6abC0fe9769690Af55f19c2b4A13F2Bc3; address public constant GOOD_KARMA_TOKEN = 0xC5dd321472f80A3EC9779F55cc1Af854712fAE70; }
// 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 pragma solidity ^0.8.7; import "@openzeppelin/contracts/utils/Counters.sol"; /** * @title container of the data types * @author */ library DataTypes { /** * @notice * @dev * @param * @param */ struct Tier { uint256 from; uint256 to; uint256 pieces; Counters.Counter tokenCount; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; library Errors { error WhisbeVandalz__InvalidCollection(address); error WhisbeVandalz__EightTiersRequired(uint256); error ERC721RandomlyAssignVandalzTier__UnavailableTierTokens(uint256); error WhisbeVandalz__MintNotAvailable(); error WhisbeVandalz__PublicMintUpToTwoPerWallet(); error WhisbeVandalz__NoGroupTier15678Group(); error WhisbeVandalz__NoGroupTier135678Group(); error WhisbeVandalz__NoGroupTier5678Group(); error WhisbeVandalzPeriphery__EightTiersRequired(uint256); error WhisbeVandalzPeriphery__InvalidCollection(address); error WhisbeVandalzPeriphery__PublicMintUpToTwoPerWallet(); error WhisbeVandalzPeriphery__MintNotAvailable(); error WhisbeVandalzPeriphery__NoGroupTier135678Group(); error WhisbeVandalzPeriphery__NoGroupTier15678Group(); error WhisbeVandalzPeriphery__PublicMintOver(); error WhisbeVandalzPeriphery__IncorrectPublicSalePrice(); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721Extensions/ERC721LimitedSupply.sol"; import { DataTypes } from "./types/DataTypes.sol"; import { Errors } from "./types/Errors.sol"; /** * @title Randomly assign tokenIDs from a given set of tokens. */ abstract contract ERC721RandomlyAssignVandalzTierPeriphery is ERC721LimitedSupply { using Counters for Counters.Counter; /** * @dev token id of first token */ uint256 public startFrom; /** * @dev Used for random index assignment */ mapping(uint256 => mapping(uint256 => uint256)) private tokenMatrix; /** * @notice * @dev */ DataTypes.Tier[] public tiers; /** * @notice Instanciate the contract * @param _totalSupply how many tokens this collection should hold */ constructor(uint256 _totalSupply, uint256 _startFrom) ERC721LimitedSupply(_totalSupply) { startFrom = _startFrom; } /** * @notice Get the current token count of give tier * @param _tierIndex the tier index * @return the created token count of given tier */ function tierWiseTokenCount(uint256 _tierIndex) public view returns (uint256) { return tiers[_tierIndex].tokenCount.current(); } /** * @notice Check whether tokens are still available for a given tier * @param _tierIndex the tier index * @return the available token count for given tier */ function availableTierTokenCount(uint256 _tierIndex) public view returns (uint256) { return tiers[_tierIndex].pieces - tiers[_tierIndex].tokenCount.current(); } function _updateTierTokenCount(uint256 _nextTokenId) internal { for (uint256 _i; _i < tiers.length; _i++) { if (_nextTokenId >= tiers[_i].from && _nextTokenId <= tiers[_i].to) { // Increment tier token count tiers[_i].tokenCount.increment(); break; } } } /** * @notice * @dev */ function _updateTokenMatrix( uint256[] memory _tierIndexes, uint256[] memory _offsets, uint256[] memory _tokenIndexes ) internal { uint256 _tierIndexesLen = _tierIndexes.length; uint256 _offsetsLen = _offsets.length; uint256 _tokenIndexesLen = _tokenIndexes.length; require(_tierIndexesLen == _offsetsLen && _offsetsLen == _tokenIndexesLen, "Length mismatch"); for (uint256 _i; _i < _tierIndexesLen; _i++) { // require(tokenMatrix[_tierIndexes[_i]][_offsets[_i]] == 0, "Already initialized"); tokenMatrix[_tierIndexes[_i]][_offsets[_i]] = _tokenIndexes[_i]; tiers[_tierIndexes[_i]].tokenCount.increment(); } } /** * @notice Get the next token ID from given tier * @dev Randomly gets a new token ID from given tier and keeps track of the ones that are still available. * @return the next token ID from given tier */ function _nextTokenFromTier(uint256 _randomNumber, uint256 _tierIndex) internal ensureAvailability returns (uint256) { if (availableTierTokenCount(_tierIndex) == 0) { revert Errors.ERC721RandomlyAssignVandalzTier__UnavailableTierTokens(_tierIndex); } uint256 _nextTokenId = _internalNextToken( _randomNumber, _tierIndex, tiers[_tierIndex].pieces - tiers[_tierIndex].tokenCount.current() ) + tiers[_tierIndex].from; // Increment tier token count tiers[_tierIndex].tokenCount.increment(); return _nextTokenId; } function _internalNextToken( uint256 _randomNumber, uint256 _tierIndex, uint256 _maxIndex ) internal returns (uint256) { uint256 _value; _randomNumber = _randomNumber % _maxIndex; if (tokenMatrix[_tierIndex][_randomNumber] == 0) { // If this matrix position is empty, set the value to the generated random number. _value = _randomNumber; } else { // Otherwise, use the previously stored number from the matrix. _value = tokenMatrix[_tierIndex][_randomNumber]; } // If the last available tokenID is still unused... if (tokenMatrix[_tierIndex][_maxIndex - 1] == 0) { // ...store that ID in the current matrix position. tokenMatrix[_tierIndex][_randomNumber] = _maxIndex - 1; } else { // ...otherwise copy over the stored number to the current matrix position. tokenMatrix[_tierIndex][_randomNumber] = tokenMatrix[_tierIndex][_maxIndex - 1]; } // Increment counts super._nextToken(); return _value; } function _setTier( uint256 _tierIndex, uint256 _from, uint256 _to ) internal virtual { require(_to - _from >= tiers[_tierIndex].pieces, "ERC721RandomlyAssignVandalzTier : misaligned pieces"); tiers[_tierIndex].from = _from; tiers[_tierIndex].to = _to; tiers[_tierIndex].pieces = _to - _from + 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance(address owner, address spender) external view returns (uint256 remaining); function approve(address spender, uint256 value) external returns (bool success); function balanceOf(address owner) external view returns (uint256 balance); function decimals() external view returns (uint8 decimalPlaces); function decreaseApproval(address spender, uint256 addedValue) external returns (bool success); function increaseApproval(address spender, uint256 subtractedValue) external; function name() external view returns (string memory tokenName); function symbol() external view returns (string memory tokenSymbol); function totalSupply() external view returns (uint256 totalTokensIssued); function transfer(address to, uint256 value) external returns (bool success); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns (bool success); function transferFrom( address from, address to, uint256 value ) external returns (bool success); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface VRFCoordinatorV2Interface { /** * @notice Get configuration relevant for making requests * @return minimumRequestConfirmations global min for request confirmations * @return maxGasLimit global max for request gas limit * @return s_provingKeyHashes list of registered key hashes */ function getRequestConfig() external view returns ( uint16, uint32, bytes32[] memory ); /** * @notice Request a set of random words. * @param keyHash - Corresponds to a particular oracle job which uses * that key for generating the VRF proof. Different keyHash's have different gas price * ceilings, so you can select a specific one to bound your maximum per request cost. * @param subId - The ID of the VRF subscription. Must be funded * with the minimum subscription balance required for the selected keyHash. * @param minimumRequestConfirmations - How many blocks you'd like the * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS * for why you may want to request more. The acceptable range is * [minimumRequestBlockConfirmations, 200]. * @param callbackGasLimit - How much gas you'd like to receive in your * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords * may be slightly less than this amount because of gas used calling the function * (argument decoding etc.), so you may need to request slightly more than you expect * to have inside fulfillRandomWords. The acceptable range is * [0, maxGasLimit] * @param numWords - The number of uint256 random values you'd like to receive * in your fulfillRandomWords callback. Note these numbers are expanded in a * secure way by the VRFCoordinator from a single random value supplied by the oracle. * @return requestId - A unique identifier of the request. Can be used to match * a request to a response in fulfillRandomWords. */ function requestRandomWords( bytes32 keyHash, uint64 subId, uint16 minimumRequestConfirmations, uint32 callbackGasLimit, uint32 numWords ) external returns (uint256 requestId); /** * @notice Create a VRF subscription. * @return subId - A unique subscription id. * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer. * @dev Note to fund the subscription, use transferAndCall. For example * @dev LINKTOKEN.transferAndCall( * @dev address(COORDINATOR), * @dev amount, * @dev abi.encode(subId)); */ function createSubscription() external returns (uint64 subId); /** * @notice Get a VRF subscription. * @param subId - ID of the subscription * @return balance - LINK balance of the subscription in juels. * @return reqCount - number of requests for this subscription, determines fee tier. * @return owner - owner of the subscription. * @return consumers - list of consumer address which are able to use this subscription. */ function getSubscription(uint64 subId) external view returns ( uint96 balance, uint64 reqCount, address owner, address[] memory consumers ); /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @param newOwner - proposed new owner of the subscription */ function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external; /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @dev will revert if original owner of subId has * not requested that msg.sender become the new owner. */ function acceptSubscriptionOwnerTransfer(uint64 subId) external; /** * @notice Add a consumer to a VRF subscription. * @param subId - ID of the subscription * @param consumer - New consumer which can use the subscription */ function addConsumer(uint64 subId, address consumer) external; /** * @notice Remove a consumer from a VRF subscription. * @param subId - ID of the subscription * @param consumer - Consumer to remove from the subscription */ function removeConsumer(uint64 subId, address consumer) external; /** * @notice Cancel a subscription * @param subId - ID of the subscription * @param to - Where to send the remaining LINK to */ function cancelSubscription(uint64 subId, address to) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. It ensures 2 things: * @dev 1. The fulfillment came from the VRFCoordinator * @dev 2. The consumer contract implements fulfillRandomWords. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constructor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash). Create subscription, fund it * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface * @dev subscription management functions). * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations, * @dev callbackGasLimit, numWords), * @dev see (VRFCoordinatorInterface for a description of the arguments). * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomWords method. * * @dev The randomness argument to fulfillRandomWords is a set of random words * @dev generated from your requestId and the blockHash of the request. * * @dev If your contract could have concurrent requests open, you can use the * @dev requestId returned from requestRandomWords to track which response is associated * @dev with which randomness request. * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously. * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. It is for this reason that * @dev that you can signal to an oracle you'd like them to wait longer before * @dev responding to the request (however this is not enforced in the contract * @dev and so remains effective only in the case of unmodified oracle software). */ abstract contract VRFConsumerBaseV2 { error OnlyCoordinatorCanFulfill(address have, address want); address private immutable vrfCoordinator; /** * @param _vrfCoordinator address of VRFCoordinator contract */ constructor(address _vrfCoordinator) { vrfCoordinator = _vrfCoordinator; } /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomWords the VRF output expanded to the requested number of words */ function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual; // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external { if (msg.sender != vrfCoordinator) { revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator); } fulfillRandomWords(requestId, randomWords); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Counters.sol"; /** * @title A token tracker that limits the token supply and increments token IDs on each new mint. * @author */ abstract contract ERC721LimitedSupply { using Counters for Counters.Counter; /** * @dev Emitted when the supply of this collection changes */ event SupplyChanged(uint256 indexed supply); /** * @dev Keeps track of how many we have minted */ Counters.Counter private _tokenCount; /** * @dev The maximum count of tokens this token tracker will hold. */ uint256 private _totalSupply; /** * @dev Instanciate the contract * @param totalSupply_ how many tokens this collection should hold */ constructor(uint256 totalSupply_) { _totalSupply = totalSupply_; } /** * @notice Get the max Supply * @return the maximum token count */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @notice Get the current token count * @return the created token count */ function tokenCount() public view returns (uint256) { return _tokenCount.current(); } /** * @notice Check whether tokens are still available * @return the available token count */ function availableTokenCount() public view returns (uint256) { return totalSupply() - tokenCount(); } /** * @dev Increment the token count and fetch the latest count * @return the next token id */ function _nextToken() internal virtual returns (uint256) { uint256 token = _tokenCount.current(); _tokenCount.increment(); return token; } /** * @dev Check whether another token is still available */ modifier ensureAvailability() { require(availableTokenCount() > 0, "No more tokens available"); _; } /** * @dev Check whether tokens are still available * @param amount Check whether number of tokens are still available */ modifier ensureAvailabilityFor(uint256 amount) { require(availableTokenCount() >= amount, "Requested number of tokens not available"); _; } /** * @notice Update the supply for the collection * @dev create additional token supply for this collection. * @param _supply the new token supply. */ function _setSupply(uint256 _supply) internal virtual { require(_supply > tokenCount(), "Can't set the supply to less than the current token count"); _totalSupply = _supply; emit SupplyChanged(totalSupply()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
{ "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_whisbeVandalz","type":"address"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link_token_contract","type":"address"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"components":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"},{"internalType":"uint256","name":"pieces","type":"uint256"},{"components":[{"internalType":"uint256","name":"_value","type":"uint256"}],"internalType":"struct Counters.Counter","name":"tokenCount","type":"tuple"}],"internalType":"struct DataTypes.Tier[]","name":"_tiers","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ERC721RandomlyAssignVandalzTier__UnavailableTierTokens","type":"error"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"WhisbeVandalzPeriphery__EightTiersRequired","type":"error"},{"inputs":[],"name":"WhisbeVandalzPeriphery__IncorrectPublicSalePrice","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WhisbeVandalzPeriphery__InvalidCollection","type":"error"},{"inputs":[],"name":"WhisbeVandalzPeriphery__NoGroupTier135678Group","type":"error"},{"inputs":[],"name":"WhisbeVandalzPeriphery__NoGroupTier15678Group","type":"error"},{"inputs":[],"name":"WhisbeVandalzPeriphery__PublicMintOver","type":"error"},{"inputs":[],"name":"WhisbeVandalzPeriphery__PublicMintUpToTwoPerWallet","type":"error"},{"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":"uint256","name":"supply","type":"uint256"}],"name":"SupplyChanged","type":"event"},{"inputs":[],"name":"COORDINATOR","outputs":[{"internalType":"contract VRFCoordinatorV2Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LINKTOKEN","outputs":[{"internalType":"contract LinkTokenInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"acceptedCollections","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_consumerAddress","type":"address"}],"name":"addConsumer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"airDropWhisbeVandalzToOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tierIndex","type":"uint256"}],"name":"availableTierTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"burnCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callbackGasLimit","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receivingWallet","type":"address"}],"name":"cancelSubscription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_tierIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"_offsets","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenIndexes","type":"uint256[]"}],"name":"creatorMintWhisbeVandalz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_requestId","type":"uint256"}],"name":"getMintDetails","outputs":[{"components":[{"internalType":"address","name":"collectionAddress","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct MintDetails[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_requestId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getTierIndexes","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"groupTier135678Indexes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"groupTier15678Indexes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"address","name":"_collection","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"inCaseNftGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keyHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tierIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"_offsets","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenIndexes","type":"uint256[]"}],"name":"migrateTokenMatrix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pausePublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pauseRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTier3Cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTier3Counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTierGroup15678Cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTierGroup15678Counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_collections","type":"address[]"},{"internalType":"uint256[][]","name":"_tokenIds","type":"uint256[][]"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_consumerAddress","type":"address"}],"name":"removeConsumer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceWhisbeVandalzOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestConfirmations","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealWhisbeVandalz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"s_requestIdToMintDetails","outputs":[{"internalType":"address","name":"collectionAddress","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"s_requestIdToTierIndexes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_subscriptionId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_callbackGasLimit","type":"uint32"}],"name":"setCallbackGaslimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_keyHash","type":"bytes32"}],"name":"setKeyHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setPublicMintTier3Cap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setPublicMintTierGroup15678Cap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSalePrice","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_requestConfirmations","type":"uint16"}],"name":"setRequestConfirmations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_whisbeVandalz","type":"address"}],"name":"setWhIsBeVandalz","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setWhisbeVandalzBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setWhisbeVandalzBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setWhisbeVandalzNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"$royaltyAddress","type":"address"},{"internalType":"uint256","name":"$percentage","type":"uint256"}],"name":"setWhisbeVandalzRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setWhisbeVandalzSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tierIndex","type":"uint256[]"},{"internalType":"uint256[]","name":"_from","type":"uint256[]"},{"internalType":"uint256[]","name":"_to","type":"uint256[]"}],"name":"setWhisbeVandalzTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setWhitelistState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"$interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tierIndex","type":"uint256"}],"name":"tierWiseTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiers","outputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"},{"internalType":"uint256","name":"pieces","type":"uint256"},{"components":[{"internalType":"uint256","name":"_value","type":"uint256"}],"internalType":"struct Counters.Counter","name":"tokenCount","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"topUpSubscription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferWhisbeVandalzAccidentallyLockedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferWhisbeVandalzOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vrnfRequestCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whisbeVandalz","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawWhisbeVandalzETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052600a805462ffffff60a01b19166201010160a01b17905567016345785d8a0000600c556102586010556103e06011557f8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef6012556013805465ffffffffffff19166403000f42401790553480156200007a57600080fd5b50604051620054b9380380620054b98339810160408190526200009d91620006df565b6001828155600255606084901b6001600160601b031916608052620000c23362000471565b8051600a80546001600160a01b0319166001600160a01b03881690811790915560408051636e748f9760e01b81529051636e748f9791600480820192602092909190829003018186803b1580156200011957600080fd5b505afa1580156200012e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000154919062000837565b81146200017c57604051630831767f60e41b8152600481018290526024015b60405180910390fd5b60146020527f0cdbfaa7ebf695297674bff90e85d944a3dd964e70b2da842d1c82463cb714e88054600160ff1991821681179092557f64e4d252d9da83dbe9eb094174ed0de1835ab268be78f55b47dfbe527f0e873480548216831790557f3cd5516770783f008d529ad56fe8a1f25013da18c8bc5bc9f79da6f7b1de759180548216831790557f6c29884bad0c5a9346a8eb7d52bdfa86b599e09fd3b05505a628097f419a0b8b805482168317905573c5dd321472f80a3ec9779f55cc1af854712fae7060009081527fc1a88dc84c18e7af1795bd15da409cb00229861c51f20fd409bd9bbbe371a035805490921690921790555b81811015620002f257600483828151811062000292576200029262000930565b60209081029190910181015182546001818101855560009485529383902082516004909202019081559181015192820192909255604082015160028201556060909101515160039091015580620002e98162000906565b91505062000272565b50600880546001818101835560007ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee392830181905583548083018555600490840181905584548084018655600590850181905585548085018755600690860181905586548086019097556007969095018690556009805480860182558185527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af908101949094558054808601825560029085015580548086018255840192909255815480850183558301558054808401825582019390935582549182019092550155620003e66380ac58cd60e01b620004c3565b620003f863152a902d60e11b620004c3565b6200040a635b5e139f60e01b620004c3565b6200041c6301ffc9a760e01b620004c3565b6200042e63f23a6e6160e01b620004c3565b600780546001600160a01b0319166001600160a01b038716179055606084901b6001600160601b03191660a0526200046562000544565b5050505050506200095c565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160e01b031980821614156200051f5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640162000173565b6001600160e01b0319166000908152600560205260409020805460ff19166001179055565b6006546001600160a01b03163314620005a05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000173565b600760009054906101000a90046001600160a01b03166001600160a01b031663a21a23e46040518163ffffffff1660e01b8152600401602060405180830381600087803b158015620005f157600080fd5b505af115801562000606573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200062c919062000851565b600a8054600160b81b600160f81b031916600160b81b6001600160401b0393841681029190911791829055600754604051631cd0704360e21b81529190920490921660048301523060248301526001600160a01b031690637341c10c90604401600060405180830381600087803b158015620006a757600080fd5b505af1158015620006bc573d6000803e3d6000fd5b50505050565b80516001600160a01b0381168114620006da57600080fd5b919050565b600080600080600060a08688031215620006f857600080fd5b6200070386620006c2565b9450602062000714818801620006c2565b9450604062000725818901620006c2565b60608981015160808b01519297509550906001600160401b03808211156200074c57600080fd5b818b0191508b601f8301126200076157600080fd5b81518181111562000776576200077662000946565b62000786868260051b01620008d3565b8181528681019250838701600783901b850188018f1015620007a757600080fd5b600094505b828510156200082257808f036080811215620007c757600080fd5b620007d162000883565b82518152898301518a820152888301518982015289605f1983011215620007f757600080fd5b62000801620008ae565b838901518152818901528552506001949094019392870192608001620007ac565b50809750505050505050509295509295909350565b6000602082840312156200084a57600080fd5b5051919050565b6000602082840312156200086457600080fd5b81516001600160401b03811681146200087c57600080fd5b9392505050565b604051608081016001600160401b0381118282101715620008a857620008a862000946565b60405290565b604051602081016001600160401b0381118282101715620008a857620008a862000946565b604051601f8201601f191681016001600160401b0381118282101715620008fe57620008fe62000946565b604052919050565b60006000198214156200092957634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c614b1c6200099d600039600081816108e501528181610e8e0152611d1001526000818161157001526115b20152614b1c6000f3fe60806040526004361061043f5760003560e01c80636d270f1211610234578063af7073521161012e578063e0d95efa116100b6578063f23a6e611161007a578063f23a6e6114610d89578063f27caab214610db5578063f2fde38b14610dd5578063f47fa05714610df5578063fc6abd4114610e1557600080fd5b8063e0d95efa14610ce7578063e14ca35314610d07578063e61ccb7b14610d1c578063e817194914610d3c578063ee8f2c9914610d6957600080fd5b8063b7c7bb99116100fd578063b7c7bb9914610c5a578063bc197c8114610c70578063dbd600a714610c9c578063dc8aef3814610cbc578063e086e5ec14610cd257600080fd5b8063af70735214610bc3578063b0fb162f14610be3578063b19c92a214610c19578063b235d46814610c3957600080fd5b80638ac00021116101bc5780639b6860c8116101805780639b6860c814610b295780639e68f90814610b3f5780639f181b5e14610b6e5780639ff20fdf14610b83578063a5ef98b314610ba357600080fd5b80638ac0002114610a775780638da5cb5b14610ab65780638fefd6e014610ad457806393d81d5814610ae95780639854471014610b0957600080fd5b80637c7ede7a116102035780637c7ede7a146109d55780638405c519146109ea57806386850e9314610a1757806386f92ff614610a375780638824f5a714610a5757600080fd5b80636d270f121461096d5780636f77197d1461098d578063715018a6146109a0578063791a2519146109b557600080fd5b80631fe543e3116103455780633b2bcbf1116102cd5780634b8e837d116102915780634b8e837d146108a657806355380dfb146108d357806361728f39146109075780636857e1ac1461091d5780636c54b4aa1461093d57600080fd5b80633b2bcbf11461080f5780634293516d1461082f578063464e469e14610850578063469fc112146108705780634783f0ef1461088657600080fd5b80632b2fd444116103145780632b2fd444146107825780632eb4a7ab146107a257806333d9d5fd146107b857806336be2555146107d95780633a0410ed146107ef57600080fd5b80631fe543e3146106fa578063208904c71461071a57806324f7469714610730578063273cf2bd1461076257600080fd5b80631096ee47116103c857806318160ddd1161039757806318160ddd1461067a578063181ae7481461068f5780631c740ac4146106a45780631d8e7758146106c45780631df0bb8a146106da57600080fd5b80631096ee47146105d6578063112940f9146105f6578063150b7a0214610616578063179f0b941461065a57600080fd5b80630d36646c1161040f5780630d36646c146105105780630d77fdee146105305780630e27e3df146105685780630eba699c146105885780630fe64a1e146105b657600080fd5b8062f714ce1461044b57806301ffc9a71461046d578063039af9eb146104a25780630982d6ef146104e357600080fd5b3661044657005b600080fd5b34801561045757600080fd5b5061046b610466366004614659565b610e35565b005b34801561047957600080fd5b5061048d6104883660046145a2565b610f0f565b60405190151581526020015b60405180910390f35b3480156104ae57600080fd5b506104c26104bd366004614589565b610f20565b60408051948552602085019390935291830152516060820152608001610499565b3480156104ef57600080fd5b506105036104fe3660046146c5565b610f65565b60405161049991906148d6565b34801561051c57600080fd5b5061046b61052b36600461428b565b610fd0565b34801561053c57600080fd5b50600a54610550906001600160a01b031681565b6040516001600160a01b039091168152602001610499565b34801561057457600080fd5b5061046b6105833660046140ad565b6111fc565b34801561059457600080fd5b506105a86105a3366004614589565b6112a2565b604051908152602001610499565b3480156105c257600080fd5b5061046b6105d13660046140ad565b6112cf565b3480156105e257600080fd5b5061046b6105f13660046145cc565b61132b565b34801561060257600080fd5b5061046b6106113660046140ad565b611385565b34801561062257600080fd5b506106416106313660046141b8565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610499565b34801561066657600080fd5b5061046b6106753660046145cc565b6113fa565b34801561068657600080fd5b506001546105a8565b34801561069b57600080fd5b5061046b611454565b3480156106b057600080fd5b5061046b6106bf3660046144c8565b6114e8565b3480156106d057600080fd5b506105a8600e5481565b3480156106e657600080fd5b5061046b6106f536600461454f565b61151d565b34801561070657600080fd5b5061046b610715366004614689565b611565565b34801561072657600080fd5b506105a860025481565b34801561073c57600080fd5b5060135461074d9063ffffffff1681565b60405163ffffffff9091168152602001610499565b34801561076e57600080fd5b506105a861077d366004614589565b6115ed565b34801561078e57600080fd5b5061046b61079d3660046145cc565b61160e565b3480156107ae57600080fd5b506105a8600b5481565b3480156107c457600080fd5b50600a5461048d90600160a81b900460ff1681565b3480156107e557600080fd5b506105a8600d5481565b3480156107fb57600080fd5b5061046b61080a366004614589565b611668565b34801561081b57600080fd5b50600754610550906001600160a01b031681565b34801561083b57600080fd5b50600a5461048d90600160b01b900460ff1681565b34801561085c57600080fd5b5061046b61086b366004614177565b6116c3565b34801561087c57600080fd5b506105a860115481565b34801561089257600080fd5b5061046b6108a1366004614589565b6117a4565b3480156108b257600080fd5b506108c66108c1366004614589565b6117d3565b6040516104999190614871565b3480156108df57600080fd5b506105507f000000000000000000000000000000000000000000000000000000000000000081565b34801561091357600080fd5b506105a860125481565b34801561092957600080fd5b5061046b6109383660046144c8565b61186d565b34801561094957600080fd5b5061048d6109583660046140ad565b60146020526000908152604090205460ff1681565b34801561097957600080fd5b5061046b61098836600461433d565b6118cb565b61046b61099b366004614431565b611960565b3480156109ac57600080fd5b5061046b611be5565b3480156109c157600080fd5b5061046b6109d0366004614589565b611c1b565b3480156109e157600080fd5b5061046b611c4a565b3480156109f657600080fd5b506105a8610a053660046140ad565b60166020526000908152604090205481565b348015610a2357600080fd5b5061046b610a32366004614589565b611cc4565b348015610a4357600080fd5b5061046b610a52366004614369565b611dc6565b348015610a6357600080fd5b5061046b610a7236600461461c565b6129e6565b348015610a8357600080fd5b50600a54610a9e90600160b81b90046001600160401b031681565b6040516001600160401b039091168152602001610499565b348015610ac257600080fd5b506006546001600160a01b0316610550565b348015610ae057600080fd5b5061046b612a34565b348015610af557600080fd5b5061046b610b043660046140ad565b612aae565b348015610b1557600080fd5b5061046b610b24366004614589565b612b67565b348015610b3557600080fd5b506105a8600c5481565b348015610b4b57600080fd5b50610b5f610b5a3660046146c5565b612b96565b604051610499939291906147f9565b348015610b7a57600080fd5b506000546105a8565b348015610b8f57600080fd5b5061046b610b9e3660046140ad565b612be8565b348015610baf57600080fd5b506105a8610bbe366004614589565b612da3565b348015610bcf57600080fd5b5061046b610bde36600461433d565b612db3565b348015610bef57600080fd5b50601354610c0690640100000000900461ffff1681565b60405161ffff9091168152602001610499565b348015610c2557600080fd5b5061046b610c3436600461454f565b612e16565b348015610c4557600080fd5b50600a5461048d90600160a01b900460ff1681565b348015610c6657600080fd5b506105a860105481565b348015610c7c57600080fd5b50610641610c8b3660046140ca565b63bc197c8160e01b95945050505050565b348015610ca857600080fd5b5061046b610cb7366004614713565b612e5e565b348015610cc857600080fd5b506105a8600f5481565b348015610cde57600080fd5b5061046b612ea4565b348015610cf357600080fd5b506105a8610d02366004614589565b612efd565b348015610d1357600080fd5b506105a8612f44565b348015610d2857600080fd5b5061046b610d373660046140ad565b612f55565b348015610d4857600080fd5b506105a8610d573660046140ad565b60156020526000908152604090205481565b348015610d7557600080fd5b5061046b610d84366004614589565b612fa1565b348015610d9557600080fd5b50610641610da4366004614223565b63f23a6e6160e01b95945050505050565b348015610dc157600080fd5b5061046b610dd0366004614589565b612fd0565b348015610de157600080fd5b5061046b610df03660046140ad565b612fff565b348015610e0157600080fd5b506105a8610e103660046146e7565b613097565b348015610e2157600080fd5b5061046b610e3036600461454f565b6130d5565b6006546001600160a01b03163314610e685760405162461bcd60e51b8152600401610e5f90614978565b60405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038281166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90604401602060405180830381600087803b158015610ed257600080fd5b505af1158015610ee6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0a919061456c565b505050565b6000610f1a8261311d565b92915050565b60048181548110610f3057600080fd5b600091825260209182902060049091020180546001820154600283015460408051958601905260039093015484529093509184565b6000828152601860209081526040808320848452825291829020805483518184028101840190945280845260609392830182828015610fc357602002820191906000526020600020905b815481526020019060010190808311610faf575b5050505050905092915050565b6006546001600160a01b03163314610ffa5760405162461bcd60e51b8152600401610e5f90614978565b8351835180821461105f5760405162461bcd60e51b815260206004820152602960248201527f63726561746f724d696e7457686973626556616e64616c7a3a206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610e5f565b600a5460405163f0d4601d60e01b81526001600160a01b039091169063f0d4601d90611091908a908a9060040161481d565b600060405180830381600087803b1580156110ab57600080fd5b505af11580156110bf573d6000803e3d6000fd5b5050505060005b818110156111e7578581815181106110e0576110e0614ac0565b602002602001015160001415611104576110fa6000613142565b61110460006131e0565b85818151811061111657611116614ac0565b6020026020010151600214156111305761113060026131e0565b600486828151811061114457611144614ac0565b6020026020010151101580156111745750600786828151811061116957611169614ac0565b602002602001015111155b156111d5576111a7600387838151811061119057611190614ac0565b60200260200101516111a29190614a40565b613142565b6111d560028783815181106111be576111be614ac0565b60200260200101516111d09190614a40565b6131e0565b806111df81614a57565b9150506110c6565b506111f3858585613255565b50505050505050565b6006546001600160a01b031633146112265760405162461bcd60e51b8152600401610e5f90614978565b600754600a54604051639f87fad760e01b8152600160b81b9091046001600160401b031660048201526001600160a01b03838116602483015290911690639f87fad7906044015b600060405180830381600087803b15801561128757600080fd5b505af115801561129b573d6000803e3d6000fd5b5050505050565b6000610f1a600483815481106112ba576112ba614ac0565b90600052602060002090600402016003015490565b6006546001600160a01b031633146112f95760405162461bcd60e51b8152600401610e5f90614978565b600a5460405163f2fde38b60e01b81526001600160a01b0383811660048301529091169063f2fde38b9060240161126d565b6006546001600160a01b031633146113555760405162461bcd60e51b8152600401610e5f90614978565b600a5460405163da3ef23f60e01b81526001600160a01b039091169063da3ef23f9061126d908490600401614965565b6006546001600160a01b031633146113af5760405162461bcd60e51b8152600401610e5f90614978565b600754600a54604051631cd0704360e21b8152600160b81b9091046001600160401b031660048201526001600160a01b03838116602483015290911690637341c10c9060440161126d565b6006546001600160a01b031633146114245760405162461bcd60e51b8152600401610e5f90614978565b600a54604051637962670f60e11b81526001600160a01b039091169063f2c4ce1e9061126d908490600401614965565b6006546001600160a01b0316331461147e5760405162461bcd60e51b8152600401610e5f90614978565b600a60009054906101000a90046001600160a01b03166001600160a01b031663715018a66040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b50505050565b6006546001600160a01b031633146115125760405162461bcd60e51b8152600401610e5f90614978565b610f0a838383613255565b6006546001600160a01b031633146115475760405162461bcd60e51b8152600401610e5f90614978565b600a8054911515600160b01b0260ff60b01b19909216919091179055565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146115df5760405163073e64fd60e21b81523360048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166024820152604401610e5f565b6115e98282613381565b5050565b600881815481106115fd57600080fd5b600091825260209091200154905081565b6006546001600160a01b031633146116385760405162461bcd60e51b8152600401610e5f90614978565b600a546040516355f804b360e01b81526001600160a01b03909116906355f804b39061126d908490600401614965565b6006546001600160a01b031633146116925760405162461bcd60e51b8152600401610e5f90614978565b600a54604051633b4c4b2560e01b8152600481018390526001600160a01b0390911690633b4c4b259060240161126d565b6006546001600160a01b031633146116ed5760405162461bcd60e51b8152600401610e5f90614978565b6001600160a01b03821673c5dd321472f80a3ec9779f55cc1af854712fae70141561177457604051637921219560e11b81526001600160a01b0383169063f242432a9061174690309087906000906001906004016147c1565b600060405180830381600087803b15801561176057600080fd5b505af11580156111f3573d6000803e3d6000fd5b604051632142170760e11b81526001600160a01b038316906342842e0e90611746903090879086906004016147f9565b6006546001600160a01b031633146117ce5760405162461bcd60e51b8152600401610e5f90614978565b600b55565b606060176000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611862576000848152602090819020604080516060810182526003860290920180546001600160a01b03908116845260018083015490911684860152600290910154918301919091529083529092019101611808565b505050509050919050565b6006546001600160a01b031633146118975760405162461bcd60e51b8152600401610e5f90614978565b600a546040516345f6122560e01b81526001600160a01b03909116906345f6122590611746908690869086906004016148e9565b6006546001600160a01b031633146118f55760405162461bcd60e51b8152600401610e5f90614978565b600a5460405163e2e784d560e01b81526001600160a01b038481166004830152602482018490529091169063e2e784d5906044015b600060405180830381600087803b15801561194457600080fd5b505af1158015611958573d6000803e3d6000fd5b505050505050565b600a54600160a81b900460ff16156119b25760405162461bcd60e51b8152602060048201526015602482015274141d589b1a58c81b5a5b9d081a5cc81c185d5cd959605a1b6044820152606401610e5f565b601054600e54101580156119ca5750601154600f5410155b156119e85760405163d991a5b560e01b815260040160405180910390fd5b33600090815260166020526040902054600211611a185760405163d955487f60e01b815260040160405180910390fd5b600c543414611a3a57604051634dfc7c8560e01b815260040160405180910390fd5b600a54600160b01b900460ff1615611a5557611a5581613a4f565b600754601254600a546013546040516305d3b1d360e41b81526000946001600160a01b031693635d3b1d3093611aba939192600160b81b9091046001600160401b031691640100000000810461ffff169163ffffffff9091169060019060040161492c565b602060405180830381600087803b158015611ad457600080fd5b505af1158015611ae8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0c9190614640565b90506001600d6000828254611b219190614a00565b90915550506000818152601760208181526040808420815160608101835285815233818501908152818401878152835460018181018655858a52878a209451600390920290940180546001600160a01b039283166001600160a01b0319918216178255935181860180549190931694169390931790555160029091015586865260188452918520939092529054919291611bbb9190614a40565b81526020808201929092526040016000908120805460018101825590825291902060099101555050565b6006546001600160a01b03163314611c0f5760405162461bcd60e51b8152600401610e5f90614978565b611c196000613aed565b565b6006546001600160a01b03163314611c455760405162461bcd60e51b8152600401610e5f90614978565b600c55565b6006546001600160a01b03163314611c745760405162461bcd60e51b8152600401610e5f90614978565b600a60009054906101000a90046001600160a01b03166001600160a01b031663e086e5ec6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156114ce57600080fd5b6006546001600160a01b03163314611cee5760405162461bcd60e51b8152600401610e5f90614978565b600754600a5460408051600160b81b9092046001600160401b031660208301527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0390811693634000aea0939116918591016040516020818303038152906040526040518463ffffffff1660e01b8152600401611d7493929190614841565b602060405180830381600087803b158015611d8e57600080fd5b505af1158015611da2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e9919061456c565b600a54600160a01b900460ff1615611e135760405162461bcd60e51b815260206004820152601060248201526f14995919595b481a5cc81c185d5cd95960821b6044820152606401610e5f565b815181518114611e3f5760405162461bcd60e51b81526020600482015260006024820152604401610e5f565b6000805b828110156121f25760146000868381518110611e6157611e61614ac0565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16611ecf57848181518110611e9e57611e9e614ac0565b6020026020010151604051634f8bba1160e01b8152600401610e5f91906001600160a01b0391909116815260200190565b6000848281518110611ee357611ee3614ac0565b602002602001015151905060005b818110156121dd5773c5dd321472f80a3ec9779f55cc1af854712fae706001600160a01b0316878481518110611f2957611f29614ac0565b60200260200101516001600160a01b03161415611fd357868381518110611f5257611f52614ac0565b60200260200101516001600160a01b031663f242432a3330600060016040518563ffffffff1660e01b8152600401611f8d94939291906147c1565b600060405180830381600087803b158015611fa757600080fd5b505af1158015611fbb573d6000803e3d6000fd5b50505050600184611fcc9190614a18565b93506121cb565b868381518110611fe557611fe5614ac0565b60200260200101516001600160a01b03166342842e0e333089878151811061200f5761200f614ac0565b6020026020010151858151811061202857612028614ac0565b60200260200101516040518463ffffffff1660e01b815260040161204e939291906147f9565b600060405180830381600087803b15801561206857600080fd5b505af115801561207c573d6000803e3d6000fd5b5050505073cd136e30b316837c190241e838639c619516fdf96001600160a01b03168784815181106120b0576120b0614ac0565b60200260200101516001600160a01b031614156120d257611fcc600285614a18565b7341c884cc6847a95cfff4eac251173ea72c3c5efb6001600160a01b031687848151811061210257612102614ac0565b60200260200101516001600160a01b0316141561212457611fcc600a85614a18565b73e2c2613e647ebd03fdc71a1cf1fd1f938321356c6001600160a01b031687848151811061215457612154614ac0565b60200260200101516001600160a01b0316141561217657611fcc600285614a18565b73a53e7fd6abc0fe9769690af55f19c2b4a13f2bc36001600160a01b03168784815181106121a6576121a6614ac0565b60200260200101516001600160a01b031614156121cb576121c8600185614a18565b93505b806121d581614a57565b915050611ef1565b505080806121ea90614a57565b915050611e43565b50600754601254600a546013546040516305d3b1d360e41b81526000946001600160a01b031693635d3b1d3093612257939192600160b81b9091046001600160401b031691640100000000810461ffff169163ffffffff90911690899060040161492c565b602060405180830381600087803b15801561227157600080fd5b505af1158015612285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a99190614640565b90506001600d60008282546122be9190614a00565b9091555060009050805b848110156111f35760008682815181106122e4576122e4614ac0565b602002602001015151905060005b818110156129d15773cd136e30b316837c190241e838639c619516fdf96001600160a01b031689848151811061232a5761232a614ac0565b60200260200101516001600160a01b03161415612480576017600086815260200190815260200160002060405180606001604052808b868151811061237157612371614ac0565b60200260200101516001600160a01b03168152602001336001600160a01b031681526020018a86815181106123a8576123a8614ac0565b602002602001015184815181106123c1576123c1614ac0565b6020908102919091018101519091528254600181810185556000948552828520845160039093020180546001600160a01b039384166001600160a01b031991821617825585850151828401805491909516911617909255604093840151600290920191909155888452601790915291205461243c9190614a40565b6000868152601860209081526040808320848452825282208054600180820183558285529290932060039381019390935580549182019055600891015593506129bf565b73c5dd321472f80a3ec9779f55cc1af854712fae706001600160a01b03168984815181106124b0576124b0614ac0565b60200260200101516001600160a01b031614156125f3576017600086815260200190815260200160002060405180606001604052808b86815181106124f7576124f7614ac0565b60200260200101516001600160a01b03168152602001336001600160a01b031681526020018a868151811061252e5761252e614ac0565b6020026020010151848151811061254757612547614ac0565b6020908102919091018101519091528254600181810185556000948552828520845160039093020180546001600160a01b039384166001600160a01b03199182161782558585015182840180549190951691161790925560409384015160029092019190915588845260179091529120546125c29190614a40565b60008681526018602090815260408083208484528252822080546001810182559083529120600891015593506129bf565b7341c884cc6847a95cfff4eac251173ea72c3c5efb6001600160a01b031689848151811061262357612623614ac0565b60200260200101516001600160a01b031614156127d9576017600086815260200190815260200160002060405180606001604052808b868151811061266a5761266a614ac0565b60200260200101516001600160a01b03168152602001336001600160a01b031681526020018a86815181106126a1576126a1614ac0565b602002602001015184815181106126ba576126ba614ac0565b6020908102919091018101519091528254600181810185556000948552828520845160039093020180546001600160a01b039384166001600160a01b03199182161782558585015182840180549190951691161790925560409384015160029092019190915588845260179091529120546127359190614a40565b6000868152601860209081526040808320848452825282208054600180820183558285529290932092830182905580548083018255600390840155805480830182556008908401819055815480840183558401819055815480840183558401819055815480840183558401819055815480840183558401819055815480840183558401819055815480840183558401819055815492830190915591015593506129bf565b73e2c2613e647ebd03fdc71a1cf1fd1f938321356c6001600160a01b031689848151811061280957612809614ac0565b60200260200101516001600160a01b03161415612850576017600086815260200190815260200160002060405180606001604052808b868151811061237157612371614ac0565b73a53e7fd6abc0fe9769690af55f19c2b4a13f2bc36001600160a01b031689848151811061288057612880614ac0565b60200260200101516001600160a01b031614156129bf576017600086815260200190815260200160002060405180606001604052808b86815181106128c7576128c7614ac0565b60200260200101516001600160a01b03168152602001336001600160a01b031681526020018a86815181106128fe576128fe614ac0565b6020026020010151848151811061291757612917614ac0565b6020908102919091018101519091528254600181810185556000948552828520845160039093020180546001600160a01b039384166001600160a01b03199182161782558585015182840180549190951691161790925560409384015160029092019190915588845260179091529120546129929190614a40565b60008681526018602090815260408083208484528252822080546001810182559083529120600891015593505b806129c981614a57565b9150506122f2565b505080806129de90614a57565b9150506122c8565b6006546001600160a01b03163314612a105760405162461bcd60e51b8152600401610e5f90614978565b6013805461ffff9092166401000000000265ffff0000000019909216919091179055565b6006546001600160a01b03163314612a5e5760405162461bcd60e51b8152600401610e5f90614978565b600a60009054906101000a90046001600160a01b03166001600160a01b031663a475b5dd6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156114ce57600080fd5b6006546001600160a01b03163314612ad85760405162461bcd60e51b8152600401610e5f90614978565b600754600a54604051630d7ae1d360e41b8152600160b81b9091046001600160401b031660048201526001600160a01b0383811660248301529091169063d7ae1d3090604401600060405180830381600087803b158015612b3857600080fd5b505af1158015612b4c573d6000803e3d6000fd5b5050600a805467ffffffffffffffff60b81b19169055505050565b6006546001600160a01b03163314612b915760405162461bcd60e51b8152600401610e5f90614978565b601255565b60176020528160005260406000208181548110612bb257600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b0391821694509116915083565b905090565b6006546001600160a01b03163314612c125760405162461bcd60e51b8152600401610e5f90614978565b600754601254600a546013546040516305d3b1d360e41b81526000946001600160a01b031693635d3b1d3093612c77939192600160b81b9091046001600160401b031691640100000000810461ffff169163ffffffff9091169060019060040161492c565b602060405180830381600087803b158015612c9157600080fd5b505af1158015612ca5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cc99190614640565b90506001600d6000828254612cde9190614a00565b9091555050600081815260176020818152604080842081516060810183528581526001600160a01b03888116828601908152828501888152845460018181018755868b52888b209551600390920290950180549185166001600160a01b03199283161781559251838601805491909516911617909255905160029091015586865260188452918520939092529054919291612d799190614a40565b81526020808201929092526040016000908120805460018101825590825291902060089101555050565b600981815481106115fd57600080fd5b6006546001600160a01b03163314612ddd5760405162461bcd60e51b8152600401610e5f90614978565b600a54604051631f4ca4a160e11b81526001600160a01b0384811660048301526024820184905290911690633e9949429060440161192a565b6006546001600160a01b03163314612e405760405162461bcd60e51b8152600401610e5f90614978565b600a8054911515600160a81b0260ff60a81b19909216919091179055565b6006546001600160a01b03163314612e885760405162461bcd60e51b8152600401610e5f90614978565b6013805463ffffffff191663ffffffff92909216919091179055565b6006546001600160a01b03163314612ece5760405162461bcd60e51b8152600401610e5f90614978565b60405133904780156108fc02916000818181858888f19350505050158015612efa573d6000803e3d6000fd5b50565b6000612f15600483815481106112ba576112ba614ac0565b60048381548110612f2857612f28614ac0565b906000526020600020906004020160020154610f1a9190614a40565b60008054600154612be39190614a40565b6006546001600160a01b03163314612f7f5760405162461bcd60e51b8152600401610e5f90614978565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314612fcb5760405162461bcd60e51b8152600401610e5f90614978565b601055565b6006546001600160a01b03163314612ffa5760405162461bcd60e51b8152600401610e5f90614978565b601155565b6006546001600160a01b031633146130295760405162461bcd60e51b8152600401610e5f90614978565b6001600160a01b03811661308e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e5f565b612efa81613aed565b601860205282600052604060002060205281600052604060002081815481106130bf57600080fd5b9060005260206000200160009250925050505481565b6006546001600160a01b031633146130ff5760405162461bcd60e51b8152600401610e5f90614978565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b60006001600160e01b03198216630271189760e51b1480610f1a5750610f1a82613b3f565b6131686008828154811061315857613158614ac0565b9060005260206000200154612efd565b612efa576008805461317c90600190614a40565b8154811061318c5761318c614ac0565b9060005260206000200154600882815481106131aa576131aa614ac0565b60009182526020909120015560088054806131c7576131c7614aaa565b6001900381819060005260206000200160009055905550565b6131f66009828154811061315857613158614ac0565b612efa576009805461320a90600190614a40565b8154811061321a5761321a614ac0565b90600052602060002001546009828154811061323857613238614ac0565b60009182526020909120015560098054806131c7576131c7614aaa565b825182518251818314801561326957508082145b6132a75760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610e5f565b60005b838110156111f3578481815181106132c4576132c4614ac0565b6020026020010151600360008984815181106132e2576132e2614ac0565b60200260200101518152602001908152602001600020600088848151811061330c5761330c614ac0565b602002602001015181526020019081526020016000208190555061336f600488838151811061333d5761333d614ac0565b60200260200101518154811061335557613355614ac0565b906000526020600020906004020160030180546001019055565b8061337981614a57565b9150506132aa565b60008281526017602052604081205482519091906001600160401b038111156133ac576133ac614ad6565b6040519080825280602002602001820160405280156133d5578160200160208202803683370190505b50905060008060005b848110156139a257600087815260176020526040812080548390811061340657613406614ac0565b60009182526020909120600390910201546001600160a01b031614613495576000878152601760205260409020805461349591908390811061344a5761344a614ac0565b600091825260209182902060408051606081018252600390930290910180546001600160a01b0390811684526001820154169383019390935260029092015491810191909152613b7b565b600087815260186020908152604080832084845290915281205493505b8381101561398f57600088815260186020908152604080832085845290915281208054839081106134e5576134e5614ac0565b9060005260206000200154905080600814156135d4576008548061351c57604051631dfdf4af60e11b815260040160405180910390fd5b6000818a878151811061353157613531614ac0565b60200260200101516135439190614a72565b905061354e81613142565b806135615761355c816131e0565b61356f565b61356f6111d0826001614a00565b6135af8a878151811061358457613584614ac0565b60200260200101516008838154811061359f5761359f614ac0565b9060005260206000200154613c68565b8887815181106135c1576135c1614ac0565b602002602001018181525050505061396e565b80600914156138ab57601054600e54101580156135f55750601154600f5410155b156136135760405163d991a5b560e01b815260040160405180910390fd5b601054600e541080156136295750601154600f54105b1561376b576009548061364f5760405163c93a9b0b60e01b815260040160405180910390fd5b6000818a878151811061366457613664614ac0565b60200260200101516136769190614a72565b90506009818154811061368b5761368b614ac0565b9060005260206000200154600214156136bc576001600e60008282546136b19190614a00565b909155506136d59050565b6001600f60008282546136cf9190614a00565b90915550505b6136de816131e0565b806136f1576136ec81613142565b613716565b60028110158015613703575060058111155b15613716576137166111a2600183614a40565b6137468a878151811061372b5761372b614ac0565b60200260200101516009838154811061359f5761359f614ac0565b88878151811061375857613758614ac0565b6020026020010181815250505050613839565b601154600f541015613839576008548061379857604051631dfdf4af60e11b815260040160405180910390fd5b6000818a87815181106137ad576137ad614ac0565b60200260200101516137bf9190614a72565b90506137ca81613142565b6001600f60008282546137dd9190614a00565b9091555050806137f5576137f0816131e0565b613803565b6138036111d0826001614a00565b6138188a878151811061358457613584614ac0565b88878151811061382a5761382a614ac0565b60200260200101818152505050505b600160166000601760008d8152602001908152602001600020868154811061386357613863614ac0565b60009182526020808320600160039093020191909101546001600160a01b03168352820192909252604001812080549091906138a0908490614a00565b9091555061396e9050565b6138ce8885815181106138c0576138c0614ac0565b602002602001015182613c68565b8685815181106138e0576138e0614ac0565b60209081029190910101528015806138f85750806004145b806139035750806005145b8061390e5750806006145b806139195750806007145b156139275761392781613142565b8015806139345750806002145b8061393f5750806004145b8061394a5750806005145b806139555750806006145b806139605750806007145b1561396e5761396e816131e0565b613979600185614a00565b935050808061398790614a57565b9150506134b2565b508061399a81614a57565b9150506133de565b50600a54600087815260176020526040812080546001600160a01b039093169263f0d4601d92906139d5576139d5614ac0565b60009182526020909120600160039092020101546040516001600160e01b031960e084901b168152613a15916001600160a01b031690879060040161481d565b600060405180830381600087803b158015613a2f57600080fd5b505af1158015613a43573d6000803e3d6000fd5b50505050505050505050565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050613a9582600b5483613d88565b6115e95760405162461bcd60e51b8152602060048201526024808201527f57686974656c6973743a2063616c6c6572206973206e6f742077686974656c696044820152631cdd195960e21b6064820152608401610e5f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006301ffc9a760e01b6001600160e01b031983161480610f1a5750506001600160e01b03191660009081526005602052604090205460ff1690565b80516001600160a01b031673cd136e30b316837c190241e838639c619516fdf91415613bdd578051600a546040808401519051632142170760e11b81526001600160a01b03938416936342842e0e9361126d93309392909116916004016147f9565b80516001600160a01b031673c5dd321472f80a3ec9779f55cc1af854712fae701415613c3257805160405163762e61d360e01b81523060048201526001600160a01b039091169063762e61d39060240161126d565b80516040808301519051630852cd8d60e31b81526001600160a01b03909216916342966c689161126d9160040190815260200190565b600080613c73612f44565b11613cc05760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520746f6b656e7320617661696c61626c6500000000000000006044820152606401610e5f565b613cc982612efd565b613ce95760405163648d56f960e11b815260048101839052602401610e5f565b600060048381548110613cfe57613cfe614ac0565b906000526020600020906004020160000154613d5f8585613d2b600488815481106112ba576112ba614ac0565b60048881548110613d3e57613d3e614ac0565b906000526020600020906004020160020154613d5a9190614a40565b613d9e565b613d699190614a00565b9050613d816004848154811061335557613355614ac0565b9392505050565b600082613d958584613e9e565b14949350505050565b600080613dab8386614a72565b6000858152600360209081526040808320848452909152902054909550613dd3575083613def565b5060008381526003602090815260408083208784529091529020545b600084815260036020526040812090613e09600186614a40565b81526020019081526020016000205460001415613e4a57613e2b600184614a40565b6000858152600360209081526040808320898452909152902055613e8d565b600084815260036020526040812090613e64600186614a40565b815260208082019290925260409081016000908120548782526003845282822089835290935220555b613e95613f12565b50949350505050565b600081815b8451811015613f0a576000858281518110613ec057613ec0614ac0565b60200260200101519050808311613ee65760008381526020829052604090209250613ef7565b600081815260208490526040902092505b5080613f0281614a57565b915050613ea3565b509392505050565b600080613f1e60005490565b9050613f2e600080546001019055565b919050565b60006001600160401b03831115613f4c57613f4c614ad6565b613f5f601f8401601f19166020016149ad565b9050828152838383011115613f7357600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f9b57600080fd5b81356020613fb0613fab836149dd565b6149ad565b80838252828201915082860187848660051b8901011115613fd057600080fd5b6000805b868110156140125782356001600160401b03811115613ff1578283fd5b613fff8b88838d0101614020565b8652509385019391850191600101613fd4565b509198975050505050505050565b600082601f83011261403157600080fd5b81356020614041613fab836149dd565b80838252828201915082860187848660051b890101111561406157600080fd5b60005b8581101561408057813584529284019290840190600101614064565b5090979650505050505050565b600082601f83011261409e57600080fd5b613d8183833560208501613f33565b6000602082840312156140bf57600080fd5b8135613d8181614aec565b600080600080600060a086880312156140e257600080fd5b85356140ed81614aec565b945060208601356140fd81614aec565b935060408601356001600160401b038082111561411957600080fd5b61412589838a01614020565b9450606088013591508082111561413b57600080fd5b61414789838a01614020565b9350608088013591508082111561415d57600080fd5b5061416a8882890161408d565b9150509295509295909350565b60008060006060848603121561418c57600080fd5b833561419781614aec565b925060208401356141a781614aec565b929592945050506040919091013590565b600080600080608085870312156141ce57600080fd5b84356141d981614aec565b935060208501356141e981614aec565b92506040850135915060608501356001600160401b0381111561420b57600080fd5b6142178782880161408d565b91505092959194509250565b600080600080600060a0868803121561423b57600080fd5b853561424681614aec565b9450602086013561425681614aec565b9350604086013592506060860135915060808601356001600160401b0381111561427f57600080fd5b61416a8882890161408d565b600080600080600060a086880312156142a357600080fd5b85356142ae81614aec565b945060208601356001600160401b03808211156142ca57600080fd5b6142d689838a01614020565b955060408801359150808211156142ec57600080fd5b6142f889838a01614020565b9450606088013591508082111561430e57600080fd5b61431a89838a01614020565b9350608088013591508082111561433057600080fd5b5061416a88828901614020565b6000806040838503121561435057600080fd5b823561435b81614aec565b946020939093013593505050565b6000806040838503121561437c57600080fd5b82356001600160401b038082111561439357600080fd5b818501915085601f8301126143a757600080fd5b813560206143b7613fab836149dd565b8083825282820191508286018a848660051b89010111156143d757600080fd5b600096505b848710156144035780356143ef81614aec565b8352600196909601959183019183016143dc565b509650508601359250508082111561441a57600080fd5b5061442785828601613f8a565b9150509250929050565b6000602080838503121561444457600080fd5b82356001600160401b0381111561445a57600080fd5b8301601f8101851361446b57600080fd5b8035614479613fab826149dd565b80828252848201915084840188868560051b870101111561449957600080fd5b600094505b838510156144bc57803583526001949094019391850191850161449e565b50979650505050505050565b6000806000606084860312156144dd57600080fd5b83356001600160401b03808211156144f457600080fd5b61450087838801614020565b9450602086013591508082111561451657600080fd5b61452287838801614020565b9350604086013591508082111561453857600080fd5b5061454586828701614020565b9150509250925092565b60006020828403121561456157600080fd5b8135613d8181614b01565b60006020828403121561457e57600080fd5b8151613d8181614b01565b60006020828403121561459b57600080fd5b5035919050565b6000602082840312156145b457600080fd5b81356001600160e01b031981168114613d8157600080fd5b6000602082840312156145de57600080fd5b81356001600160401b038111156145f457600080fd5b8201601f8101841361460557600080fd5b61461484823560208401613f33565b949350505050565b60006020828403121561462e57600080fd5b813561ffff81168114613d8157600080fd5b60006020828403121561465257600080fd5b5051919050565b6000806040838503121561466c57600080fd5b82359150602083013561467e81614aec565b809150509250929050565b6000806040838503121561469c57600080fd5b8235915060208301356001600160401b038111156146b957600080fd5b61442785828601614020565b600080604083850312156146d857600080fd5b50508035926020909101359150565b6000806000606084860312156146fc57600080fd5b505081359360208301359350604090920135919050565b60006020828403121561472557600080fd5b813563ffffffff81168114613d8157600080fd5b600081518084526020808501945080840160005b838110156147695781518752958201959082019060010161474d565b509495945050505050565b6000815180845260005b8181101561479a5760208185018101518683018201520161477e565b818111156147ac576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b038316815260406020820181905260009061461490830184614739565b60018060a01b03841681528260208201526060604082015260006148686060830184614774565b95945050505050565b602080825282518282018190526000919060409081850190868401855b828110156148c957815180516001600160a01b039081168652878201511687860152850151858501526060909301929085019060010161488e565b5091979650505050505050565b602081526000613d816020830184614739565b6060815260006148fc6060830186614739565b828103602084015261490e8186614739565b905082810360408401526149228185614739565b9695505050505050565b9485526001600160401b0393909316602085015261ffff91909116604084015263ffffffff908116606084015216608082015260a00190565b602081526000613d816020830184614774565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156149d5576149d5614ad6565b604052919050565b60006001600160401b038211156149f6576149f6614ad6565b5060051b60200190565b60008219821115614a1357614a13614a94565b500190565b600063ffffffff808316818516808303821115614a3757614a37614a94565b01949350505050565b600082821015614a5257614a52614a94565b500390565b6000600019821415614a6b57614a6b614a94565b5060010190565b600082614a8f57634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612efa57600080fd5b8015158114612efa57600080fdfea164736f6c6343000807000a00000000000000000000000061cece14e222385d5ac83f3d0cbd518f5feb3559000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000000000000000000000000000000000000000293000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000000d3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000df000000000000000000000000000000000000000000000000000000000000039a00000000000000000000000000000000000000000000000000000000000002bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039b00000000000000000000000000000000000000000000000000000000000006e4000000000000000000000000000000000000000000000000000000000000034a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006e50000000000000000000000000000000000000000000000000000000000000acb00000000000000000000000000000000000000000000000000000000000003e700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000acc0000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000004d700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fa300000000000000000000000000000000000000000000000000000000000017df000000000000000000000000000000000000000000000000000000000000083d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017e00000000000000000000000000000000000000000000000000000000000002b6700000000000000000000000000000000000000000000000000000000000013880000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061043f5760003560e01c80636d270f1211610234578063af7073521161012e578063e0d95efa116100b6578063f23a6e611161007a578063f23a6e6114610d89578063f27caab214610db5578063f2fde38b14610dd5578063f47fa05714610df5578063fc6abd4114610e1557600080fd5b8063e0d95efa14610ce7578063e14ca35314610d07578063e61ccb7b14610d1c578063e817194914610d3c578063ee8f2c9914610d6957600080fd5b8063b7c7bb99116100fd578063b7c7bb9914610c5a578063bc197c8114610c70578063dbd600a714610c9c578063dc8aef3814610cbc578063e086e5ec14610cd257600080fd5b8063af70735214610bc3578063b0fb162f14610be3578063b19c92a214610c19578063b235d46814610c3957600080fd5b80638ac00021116101bc5780639b6860c8116101805780639b6860c814610b295780639e68f90814610b3f5780639f181b5e14610b6e5780639ff20fdf14610b83578063a5ef98b314610ba357600080fd5b80638ac0002114610a775780638da5cb5b14610ab65780638fefd6e014610ad457806393d81d5814610ae95780639854471014610b0957600080fd5b80637c7ede7a116102035780637c7ede7a146109d55780638405c519146109ea57806386850e9314610a1757806386f92ff614610a375780638824f5a714610a5757600080fd5b80636d270f121461096d5780636f77197d1461098d578063715018a6146109a0578063791a2519146109b557600080fd5b80631fe543e3116103455780633b2bcbf1116102cd5780634b8e837d116102915780634b8e837d146108a657806355380dfb146108d357806361728f39146109075780636857e1ac1461091d5780636c54b4aa1461093d57600080fd5b80633b2bcbf11461080f5780634293516d1461082f578063464e469e14610850578063469fc112146108705780634783f0ef1461088657600080fd5b80632b2fd444116103145780632b2fd444146107825780632eb4a7ab146107a257806333d9d5fd146107b857806336be2555146107d95780633a0410ed146107ef57600080fd5b80631fe543e3146106fa578063208904c71461071a57806324f7469714610730578063273cf2bd1461076257600080fd5b80631096ee47116103c857806318160ddd1161039757806318160ddd1461067a578063181ae7481461068f5780631c740ac4146106a45780631d8e7758146106c45780631df0bb8a146106da57600080fd5b80631096ee47146105d6578063112940f9146105f6578063150b7a0214610616578063179f0b941461065a57600080fd5b80630d36646c1161040f5780630d36646c146105105780630d77fdee146105305780630e27e3df146105685780630eba699c146105885780630fe64a1e146105b657600080fd5b8062f714ce1461044b57806301ffc9a71461046d578063039af9eb146104a25780630982d6ef146104e357600080fd5b3661044657005b600080fd5b34801561045757600080fd5b5061046b610466366004614659565b610e35565b005b34801561047957600080fd5b5061048d6104883660046145a2565b610f0f565b60405190151581526020015b60405180910390f35b3480156104ae57600080fd5b506104c26104bd366004614589565b610f20565b60408051948552602085019390935291830152516060820152608001610499565b3480156104ef57600080fd5b506105036104fe3660046146c5565b610f65565b60405161049991906148d6565b34801561051c57600080fd5b5061046b61052b36600461428b565b610fd0565b34801561053c57600080fd5b50600a54610550906001600160a01b031681565b6040516001600160a01b039091168152602001610499565b34801561057457600080fd5b5061046b6105833660046140ad565b6111fc565b34801561059457600080fd5b506105a86105a3366004614589565b6112a2565b604051908152602001610499565b3480156105c257600080fd5b5061046b6105d13660046140ad565b6112cf565b3480156105e257600080fd5b5061046b6105f13660046145cc565b61132b565b34801561060257600080fd5b5061046b6106113660046140ad565b611385565b34801561062257600080fd5b506106416106313660046141b8565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610499565b34801561066657600080fd5b5061046b6106753660046145cc565b6113fa565b34801561068657600080fd5b506001546105a8565b34801561069b57600080fd5b5061046b611454565b3480156106b057600080fd5b5061046b6106bf3660046144c8565b6114e8565b3480156106d057600080fd5b506105a8600e5481565b3480156106e657600080fd5b5061046b6106f536600461454f565b61151d565b34801561070657600080fd5b5061046b610715366004614689565b611565565b34801561072657600080fd5b506105a860025481565b34801561073c57600080fd5b5060135461074d9063ffffffff1681565b60405163ffffffff9091168152602001610499565b34801561076e57600080fd5b506105a861077d366004614589565b6115ed565b34801561078e57600080fd5b5061046b61079d3660046145cc565b61160e565b3480156107ae57600080fd5b506105a8600b5481565b3480156107c457600080fd5b50600a5461048d90600160a81b900460ff1681565b3480156107e557600080fd5b506105a8600d5481565b3480156107fb57600080fd5b5061046b61080a366004614589565b611668565b34801561081b57600080fd5b50600754610550906001600160a01b031681565b34801561083b57600080fd5b50600a5461048d90600160b01b900460ff1681565b34801561085c57600080fd5b5061046b61086b366004614177565b6116c3565b34801561087c57600080fd5b506105a860115481565b34801561089257600080fd5b5061046b6108a1366004614589565b6117a4565b3480156108b257600080fd5b506108c66108c1366004614589565b6117d3565b6040516104999190614871565b3480156108df57600080fd5b506105507f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca81565b34801561091357600080fd5b506105a860125481565b34801561092957600080fd5b5061046b6109383660046144c8565b61186d565b34801561094957600080fd5b5061048d6109583660046140ad565b60146020526000908152604090205460ff1681565b34801561097957600080fd5b5061046b61098836600461433d565b6118cb565b61046b61099b366004614431565b611960565b3480156109ac57600080fd5b5061046b611be5565b3480156109c157600080fd5b5061046b6109d0366004614589565b611c1b565b3480156109e157600080fd5b5061046b611c4a565b3480156109f657600080fd5b506105a8610a053660046140ad565b60166020526000908152604090205481565b348015610a2357600080fd5b5061046b610a32366004614589565b611cc4565b348015610a4357600080fd5b5061046b610a52366004614369565b611dc6565b348015610a6357600080fd5b5061046b610a7236600461461c565b6129e6565b348015610a8357600080fd5b50600a54610a9e90600160b81b90046001600160401b031681565b6040516001600160401b039091168152602001610499565b348015610ac257600080fd5b506006546001600160a01b0316610550565b348015610ae057600080fd5b5061046b612a34565b348015610af557600080fd5b5061046b610b043660046140ad565b612aae565b348015610b1557600080fd5b5061046b610b24366004614589565b612b67565b348015610b3557600080fd5b506105a8600c5481565b348015610b4b57600080fd5b50610b5f610b5a3660046146c5565b612b96565b604051610499939291906147f9565b348015610b7a57600080fd5b506000546105a8565b348015610b8f57600080fd5b5061046b610b9e3660046140ad565b612be8565b348015610baf57600080fd5b506105a8610bbe366004614589565b612da3565b348015610bcf57600080fd5b5061046b610bde36600461433d565b612db3565b348015610bef57600080fd5b50601354610c0690640100000000900461ffff1681565b60405161ffff9091168152602001610499565b348015610c2557600080fd5b5061046b610c3436600461454f565b612e16565b348015610c4557600080fd5b50600a5461048d90600160a01b900460ff1681565b348015610c6657600080fd5b506105a860105481565b348015610c7c57600080fd5b50610641610c8b3660046140ca565b63bc197c8160e01b95945050505050565b348015610ca857600080fd5b5061046b610cb7366004614713565b612e5e565b348015610cc857600080fd5b506105a8600f5481565b348015610cde57600080fd5b5061046b612ea4565b348015610cf357600080fd5b506105a8610d02366004614589565b612efd565b348015610d1357600080fd5b506105a8612f44565b348015610d2857600080fd5b5061046b610d373660046140ad565b612f55565b348015610d4857600080fd5b506105a8610d573660046140ad565b60156020526000908152604090205481565b348015610d7557600080fd5b5061046b610d84366004614589565b612fa1565b348015610d9557600080fd5b50610641610da4366004614223565b63f23a6e6160e01b95945050505050565b348015610dc157600080fd5b5061046b610dd0366004614589565b612fd0565b348015610de157600080fd5b5061046b610df03660046140ad565b612fff565b348015610e0157600080fd5b506105a8610e103660046146e7565b613097565b348015610e2157600080fd5b5061046b610e3036600461454f565b6130d5565b6006546001600160a01b03163314610e685760405162461bcd60e51b8152600401610e5f90614978565b60405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038281166004830152602482018490527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca169063a9059cbb90604401602060405180830381600087803b158015610ed257600080fd5b505af1158015610ee6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0a919061456c565b505050565b6000610f1a8261311d565b92915050565b60048181548110610f3057600080fd5b600091825260209182902060049091020180546001820154600283015460408051958601905260039093015484529093509184565b6000828152601860209081526040808320848452825291829020805483518184028101840190945280845260609392830182828015610fc357602002820191906000526020600020905b815481526020019060010190808311610faf575b5050505050905092915050565b6006546001600160a01b03163314610ffa5760405162461bcd60e51b8152600401610e5f90614978565b8351835180821461105f5760405162461bcd60e51b815260206004820152602960248201527f63726561746f724d696e7457686973626556616e64616c7a3a206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610e5f565b600a5460405163f0d4601d60e01b81526001600160a01b039091169063f0d4601d90611091908a908a9060040161481d565b600060405180830381600087803b1580156110ab57600080fd5b505af11580156110bf573d6000803e3d6000fd5b5050505060005b818110156111e7578581815181106110e0576110e0614ac0565b602002602001015160001415611104576110fa6000613142565b61110460006131e0565b85818151811061111657611116614ac0565b6020026020010151600214156111305761113060026131e0565b600486828151811061114457611144614ac0565b6020026020010151101580156111745750600786828151811061116957611169614ac0565b602002602001015111155b156111d5576111a7600387838151811061119057611190614ac0565b60200260200101516111a29190614a40565b613142565b6111d560028783815181106111be576111be614ac0565b60200260200101516111d09190614a40565b6131e0565b806111df81614a57565b9150506110c6565b506111f3858585613255565b50505050505050565b6006546001600160a01b031633146112265760405162461bcd60e51b8152600401610e5f90614978565b600754600a54604051639f87fad760e01b8152600160b81b9091046001600160401b031660048201526001600160a01b03838116602483015290911690639f87fad7906044015b600060405180830381600087803b15801561128757600080fd5b505af115801561129b573d6000803e3d6000fd5b5050505050565b6000610f1a600483815481106112ba576112ba614ac0565b90600052602060002090600402016003015490565b6006546001600160a01b031633146112f95760405162461bcd60e51b8152600401610e5f90614978565b600a5460405163f2fde38b60e01b81526001600160a01b0383811660048301529091169063f2fde38b9060240161126d565b6006546001600160a01b031633146113555760405162461bcd60e51b8152600401610e5f90614978565b600a5460405163da3ef23f60e01b81526001600160a01b039091169063da3ef23f9061126d908490600401614965565b6006546001600160a01b031633146113af5760405162461bcd60e51b8152600401610e5f90614978565b600754600a54604051631cd0704360e21b8152600160b81b9091046001600160401b031660048201526001600160a01b03838116602483015290911690637341c10c9060440161126d565b6006546001600160a01b031633146114245760405162461bcd60e51b8152600401610e5f90614978565b600a54604051637962670f60e11b81526001600160a01b039091169063f2c4ce1e9061126d908490600401614965565b6006546001600160a01b0316331461147e5760405162461bcd60e51b8152600401610e5f90614978565b600a60009054906101000a90046001600160a01b03166001600160a01b031663715018a66040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156114ce57600080fd5b505af11580156114e2573d6000803e3d6000fd5b50505050565b6006546001600160a01b031633146115125760405162461bcd60e51b8152600401610e5f90614978565b610f0a838383613255565b6006546001600160a01b031633146115475760405162461bcd60e51b8152600401610e5f90614978565b600a8054911515600160b01b0260ff60b01b19909216919091179055565b336001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990916146115df5760405163073e64fd60e21b81523360048201526001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909166024820152604401610e5f565b6115e98282613381565b5050565b600881815481106115fd57600080fd5b600091825260209091200154905081565b6006546001600160a01b031633146116385760405162461bcd60e51b8152600401610e5f90614978565b600a546040516355f804b360e01b81526001600160a01b03909116906355f804b39061126d908490600401614965565b6006546001600160a01b031633146116925760405162461bcd60e51b8152600401610e5f90614978565b600a54604051633b4c4b2560e01b8152600481018390526001600160a01b0390911690633b4c4b259060240161126d565b6006546001600160a01b031633146116ed5760405162461bcd60e51b8152600401610e5f90614978565b6001600160a01b03821673c5dd321472f80a3ec9779f55cc1af854712fae70141561177457604051637921219560e11b81526001600160a01b0383169063f242432a9061174690309087906000906001906004016147c1565b600060405180830381600087803b15801561176057600080fd5b505af11580156111f3573d6000803e3d6000fd5b604051632142170760e11b81526001600160a01b038316906342842e0e90611746903090879086906004016147f9565b6006546001600160a01b031633146117ce5760405162461bcd60e51b8152600401610e5f90614978565b600b55565b606060176000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611862576000848152602090819020604080516060810182526003860290920180546001600160a01b03908116845260018083015490911684860152600290910154918301919091529083529092019101611808565b505050509050919050565b6006546001600160a01b031633146118975760405162461bcd60e51b8152600401610e5f90614978565b600a546040516345f6122560e01b81526001600160a01b03909116906345f6122590611746908690869086906004016148e9565b6006546001600160a01b031633146118f55760405162461bcd60e51b8152600401610e5f90614978565b600a5460405163e2e784d560e01b81526001600160a01b038481166004830152602482018490529091169063e2e784d5906044015b600060405180830381600087803b15801561194457600080fd5b505af1158015611958573d6000803e3d6000fd5b505050505050565b600a54600160a81b900460ff16156119b25760405162461bcd60e51b8152602060048201526015602482015274141d589b1a58c81b5a5b9d081a5cc81c185d5cd959605a1b6044820152606401610e5f565b601054600e54101580156119ca5750601154600f5410155b156119e85760405163d991a5b560e01b815260040160405180910390fd5b33600090815260166020526040902054600211611a185760405163d955487f60e01b815260040160405180910390fd5b600c543414611a3a57604051634dfc7c8560e01b815260040160405180910390fd5b600a54600160b01b900460ff1615611a5557611a5581613a4f565b600754601254600a546013546040516305d3b1d360e41b81526000946001600160a01b031693635d3b1d3093611aba939192600160b81b9091046001600160401b031691640100000000810461ffff169163ffffffff9091169060019060040161492c565b602060405180830381600087803b158015611ad457600080fd5b505af1158015611ae8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0c9190614640565b90506001600d6000828254611b219190614a00565b90915550506000818152601760208181526040808420815160608101835285815233818501908152818401878152835460018181018655858a52878a209451600390920290940180546001600160a01b039283166001600160a01b0319918216178255935181860180549190931694169390931790555160029091015586865260188452918520939092529054919291611bbb9190614a40565b81526020808201929092526040016000908120805460018101825590825291902060099101555050565b6006546001600160a01b03163314611c0f5760405162461bcd60e51b8152600401610e5f90614978565b611c196000613aed565b565b6006546001600160a01b03163314611c455760405162461bcd60e51b8152600401610e5f90614978565b600c55565b6006546001600160a01b03163314611c745760405162461bcd60e51b8152600401610e5f90614978565b600a60009054906101000a90046001600160a01b03166001600160a01b031663e086e5ec6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156114ce57600080fd5b6006546001600160a01b03163314611cee5760405162461bcd60e51b8152600401610e5f90614978565b600754600a5460408051600160b81b9092046001600160401b031660208301527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0390811693634000aea0939116918591016040516020818303038152906040526040518463ffffffff1660e01b8152600401611d7493929190614841565b602060405180830381600087803b158015611d8e57600080fd5b505af1158015611da2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e9919061456c565b600a54600160a01b900460ff1615611e135760405162461bcd60e51b815260206004820152601060248201526f14995919595b481a5cc81c185d5cd95960821b6044820152606401610e5f565b815181518114611e3f5760405162461bcd60e51b81526020600482015260006024820152604401610e5f565b6000805b828110156121f25760146000868381518110611e6157611e61614ac0565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16611ecf57848181518110611e9e57611e9e614ac0565b6020026020010151604051634f8bba1160e01b8152600401610e5f91906001600160a01b0391909116815260200190565b6000848281518110611ee357611ee3614ac0565b602002602001015151905060005b818110156121dd5773c5dd321472f80a3ec9779f55cc1af854712fae706001600160a01b0316878481518110611f2957611f29614ac0565b60200260200101516001600160a01b03161415611fd357868381518110611f5257611f52614ac0565b60200260200101516001600160a01b031663f242432a3330600060016040518563ffffffff1660e01b8152600401611f8d94939291906147c1565b600060405180830381600087803b158015611fa757600080fd5b505af1158015611fbb573d6000803e3d6000fd5b50505050600184611fcc9190614a18565b93506121cb565b868381518110611fe557611fe5614ac0565b60200260200101516001600160a01b03166342842e0e333089878151811061200f5761200f614ac0565b6020026020010151858151811061202857612028614ac0565b60200260200101516040518463ffffffff1660e01b815260040161204e939291906147f9565b600060405180830381600087803b15801561206857600080fd5b505af115801561207c573d6000803e3d6000fd5b5050505073cd136e30b316837c190241e838639c619516fdf96001600160a01b03168784815181106120b0576120b0614ac0565b60200260200101516001600160a01b031614156120d257611fcc600285614a18565b7341c884cc6847a95cfff4eac251173ea72c3c5efb6001600160a01b031687848151811061210257612102614ac0565b60200260200101516001600160a01b0316141561212457611fcc600a85614a18565b73e2c2613e647ebd03fdc71a1cf1fd1f938321356c6001600160a01b031687848151811061215457612154614ac0565b60200260200101516001600160a01b0316141561217657611fcc600285614a18565b73a53e7fd6abc0fe9769690af55f19c2b4a13f2bc36001600160a01b03168784815181106121a6576121a6614ac0565b60200260200101516001600160a01b031614156121cb576121c8600185614a18565b93505b806121d581614a57565b915050611ef1565b505080806121ea90614a57565b915050611e43565b50600754601254600a546013546040516305d3b1d360e41b81526000946001600160a01b031693635d3b1d3093612257939192600160b81b9091046001600160401b031691640100000000810461ffff169163ffffffff90911690899060040161492c565b602060405180830381600087803b15801561227157600080fd5b505af1158015612285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a99190614640565b90506001600d60008282546122be9190614a00565b9091555060009050805b848110156111f35760008682815181106122e4576122e4614ac0565b602002602001015151905060005b818110156129d15773cd136e30b316837c190241e838639c619516fdf96001600160a01b031689848151811061232a5761232a614ac0565b60200260200101516001600160a01b03161415612480576017600086815260200190815260200160002060405180606001604052808b868151811061237157612371614ac0565b60200260200101516001600160a01b03168152602001336001600160a01b031681526020018a86815181106123a8576123a8614ac0565b602002602001015184815181106123c1576123c1614ac0565b6020908102919091018101519091528254600181810185556000948552828520845160039093020180546001600160a01b039384166001600160a01b031991821617825585850151828401805491909516911617909255604093840151600290920191909155888452601790915291205461243c9190614a40565b6000868152601860209081526040808320848452825282208054600180820183558285529290932060039381019390935580549182019055600891015593506129bf565b73c5dd321472f80a3ec9779f55cc1af854712fae706001600160a01b03168984815181106124b0576124b0614ac0565b60200260200101516001600160a01b031614156125f3576017600086815260200190815260200160002060405180606001604052808b86815181106124f7576124f7614ac0565b60200260200101516001600160a01b03168152602001336001600160a01b031681526020018a868151811061252e5761252e614ac0565b6020026020010151848151811061254757612547614ac0565b6020908102919091018101519091528254600181810185556000948552828520845160039093020180546001600160a01b039384166001600160a01b03199182161782558585015182840180549190951691161790925560409384015160029092019190915588845260179091529120546125c29190614a40565b60008681526018602090815260408083208484528252822080546001810182559083529120600891015593506129bf565b7341c884cc6847a95cfff4eac251173ea72c3c5efb6001600160a01b031689848151811061262357612623614ac0565b60200260200101516001600160a01b031614156127d9576017600086815260200190815260200160002060405180606001604052808b868151811061266a5761266a614ac0565b60200260200101516001600160a01b03168152602001336001600160a01b031681526020018a86815181106126a1576126a1614ac0565b602002602001015184815181106126ba576126ba614ac0565b6020908102919091018101519091528254600181810185556000948552828520845160039093020180546001600160a01b039384166001600160a01b03199182161782558585015182840180549190951691161790925560409384015160029092019190915588845260179091529120546127359190614a40565b6000868152601860209081526040808320848452825282208054600180820183558285529290932092830182905580548083018255600390840155805480830182556008908401819055815480840183558401819055815480840183558401819055815480840183558401819055815480840183558401819055815480840183558401819055815480840183558401819055815492830190915591015593506129bf565b73e2c2613e647ebd03fdc71a1cf1fd1f938321356c6001600160a01b031689848151811061280957612809614ac0565b60200260200101516001600160a01b03161415612850576017600086815260200190815260200160002060405180606001604052808b868151811061237157612371614ac0565b73a53e7fd6abc0fe9769690af55f19c2b4a13f2bc36001600160a01b031689848151811061288057612880614ac0565b60200260200101516001600160a01b031614156129bf576017600086815260200190815260200160002060405180606001604052808b86815181106128c7576128c7614ac0565b60200260200101516001600160a01b03168152602001336001600160a01b031681526020018a86815181106128fe576128fe614ac0565b6020026020010151848151811061291757612917614ac0565b6020908102919091018101519091528254600181810185556000948552828520845160039093020180546001600160a01b039384166001600160a01b03199182161782558585015182840180549190951691161790925560409384015160029092019190915588845260179091529120546129929190614a40565b60008681526018602090815260408083208484528252822080546001810182559083529120600891015593505b806129c981614a57565b9150506122f2565b505080806129de90614a57565b9150506122c8565b6006546001600160a01b03163314612a105760405162461bcd60e51b8152600401610e5f90614978565b6013805461ffff9092166401000000000265ffff0000000019909216919091179055565b6006546001600160a01b03163314612a5e5760405162461bcd60e51b8152600401610e5f90614978565b600a60009054906101000a90046001600160a01b03166001600160a01b031663a475b5dd6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156114ce57600080fd5b6006546001600160a01b03163314612ad85760405162461bcd60e51b8152600401610e5f90614978565b600754600a54604051630d7ae1d360e41b8152600160b81b9091046001600160401b031660048201526001600160a01b0383811660248301529091169063d7ae1d3090604401600060405180830381600087803b158015612b3857600080fd5b505af1158015612b4c573d6000803e3d6000fd5b5050600a805467ffffffffffffffff60b81b19169055505050565b6006546001600160a01b03163314612b915760405162461bcd60e51b8152600401610e5f90614978565b601255565b60176020528160005260406000208181548110612bb257600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b0391821694509116915083565b905090565b6006546001600160a01b03163314612c125760405162461bcd60e51b8152600401610e5f90614978565b600754601254600a546013546040516305d3b1d360e41b81526000946001600160a01b031693635d3b1d3093612c77939192600160b81b9091046001600160401b031691640100000000810461ffff169163ffffffff9091169060019060040161492c565b602060405180830381600087803b158015612c9157600080fd5b505af1158015612ca5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cc99190614640565b90506001600d6000828254612cde9190614a00565b9091555050600081815260176020818152604080842081516060810183528581526001600160a01b03888116828601908152828501888152845460018181018755868b52888b209551600390920290950180549185166001600160a01b03199283161781559251838601805491909516911617909255905160029091015586865260188452918520939092529054919291612d799190614a40565b81526020808201929092526040016000908120805460018101825590825291902060089101555050565b600981815481106115fd57600080fd5b6006546001600160a01b03163314612ddd5760405162461bcd60e51b8152600401610e5f90614978565b600a54604051631f4ca4a160e11b81526001600160a01b0384811660048301526024820184905290911690633e9949429060440161192a565b6006546001600160a01b03163314612e405760405162461bcd60e51b8152600401610e5f90614978565b600a8054911515600160a81b0260ff60a81b19909216919091179055565b6006546001600160a01b03163314612e885760405162461bcd60e51b8152600401610e5f90614978565b6013805463ffffffff191663ffffffff92909216919091179055565b6006546001600160a01b03163314612ece5760405162461bcd60e51b8152600401610e5f90614978565b60405133904780156108fc02916000818181858888f19350505050158015612efa573d6000803e3d6000fd5b50565b6000612f15600483815481106112ba576112ba614ac0565b60048381548110612f2857612f28614ac0565b906000526020600020906004020160020154610f1a9190614a40565b60008054600154612be39190614a40565b6006546001600160a01b03163314612f7f5760405162461bcd60e51b8152600401610e5f90614978565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314612fcb5760405162461bcd60e51b8152600401610e5f90614978565b601055565b6006546001600160a01b03163314612ffa5760405162461bcd60e51b8152600401610e5f90614978565b601155565b6006546001600160a01b031633146130295760405162461bcd60e51b8152600401610e5f90614978565b6001600160a01b03811661308e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e5f565b612efa81613aed565b601860205282600052604060002060205281600052604060002081815481106130bf57600080fd5b9060005260206000200160009250925050505481565b6006546001600160a01b031633146130ff5760405162461bcd60e51b8152600401610e5f90614978565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b60006001600160e01b03198216630271189760e51b1480610f1a5750610f1a82613b3f565b6131686008828154811061315857613158614ac0565b9060005260206000200154612efd565b612efa576008805461317c90600190614a40565b8154811061318c5761318c614ac0565b9060005260206000200154600882815481106131aa576131aa614ac0565b60009182526020909120015560088054806131c7576131c7614aaa565b6001900381819060005260206000200160009055905550565b6131f66009828154811061315857613158614ac0565b612efa576009805461320a90600190614a40565b8154811061321a5761321a614ac0565b90600052602060002001546009828154811061323857613238614ac0565b60009182526020909120015560098054806131c7576131c7614aaa565b825182518251818314801561326957508082145b6132a75760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610e5f565b60005b838110156111f3578481815181106132c4576132c4614ac0565b6020026020010151600360008984815181106132e2576132e2614ac0565b60200260200101518152602001908152602001600020600088848151811061330c5761330c614ac0565b602002602001015181526020019081526020016000208190555061336f600488838151811061333d5761333d614ac0565b60200260200101518154811061335557613355614ac0565b906000526020600020906004020160030180546001019055565b8061337981614a57565b9150506132aa565b60008281526017602052604081205482519091906001600160401b038111156133ac576133ac614ad6565b6040519080825280602002602001820160405280156133d5578160200160208202803683370190505b50905060008060005b848110156139a257600087815260176020526040812080548390811061340657613406614ac0565b60009182526020909120600390910201546001600160a01b031614613495576000878152601760205260409020805461349591908390811061344a5761344a614ac0565b600091825260209182902060408051606081018252600390930290910180546001600160a01b0390811684526001820154169383019390935260029092015491810191909152613b7b565b600087815260186020908152604080832084845290915281205493505b8381101561398f57600088815260186020908152604080832085845290915281208054839081106134e5576134e5614ac0565b9060005260206000200154905080600814156135d4576008548061351c57604051631dfdf4af60e11b815260040160405180910390fd5b6000818a878151811061353157613531614ac0565b60200260200101516135439190614a72565b905061354e81613142565b806135615761355c816131e0565b61356f565b61356f6111d0826001614a00565b6135af8a878151811061358457613584614ac0565b60200260200101516008838154811061359f5761359f614ac0565b9060005260206000200154613c68565b8887815181106135c1576135c1614ac0565b602002602001018181525050505061396e565b80600914156138ab57601054600e54101580156135f55750601154600f5410155b156136135760405163d991a5b560e01b815260040160405180910390fd5b601054600e541080156136295750601154600f54105b1561376b576009548061364f5760405163c93a9b0b60e01b815260040160405180910390fd5b6000818a878151811061366457613664614ac0565b60200260200101516136769190614a72565b90506009818154811061368b5761368b614ac0565b9060005260206000200154600214156136bc576001600e60008282546136b19190614a00565b909155506136d59050565b6001600f60008282546136cf9190614a00565b90915550505b6136de816131e0565b806136f1576136ec81613142565b613716565b60028110158015613703575060058111155b15613716576137166111a2600183614a40565b6137468a878151811061372b5761372b614ac0565b60200260200101516009838154811061359f5761359f614ac0565b88878151811061375857613758614ac0565b6020026020010181815250505050613839565b601154600f541015613839576008548061379857604051631dfdf4af60e11b815260040160405180910390fd5b6000818a87815181106137ad576137ad614ac0565b60200260200101516137bf9190614a72565b90506137ca81613142565b6001600f60008282546137dd9190614a00565b9091555050806137f5576137f0816131e0565b613803565b6138036111d0826001614a00565b6138188a878151811061358457613584614ac0565b88878151811061382a5761382a614ac0565b60200260200101818152505050505b600160166000601760008d8152602001908152602001600020868154811061386357613863614ac0565b60009182526020808320600160039093020191909101546001600160a01b03168352820192909252604001812080549091906138a0908490614a00565b9091555061396e9050565b6138ce8885815181106138c0576138c0614ac0565b602002602001015182613c68565b8685815181106138e0576138e0614ac0565b60209081029190910101528015806138f85750806004145b806139035750806005145b8061390e5750806006145b806139195750806007145b156139275761392781613142565b8015806139345750806002145b8061393f5750806004145b8061394a5750806005145b806139555750806006145b806139605750806007145b1561396e5761396e816131e0565b613979600185614a00565b935050808061398790614a57565b9150506134b2565b508061399a81614a57565b9150506133de565b50600a54600087815260176020526040812080546001600160a01b039093169263f0d4601d92906139d5576139d5614ac0565b60009182526020909120600160039092020101546040516001600160e01b031960e084901b168152613a15916001600160a01b031690879060040161481d565b600060405180830381600087803b158015613a2f57600080fd5b505af1158015613a43573d6000803e3d6000fd5b50505050505050505050565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050613a9582600b5483613d88565b6115e95760405162461bcd60e51b8152602060048201526024808201527f57686974656c6973743a2063616c6c6572206973206e6f742077686974656c696044820152631cdd195960e21b6064820152608401610e5f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006301ffc9a760e01b6001600160e01b031983161480610f1a5750506001600160e01b03191660009081526005602052604090205460ff1690565b80516001600160a01b031673cd136e30b316837c190241e838639c619516fdf91415613bdd578051600a546040808401519051632142170760e11b81526001600160a01b03938416936342842e0e9361126d93309392909116916004016147f9565b80516001600160a01b031673c5dd321472f80a3ec9779f55cc1af854712fae701415613c3257805160405163762e61d360e01b81523060048201526001600160a01b039091169063762e61d39060240161126d565b80516040808301519051630852cd8d60e31b81526001600160a01b03909216916342966c689161126d9160040190815260200190565b600080613c73612f44565b11613cc05760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520746f6b656e7320617661696c61626c6500000000000000006044820152606401610e5f565b613cc982612efd565b613ce95760405163648d56f960e11b815260048101839052602401610e5f565b600060048381548110613cfe57613cfe614ac0565b906000526020600020906004020160000154613d5f8585613d2b600488815481106112ba576112ba614ac0565b60048881548110613d3e57613d3e614ac0565b906000526020600020906004020160020154613d5a9190614a40565b613d9e565b613d699190614a00565b9050613d816004848154811061335557613355614ac0565b9392505050565b600082613d958584613e9e565b14949350505050565b600080613dab8386614a72565b6000858152600360209081526040808320848452909152902054909550613dd3575083613def565b5060008381526003602090815260408083208784529091529020545b600084815260036020526040812090613e09600186614a40565b81526020019081526020016000205460001415613e4a57613e2b600184614a40565b6000858152600360209081526040808320898452909152902055613e8d565b600084815260036020526040812090613e64600186614a40565b815260208082019290925260409081016000908120548782526003845282822089835290935220555b613e95613f12565b50949350505050565b600081815b8451811015613f0a576000858281518110613ec057613ec0614ac0565b60200260200101519050808311613ee65760008381526020829052604090209250613ef7565b600081815260208490526040902092505b5080613f0281614a57565b915050613ea3565b509392505050565b600080613f1e60005490565b9050613f2e600080546001019055565b919050565b60006001600160401b03831115613f4c57613f4c614ad6565b613f5f601f8401601f19166020016149ad565b9050828152838383011115613f7357600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f9b57600080fd5b81356020613fb0613fab836149dd565b6149ad565b80838252828201915082860187848660051b8901011115613fd057600080fd5b6000805b868110156140125782356001600160401b03811115613ff1578283fd5b613fff8b88838d0101614020565b8652509385019391850191600101613fd4565b509198975050505050505050565b600082601f83011261403157600080fd5b81356020614041613fab836149dd565b80838252828201915082860187848660051b890101111561406157600080fd5b60005b8581101561408057813584529284019290840190600101614064565b5090979650505050505050565b600082601f83011261409e57600080fd5b613d8183833560208501613f33565b6000602082840312156140bf57600080fd5b8135613d8181614aec565b600080600080600060a086880312156140e257600080fd5b85356140ed81614aec565b945060208601356140fd81614aec565b935060408601356001600160401b038082111561411957600080fd5b61412589838a01614020565b9450606088013591508082111561413b57600080fd5b61414789838a01614020565b9350608088013591508082111561415d57600080fd5b5061416a8882890161408d565b9150509295509295909350565b60008060006060848603121561418c57600080fd5b833561419781614aec565b925060208401356141a781614aec565b929592945050506040919091013590565b600080600080608085870312156141ce57600080fd5b84356141d981614aec565b935060208501356141e981614aec565b92506040850135915060608501356001600160401b0381111561420b57600080fd5b6142178782880161408d565b91505092959194509250565b600080600080600060a0868803121561423b57600080fd5b853561424681614aec565b9450602086013561425681614aec565b9350604086013592506060860135915060808601356001600160401b0381111561427f57600080fd5b61416a8882890161408d565b600080600080600060a086880312156142a357600080fd5b85356142ae81614aec565b945060208601356001600160401b03808211156142ca57600080fd5b6142d689838a01614020565b955060408801359150808211156142ec57600080fd5b6142f889838a01614020565b9450606088013591508082111561430e57600080fd5b61431a89838a01614020565b9350608088013591508082111561433057600080fd5b5061416a88828901614020565b6000806040838503121561435057600080fd5b823561435b81614aec565b946020939093013593505050565b6000806040838503121561437c57600080fd5b82356001600160401b038082111561439357600080fd5b818501915085601f8301126143a757600080fd5b813560206143b7613fab836149dd565b8083825282820191508286018a848660051b89010111156143d757600080fd5b600096505b848710156144035780356143ef81614aec565b8352600196909601959183019183016143dc565b509650508601359250508082111561441a57600080fd5b5061442785828601613f8a565b9150509250929050565b6000602080838503121561444457600080fd5b82356001600160401b0381111561445a57600080fd5b8301601f8101851361446b57600080fd5b8035614479613fab826149dd565b80828252848201915084840188868560051b870101111561449957600080fd5b600094505b838510156144bc57803583526001949094019391850191850161449e565b50979650505050505050565b6000806000606084860312156144dd57600080fd5b83356001600160401b03808211156144f457600080fd5b61450087838801614020565b9450602086013591508082111561451657600080fd5b61452287838801614020565b9350604086013591508082111561453857600080fd5b5061454586828701614020565b9150509250925092565b60006020828403121561456157600080fd5b8135613d8181614b01565b60006020828403121561457e57600080fd5b8151613d8181614b01565b60006020828403121561459b57600080fd5b5035919050565b6000602082840312156145b457600080fd5b81356001600160e01b031981168114613d8157600080fd5b6000602082840312156145de57600080fd5b81356001600160401b038111156145f457600080fd5b8201601f8101841361460557600080fd5b61461484823560208401613f33565b949350505050565b60006020828403121561462e57600080fd5b813561ffff81168114613d8157600080fd5b60006020828403121561465257600080fd5b5051919050565b6000806040838503121561466c57600080fd5b82359150602083013561467e81614aec565b809150509250929050565b6000806040838503121561469c57600080fd5b8235915060208301356001600160401b038111156146b957600080fd5b61442785828601614020565b600080604083850312156146d857600080fd5b50508035926020909101359150565b6000806000606084860312156146fc57600080fd5b505081359360208301359350604090920135919050565b60006020828403121561472557600080fd5b813563ffffffff81168114613d8157600080fd5b600081518084526020808501945080840160005b838110156147695781518752958201959082019060010161474d565b509495945050505050565b6000815180845260005b8181101561479a5760208185018101518683018201520161477e565b818111156147ac576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b038316815260406020820181905260009061461490830184614739565b60018060a01b03841681528260208201526060604082015260006148686060830184614774565b95945050505050565b602080825282518282018190526000919060409081850190868401855b828110156148c957815180516001600160a01b039081168652878201511687860152850151858501526060909301929085019060010161488e565b5091979650505050505050565b602081526000613d816020830184614739565b6060815260006148fc6060830186614739565b828103602084015261490e8186614739565b905082810360408401526149228185614739565b9695505050505050565b9485526001600160401b0393909316602085015261ffff91909116604084015263ffffffff908116606084015216608082015260a00190565b602081526000613d816020830184614774565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156149d5576149d5614ad6565b604052919050565b60006001600160401b038211156149f6576149f6614ad6565b5060051b60200190565b60008219821115614a1357614a13614a94565b500190565b600063ffffffff808316818516808303821115614a3757614a37614a94565b01949350505050565b600082821015614a5257614a52614a94565b500390565b6000600019821415614a6b57614a6b614a94565b5060010190565b600082614a8f57634e487b7160e01b600052601260045260246000fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612efa57600080fd5b8015158114612efa57600080fdfea164736f6c6343000807000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000061cece14e222385d5ac83f3d0cbd518f5feb3559000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000000000000000000000000000000000000000293000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000b000000000000000000000000000000000000000000000000000000000000000b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000de00000000000000000000000000000000000000000000000000000000000000d3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000df000000000000000000000000000000000000000000000000000000000000039a00000000000000000000000000000000000000000000000000000000000002bc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039b00000000000000000000000000000000000000000000000000000000000006e4000000000000000000000000000000000000000000000000000000000000034a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006e50000000000000000000000000000000000000000000000000000000000000acb00000000000000000000000000000000000000000000000000000000000003e700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000acc0000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000004d700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fa300000000000000000000000000000000000000000000000000000000000017df000000000000000000000000000000000000000000000000000000000000083d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017e00000000000000000000000000000000000000000000000000000000000002b6700000000000000000000000000000000000000000000000000000000000013880000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _whisbeVandalz (address): 0x61CEcE14E222385D5aC83f3d0cbd518f5fEB3559
Arg [1] : _vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [2] : _link_token_contract (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [3] : _totalSupply (uint256): 10544
Arg [4] : _tiers (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
38 Constructor Arguments found :
Arg [0] : 00000000000000000000000061cece14e222385d5ac83f3d0cbd518f5feb3559
Arg [1] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [2] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002930
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [11] : 00000000000000000000000000000000000000000000000000000000000000de
Arg [12] : 00000000000000000000000000000000000000000000000000000000000000d3
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [14] : 00000000000000000000000000000000000000000000000000000000000000df
Arg [15] : 000000000000000000000000000000000000000000000000000000000000039a
Arg [16] : 00000000000000000000000000000000000000000000000000000000000002bc
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [18] : 000000000000000000000000000000000000000000000000000000000000039b
Arg [19] : 00000000000000000000000000000000000000000000000000000000000006e4
Arg [20] : 000000000000000000000000000000000000000000000000000000000000034a
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [22] : 00000000000000000000000000000000000000000000000000000000000006e5
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000acb
Arg [24] : 00000000000000000000000000000000000000000000000000000000000003e7
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000acc
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000fa2
Arg [28] : 00000000000000000000000000000000000000000000000000000000000004d7
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000fa3
Arg [31] : 00000000000000000000000000000000000000000000000000000000000017df
Arg [32] : 000000000000000000000000000000000000000000000000000000000000083d
Arg [33] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [34] : 00000000000000000000000000000000000000000000000000000000000017e0
Arg [35] : 0000000000000000000000000000000000000000000000000000000000002b67
Arg [36] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [37] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $9.66 | 0.99 | $9.56 |
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.