ERC-721
Overview
Max Total Supply
1,916 HOWLERZ
Holders
569
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 HOWLERZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Howlerz
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; interface ENS_Registrar { function setName(string calldata name) external returns (bytes32); } contract Howlerz is ERC721A, PaymentSplitter, Ownable, ReentrancyGuard, VRFConsumerBase { using Strings for uint256; uint256 public constant MAXTOKENS = 5000; uint256 public constant TOKENPRICE = 0.13 ether; uint256 public constant WALLETLIMIT = 5; uint256 public startingBlock = 999999999; uint256 public tokenOffset; bool public revealed; string public baseURI; string public provenance; bytes32 internal keyHash = 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef; uint256 private fee = 0.1 ether; address public VRF_coordinatorAddress = 0x271682DEB8C4E0901D1a1550aD2e64D568E69909; address public linkAddress = 0x514910771AF9Ca656af840dff83E8264EcF986CA; constructor( address[] memory payees, uint256[] memory shares, string memory unrevealedURI ) public ERC721A("HOWLERZ NFT", "HOWLERZ", WALLETLIMIT) PaymentSplitter(payees, shares) VRFConsumerBase(VRF_coordinatorAddress, linkAddress) { baseURI = unrevealedURI; } //Returns token URI //Note that TokenIDs are shifted against the underlying metadata function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if (!revealed) return _baseURI(); uint256 shiftedTokenId = (tokenId + tokenOffset) % MAXTOKENS; return string(abi.encodePacked(_baseURI(), shiftedTokenId.toString())); } //Returns base URI function _baseURI() internal view override returns (string memory) { return baseURI; } //Minting function mint(uint256 quantity) external payable nonReentrant { require( block.number >= startingBlock || msg.sender==owner(), "Sale hasn't started yet!" //allow owner to test mint immediately after deployment to confirm website functionality prior to activating the sale ); require( totalSupply() + quantity <= MAXTOKENS, "Minting this many would exceed supply!" ); require( _numberMinted(msg.sender) + quantity <= WALLETLIMIT, "There is a per-wallet limit!" ); require(msg.value == TOKENPRICE * quantity, "Wrong ether sent!"); require(msg.sender == tx.origin, "No contracts!"); _safeMint(msg.sender, quantity); } function setStartingBlock(uint256 _startingBlock) external onlyOwner { startingBlock = _startingBlock; } //Provenance may only be set once, irreversibly function setProvenance(string memory _provenance) external onlyOwner { require(bytes(provenance).length == 0, "Provenance already set!"); provenance = _provenance; } //Modifies the Chainlink configuration if needed function changeLinkConfig( uint256 _fee, bytes32 _keyhash ) external onlyOwner { fee = _fee; keyHash = _keyhash; } //To be called prior to reveal in order to set a token ID shift function requestOffset() public onlyOwner returns (bytes32 requestId) { LINK.transferFrom(owner(), address(this), fee); require(tokenOffset == 0, "Random offset already established"); return requestRandomness(keyHash, fee); } //Chainlink callback function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override { require(!revealed); tokenOffset = randomness % MAXTOKENS; } //Set Base URI function updateBaseURI(string memory newURI) external onlyOwner { baseURI = newURI; } //Reveals the tokens by updating to a new URI //To be called after receiving a random token offset function reveal(string memory newURI) external onlyOwner { require(!revealed, "Already revealed"); baseURI = newURI; revealed = true; } //To allow the contract to set a reverse ENS record function setReverseRecord(string calldata _name, address registrar_address) external onlyOwner { ENS_Registrar(registrar_address).setName(_name); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "ERC721A: number minted query for the zero address"); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { 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 override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved"); require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// 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 constructor(<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 (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 (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// 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": 2000 }, "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":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"string","name":"unrevealedURI","type":"string"}],"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":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":"MAXTOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKENPRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VRF_coordinatorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WALLETLIMIT","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":"_fee","type":"uint256"},{"internalType":"bytes32","name":"_keyhash","type":"bytes32"}],"name":"changeLinkConfig","outputs":[],"stateMutability":"nonpayable","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":"linkAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestOffset","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"registrar_address","type":"address"}],"name":"setReverseRecord","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startingBlock","type":"uint256"}],"name":"setStartingBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e06040526000808055600755633b9ac9ff6012557f8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef60175567016345785d8a0000601855601980546001600160a01b031990811673271682deb8c4e0901d1a1550ad2e64d568e6990917909155601a805490911673514910771af9ca656af840dff83e8264ecf986ca1790553480156200009957600080fd5b50604051620044f3380380620044f3833981016040819052620000bc91620006d9565b601954601a54604080518082018252600b81526a1213d5d31154968813919560aa1b602080830191909152825180840190935260078352662427aba622a92d60c91b908301526001600160a01b0393841693909216918691869190600562000128565b60405180910390fd5b82516200013d90600190602086019062000524565b5081516200015390600290602085019062000524565b5060805250508051825114620001c75760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084016200011f565b60008251116200021a5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200011f565b60005b8251811015620002865762000271838281518110620002405762000240620008c9565b60200260200101518383815181106200025d576200025d620008c9565b6020026020010151620002e060201b60201c565b806200027d8162000895565b9150506200021d565b505050620002a36200029d620004ce60201b60201c565b620004d2565b60016010556001600160601b0319606092831b811660c052911b1660a0528051620002d690601590602084019062000524565b50505050620008f5565b6001600160a01b0382166200034d5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200011f565b600081116200039f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200011f565b6001600160a01b0382166000908152600a6020526040902054156200041b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200011f565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319166001600160a01b0384169081179091556000908152600a60205260409020819055600854620004859082906200083d565b600855604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b3390565b600f80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620005329062000858565b90600052602060002090601f016020900481019282620005565760008555620005a1565b82601f106200057157805160ff1916838001178555620005a1565b82800160010185558215620005a1579182015b82811115620005a157825182559160200191906001019062000584565b50620005af929150620005b3565b5090565b5b80821115620005af5760008155600101620005b4565b600082601f830112620005dc57600080fd5b81516020620005f5620005ef8362000817565b620007e4565b80838252828201915082860187848660051b89010111156200061657600080fd5b60005b85811015620006375781518452928401929084019060010162000619565b5090979650505050505050565b600082601f8301126200065657600080fd5b81516001600160401b03811115620006725762000672620008df565b602062000688601f8301601f19168201620007e4565b82815285828487010111156200069d57600080fd5b60005b83811015620006bd578581018301518282018401528201620006a0565b83811115620006cf5760008385840101525b5095945050505050565b600080600060608486031215620006ef57600080fd5b83516001600160401b03808211156200070757600080fd5b818601915086601f8301126200071c57600080fd5b815160206200072f620005ef8362000817565b8083825282820191508286018b848660051b89010111156200075057600080fd5b600096505b848710156200078b5780516001600160a01b03811681146200077657600080fd5b83526001969096019591830191830162000755565b5091890151919750909350505080821115620007a657600080fd5b620007b487838801620005ca565b93506040860151915080821115620007cb57600080fd5b50620007da8682870162000644565b9150509250925092565b604051601f8201601f191681016001600160401b03811182821017156200080f576200080f620008df565b604052919050565b60006001600160401b03821115620008335762000833620008df565b5060051b60200190565b60008219821115620008535762000853620008b3565b500190565b600181811c908216806200086d57607f821691505b602082108114156200088f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620008ac57620008ac620008b3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160a05160601c60c05160601c613bac62000947600039600081816116c00152612a9a015260008181611ad90152612a6b0152600081816127ca015281816127f4015261308e0152613bac6000f3fe6080604052600436106103175760003560e01c8063931688cb1161019a578063ce7c2ac2116100e1578063e4e5da851161008a578063f2fde38b11610064578063f2fde38b14610931578063fa6f595814610951578063ffe630b51461096d57600080fd5b8063e4e5da85146108b2578063e985e9c5146108c8578063ec17b20e1461091157600080fd5b8063d91c98d3116100bb578063d91c98d314610871578063dc8c57b414610887578063e33b7de31461089d57600080fd5b8063ce7c2ac2146107ef578063d7224ba014610825578063d79779b21461083b57600080fd5b8063a22cb46511610143578063b88d4fde1161011d578063b88d4fde1461078f578063c67f3702146107af578063c87b56dd146107cf57600080fd5b8063a22cb4651461073a578063a32b1ba91461075a578063b5c310381461076f57600080fd5b80639852595c116101745780639852595c146106d15780639b2f8d1d14610707578063a0712d681461072757600080fd5b8063931688cb1461067c57806394985ddd1461069c57806395d89b41146106bc57600080fd5b8063409b06b51161025e5780636352211e11610207578063715018a6116101e1578063715018a6146106295780638b83209b1461063e5780638da5cb5b1461065e57600080fd5b80636352211e146105d45780636c0360eb146105f457806370a082311461060957600080fd5b80634c261247116102385780634c2612471461057a5780634f6ccce71461059a57806351830227146105ba57600080fd5b8063409b06b51461052557806342842e0e1461053a57806348b750441461055a57600080fd5b806319165587116102c05780632f745c591161029a5780632f745c59146104aa5780633a98ef39146104ca578063406072a9146104df57600080fd5b8063191655871461044a578063235cea981461046a57806323b872dd1461048a57600080fd5b8063095ea7b3116102f1578063095ea7b3146103f45780630f7309e81461041657806318160ddd1461042b57600080fd5b806301ffc9a71461036557806306fdde031461039a578063081812fc146103bc57600080fd5b36610360577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561037157600080fd5b50610385610380366004613735565b61098d565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103af610a5e565b6040516103919190613967565b3480156103c857600080fd5b506103dc6103d736600461383b565b610af0565b6040516001600160a01b039091168152602001610391565b34801561040057600080fd5b5061041461040f3660046136b1565b610b90565b005b34801561042257600080fd5b506103af610cc3565b34801561043757600080fd5b506000545b604051908152602001610391565b34801561045657600080fd5b5061041461046536600461356c565b610d51565b34801561047657600080fd5b50601a546103dc906001600160a01b031681565b34801561049657600080fd5b506104146104a53660046135c2565b610f2b565b3480156104b657600080fd5b5061043c6104c53660046136b1565b610f36565b3480156104d657600080fd5b5060085461043c565b3480156104eb57600080fd5b5061043c6104fa366004613589565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b34801561053157600080fd5b5061043c600581565b34801561054657600080fd5b506104146105553660046135c2565b6110ce565b34801561056657600080fd5b50610414610575366004613589565b6110e9565b34801561058657600080fd5b506104146105953660046137f2565b611396565b3480156105a657600080fd5b5061043c6105b536600461383b565b611467565b3480156105c657600080fd5b506014546103859060ff1681565b3480156105e057600080fd5b506103dc6105ef36600461383b565b6114e3565b34801561060057600080fd5b506103af6114f5565b34801561061557600080fd5b5061043c61062436600461356c565b611502565b34801561063557600080fd5b506104146115ae565b34801561064a57600080fd5b506103dc61065936600461383b565b611614565b34801561066a57600080fd5b50600f546001600160a01b03166103dc565b34801561068857600080fd5b506104146106973660046137f2565b611644565b3480156106a857600080fd5b506104146106b7366004613713565b6116b5565b3480156106c857600080fd5b506103af611737565b3480156106dd57600080fd5b5061043c6106ec36600461356c565b6001600160a01b03166000908152600b602052604090205490565b34801561071357600080fd5b506019546103dc906001600160a01b031681565b61041461073536600461383b565b611746565b34801561074657600080fd5b50610414610755366004613683565b6119b5565b34801561076657600080fd5b5061043c611a7a565b34801561077b57600080fd5b5061041461078a366004613713565b611c29565b34801561079b57600080fd5b506104146107aa366004613603565b611c8e565b3480156107bb57600080fd5b506104146107ca36600461376f565b611d1d565b3480156107db57600080fd5b506103af6107ea36600461383b565b611e10565b3480156107fb57600080fd5b5061043c61080a36600461356c565b6001600160a01b03166000908152600a602052604090205490565b34801561083157600080fd5b5061043c60075481565b34801561084757600080fd5b5061043c61085636600461356c565b6001600160a01b03166000908152600d602052604090205490565b34801561087d57600080fd5b5061043c60125481565b34801561089357600080fd5b5061043c60135481565b3480156108a957600080fd5b5060095461043c565b3480156108be57600080fd5b5061043c61138881565b3480156108d457600080fd5b506103856108e3366004613589565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561091d57600080fd5b5061041461092c36600461383b565b611ef9565b34801561093d57600080fd5b5061041461094c36600461356c565b611f58565b34801561095d57600080fd5b5061043c6701cdda4faccd000081565b34801561097957600080fd5b506104146109883660046137f2565b61203a565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109f057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a2457506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a5857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060018054610a6d90613a7b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9990613a7b565b8015610ae65780601f10610abb57610100808354040283529160200191610ae6565b820191906000526020600020905b815481529060010190602001808311610ac957829003601f168201915b5050505050905090565b6000610afd826000541190565b610b745760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b9b826114e3565b9050806001600160a01b0316836001600160a01b03161415610c255760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b336001600160a01b0382161480610c415750610c4181336108e3565b610cb35760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b6b565b610cbe838383612103565b505050565b60168054610cd090613a7b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfc90613a7b565b8015610d495780601f10610d1e57610100808354040283529160200191610d49565b820191906000526020600020905b815481529060010190602001808311610d2c57829003601f168201915b505050505081565b6001600160a01b0381166000908152600a6020526040902054610ddc5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610b6b565b6000610de760095490565b610df190476139a5565b90506000610e1e8383610e19866001600160a01b03166000908152600b602052604090205490565b612177565b905080610e935760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b0383166000908152600b602052604081208054839290610ebb9084906139a5565b925050819055508060096000828254610ed491906139a5565b90915550610ee4905083826121bf565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610cbe8383836122d8565b6000610f4183611502565b8210610fb55760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b600080549080805b8381101561105f576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561101057805192505b876001600160a01b0316836001600160a01b0316141561104c578684141561103e57509350610a5892505050565b8361104881613ab6565b9450505b508061105781613ab6565b915050610fbd565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610b6b565b610cbe83838360405180602001604052806000815250611c8e565b6001600160a01b0381166000908152600a60205260409020546111745760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b0382166000908152600d60205260408120546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156111e557600080fd5b505afa1580156111f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121d91906136fa565b61122791906139a5565b905060006112608383610e1987876001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b9050806112d55760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b038085166000908152600e602090815260408083209387168352929052908120805483929061130c9084906139a5565b90915550506001600160a01b0384166000908152600d6020526040812080548392906113399084906139a5565b9091555061134a90508484836126b5565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b600f546001600160a01b031633146113f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b60145460ff16156114435760405162461bcd60e51b815260206004820152601060248201527f416c72656164792072657665616c6564000000000000000000000000000000006044820152606401610b6b565b8051611456906015906020840190613466565b50506014805460ff19166001179055565b6000805482106114df5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b5090565b60006114ee82612735565b5192915050565b60158054610cd090613a7b565b60006001600160a01b0382166115805760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610b6b565b506001600160a01b03166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b600f546001600160a01b031633146116085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b6116126000612900565b565b6000600c828154811061162957611629613b11565b6000918252602090912001546001600160a01b031692915050565b600f546001600160a01b0316331461169e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b80516116b1906015906020840190613466565b5050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461172d5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610b6b565b6116b1828261296a565b606060028054610a6d90613a7b565b600260105414156117995760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b6b565b6002601055601254431015806117b95750600f546001600160a01b031633145b6118055760405162461bcd60e51b815260206004820152601860248201527f53616c65206861736e27742073746172746564207965742100000000000000006044820152606401610b6b565b6113888161181260005490565b61181c91906139a5565b11156118905760405162461bcd60e51b815260206004820152602660248201527f4d696e74696e672074686973206d616e7920776f756c6420657863656564207360448201527f7570706c792100000000000000000000000000000000000000000000000000006064820152608401610b6b565b60058161189c3361298d565b6118a691906139a5565b11156118f45760405162461bcd60e51b815260206004820152601c60248201527f54686572652069732061207065722d77616c6c6574206c696d697421000000006044820152606401610b6b565b611906816701cdda4faccd00006139d1565b34146119545760405162461bcd60e51b815260206004820152601160248201527f57726f6e672065746865722073656e74210000000000000000000000000000006044820152606401610b6b565b3332146119a35760405162461bcd60e51b815260206004820152600d60248201527f4e6f20636f6e74726163747321000000000000000000000000000000000000006044820152606401610b6b565b6119ad3382612a4d565b506001601055565b6001600160a01b038216331415611a0e5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b6b565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f546000906001600160a01b03163314611ad75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd611b18600f546001600160a01b031690565b6018546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301523060248301526044820152606401602060405180830381600087803b158015611b6757600080fd5b505af1158015611b7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9f91906136dd565b5060135415611c165760405162461bcd60e51b815260206004820152602160248201527f52616e646f6d206f666673657420616c72656164792065737461626c6973686560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b611c24601754601854612a67565b905090565b600f546001600160a01b03163314611c835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b601891909155601755565b611c998484846122d8565b611ca584848484612bfa565b611d175760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b6b565b50505050565b600f546001600160a01b03163314611d775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b6040517fc47f00270000000000000000000000000000000000000000000000000000000081526001600160a01b0382169063c47f002790611dbe9086908690600401613938565b602060405180830381600087803b158015611dd857600080fd5b505af1158015611dec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1791906136fa565b6060611e1d826000541190565b611e8f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b6b565b60145460ff16611ea157610a58612d8f565b600061138860135484611eb491906139a5565b611ebe9190613ad1565b9050611ec8612d8f565b611ed182612d9e565b604051602001611ee292919061389c565b604051602081830303815290604052915050919050565b600f546001600160a01b03163314611f535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b601255565b600f546001600160a01b03163314611fb25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b6001600160a01b03811661202e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b6b565b61203781612900565b50565b600f546001600160a01b031633146120945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b601680546120a190613a7b565b1590506120f05760405162461bcd60e51b815260206004820152601760248201527f50726f76656e616e636520616c726561647920736574210000000000000000006044820152606401610b6b565b80516116b1906016906020840190613466565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b0384166000908152600a6020526040812054909183916121a190866139d1565b6121ab91906139bd565b6121b59190613a21565b90505b9392505050565b8047101561220f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b6b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461225c576040519150601f19603f3d011682016040523d82523d6000602084013e612261565b606091505b5050905080610cbe5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b6b565b60006122e382612735565b80519091506000906001600160a01b0316336001600160a01b0316148061231a57503361230f84610af0565b6001600160a01b0316145b8061232c5750815161232c90336108e3565b9050806123a15760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610b6b565b846001600160a01b031682600001516001600160a01b03161461242c5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b0384166124a85760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b6b565b6124b86000848460000151612103565b6001600160a01b03851660009081526004602052604081208054600192906124f39084906fffffffffffffffffffffffffffffffff166139f0565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926125489185911661397a565b82546fffffffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556125d98460016139a5565b6000818152600360205260409020549091506001600160a01b031661266b57612603816000541190565b1561266b5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610cbe908490612ed0565b6040805180820190915260008082526020820152612754826000541190565b6127c65760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610b6b565b60007f00000000000000000000000000000000000000000000000000000000000000008310612827576128197f000000000000000000000000000000000000000000000000000000000000000084613a21565b6128249060016139a5565b90505b825b818110612891576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561287e57949350505050565b508061288981613a64565b915050612829565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610b6b565b600f80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60145460ff161561297a57600080fd5b61298661138882613ad1565b6013555050565b60006001600160a01b038216612a0b5760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610b6b565b506001600160a01b031660009081526004602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b6116b1828260405180602001604052806000815250612fb5565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612ad7929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612b0493929190613907565b602060405180830381600087803b158015612b1e57600080fd5b505af1158015612b32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5691906136dd565b50600083815260116020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612bb29060016139a5565b600085815260116020526040902055612bf28482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b949350505050565b60006001600160a01b0384163b15612d84576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612c579033908990889088906004016138cb565b602060405180830381600087803b158015612c7157600080fd5b505af1925050508015612ca1575060408051601f3d908101601f19168201909252612c9e91810190613752565b60015b612d51573d808015612ccf576040519150601f19603f3d011682016040523d82523d6000602084013e612cd4565b606091505b508051612d495760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b6b565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050612bf2565b506001949350505050565b606060158054610a6d90613a7b565b606081612dde57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e085780612df281613ab6565b9150612e019050600a836139bd565b9150612de2565b60008167ffffffffffffffff811115612e2357612e23613b27565b6040519080825280601f01601f191660200182016040528015612e4d576020820181803683370190505b5090505b8415612bf257612e62600183613a21565b9150612e6f600a86613ad1565b612e7a9060306139a5565b60f81b818381518110612e8f57612e8f613b11565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ec9600a866139bd565b9450612e51565b6000612f25826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166133529092919063ffffffff16565b805190915015610cbe5780806020019051810190612f4391906136dd565b610cbe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610b6b565b6000546001600160a01b0384166130345760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b61303f816000541190565b1561308c5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b6b565b7f00000000000000000000000000000000000000000000000000000000000000008311156131225760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff8082168352700100000000000000000000000000000000909104169181019190915281518083019092528051909190819061319490879061397a565b6fffffffffffffffffffffffffffffffff1681526020018583602001516131bb919061397a565b6fffffffffffffffffffffffffffffffff9081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156133475760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46132b56000888488612bfa565b6133275760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b6b565b8161333181613ab6565b925050808061333f90613ab6565b915050613268565b5060008190556126ad565b60606121b58484600085856001600160a01b0385163b6133b45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b6b565b600080866001600160a01b031685876040516133d09190613880565b60006040518083038185875af1925050503d806000811461340d576040519150601f19603f3d011682016040523d82523d6000602084013e613412565b606091505b509150915061342282828661342d565b979650505050505050565b6060831561343c5750816121b8565b82511561344c5782518084602001fd5b8160405162461bcd60e51b8152600401610b6b9190613967565b82805461347290613a7b565b90600052602060002090601f01602090048101928261349457600085556134da565b82601f106134ad57805160ff19168380011785556134da565b828001600101855582156134da579182015b828111156134da5782518255916020019190600101906134bf565b506114df9291505b808211156114df57600081556001016134e2565b600067ffffffffffffffff8084111561351157613511613b27565b604051601f8501601f19908116603f0116810190828211818310171561353957613539613b27565b8160405280935085815286868601111561355257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561357e57600080fd5b81356121b881613b3d565b6000806040838503121561359c57600080fd5b82356135a781613b3d565b915060208301356135b781613b3d565b809150509250929050565b6000806000606084860312156135d757600080fd5b83356135e281613b3d565b925060208401356135f281613b3d565b929592945050506040919091013590565b6000806000806080858703121561361957600080fd5b843561362481613b3d565b9350602085013561363481613b3d565b925060408501359150606085013567ffffffffffffffff81111561365757600080fd5b8501601f8101871361366857600080fd5b613677878235602084016134f6565b91505092959194509250565b6000806040838503121561369657600080fd5b82356136a181613b3d565b915060208301356135b781613b52565b600080604083850312156136c457600080fd5b82356136cf81613b3d565b946020939093013593505050565b6000602082840312156136ef57600080fd5b81516121b881613b52565b60006020828403121561370c57600080fd5b5051919050565b6000806040838503121561372657600080fd5b50508035926020909101359150565b60006020828403121561374757600080fd5b81356121b881613b60565b60006020828403121561376457600080fd5b81516121b881613b60565b60008060006040848603121561378457600080fd5b833567ffffffffffffffff8082111561379c57600080fd5b818601915086601f8301126137b057600080fd5b8135818111156137bf57600080fd5b8760208285010111156137d157600080fd5b602092830195509350508401356137e781613b3d565b809150509250925092565b60006020828403121561380457600080fd5b813567ffffffffffffffff81111561381b57600080fd5b8201601f8101841361382c57600080fd5b612bf2848235602084016134f6565b60006020828403121561384d57600080fd5b5035919050565b6000815180845261386c816020860160208601613a38565b601f01601f19169290920160200192915050565b60008251613892818460208701613a38565b9190910192915050565b600083516138ae818460208801613a38565b8351908301906138c2818360208801613a38565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138fd6080830184613854565b9695505050505050565b6001600160a01b038416815282602082015260606040820152600061392f6060830184613854565b95945050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020815260006121b86020830184613854565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156138c2576138c2613ae5565b600082198211156139b8576139b8613ae5565b500190565b6000826139cc576139cc613afb565b500490565b60008160001904831182151516156139eb576139eb613ae5565b500290565b60006fffffffffffffffffffffffffffffffff83811690831681811015613a1957613a19613ae5565b039392505050565b600082821015613a3357613a33613ae5565b500390565b60005b83811015613a53578181015183820152602001613a3b565b83811115611d175750506000910152565b600081613a7357613a73613ae5565b506000190190565b600181811c90821680613a8f57607f821691505b60208210811415613ab057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613aca57613aca613ae5565b5060010190565b600082613ae057613ae0613afb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461203757600080fd5b801515811461203757600080fd5b6001600160e01b03198116811461203757600080fdfea2646970667358221220e6f1308983f9ef35305310c54ecda71a28a51ae2e74d15c76fe985428c2da95f64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a2b755299c1312cc3860e36cf619cfce2958537b000000000000000000000000b75cbdf4e348cb39caf3e4cad0dae97a3b8f5f06000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f686f776c65727a2e6d7970696e6174612e636c6f75642f697066732f516d656f6d374b386141504c776a756262476d754a6a62474244796b313550787644763257696b556f4c6a7535722f00000000000000000000000000
Deployed Bytecode
0x6080604052600436106103175760003560e01c8063931688cb1161019a578063ce7c2ac2116100e1578063e4e5da851161008a578063f2fde38b11610064578063f2fde38b14610931578063fa6f595814610951578063ffe630b51461096d57600080fd5b8063e4e5da85146108b2578063e985e9c5146108c8578063ec17b20e1461091157600080fd5b8063d91c98d3116100bb578063d91c98d314610871578063dc8c57b414610887578063e33b7de31461089d57600080fd5b8063ce7c2ac2146107ef578063d7224ba014610825578063d79779b21461083b57600080fd5b8063a22cb46511610143578063b88d4fde1161011d578063b88d4fde1461078f578063c67f3702146107af578063c87b56dd146107cf57600080fd5b8063a22cb4651461073a578063a32b1ba91461075a578063b5c310381461076f57600080fd5b80639852595c116101745780639852595c146106d15780639b2f8d1d14610707578063a0712d681461072757600080fd5b8063931688cb1461067c57806394985ddd1461069c57806395d89b41146106bc57600080fd5b8063409b06b51161025e5780636352211e11610207578063715018a6116101e1578063715018a6146106295780638b83209b1461063e5780638da5cb5b1461065e57600080fd5b80636352211e146105d45780636c0360eb146105f457806370a082311461060957600080fd5b80634c261247116102385780634c2612471461057a5780634f6ccce71461059a57806351830227146105ba57600080fd5b8063409b06b51461052557806342842e0e1461053a57806348b750441461055a57600080fd5b806319165587116102c05780632f745c591161029a5780632f745c59146104aa5780633a98ef39146104ca578063406072a9146104df57600080fd5b8063191655871461044a578063235cea981461046a57806323b872dd1461048a57600080fd5b8063095ea7b3116102f1578063095ea7b3146103f45780630f7309e81461041657806318160ddd1461042b57600080fd5b806301ffc9a71461036557806306fdde031461039a578063081812fc146103bc57600080fd5b36610360577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561037157600080fd5b50610385610380366004613735565b61098d565b60405190151581526020015b60405180910390f35b3480156103a657600080fd5b506103af610a5e565b6040516103919190613967565b3480156103c857600080fd5b506103dc6103d736600461383b565b610af0565b6040516001600160a01b039091168152602001610391565b34801561040057600080fd5b5061041461040f3660046136b1565b610b90565b005b34801561042257600080fd5b506103af610cc3565b34801561043757600080fd5b506000545b604051908152602001610391565b34801561045657600080fd5b5061041461046536600461356c565b610d51565b34801561047657600080fd5b50601a546103dc906001600160a01b031681565b34801561049657600080fd5b506104146104a53660046135c2565b610f2b565b3480156104b657600080fd5b5061043c6104c53660046136b1565b610f36565b3480156104d657600080fd5b5060085461043c565b3480156104eb57600080fd5b5061043c6104fa366004613589565b6001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b34801561053157600080fd5b5061043c600581565b34801561054657600080fd5b506104146105553660046135c2565b6110ce565b34801561056657600080fd5b50610414610575366004613589565b6110e9565b34801561058657600080fd5b506104146105953660046137f2565b611396565b3480156105a657600080fd5b5061043c6105b536600461383b565b611467565b3480156105c657600080fd5b506014546103859060ff1681565b3480156105e057600080fd5b506103dc6105ef36600461383b565b6114e3565b34801561060057600080fd5b506103af6114f5565b34801561061557600080fd5b5061043c61062436600461356c565b611502565b34801561063557600080fd5b506104146115ae565b34801561064a57600080fd5b506103dc61065936600461383b565b611614565b34801561066a57600080fd5b50600f546001600160a01b03166103dc565b34801561068857600080fd5b506104146106973660046137f2565b611644565b3480156106a857600080fd5b506104146106b7366004613713565b6116b5565b3480156106c857600080fd5b506103af611737565b3480156106dd57600080fd5b5061043c6106ec36600461356c565b6001600160a01b03166000908152600b602052604090205490565b34801561071357600080fd5b506019546103dc906001600160a01b031681565b61041461073536600461383b565b611746565b34801561074657600080fd5b50610414610755366004613683565b6119b5565b34801561076657600080fd5b5061043c611a7a565b34801561077b57600080fd5b5061041461078a366004613713565b611c29565b34801561079b57600080fd5b506104146107aa366004613603565b611c8e565b3480156107bb57600080fd5b506104146107ca36600461376f565b611d1d565b3480156107db57600080fd5b506103af6107ea36600461383b565b611e10565b3480156107fb57600080fd5b5061043c61080a36600461356c565b6001600160a01b03166000908152600a602052604090205490565b34801561083157600080fd5b5061043c60075481565b34801561084757600080fd5b5061043c61085636600461356c565b6001600160a01b03166000908152600d602052604090205490565b34801561087d57600080fd5b5061043c60125481565b34801561089357600080fd5b5061043c60135481565b3480156108a957600080fd5b5060095461043c565b3480156108be57600080fd5b5061043c61138881565b3480156108d457600080fd5b506103856108e3366004613589565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561091d57600080fd5b5061041461092c36600461383b565b611ef9565b34801561093d57600080fd5b5061041461094c36600461356c565b611f58565b34801561095d57600080fd5b5061043c6701cdda4faccd000081565b34801561097957600080fd5b506104146109883660046137f2565b61203a565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109f057506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a2457506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a5857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060018054610a6d90613a7b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9990613a7b565b8015610ae65780601f10610abb57610100808354040283529160200191610ae6565b820191906000526020600020905b815481529060010190602001808311610ac957829003601f168201915b5050505050905090565b6000610afd826000541190565b610b745760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b9b826114e3565b9050806001600160a01b0316836001600160a01b03161415610c255760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b336001600160a01b0382161480610c415750610c4181336108e3565b610cb35760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b6b565b610cbe838383612103565b505050565b60168054610cd090613a7b565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfc90613a7b565b8015610d495780601f10610d1e57610100808354040283529160200191610d49565b820191906000526020600020905b815481529060010190602001808311610d2c57829003601f168201915b505050505081565b6001600160a01b0381166000908152600a6020526040902054610ddc5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610b6b565b6000610de760095490565b610df190476139a5565b90506000610e1e8383610e19866001600160a01b03166000908152600b602052604090205490565b612177565b905080610e935760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b0383166000908152600b602052604081208054839290610ebb9084906139a5565b925050819055508060096000828254610ed491906139a5565b90915550610ee4905083826121bf565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610cbe8383836122d8565b6000610f4183611502565b8210610fb55760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b600080549080805b8381101561105f576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561101057805192505b876001600160a01b0316836001600160a01b0316141561104c578684141561103e57509350610a5892505050565b8361104881613ab6565b9450505b508061105781613ab6565b915050610fbd565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610b6b565b610cbe83838360405180602001604052806000815250611c8e565b6001600160a01b0381166000908152600a60205260409020546111745760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b0382166000908152600d60205260408120546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156111e557600080fd5b505afa1580156111f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121d91906136fa565b61122791906139a5565b905060006112608383610e1987876001600160a01b039182166000908152600e6020908152604080832093909416825291909152205490565b9050806112d55760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b038085166000908152600e602090815260408083209387168352929052908120805483929061130c9084906139a5565b90915550506001600160a01b0384166000908152600d6020526040812080548392906113399084906139a5565b9091555061134a90508484836126b5565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b600f546001600160a01b031633146113f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b60145460ff16156114435760405162461bcd60e51b815260206004820152601060248201527f416c72656164792072657665616c6564000000000000000000000000000000006044820152606401610b6b565b8051611456906015906020840190613466565b50506014805460ff19166001179055565b6000805482106114df5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b5090565b60006114ee82612735565b5192915050565b60158054610cd090613a7b565b60006001600160a01b0382166115805760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610b6b565b506001600160a01b03166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b600f546001600160a01b031633146116085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b6116126000612900565b565b6000600c828154811061162957611629613b11565b6000918252602090912001546001600160a01b031692915050565b600f546001600160a01b0316331461169e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b80516116b1906015906020840190613466565b5050565b336001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909161461172d5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610b6b565b6116b1828261296a565b606060028054610a6d90613a7b565b600260105414156117995760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b6b565b6002601055601254431015806117b95750600f546001600160a01b031633145b6118055760405162461bcd60e51b815260206004820152601860248201527f53616c65206861736e27742073746172746564207965742100000000000000006044820152606401610b6b565b6113888161181260005490565b61181c91906139a5565b11156118905760405162461bcd60e51b815260206004820152602660248201527f4d696e74696e672074686973206d616e7920776f756c6420657863656564207360448201527f7570706c792100000000000000000000000000000000000000000000000000006064820152608401610b6b565b60058161189c3361298d565b6118a691906139a5565b11156118f45760405162461bcd60e51b815260206004820152601c60248201527f54686572652069732061207065722d77616c6c6574206c696d697421000000006044820152606401610b6b565b611906816701cdda4faccd00006139d1565b34146119545760405162461bcd60e51b815260206004820152601160248201527f57726f6e672065746865722073656e74210000000000000000000000000000006044820152606401610b6b565b3332146119a35760405162461bcd60e51b815260206004820152600d60248201527f4e6f20636f6e74726163747321000000000000000000000000000000000000006044820152606401610b6b565b6119ad3382612a4d565b506001601055565b6001600160a01b038216331415611a0e5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b6b565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600f546000906001600160a01b03163314611ad75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b03166323b872dd611b18600f546001600160a01b031690565b6018546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301523060248301526044820152606401602060405180830381600087803b158015611b6757600080fd5b505af1158015611b7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9f91906136dd565b5060135415611c165760405162461bcd60e51b815260206004820152602160248201527f52616e646f6d206f666673657420616c72656164792065737461626c6973686560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b611c24601754601854612a67565b905090565b600f546001600160a01b03163314611c835760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b601891909155601755565b611c998484846122d8565b611ca584848484612bfa565b611d175760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b6b565b50505050565b600f546001600160a01b03163314611d775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b6040517fc47f00270000000000000000000000000000000000000000000000000000000081526001600160a01b0382169063c47f002790611dbe9086908690600401613938565b602060405180830381600087803b158015611dd857600080fd5b505af1158015611dec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1791906136fa565b6060611e1d826000541190565b611e8f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b6b565b60145460ff16611ea157610a58612d8f565b600061138860135484611eb491906139a5565b611ebe9190613ad1565b9050611ec8612d8f565b611ed182612d9e565b604051602001611ee292919061389c565b604051602081830303815290604052915050919050565b600f546001600160a01b03163314611f535760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b601255565b600f546001600160a01b03163314611fb25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b6001600160a01b03811661202e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b6b565b61203781612900565b50565b600f546001600160a01b031633146120945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b6b565b601680546120a190613a7b565b1590506120f05760405162461bcd60e51b815260206004820152601760248201527f50726f76656e616e636520616c726561647920736574210000000000000000006044820152606401610b6b565b80516116b1906016906020840190613466565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b0384166000908152600a6020526040812054909183916121a190866139d1565b6121ab91906139bd565b6121b59190613a21565b90505b9392505050565b8047101561220f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b6b565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461225c576040519150601f19603f3d011682016040523d82523d6000602084013e612261565b606091505b5050905080610cbe5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b6b565b60006122e382612735565b80519091506000906001600160a01b0316336001600160a01b0316148061231a57503361230f84610af0565b6001600160a01b0316145b8061232c5750815161232c90336108e3565b9050806123a15760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610b6b565b846001600160a01b031682600001516001600160a01b03161461242c5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b0384166124a85760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b6b565b6124b86000848460000151612103565b6001600160a01b03851660009081526004602052604081208054600192906124f39084906fffffffffffffffffffffffffffffffff166139f0565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926125489185911661397a565b82546fffffffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556125d98460016139a5565b6000818152600360205260409020549091506001600160a01b031661266b57612603816000541190565b1561266b5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610cbe908490612ed0565b6040805180820190915260008082526020820152612754826000541190565b6127c65760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610b6b565b60007f00000000000000000000000000000000000000000000000000000000000000058310612827576128197f000000000000000000000000000000000000000000000000000000000000000584613a21565b6128249060016139a5565b90505b825b818110612891576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561287e57949350505050565b508061288981613a64565b915050612829565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610b6b565b600f80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60145460ff161561297a57600080fd5b61298661138882613ad1565b6013555050565b60006001600160a01b038216612a0b5760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610b6b565b506001600160a01b031660009081526004602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b6116b1828260405180602001604052806000815250612fb5565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990984866000604051602001612ad7929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612b0493929190613907565b602060405180830381600087803b158015612b1e57600080fd5b505af1158015612b32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5691906136dd565b50600083815260116020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612bb29060016139a5565b600085815260116020526040902055612bf28482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b949350505050565b60006001600160a01b0384163b15612d84576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612c579033908990889088906004016138cb565b602060405180830381600087803b158015612c7157600080fd5b505af1925050508015612ca1575060408051601f3d908101601f19168201909252612c9e91810190613752565b60015b612d51573d808015612ccf576040519150601f19603f3d011682016040523d82523d6000602084013e612cd4565b606091505b508051612d495760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b6b565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050612bf2565b506001949350505050565b606060158054610a6d90613a7b565b606081612dde57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612e085780612df281613ab6565b9150612e019050600a836139bd565b9150612de2565b60008167ffffffffffffffff811115612e2357612e23613b27565b6040519080825280601f01601f191660200182016040528015612e4d576020820181803683370190505b5090505b8415612bf257612e62600183613a21565b9150612e6f600a86613ad1565b612e7a9060306139a5565b60f81b818381518110612e8f57612e8f613b11565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ec9600a866139bd565b9450612e51565b6000612f25826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166133529092919063ffffffff16565b805190915015610cbe5780806020019051810190612f4391906136dd565b610cbe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610b6b565b6000546001600160a01b0384166130345760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b61303f816000541190565b1561308c5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b6b565b7f00000000000000000000000000000000000000000000000000000000000000058311156131225760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610b6b565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff8082168352700100000000000000000000000000000000909104169181019190915281518083019092528051909190819061319490879061397a565b6fffffffffffffffffffffffffffffffff1681526020018583602001516131bb919061397a565b6fffffffffffffffffffffffffffffffff9081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156133475760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46132b56000888488612bfa565b6133275760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b6b565b8161333181613ab6565b925050808061333f90613ab6565b915050613268565b5060008190556126ad565b60606121b58484600085856001600160a01b0385163b6133b45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b6b565b600080866001600160a01b031685876040516133d09190613880565b60006040518083038185875af1925050503d806000811461340d576040519150601f19603f3d011682016040523d82523d6000602084013e613412565b606091505b509150915061342282828661342d565b979650505050505050565b6060831561343c5750816121b8565b82511561344c5782518084602001fd5b8160405162461bcd60e51b8152600401610b6b9190613967565b82805461347290613a7b565b90600052602060002090601f01602090048101928261349457600085556134da565b82601f106134ad57805160ff19168380011785556134da565b828001600101855582156134da579182015b828111156134da5782518255916020019190600101906134bf565b506114df9291505b808211156114df57600081556001016134e2565b600067ffffffffffffffff8084111561351157613511613b27565b604051601f8501601f19908116603f0116810190828211818310171561353957613539613b27565b8160405280935085815286868601111561355257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561357e57600080fd5b81356121b881613b3d565b6000806040838503121561359c57600080fd5b82356135a781613b3d565b915060208301356135b781613b3d565b809150509250929050565b6000806000606084860312156135d757600080fd5b83356135e281613b3d565b925060208401356135f281613b3d565b929592945050506040919091013590565b6000806000806080858703121561361957600080fd5b843561362481613b3d565b9350602085013561363481613b3d565b925060408501359150606085013567ffffffffffffffff81111561365757600080fd5b8501601f8101871361366857600080fd5b613677878235602084016134f6565b91505092959194509250565b6000806040838503121561369657600080fd5b82356136a181613b3d565b915060208301356135b781613b52565b600080604083850312156136c457600080fd5b82356136cf81613b3d565b946020939093013593505050565b6000602082840312156136ef57600080fd5b81516121b881613b52565b60006020828403121561370c57600080fd5b5051919050565b6000806040838503121561372657600080fd5b50508035926020909101359150565b60006020828403121561374757600080fd5b81356121b881613b60565b60006020828403121561376457600080fd5b81516121b881613b60565b60008060006040848603121561378457600080fd5b833567ffffffffffffffff8082111561379c57600080fd5b818601915086601f8301126137b057600080fd5b8135818111156137bf57600080fd5b8760208285010111156137d157600080fd5b602092830195509350508401356137e781613b3d565b809150509250925092565b60006020828403121561380457600080fd5b813567ffffffffffffffff81111561381b57600080fd5b8201601f8101841361382c57600080fd5b612bf2848235602084016134f6565b60006020828403121561384d57600080fd5b5035919050565b6000815180845261386c816020860160208601613a38565b601f01601f19169290920160200192915050565b60008251613892818460208701613a38565b9190910192915050565b600083516138ae818460208801613a38565b8351908301906138c2818360208801613a38565b01949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138fd6080830184613854565b9695505050505050565b6001600160a01b038416815282602082015260606040820152600061392f6060830184613854565b95945050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020815260006121b86020830184613854565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156138c2576138c2613ae5565b600082198211156139b8576139b8613ae5565b500190565b6000826139cc576139cc613afb565b500490565b60008160001904831182151516156139eb576139eb613ae5565b500290565b60006fffffffffffffffffffffffffffffffff83811690831681811015613a1957613a19613ae5565b039392505050565b600082821015613a3357613a33613ae5565b500390565b60005b83811015613a53578181015183820152602001613a3b565b83811115611d175750506000910152565b600081613a7357613a73613ae5565b506000190190565b600181811c90821680613a8f57607f821691505b60208210811415613ab057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613aca57613aca613ae5565b5060010190565b600082613ae057613ae0613afb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461203757600080fd5b801515811461203757600080fd5b6001600160e01b03198116811461203757600080fdfea2646970667358221220e6f1308983f9ef35305310c54ecda71a28a51ae2e74d15c76fe985428c2da95f64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a2b755299c1312cc3860e36cf619cfce2958537b000000000000000000000000b75cbdf4e348cb39caf3e4cad0dae97a3b8f5f06000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000005368747470733a2f2f686f776c65727a2e6d7970696e6174612e636c6f75642f697066732f516d656f6d374b386141504c776a756262476d754a6a62474244796b313550787644763257696b556f4c6a7535722f00000000000000000000000000
-----Decoded View---------------
Arg [0] : payees (address[]): 0xa2b755299C1312cC3860e36cf619cFCE2958537B,0xB75Cbdf4e348CB39caf3e4cAD0dAE97a3B8F5F06
Arg [1] : shares (uint256[]): 96,4
Arg [2] : unrevealedURI (string): https://howlerz.mypinata.cloud/ipfs/Qmeom7K8aAPLwjubbGmuJjbGBDyk15PxvDv2WikUoLju5r/
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [4] : 000000000000000000000000a2b755299c1312cc3860e36cf619cfce2958537b
Arg [5] : 000000000000000000000000b75cbdf4e348cb39caf3e4cad0dae97a3b8f5f06
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000053
Arg [10] : 68747470733a2f2f686f776c65727a2e6d7970696e6174612e636c6f75642f69
Arg [11] : 7066732f516d656f6d374b386141504c776a756262476d754a6a62474244796b
Arg [12] : 313550787644763257696b556f4c6a7535722f00000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.