Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 158 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 18582364 | 289 days ago | IN | 0 ETH | 0.0015548 | ||||
Set Approval For... | 17758843 | 404 days ago | IN | 0 ETH | 0.00046317 | ||||
Transfer From | 17004661 | 511 days ago | IN | 0 ETH | 0.00109408 | ||||
Set Approval For... | 16084148 | 639 days ago | IN | 0 ETH | 0.00030667 | ||||
Set Approval For... | 16072755 | 641 days ago | IN | 0 ETH | 0.00055329 | ||||
Set Approval For... | 15822402 | 676 days ago | IN | 0 ETH | 0.00054319 | ||||
Transfer From | 15315671 | 751 days ago | IN | 0 ETH | 0.00382358 | ||||
Set Approval For... | 15155778 | 776 days ago | IN | 0 ETH | 0.00058627 | ||||
Set Approval For... | 15134990 | 780 days ago | IN | 0 ETH | 0.00192223 | ||||
Transfer From | 14880346 | 822 days ago | IN | 0 ETH | 0.00269501 | ||||
Transfer From | 14880342 | 822 days ago | IN | 0 ETH | 0.00206763 | ||||
Transfer From | 14880339 | 822 days ago | IN | 0 ETH | 0.00188156 | ||||
Transfer From | 14880335 | 822 days ago | IN | 0 ETH | 0.0019193 | ||||
Transfer From | 14880329 | 822 days ago | IN | 0 ETH | 0.00203404 | ||||
Set Approval For... | 14833486 | 830 days ago | IN | 0 ETH | 0.00075101 | ||||
Set Approval For... | 14832913 | 830 days ago | IN | 0 ETH | 0.00043526 | ||||
Set Approval For... | 14805484 | 835 days ago | IN | 0 ETH | 0.0012714 | ||||
Set Approval For... | 14751040 | 843 days ago | IN | 0 ETH | 0.00285724 | ||||
Set Approval For... | 14744501 | 844 days ago | IN | 0 ETH | 0.00430811 | ||||
Toggle Sale Stat... | 14720372 | 848 days ago | IN | 0 ETH | 0.00180229 | ||||
Toggle Collab St... | 14720365 | 848 days ago | IN | 0 ETH | 0.00079408 | ||||
Set Approval For... | 14605823 | 866 days ago | IN | 0 ETH | 0.00183108 | ||||
Set Approval For... | 14603876 | 866 days ago | IN | 0 ETH | 0.00180397 | ||||
Set Approval For... | 14559052 | 873 days ago | IN | 0 ETH | 0.00282685 | ||||
Collab Buy | 14533226 | 878 days ago | IN | 0.352 ETH | 0.00186683 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14465125 | 888 days ago | 17.864 ETH |
Loading...
Loading
Contract Name:
BirdNFT
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; /* _______/\\\\\________/\\\\\\\\\\\\______/\\\\\\\\\\\\____ _____/\\\///\\\_____\/\\\////////\\\___\/\\\////////\\\__ ___/\\\/__\///\\\___\/\\\______\//\\\__\/\\\______\//\\\_ __/\\\______\//\\\__\/\\\_______\/\\\__\/\\\_______\/\\\_ _\/\\\_______\/\\\__\/\\\_______\/\\\__\/\\\_______\/\\\_ _\//\\\______/\\\___\/\\\_______\/\\\__\/\\\_______\/\\\_ __\///\\\__/\\\_____\/\\\_______/\\\___\/\\\_______/\\\__ ____\///\\\\\/______\/\\\\\\\\\\\\/____\/\\\\\\\\\\\\/___ ______\/////________\////////////______\////////////_____ */ contract BirdNFT is ERC721, VRFConsumerBase, Ownable, ReentrancyGuard { using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private supply; event RequestedRandomness(bytes32 requestId); uint256 public constant BIRDS_TOTAL_SUPPLY = 10006; uint256 public constant BIRDS_COLLAB_MINT_LIMIT = 5; uint256 public constant BIRDS_PRESALE_MINT_LIMIT = 2; uint256 public constant BIRDS_SALE_MINT_LIMIT = 10; uint256 public constant PUBLIC_PRICE = 0.088 ether; uint256 public collabMintCap = 4000; uint256 public presaleMintCap = 9000; bytes32 public keyHash; uint256 public fee; mapping(address => uint256) public collabListPurchases; mapping(address => uint256) public presalerListPurchases; string public baseURI; address public seedStach; uint256 public metadataIndexOffset; bytes32 internal _randomnessRequestId; bool public collabSaleLive; bool public presaleLive; bool public saleLive; bytes32 public collabSaleMerkleRoot; bytes32 public presaleMerkleRoot; constructor( address _vrfCoordinator, address _linkToken, bytes32 _keyHash, uint256 _fee, string memory _baseURI, address _seedStach ) VRFConsumerBase(_vrfCoordinator, _linkToken) ERC721("OddBirds", "ODD") { keyHash = _keyHash; fee = _fee; baseURI = _baseURI; seedStach = _seedStach; } /** * @dev validates merkleProof */ modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) { require( MerkleProof.verify( merkleProof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address does not exist in list" ); _; } modifier isCorrectPayment(uint256 price, uint256 numberOfTokens) { require( price * numberOfTokens == msg.value, "Incorrect ETH value sent" ); _; } function reserveTokens(address[] calldata entries) external onlyOwner { uint256 tokenCount = supply.current(); uint256 tokenQuantity = entries.length; require(tokenCount + tokenQuantity <= BIRDS_TOTAL_SUPPLY, "EXCEED_TOTAL_SUPPLY"); for (uint256 i = 0; i < tokenQuantity; i++) { _safeMint(entries[i], tokenCount + i + 1); } } function collabBuy( uint256 tokenQuantity, bytes32[] calldata merkleProof ) external payable isValidMerkleProof(merkleProof, collabSaleMerkleRoot) isCorrectPayment(PUBLIC_PRICE, tokenQuantity) nonReentrant { require(!presaleLive && !saleLive && collabSaleLive, "NOT_COLLAB_STATE"); uint256 tokenCount = supply.current(); require(tokenCount + tokenQuantity <= collabMintCap, "EXCEED_COLLAB_SUPPLY"); require(collabListPurchases[msg.sender] + tokenQuantity <= BIRDS_COLLAB_MINT_LIMIT, "EXCEED_USER_ALLOC"); for (uint256 i = 1; i <= tokenQuantity; i++) { collabListPurchases[msg.sender]++; _safeMint(msg.sender, tokenCount + i); } } function presaleBuy( uint256 tokenQuantity, bytes32[] calldata merkleProof ) external payable isValidMerkleProof(merkleProof, presaleMerkleRoot) isCorrectPayment(PUBLIC_PRICE, tokenQuantity) nonReentrant { require(!saleLive && !collabSaleLive && presaleLive, "NOT_PRESALE_STATE"); uint256 tokenCount = supply.current(); require(tokenCount + tokenQuantity <= presaleMintCap, "EXCEED_PRESALE_SUPPLY"); require(presalerListPurchases[msg.sender] + tokenQuantity <= BIRDS_PRESALE_MINT_LIMIT, "EXCEED_USER_ALLOC"); for (uint256 i = 1; i <= tokenQuantity; i++) { presalerListPurchases[msg.sender]++; _safeMint(msg.sender, tokenCount + i); } } function buy( uint256 tokenQuantity ) external payable isCorrectPayment(PUBLIC_PRICE, tokenQuantity) nonReentrant { require(!presaleLive && !collabSaleLive && saleLive, "NOT_SALE_STATE"); uint256 tokenCount = supply.current(); require(tokenCount + tokenQuantity <= BIRDS_TOTAL_SUPPLY, "EXCEED_TOTAL_SUPPLY"); require(tokenQuantity <= BIRDS_SALE_MINT_LIMIT, "EXCEED_BIRDS_SALE_MINT_LIMIT"); for(uint256 i = 1; i <= tokenQuantity; i++) { _safeMint(msg.sender, tokenCount + i); } } function setCollabSaleMerkleRoot(bytes32 merkleRoot) external onlyOwner { collabSaleMerkleRoot = merkleRoot; } function setPresaleMerkleRoot(bytes32 merkleRoot) external onlyOwner { presaleMerkleRoot = merkleRoot; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(seedStach).transfer(balance); } function toggleCollabStatus() external onlyOwner { collabSaleLive = !collabSaleLive; } function togglePresaleStatus() external onlyOwner { presaleLive = !presaleLive; } function toggleSaleStatus() external onlyOwner { saleLive = !saleLive; } function setBaseURI(string calldata URI) external onlyOwner { baseURI = URI; } function setCollabMintCap(uint256 mintCap) external onlyOwner { collabMintCap = mintCap; } function setPresaleMintCap(uint256 mintCap) external onlyOwner { presaleMintCap = mintCap; } function totalSupply() public view returns (uint256) { return supply.current(); } function _beforeTokenTransfer (address from, address to, uint256 tokenId) internal override { if (from == address(0)){ supply.increment(); } } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "Token does not exist."); return string(abi.encodePacked(baseURI, Strings.toString(_tokenId))); } function setMetadataIndexOffset() external onlyOwner { require(_randomnessRequestId == "", "Already requested"); require(LINK.balanceOf(address(this)) >= fee * 10**17, "Not enough LINK"); _randomnessRequestId = requestRandomness(keyHash, fee * 10**17); emit RequestedRandomness(_randomnessRequestId); } function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override { require(requestId == _randomnessRequestId, "Bad Request"); metadataIndexOffset = randomness % BIRDS_TOTAL_SUPPLY; if (metadataIndexOffset == 0) { metadataIndexOffset = 1; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// 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 // 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.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @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. * ***************************************************************************** * @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 constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) 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), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (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. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @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 ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @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. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @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 VRFConsumerBase 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 randomness the VRF output */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 private constant USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface internal immutable LINK; address private immutable vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 => uint256) /* keyHash */ /* nonce */ private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor(address _vrfCoordinator, address _link) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 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; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns (uint256) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_linkToken","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_seedStach","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"}],"name":"RequestedRandomness","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BIRDS_COLLAB_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BIRDS_PRESALE_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BIRDS_SALE_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BIRDS_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"collabBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collabListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collabMintCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collabSaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collabSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keyHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataIndexOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"presaleBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMintCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presalerListPurchases","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"entries","type":"address[]"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seedStach","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintCap","type":"uint256"}],"name":"setCollabMintCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setCollabSaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setMetadataIndexOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintCap","type":"uint256"}],"name":"setPresaleMintCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleCollabStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052610fa0600a55612328600b553480156200001d57600080fd5b50604051620037f1380380620037f1833981016040819052620000409162000239565b60408051808201825260088152674f6464426972647360c01b60208083019182528351808501909452600384526213d11160ea1b908401528151899389939290916200008f9160009162000176565b508051620000a590600190602084019062000176565b5050506001600160601b0319606092831b811660a052911b16608052620000d3620000cd3390565b62000124565b6001600855600c849055600d8390558151620000f790601090602085019062000176565b50601180546001600160a01b0319166001600160a01b039290921691909117905550620003b69350505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001849062000363565b90600052602060002090601f016020900481019282620001a85760008555620001f3565b82601f10620001c357805160ff1916838001178555620001f3565b82800160010185558215620001f3579182015b82811115620001f3578251825591602001919060010190620001d6565b506200020192915062000205565b5090565b5b8082111562000201576000815560010162000206565b80516001600160a01b03811681146200023457600080fd5b919050565b60008060008060008060c087890312156200025357600080fd5b6200025e876200021c565b955060206200026f8189016200021c565b604089015160608a015160808b015192985090965094506001600160401b03808211156200029c57600080fd5b818a0191508a601f830112620002b157600080fd5b815181811115620002c657620002c6620003a0565b604051601f8201601f19908116603f01168101908382118183101715620002f157620002f1620003a0565b816040528281528d868487010111156200030a57600080fd5b600093505b828410156200032e57848401860151818501870152928501926200030f565b82841115620003405760008684830101525b8097505050505050506200035760a088016200021c565b90509295509295509295565b600181811c908216806200037857607f821691505b602082108114156200039a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c613401620003f0600039600081816113f40152612706015260008181611e0401526126d701526134016000f3fe6080604052600436106103345760003560e01c80638f2a1397116101b0578063c819d2ce116100ec578063ddca3f4311610095578063e985e9c51161006f578063e985e9c51461087f578063f03b0971146108c8578063f1a1b257146108de578063f2fde38b146108f357600080fd5b8063ddca3f4314610834578063df7970f11461084a578063e081b7811461085f57600080fd5b8063d9375d74116100c6578063d9375d74146107f8578063d96a094a1461080b578063da31a6d91461081e57600080fd5b8063c819d2ce14610798578063c87b56dd146107b8578063ced4a5f2146107d857600080fd5b8063a22cb46511610159578063b64f458b11610133578063b64f458b14610715578063b88d4fde14610742578063bef2256b14610762578063c65fa7cb1461077857600080fd5b8063a22cb465146106ca578063a23b4d43146106ea578063a5dfddde146106ff57600080fd5b806399a0113c1161018a57806399a0113c146106685780639bf803161461067d578063a06f269b146106aa57600080fd5b80638f2a13971461061357806394985ddd1461063357806395d89b411461065357600080fd5b806355f804b31161027f5780636c0360eb116102285780637bffb4ce116102025780637bffb4ce146105a757806382caea4a146105bc57806383a9e049146105d65780638da5cb5b146105f557600080fd5b80636c0360eb1461055d57806370a0823114610572578063715018a61461059257600080fd5b8063611f3f1011610259578063611f3f101461050b57806361728f39146105275780636352211e1461053d57600080fd5b806355f804b3146104c35780635abedac5146104e357806361197f27146104f657600080fd5b806322212e2b116102e15780633ccfd60b116102bb5780633ccfd60b1461047857806342842e0e1461048d57806346f80204146104ad57600080fd5b806322212e2b1461042257806323b872dd1461043857806328d7b2761461045857600080fd5b8063081812fc11610312578063081812fc146103a7578063095ea7b3146103df57806318160ddd146103ff57600080fd5b806301ffc9a714610339578063049c5c491461036e57806306fdde0314610385575b600080fd5b34801561034557600080fd5b50610359610354366004612fc0565b610913565b60405190151581526020015b60405180910390f35b34801561037a57600080fd5b506103836109b0565b005b34801561039157600080fd5b5061039a610a1c565b6040516103659190613224565b3480156103b357600080fd5b506103c76103c2366004612f85565b610aae565b6040516001600160a01b039091168152602001610365565b3480156103eb57600080fd5b506103836103fa366004612efc565b610b43565b34801561040b57600080fd5b50610414610c75565b604051908152602001610365565b34801561042e57600080fd5b5061041460165481565b34801561044457600080fd5b50610383610453366004612dad565b610c85565b34801561046457600080fd5b50610383610473366004612f85565b610d0c565b34801561048457600080fd5b50610383610d59565b34801561049957600080fd5b506103836104a8366004612dad565b610ddf565b3480156104b957600080fd5b5061041460155481565b3480156104cf57600080fd5b506103836104de366004612ffa565b610dfa565b6103836104f1366004613085565b610e4e565b34801561050257600080fd5b50610414600581565b34801561051757600080fd5b50610414670138a388a43c000081565b34801561053357600080fd5b50610414600c5481565b34801561054957600080fd5b506103c7610558366004612f85565b61117d565b34801561056957600080fd5b5061039a611208565b34801561057e57600080fd5b5061041461058d366004612d58565b611296565b34801561059e57600080fd5b50610383611330565b3480156105b357600080fd5b50610383611384565b3480156105c857600080fd5b506014546103599060ff1681565b3480156105e257600080fd5b5060145461035990610100900460ff1681565b34801561060157600080fd5b506007546001600160a01b03166103c7565b34801561061f57600080fd5b506011546103c7906001600160a01b031681565b34801561063f57600080fd5b5061038361064e366004612f9e565b6113e9565b34801561065f57600080fd5b5061039a61146b565b34801561067457600080fd5b5061038361147a565b34801561068957600080fd5b50610414610698366004612d58565b600f6020526000908152604090205481565b3480156106b657600080fd5b506103836106c5366004612f85565b6114d6565b3480156106d657600080fd5b506103836106e5366004612ec5565b611523565b3480156106f657600080fd5b50610414600a81565b34801561070b57600080fd5b50610414600b5481565b34801561072157600080fd5b50610414610730366004612d58565b600e6020526000908152604090205481565b34801561074e57600080fd5b5061038361075d366004612de9565b61152e565b34801561076e57600080fd5b5061041460125481565b34801561078457600080fd5b50610383610793366004612f85565b6115bc565b3480156107a457600080fd5b506103836107b3366004612f85565b611609565b3480156107c457600080fd5b5061039a6107d3366004612f85565b611656565b3480156107e457600080fd5b506103836107f3366004612f26565b6116ef565b610383610806366004613085565b611803565b610383610819366004612f85565b611b05565b34801561082a57600080fd5b50610414600a5481565b34801561084057600080fd5b50610414600d5481565b34801561085657600080fd5b50610383611d29565b34801561086b57600080fd5b506014546103599062010000900460ff1681565b34801561088b57600080fd5b5061035961089a366004612d7a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108d457600080fd5b5061041461271681565b3480156108ea57600080fd5b50610414600281565b3480156108ff57600080fd5b5061038361090e366004612d58565b611f2f565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061097657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109aa57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6007546001600160a01b031633146109fd5760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064015b60405180910390fd5b6014805462ff0000198116620100009182900460ff1615909102179055565b606060008054610a2b906132c5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a57906132c5565b8015610aa45780601f10610a7957610100808354040283529160200191610aa4565b820191906000526020600020905b815481529060010190602001808311610a8757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b275760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109f4565b506000908152600460205260409020546001600160a01b031690565b6000610b4e8261117d565b9050806001600160a01b0316836001600160a01b03161415610bd85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109f4565b336001600160a01b0382161480610bf45750610bf4813361089a565b610c665760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109f4565b610c708383611fff565b505050565b6000610c8060095490565b905090565b610c8f338261207a565b610d015760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109f4565b610c70838383612171565b6007546001600160a01b03163314610d545760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b601655565b6007546001600160a01b03163314610da15760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b60115460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610ddb573d6000803e3d6000fd5b5050565b610c708383836040518060200160405280600081525061152e565b6007546001600160a01b03163314610e425760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b610c7060108383612c57565b8181601554610ec6838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190505b60405160208183030381529060405280519060200120612356565b610f125760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c697374000060448201526064016109f4565b670138a388a43c00008634610f278284613263565b14610f745760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016109f4565b60026008541415610fc75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f4565b6002600855601454610100900460ff16158015610fed575060145462010000900460ff16155b8015610ffb575060145460ff165b6110475760405162461bcd60e51b815260206004820152601060248201527f4e4f545f434f4c4c41425f53544154450000000000000000000000000000000060448201526064016109f4565b600061105260095490565b600a549091506110628a83613237565b11156110b05760405162461bcd60e51b815260206004820152601460248201527f4558434545445f434f4c4c41425f535550504c5900000000000000000000000060448201526064016109f4565b336000908152600e60205260409020546005906110ce908b90613237565b111561111c5760405162461bcd60e51b815260206004820152601160248201527f4558434545445f555345525f414c4c4f4300000000000000000000000000000060448201526064016109f4565b60015b89811161116c57336000908152600e6020526040812080549161114183613300565b9091555061115a9050336111558385613237565b61236c565b8061116481613300565b91505061111f565b505060016008555050505050505050565b6000818152600260205260408120546001600160a01b0316806109aa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109f4565b60108054611215906132c5565b80601f0160208091040260200160405190810160405280929190818152602001828054611241906132c5565b801561128e5780601f106112635761010080835404028352916020019161128e565b820191906000526020600020905b81548152906001019060200180831161127157829003601f168201915b505050505081565b60006001600160a01b0382166113145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109f4565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146113785760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b6113826000612386565b565b6007546001600160a01b031633146113cc5760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b6014805461ff001981166101009182900460ff1615909102179055565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146114615760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016109f4565b610ddb82826123e5565b606060018054610a2b906132c5565b6007546001600160a01b031633146114c25760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b6014805460ff19811660ff90911615179055565b6007546001600160a01b0316331461151e5760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b600b55565b610ddb338383612454565b611538338361207a565b6115aa5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109f4565b6115b684848484612523565b50505050565b6007546001600160a01b031633146116045760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b601555565b6007546001600160a01b031633146116515760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b600a55565b6000818152600260205260409020546060906001600160a01b03166116bd5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20646f6573206e6f742065786973742e000000000000000000000060448201526064016109f4565b60106116c8836125a1565b6040516020016116d9929190613119565b6040516020818303038152906040529050919050565b6007546001600160a01b031633146117375760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b600061174260095490565b9050816127166117528284613237565b11156117a05760405162461bcd60e51b815260206004820152601360248201527f4558434545445f544f54414c5f535550504c590000000000000000000000000060448201526064016109f4565b60005b818110156117fc576117ea8585838181106117c0576117c061335b565b90506020020160208101906117d59190612d58565b6117df8386613237565b611155906001613237565b806117f481613300565b9150506117a3565b5050505050565b8181601654611864838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b1660208201528592506034019050610eab565b6118b05760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c697374000060448201526064016109f4565b670138a388a43c000086346118c58284613263565b146119125760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016109f4565b600260085414156119655760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f4565b600260085560145462010000900460ff16158015611986575060145460ff16155b80156119995750601454610100900460ff165b6119e55760405162461bcd60e51b815260206004820152601160248201527f4e4f545f50524553414c455f535441544500000000000000000000000000000060448201526064016109f4565b60006119f060095490565b600b54909150611a008a83613237565b1115611a4e5760405162461bcd60e51b815260206004820152601560248201527f4558434545445f50524553414c455f535550504c59000000000000000000000060448201526064016109f4565b336000908152600f6020526040902054600290611a6c908b90613237565b1115611aba5760405162461bcd60e51b815260206004820152601160248201527f4558434545445f555345525f414c4c4f4300000000000000000000000000000060448201526064016109f4565b60015b89811161116c57336000908152600f60205260408120805491611adf83613300565b90915550611af39050336111558385613237565b80611afd81613300565b915050611abd565b670138a388a43c00008134611b1a8284613263565b14611b675760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016109f4565b60026008541415611bba5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f4565b6002600855601454610100900460ff16158015611bda575060145460ff16155b8015611bee575060145462010000900460ff165b611c3a5760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f53414c455f535441544500000000000000000000000000000000000060448201526064016109f4565b6000611c4560095490565b9050612716611c548583613237565b1115611ca25760405162461bcd60e51b815260206004820152601360248201527f4558434545445f544f54414c5f535550504c590000000000000000000000000060448201526064016109f4565b600a841115611cf35760405162461bcd60e51b815260206004820152601c60248201527f4558434545445f42495244535f53414c455f4d494e545f4c494d49540000000060448201526064016109f4565b60015b848111611d1d57611d0b336111558385613237565b80611d1581613300565b915050611cf6565b50506001600855505050565b6007546001600160a01b03163314611d715760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b60135415611dc15760405162461bcd60e51b815260206004820152601160248201527f416c72656164792072657175657374656400000000000000000000000000000060448201526064016109f4565b600d54611dd69067016345785d8a0000613263565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015611e4e57600080fd5b505afa158015611e62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e86919061306c565b1015611ed45760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768204c494e4b000000000000000000000000000000000060448201526064016109f4565b611ef5600c54600d5467016345785d8a0000611ef09190613263565b6126d3565b60138190556040519081527fe5f5b44d72d4143c278eb745c4acc0695c4a5bc616be5beecf46abe29661780e9060200160405180910390a1565b6007546001600160a01b03163314611f775760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b6001600160a01b038116611ff35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109f4565b611ffc81612386565b50565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906120418261117d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166120f35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109f4565b60006120fe8361117d565b9050806001600160a01b0316846001600160a01b031614806121395750836001600160a01b031661212e84610aae565b6001600160a01b0316145b8061216957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166121848261117d565b6001600160a01b0316146122005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109f4565b6001600160a01b03821661227b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109f4565b61228683838361285e565b612291600082611fff565b6001600160a01b03831660009081526003602052604081208054600192906122ba908490613282565b90915550506001600160a01b03821660009081526003602052604081208054600192906122e8908490613237565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600082612363858461287a565b14949350505050565b610ddb828260405180602001604052806000815250612926565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60135482146124365760405162461bcd60e51b815260206004820152600b60248201527f426164205265717565737400000000000000000000000000000000000000000060448201526064016109f4565b6124426127168261331b565b6012819055610ddb5760016012555050565b816001600160a01b0316836001600160a01b031614156124b65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109f4565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61252e848484612171565b61253a848484846129a4565b6115b65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109f4565b6060816125e157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561260b57806125f581613300565b91506126049050600a8361324f565b91506125e5565b60008167ffffffffffffffff81111561262657612626613371565b6040519080825280601f01601f191660200182016040528015612650576020820181803683370190505b5090505b841561216957612665600183613282565b9150612672600a8661331b565b61267d906030613237565b60f81b8183815181106126925761269261335b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506126cc600a8661324f565b9450612654565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612743929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612770939291906131fc565b602060405180830381600087803b15801561278a57600080fd5b505af115801561279e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c29190612f68565b50600083815260066020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261281e906001613237565b6000858152600660205260409020556121698482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6001600160a01b038316610c7057610c70600980546001019055565b600081815b845181101561291e57600085828151811061289c5761289c61335b565b602002602001015190508083116128de57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061290b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061291681613300565b91505061287f565b509392505050565b6129308383612afc565b61293d60008484846129a4565b610c705760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109f4565b60006001600160a01b0384163b15612af157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129e89033908990889088906004016131c0565b602060405180830381600087803b158015612a0257600080fd5b505af1925050508015612a32575060408051601f3d908101601f19168201909252612a2f91810190612fdd565b60015b612ad7573d808015612a60576040519150601f19603f3d011682016040523d82523d6000602084013e612a65565b606091505b508051612acf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109f4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612169565b506001949350505050565b6001600160a01b038216612b525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109f4565b6000818152600260205260409020546001600160a01b031615612bb75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109f4565b612bc36000838361285e565b6001600160a01b0382166000908152600360205260408120805460019290612bec908490613237565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612c63906132c5565b90600052602060002090601f016020900481019282612c855760008555612ccb565b82601f10612c9e5782800160ff19823516178555612ccb565b82800160010185558215612ccb579182015b82811115612ccb578235825591602001919060010190612cb0565b50612cd7929150612cdb565b5090565b5b80821115612cd75760008155600101612cdc565b80356001600160a01b0381168114612d0757600080fd5b919050565b60008083601f840112612d1e57600080fd5b50813567ffffffffffffffff811115612d3657600080fd5b6020830191508360208260051b8501011115612d5157600080fd5b9250929050565b600060208284031215612d6a57600080fd5b612d7382612cf0565b9392505050565b60008060408385031215612d8d57600080fd5b612d9683612cf0565b9150612da460208401612cf0565b90509250929050565b600080600060608486031215612dc257600080fd5b612dcb84612cf0565b9250612dd960208501612cf0565b9150604084013590509250925092565b60008060008060808587031215612dff57600080fd5b612e0885612cf0565b9350612e1660208601612cf0565b925060408501359150606085013567ffffffffffffffff80821115612e3a57600080fd5b818701915087601f830112612e4e57600080fd5b813581811115612e6057612e60613371565b604051601f8201601f19908116603f01168101908382118183101715612e8857612e88613371565b816040528281528a6020848701011115612ea157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612ed857600080fd5b612ee183612cf0565b91506020830135612ef181613387565b809150509250929050565b60008060408385031215612f0f57600080fd5b612f1883612cf0565b946020939093013593505050565b60008060208385031215612f3957600080fd5b823567ffffffffffffffff811115612f5057600080fd5b612f5c85828601612d0c565b90969095509350505050565b600060208284031215612f7a57600080fd5b8151612d7381613387565b600060208284031215612f9757600080fd5b5035919050565b60008060408385031215612fb157600080fd5b50508035926020909101359150565b600060208284031215612fd257600080fd5b8135612d7381613395565b600060208284031215612fef57600080fd5b8151612d7381613395565b6000806020838503121561300d57600080fd5b823567ffffffffffffffff8082111561302557600080fd5b818501915085601f83011261303957600080fd5b81358181111561304857600080fd5b86602082850101111561305a57600080fd5b60209290920196919550909350505050565b60006020828403121561307e57600080fd5b5051919050565b60008060006040848603121561309a57600080fd5b83359250602084013567ffffffffffffffff8111156130b857600080fd5b6130c486828701612d0c565b9497909650939450505050565b600081518084526130e9816020860160208601613299565b601f01601f19169290920160200192915050565b6000815161310f818560208601613299565b9290920192915050565b600080845481600182811c91508083168061313557607f831692505b602080841082141561315557634e487b7160e01b86526022600452602486fd5b818015613169576001811461317a576131a7565b60ff198616895284890196506131a7565b60008b81526020902060005b8681101561319f5781548b820152908501908301613186565b505084890196505b5050505050506131b781856130fd565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526131f260808301846130d1565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006131b760608301846130d1565b602081526000612d7360208301846130d1565b6000821982111561324a5761324a61332f565b500190565b60008261325e5761325e613345565b500490565b600081600019048311821515161561327d5761327d61332f565b500290565b6000828210156132945761329461332f565b500390565b60005b838110156132b457818101518382015260200161329c565b838111156115b65750506000910152565b600181811c908216806132d957607f821691505b602082108114156132fa57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156133145761331461332f565b5060010190565b60008261332a5761332a613345565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611ffc57600080fd5b6001600160e01b031981168114611ffc57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212204b3ccf97b0e7210c66673423931e3cca2395f33cfc2a29106ca84bd3456d4c1864736f6c63430008070033000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f48566c0aef3f6ba0ffac760d876f1976d22413f000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f7777772e6f646462697264732e696f2f6170692f6d657461646174612f000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103345760003560e01c80638f2a1397116101b0578063c819d2ce116100ec578063ddca3f4311610095578063e985e9c51161006f578063e985e9c51461087f578063f03b0971146108c8578063f1a1b257146108de578063f2fde38b146108f357600080fd5b8063ddca3f4314610834578063df7970f11461084a578063e081b7811461085f57600080fd5b8063d9375d74116100c6578063d9375d74146107f8578063d96a094a1461080b578063da31a6d91461081e57600080fd5b8063c819d2ce14610798578063c87b56dd146107b8578063ced4a5f2146107d857600080fd5b8063a22cb46511610159578063b64f458b11610133578063b64f458b14610715578063b88d4fde14610742578063bef2256b14610762578063c65fa7cb1461077857600080fd5b8063a22cb465146106ca578063a23b4d43146106ea578063a5dfddde146106ff57600080fd5b806399a0113c1161018a57806399a0113c146106685780639bf803161461067d578063a06f269b146106aa57600080fd5b80638f2a13971461061357806394985ddd1461063357806395d89b411461065357600080fd5b806355f804b31161027f5780636c0360eb116102285780637bffb4ce116102025780637bffb4ce146105a757806382caea4a146105bc57806383a9e049146105d65780638da5cb5b146105f557600080fd5b80636c0360eb1461055d57806370a0823114610572578063715018a61461059257600080fd5b8063611f3f1011610259578063611f3f101461050b57806361728f39146105275780636352211e1461053d57600080fd5b806355f804b3146104c35780635abedac5146104e357806361197f27146104f657600080fd5b806322212e2b116102e15780633ccfd60b116102bb5780633ccfd60b1461047857806342842e0e1461048d57806346f80204146104ad57600080fd5b806322212e2b1461042257806323b872dd1461043857806328d7b2761461045857600080fd5b8063081812fc11610312578063081812fc146103a7578063095ea7b3146103df57806318160ddd146103ff57600080fd5b806301ffc9a714610339578063049c5c491461036e57806306fdde0314610385575b600080fd5b34801561034557600080fd5b50610359610354366004612fc0565b610913565b60405190151581526020015b60405180910390f35b34801561037a57600080fd5b506103836109b0565b005b34801561039157600080fd5b5061039a610a1c565b6040516103659190613224565b3480156103b357600080fd5b506103c76103c2366004612f85565b610aae565b6040516001600160a01b039091168152602001610365565b3480156103eb57600080fd5b506103836103fa366004612efc565b610b43565b34801561040b57600080fd5b50610414610c75565b604051908152602001610365565b34801561042e57600080fd5b5061041460165481565b34801561044457600080fd5b50610383610453366004612dad565b610c85565b34801561046457600080fd5b50610383610473366004612f85565b610d0c565b34801561048457600080fd5b50610383610d59565b34801561049957600080fd5b506103836104a8366004612dad565b610ddf565b3480156104b957600080fd5b5061041460155481565b3480156104cf57600080fd5b506103836104de366004612ffa565b610dfa565b6103836104f1366004613085565b610e4e565b34801561050257600080fd5b50610414600581565b34801561051757600080fd5b50610414670138a388a43c000081565b34801561053357600080fd5b50610414600c5481565b34801561054957600080fd5b506103c7610558366004612f85565b61117d565b34801561056957600080fd5b5061039a611208565b34801561057e57600080fd5b5061041461058d366004612d58565b611296565b34801561059e57600080fd5b50610383611330565b3480156105b357600080fd5b50610383611384565b3480156105c857600080fd5b506014546103599060ff1681565b3480156105e257600080fd5b5060145461035990610100900460ff1681565b34801561060157600080fd5b506007546001600160a01b03166103c7565b34801561061f57600080fd5b506011546103c7906001600160a01b031681565b34801561063f57600080fd5b5061038361064e366004612f9e565b6113e9565b34801561065f57600080fd5b5061039a61146b565b34801561067457600080fd5b5061038361147a565b34801561068957600080fd5b50610414610698366004612d58565b600f6020526000908152604090205481565b3480156106b657600080fd5b506103836106c5366004612f85565b6114d6565b3480156106d657600080fd5b506103836106e5366004612ec5565b611523565b3480156106f657600080fd5b50610414600a81565b34801561070b57600080fd5b50610414600b5481565b34801561072157600080fd5b50610414610730366004612d58565b600e6020526000908152604090205481565b34801561074e57600080fd5b5061038361075d366004612de9565b61152e565b34801561076e57600080fd5b5061041460125481565b34801561078457600080fd5b50610383610793366004612f85565b6115bc565b3480156107a457600080fd5b506103836107b3366004612f85565b611609565b3480156107c457600080fd5b5061039a6107d3366004612f85565b611656565b3480156107e457600080fd5b506103836107f3366004612f26565b6116ef565b610383610806366004613085565b611803565b610383610819366004612f85565b611b05565b34801561082a57600080fd5b50610414600a5481565b34801561084057600080fd5b50610414600d5481565b34801561085657600080fd5b50610383611d29565b34801561086b57600080fd5b506014546103599062010000900460ff1681565b34801561088b57600080fd5b5061035961089a366004612d7a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108d457600080fd5b5061041461271681565b3480156108ea57600080fd5b50610414600281565b3480156108ff57600080fd5b5061038361090e366004612d58565b611f2f565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061097657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109aa57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6007546001600160a01b031633146109fd5760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064015b60405180910390fd5b6014805462ff0000198116620100009182900460ff1615909102179055565b606060008054610a2b906132c5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a57906132c5565b8015610aa45780601f10610a7957610100808354040283529160200191610aa4565b820191906000526020600020905b815481529060010190602001808311610a8757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b275760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109f4565b506000908152600460205260409020546001600160a01b031690565b6000610b4e8261117d565b9050806001600160a01b0316836001600160a01b03161415610bd85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109f4565b336001600160a01b0382161480610bf45750610bf4813361089a565b610c665760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109f4565b610c708383611fff565b505050565b6000610c8060095490565b905090565b610c8f338261207a565b610d015760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109f4565b610c70838383612171565b6007546001600160a01b03163314610d545760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b601655565b6007546001600160a01b03163314610da15760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b60115460405147916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610ddb573d6000803e3d6000fd5b5050565b610c708383836040518060200160405280600081525061152e565b6007546001600160a01b03163314610e425760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b610c7060108383612c57565b8181601554610ec6838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190505b60405160208183030381529060405280519060200120612356565b610f125760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c697374000060448201526064016109f4565b670138a388a43c00008634610f278284613263565b14610f745760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016109f4565b60026008541415610fc75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f4565b6002600855601454610100900460ff16158015610fed575060145462010000900460ff16155b8015610ffb575060145460ff165b6110475760405162461bcd60e51b815260206004820152601060248201527f4e4f545f434f4c4c41425f53544154450000000000000000000000000000000060448201526064016109f4565b600061105260095490565b600a549091506110628a83613237565b11156110b05760405162461bcd60e51b815260206004820152601460248201527f4558434545445f434f4c4c41425f535550504c5900000000000000000000000060448201526064016109f4565b336000908152600e60205260409020546005906110ce908b90613237565b111561111c5760405162461bcd60e51b815260206004820152601160248201527f4558434545445f555345525f414c4c4f4300000000000000000000000000000060448201526064016109f4565b60015b89811161116c57336000908152600e6020526040812080549161114183613300565b9091555061115a9050336111558385613237565b61236c565b8061116481613300565b91505061111f565b505060016008555050505050505050565b6000818152600260205260408120546001600160a01b0316806109aa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109f4565b60108054611215906132c5565b80601f0160208091040260200160405190810160405280929190818152602001828054611241906132c5565b801561128e5780601f106112635761010080835404028352916020019161128e565b820191906000526020600020905b81548152906001019060200180831161127157829003601f168201915b505050505081565b60006001600160a01b0382166113145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109f4565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146113785760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b6113826000612386565b565b6007546001600160a01b031633146113cc5760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b6014805461ff001981166101009182900460ff1615909102179055565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146114615760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016109f4565b610ddb82826123e5565b606060018054610a2b906132c5565b6007546001600160a01b031633146114c25760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b6014805460ff19811660ff90911615179055565b6007546001600160a01b0316331461151e5760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b600b55565b610ddb338383612454565b611538338361207a565b6115aa5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109f4565b6115b684848484612523565b50505050565b6007546001600160a01b031633146116045760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b601555565b6007546001600160a01b031633146116515760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b600a55565b6000818152600260205260409020546060906001600160a01b03166116bd5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20646f6573206e6f742065786973742e000000000000000000000060448201526064016109f4565b60106116c8836125a1565b6040516020016116d9929190613119565b6040516020818303038152906040529050919050565b6007546001600160a01b031633146117375760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b600061174260095490565b9050816127166117528284613237565b11156117a05760405162461bcd60e51b815260206004820152601360248201527f4558434545445f544f54414c5f535550504c590000000000000000000000000060448201526064016109f4565b60005b818110156117fc576117ea8585838181106117c0576117c061335b565b90506020020160208101906117d59190612d58565b6117df8386613237565b611155906001613237565b806117f481613300565b9150506117a3565b5050505050565b8181601654611864838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b1660208201528592506034019050610eab565b6118b05760405162461bcd60e51b815260206004820152601e60248201527f4164647265737320646f6573206e6f7420657869737420696e206c697374000060448201526064016109f4565b670138a388a43c000086346118c58284613263565b146119125760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016109f4565b600260085414156119655760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f4565b600260085560145462010000900460ff16158015611986575060145460ff16155b80156119995750601454610100900460ff165b6119e55760405162461bcd60e51b815260206004820152601160248201527f4e4f545f50524553414c455f535441544500000000000000000000000000000060448201526064016109f4565b60006119f060095490565b600b54909150611a008a83613237565b1115611a4e5760405162461bcd60e51b815260206004820152601560248201527f4558434545445f50524553414c455f535550504c59000000000000000000000060448201526064016109f4565b336000908152600f6020526040902054600290611a6c908b90613237565b1115611aba5760405162461bcd60e51b815260206004820152601160248201527f4558434545445f555345525f414c4c4f4300000000000000000000000000000060448201526064016109f4565b60015b89811161116c57336000908152600f60205260408120805491611adf83613300565b90915550611af39050336111558385613237565b80611afd81613300565b915050611abd565b670138a388a43c00008134611b1a8284613263565b14611b675760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016109f4565b60026008541415611bba5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f4565b6002600855601454610100900460ff16158015611bda575060145460ff16155b8015611bee575060145462010000900460ff165b611c3a5760405162461bcd60e51b815260206004820152600e60248201527f4e4f545f53414c455f535441544500000000000000000000000000000000000060448201526064016109f4565b6000611c4560095490565b9050612716611c548583613237565b1115611ca25760405162461bcd60e51b815260206004820152601360248201527f4558434545445f544f54414c5f535550504c590000000000000000000000000060448201526064016109f4565b600a841115611cf35760405162461bcd60e51b815260206004820152601c60248201527f4558434545445f42495244535f53414c455f4d494e545f4c494d49540000000060448201526064016109f4565b60015b848111611d1d57611d0b336111558385613237565b80611d1581613300565b915050611cf6565b50506001600855505050565b6007546001600160a01b03163314611d715760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b60135415611dc15760405162461bcd60e51b815260206004820152601160248201527f416c72656164792072657175657374656400000000000000000000000000000060448201526064016109f4565b600d54611dd69067016345785d8a0000613263565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b158015611e4e57600080fd5b505afa158015611e62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e86919061306c565b1015611ed45760405162461bcd60e51b815260206004820152600f60248201527f4e6f7420656e6f756768204c494e4b000000000000000000000000000000000060448201526064016109f4565b611ef5600c54600d5467016345785d8a0000611ef09190613263565b6126d3565b60138190556040519081527fe5f5b44d72d4143c278eb745c4acc0695c4a5bc616be5beecf46abe29661780e9060200160405180910390a1565b6007546001600160a01b03163314611f775760405162461bcd60e51b815260206004820181905260248201526000805160206133ac83398151915260448201526064016109f4565b6001600160a01b038116611ff35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109f4565b611ffc81612386565b50565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906120418261117d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166120f35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109f4565b60006120fe8361117d565b9050806001600160a01b0316846001600160a01b031614806121395750836001600160a01b031661212e84610aae565b6001600160a01b0316145b8061216957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166121848261117d565b6001600160a01b0316146122005760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109f4565b6001600160a01b03821661227b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109f4565b61228683838361285e565b612291600082611fff565b6001600160a01b03831660009081526003602052604081208054600192906122ba908490613282565b90915550506001600160a01b03821660009081526003602052604081208054600192906122e8908490613237565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600082612363858461287a565b14949350505050565b610ddb828260405180602001604052806000815250612926565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60135482146124365760405162461bcd60e51b815260206004820152600b60248201527f426164205265717565737400000000000000000000000000000000000000000060448201526064016109f4565b6124426127168261331b565b6012819055610ddb5760016012555050565b816001600160a01b0316836001600160a01b031614156124b65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109f4565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61252e848484612171565b61253a848484846129a4565b6115b65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109f4565b6060816125e157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561260b57806125f581613300565b91506126049050600a8361324f565b91506125e5565b60008167ffffffffffffffff81111561262657612626613371565b6040519080825280601f01601f191660200182016040528015612650576020820181803683370190505b5090505b841561216957612665600183613282565b9150612672600a8661331b565b61267d906030613237565b60f81b8183815181106126925761269261335b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506126cc600a8661324f565b9450612654565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612743929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612770939291906131fc565b602060405180830381600087803b15801561278a57600080fd5b505af115801561279e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c29190612f68565b50600083815260066020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261281e906001613237565b6000858152600660205260409020556121698482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6001600160a01b038316610c7057610c70600980546001019055565b600081815b845181101561291e57600085828151811061289c5761289c61335b565b602002602001015190508083116128de57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061290b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061291681613300565b91505061287f565b509392505050565b6129308383612afc565b61293d60008484846129a4565b610c705760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109f4565b60006001600160a01b0384163b15612af157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129e89033908990889088906004016131c0565b602060405180830381600087803b158015612a0257600080fd5b505af1925050508015612a32575060408051601f3d908101601f19168201909252612a2f91810190612fdd565b60015b612ad7573d808015612a60576040519150601f19603f3d011682016040523d82523d6000602084013e612a65565b606091505b508051612acf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109f4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612169565b506001949350505050565b6001600160a01b038216612b525760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109f4565b6000818152600260205260409020546001600160a01b031615612bb75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109f4565b612bc36000838361285e565b6001600160a01b0382166000908152600360205260408120805460019290612bec908490613237565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612c63906132c5565b90600052602060002090601f016020900481019282612c855760008555612ccb565b82601f10612c9e5782800160ff19823516178555612ccb565b82800160010185558215612ccb579182015b82811115612ccb578235825591602001919060010190612cb0565b50612cd7929150612cdb565b5090565b5b80821115612cd75760008155600101612cdc565b80356001600160a01b0381168114612d0757600080fd5b919050565b60008083601f840112612d1e57600080fd5b50813567ffffffffffffffff811115612d3657600080fd5b6020830191508360208260051b8501011115612d5157600080fd5b9250929050565b600060208284031215612d6a57600080fd5b612d7382612cf0565b9392505050565b60008060408385031215612d8d57600080fd5b612d9683612cf0565b9150612da460208401612cf0565b90509250929050565b600080600060608486031215612dc257600080fd5b612dcb84612cf0565b9250612dd960208501612cf0565b9150604084013590509250925092565b60008060008060808587031215612dff57600080fd5b612e0885612cf0565b9350612e1660208601612cf0565b925060408501359150606085013567ffffffffffffffff80821115612e3a57600080fd5b818701915087601f830112612e4e57600080fd5b813581811115612e6057612e60613371565b604051601f8201601f19908116603f01168101908382118183101715612e8857612e88613371565b816040528281528a6020848701011115612ea157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612ed857600080fd5b612ee183612cf0565b91506020830135612ef181613387565b809150509250929050565b60008060408385031215612f0f57600080fd5b612f1883612cf0565b946020939093013593505050565b60008060208385031215612f3957600080fd5b823567ffffffffffffffff811115612f5057600080fd5b612f5c85828601612d0c565b90969095509350505050565b600060208284031215612f7a57600080fd5b8151612d7381613387565b600060208284031215612f9757600080fd5b5035919050565b60008060408385031215612fb157600080fd5b50508035926020909101359150565b600060208284031215612fd257600080fd5b8135612d7381613395565b600060208284031215612fef57600080fd5b8151612d7381613395565b6000806020838503121561300d57600080fd5b823567ffffffffffffffff8082111561302557600080fd5b818501915085601f83011261303957600080fd5b81358181111561304857600080fd5b86602082850101111561305a57600080fd5b60209290920196919550909350505050565b60006020828403121561307e57600080fd5b5051919050565b60008060006040848603121561309a57600080fd5b83359250602084013567ffffffffffffffff8111156130b857600080fd5b6130c486828701612d0c565b9497909650939450505050565b600081518084526130e9816020860160208601613299565b601f01601f19169290920160200192915050565b6000815161310f818560208601613299565b9290920192915050565b600080845481600182811c91508083168061313557607f831692505b602080841082141561315557634e487b7160e01b86526022600452602486fd5b818015613169576001811461317a576131a7565b60ff198616895284890196506131a7565b60008b81526020902060005b8681101561319f5781548b820152908501908301613186565b505084890196505b5050505050506131b781856130fd565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526131f260808301846130d1565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006131b760608301846130d1565b602081526000612d7360208301846130d1565b6000821982111561324a5761324a61332f565b500190565b60008261325e5761325e613345565b500490565b600081600019048311821515161561327d5761327d61332f565b500290565b6000828210156132945761329461332f565b500390565b60005b838110156132b457818101518382015260200161329c565b838111156115b65750506000910152565b600181811c908216806132d957607f821691505b602082108114156132fa57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156133145761331461332f565b5060010190565b60008261332a5761332a613345565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611ffc57600080fd5b6001600160e01b031981168114611ffc57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212204b3ccf97b0e7210c66673423931e3cca2395f33cfc2a29106ca84bd3456d4c1864736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f48566c0aef3f6ba0ffac760d876f1976d22413f000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f7777772e6f646462697264732e696f2f6170692f6d657461646174612f000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [1] : _linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [2] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : _fee (uint256): 20
Arg [4] : _baseURI (string): https://www.oddbirds.io/api/metadata/
Arg [5] : _seedStach (address): 0xF48566c0Aef3F6Ba0ffac760D876F1976D22413f
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [1] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [2] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [5] : 000000000000000000000000f48566c0aef3f6ba0ffac760d876f1976d22413f
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [7] : 68747470733a2f2f7777772e6f646462697264732e696f2f6170692f6d657461
Arg [8] : 646174612f000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.