NFT
Overview
TokenID
2819
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Strange
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 2200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; // __ // _____/ /__________ _____ ____ ____ // / ___/ __/ ___/ __ `/ __ \/ __ `/ _ \ // (__ / /_/ / / /_/ / / / / /_/ / __/ // /____/\__/_/ \__,_/_/ /_/\__, /\___/ // __ __ /____/ // / / / ____ _____ ____/ _____ // / /_/ / __ `/ __ \/ __ / ___/ // / __ / /_/ / / / / /_/ (__ ) // /_/ /_/\__,_/_/ /_/\__,_/____/ // 🧑💻 @nftchef // onionchef.eth import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721SeqEnumerable.sol"; //---------------------------------------------------------------------------- // OpenSea proxy //---------------------------------------------------------------------------- import "./common/ContextMixin.sol"; import "./common/NativeMetaTransaction.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./IStrange.sol"; //---------------------------------------------------------------------------- // helper contracts //---------------------------------------------------------------------------- contract OwnableDelegateProxy { } contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract Strange is ERC721SeqEnumerable, ContextMixin, NativeMetaTransaction, Ownable, Pausable, ReentrancyGuard, VRFConsumerBase, IStrange, PaymentSplitter { using Strings for uint256; using ECDSA for bytes32; uint128 internal PUBLIC_SUPPLY = 9850; // 150 reserved. uint128 internal MAX_SUPPLY = 10000; uint128 public PUBLIC_MINT_LIMIT = 10; uint128 public PRESALE_MINT_LIMIT = 5; uint128 public PRESALE_PRICE = 0.08 ether; uint128 public PUBLIC_PRICE = 0.09 ether; // @dev enforce a per-address lifetime limit based on the mintBalances mapping bool public publicWalletLimit = true; bool public isPresale = true; bool public isRevealed = false; string public PROVENANCE_HASH; // keccak256 mapping(address => uint256) public mintBalances; uint256 public tokenOffset; string internal baseTokenURI; address[] internal payees; address internal _SIGNER; // opensea proxy address private immutable _proxyRegistryAddress; // LINK uint256 internal LINK_FEE; bytes32 internal LINK_KEY_HASH; constructor( string memory _initialURI, bytes32 _keyHash, address _vrfCoordinator, address _linkToken, uint256 _linkFee, address[] memory _payees, uint256[] memory _shares, address proxyRegistryAddress ) payable ERC721Sequencial("Strange Hands", "STRGHNDZ") Pausable() VRFConsumerBase(_vrfCoordinator, _linkToken) PaymentSplitter(_payees, _shares) { _pause(); baseTokenURI = _initialURI; payees = _payees; LINK_KEY_HASH = _keyHash; LINK_FEE = _linkFee; _proxyRegistryAddress = proxyRegistryAddress; _initializeEIP712("Strange Hands"); } function purchase(uint256 _quantity) public payable override nonReentrant whenNotPaused { require(!isPresale, "Presale only."); require( _quantity <= PUBLIC_MINT_LIMIT, "Quantity exceeds PUBLIC_MINT_LIMIT" ); if (publicWalletLimit) { require( _quantity + mintBalances[msg.sender] <= PUBLIC_MINT_LIMIT, "Quantity exceeds per-wallet limit" ); } require(_quantity * PUBLIC_PRICE <= msg.value, "Not enough minerals"); _mint(_quantity); } function presalePurchase( uint256 _quantity, bytes32 _hash, bytes memory _signature ) external payable override nonReentrant whenNotPaused { require( checkHash(_hash, _signature, _SIGNER), "Address is not on Presale List" ); // @dev Presale always enforces a per-wallet limit require( _quantity + mintBalances[msg.sender] <= PRESALE_MINT_LIMIT, "Quantity exceeds per-wallet limit" ); require(_quantity * PRESALE_PRICE <= msg.value, "Not enough minerals"); _mint(_quantity); } function _mint(uint256 _quantity) internal { require( _quantity + _owners.length <= PUBLIC_SUPPLY, "Purchase exceeds available supply" ); for (uint256 i = 0; i < _quantity; i++) { _safeMint(msg.sender); } mintBalances[msg.sender] += _quantity; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), '"ERC721Metadata: tokenId does not exist"'); return string(abi.encodePacked(baseTokenURI, tokenId.toString())); } function senderMessageHash() internal view returns (bytes32) { bytes32 message = keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(address(this), msg.sender)) ) ); return message; } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts * to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(_proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } function checkHash( bytes32 _hash, bytes memory signature, address _account ) internal view returns (bool) { bytes32 senderHash = senderMessageHash(); if (senderHash != _hash) { return false; } return _hash.recover(signature) == _account; } //---------------------------------------------------------------------------- // Only Owner //---------------------------------------------------------------------------- function setSigner(address _address) external override onlyOwner { _SIGNER = _address; } // @dev gift a single token to each address passed in through calldata // @param _recipients Array of addresses to send a single token to function gift(address[] calldata _recipients) external override onlyOwner { uint256 recipients = _recipients.length; require( recipients + _owners.length <= MAX_SUPPLY, "_quantity exceeds supply" ); for (uint256 i = 0; i < recipients; i++) { _safeMint(_recipients[i]); } } function setPaused(bool _state) external override onlyOwner { _state ? _pause() : _unpause(); } function setPresale(bool _state) external override onlyOwner { isPresale = _state; } function setWalletLimit(bool _state) external override onlyOwner { publicWalletLimit = _state; } function setTokenOffset() public override onlyOwner { require(tokenOffset == 0, "Offset is already set"); requestRandomness(LINK_KEY_HASH, LINK_FEE); } // @dev chainlink callback function for requestRandomness function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override { tokenOffset = randomness % MAX_SUPPLY; } function setProvenance(string memory _provenance) external override onlyOwner { PROVENANCE_HASH = _provenance; } // @dev: blockchain is forever, you never know, you might need these... function setPresalePrice(uint128 _price) external onlyOwner { PRESALE_PRICE = _price; } function setPublicPrice(uint128 _price) external onlyOwner { PUBLIC_PRICE = _price; } function setPresaleLimit(uint128 _limit) external onlyOwner { PRESALE_MINT_LIMIT = _limit; } function setPublicLimit(uint128 _limit) external onlyOwner { PUBLIC_MINT_LIMIT = _limit; } function setReveal(bool _state) external override onlyOwner { isRevealed = _state; } function setBaseURI(string memory _URI) external override onlyOwner { baseTokenURI = _URI; } function withdrawAll() external override onlyOwner { for (uint256 i = 0; i < payees.length; i++) { release(payable(payees[i])); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string public constant ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712(string memory name) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; interface IStrange { // Public function purchase(uint256 _quantity) external payable; function presalePurchase( uint256 _quantity, bytes32 _hash, bytes memory _signature ) external payable; // only owner function gift(address[] calldata _recipients) external; function setSigner(address _address) external; function setPaused(bool _state) external; function setPresale(bool _state) external; function setWalletLimit(bool _state) external; function setTokenOffset() external; function setProvenance(string memory _provenance) external; function setReveal(bool _state) external; function setBaseURI(string memory _URI) external; function withdrawAll() external; }
// SPDX-License-Identifier: MIT // Forked from: OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; //------------------------------------------------------------------------------ // geneticchain.io - NextGen Generative NFT Platform //------------------------------------------------------------------------------ // _______ __ __ ______ __ __ // | __|-----.-----.-----| |_|__|----. | | |--.---.-|__|-----. // | | | -__| | -__| _| | __| | ---| | _ | | | // |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__| // //------------------------------------------------------------------------------ // Genetic Chain: ERC721Sequencial //------------------------------------------------------------------------------ // Author: papaver (@tronicdreams) //------------------------------------------------------------------------------ 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/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 * * This implmentation of ERC721 assumes sequencial token creation to provide * efficient minting. Storage for balance are no longer required reducing * gas significantly. This comes at the price of calculating the balance by * iterating through the entire array. The balanceOf function should NOT * be used inside a contract. Gas usage will explode as the size of tokens * increase. A convineiance function is provided which returns the entire * list of owners whose index maps tokenIds to thier owners. Zero addresses * indicate burned tokens. * */ contract ERC721Sequencial is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address address[] _owners; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256 balance) { require(owner != address(0), "ERC721: balance query for the zero address"); unchecked { uint256 length = _owners.length; for (uint256 i = 0; i < length; ++i) { if (_owners[i] == owner) { ++balance; } } } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: owner query for nonexistent token"); address owner = _owners[tokenId]; return owner; } /** * @dev Returns entire list of owner enumerated by thier tokenIds. Burned tokens * will have a zero address. */ function owners() public view returns (address[] memory) { address[] memory owners_ = _owners; return owners_; } /** * @dev Return largest tokenId minted. */ function maxTokenId() public view returns (uint256) { return _owners.length > 0 ? _owners.length - 1 : 0; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Sequencial.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Sequencial.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to) internal virtual returns (uint256 tokenId) { tokenId = _safeMint(to, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, bytes memory _data ) internal virtual returns (uint256 tokenId) { tokenId = _mint(to); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to) internal virtual returns (uint256 tokenId) { require(to != address(0), "ERC721: mint to the zero address"); tokenId = _owners.length; _beforeTokenTransfer(address(0), to, tokenId); _owners.push(to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Sequencial.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721Sequencial.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Sequencial.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //------------------------------------------------------------------------------ // geneticchain.io - NextGen Generative NFT Platform //------------------------------------------------------------------------------ // _______ __ __ ______ __ __ // | __|-----.-----.-----| |_|__|----. | | |--.---.-|__|-----. // | | | -__| | -__| _| | __| | ---| | _ | | | // |_______|_____|__|__|_____|____|__|____| |______|__|__|___._|__|__|__| // //------------------------------------------------------------------------------ // Genetic Chain: ERC721SeqEnumerable //------------------------------------------------------------------------------ // Author: papaver (@tronicdreams) //------------------------------------------------------------------------------ import "./ERC721Sequencial.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; /** * @dev This is a no storage implemntation of the optional extension {ERC721} * defined in the EIP that adds enumerability of all the token ids in the * contract as well as all token ids owned by each account. These functions * are mainly for convienence and should NEVER be called from inside a * contract on the chain. */ abstract contract ERC721SeqEnumerable is ERC721Sequencial, IERC721Enumerable { address constant zero = address(0); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721Sequencial) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { uint256 length = _owners.length; unchecked { for (; tokenId < length; ++tokenId) { if (_owners[tokenId] == owner) { if (index-- == 0) { break; } } } } require( tokenId < length, "ERC721Enumerable: owner index out of bounds" ); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256 supply) { unchecked { uint256 length = _owners.length; for (uint256 tokenId = 0; tokenId < length; ++tokenId) { if (_owners[tokenId] != zero) { ++supply; } } } } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256 tokenId) { uint256 length = _owners.length; unchecked { for (; tokenId < length; ++tokenId) { if (_owners[tokenId] != zero) { if (index-- == 0) { break; } } } } require( tokenId < length, "ERC721Enumerable: global index out of bounds" ); } /** * @dev Get all tokens owned by owner. */ function ownerTokens(address owner) public view returns (uint256[] memory) { uint256 tokenCount = ERC721Sequencial.balanceOf(owner); require(tokenCount != 0, "ERC721Enumerable: owner owns no tokens"); uint256 length = _owners.length; uint256[] memory tokenIds = new uint256[](tokenCount); unchecked { uint256 i = 0; for (uint256 tokenId = 0; tokenId < length; ++tokenId) { if (_owners[tokenId] == owner) { tokenIds[i++] = tokenId; } } } return tokenIds; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT 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 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 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 tokenId); /** * @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 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 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 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 make 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 pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/math/SafeMath.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. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(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; /** * @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 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 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 = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @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 "../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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously.) * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBase expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomness the VRF output */ function fulfillRandomness( bytes32 requestId, uint256 randomness ) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 constant private 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 immutable internal LINK; address immutable private vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 /* keyHash */ => uint256 /* 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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 2200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initialURI","type":"string"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_linkToken","type":"address"},{"internalType":"uint256","name":"_linkFee","type":"uint256"},{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"address","name":"proxyRegistryAddress","type":"address"}],"stateMutability":"payable","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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_MINT_LIMIT","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_PRICE","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_LIMIT","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"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":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","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":"isPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ownerTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"presalePurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicWalletLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","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":"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":[{"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":"_URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_limit","type":"uint128"}],"name":"setPresaleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_price","type":"uint128"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_limit","type":"uint128"}],"name":"setPublicLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_price","type":"uint128"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTokenOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setWalletLimit","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":[{"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":"tokenId","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":"tokenId","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":[],"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":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e060408190526005805460ff191690557127100000000000000000000000000000267a60105570050000000000000000000000000000000a60115577013fbe85edc900000000000000000000011c37937e0800006012556013805462ffffff1916610101179055620055c33881900390819083398101604081905262000086916200099b565b828287876040518060400160405280600d81526020016c537472616e67652048616e647360981b8152506040518060400160405280600881526020016729aa2923a427222d60c11b8152508160009080519060200190620000e992919062000701565b508051620000ff90600190602084019062000701565b5050506200011c620001166200030b60201b60201c565b6200030f565b6008805460ff60a01b1916905560016009556001600160601b0319606092831b811660a052911b166080528051825114620001b95760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b60008251116200020c5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620001b0565b60005b825181101562000278576200026383828151811062000232576200023262000b5d565b60200260200101518383815181106200024f576200024f62000b5d565b60200260200101516200036160201b60201c565b806200026f8162000b29565b9150506200020f565b50620002869150506200054f565b87516200029b9060179060208b019062000701565b508251620002b190601890602086019062000790565b50601b879055601a8490556001600160601b0319606082901b1660c05260408051808201909152600d81526c537472616e67652048616e647360981b6020820152620002fd90620005fe565b505050505050505062000b89565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003ce5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620001b0565b60008111620004205760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620001b0565b6001600160a01b0382166000908152600d6020526040902054156200049c5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620001b0565b600f8054600181019091557f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020180546001600160a01b0319166001600160a01b0384169081179091556000908152600d60205260409020819055600b546200050690829062000ad1565b600b55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b62000563600854600160a01b900460ff1690565b15620005a55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620001b0565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620005e13390565b6040516001600160a01b03909116815260200160405180910390a1565b60055460ff1615620006445760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b6044820152606401620001b0565b6200064f816200065f565b506005805460ff19166001179055565b6040518060800160405280604f815260200162005574604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600655565b8280546200070f9062000aec565b90600052602060002090601f0160209004810192826200073357600085556200077e565b82601f106200074e57805160ff19168380011785556200077e565b828001600101855582156200077e579182015b828111156200077e57825182559160200191906001019062000761565b506200078c929150620007e8565b5090565b8280548282559060005260206000209081019282156200077e579160200282015b828111156200077e57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620007b1565b5b808211156200078c5760008155600101620007e9565b80516001600160a01b03811681146200081757600080fd5b919050565b600082601f8301126200082e57600080fd5b8151602062000847620008418362000aab565b62000a78565b80838252828201915082860187848660051b89010111156200086857600080fd5b60005b8581101562000892576200087f82620007ff565b845292840192908401906001016200086b565b5090979650505050505050565b600082601f830112620008b157600080fd5b81516020620008c4620008418362000aab565b80838252828201915082860187848660051b8901011115620008e557600080fd5b60005b858110156200089257815184529284019290840190600101620008e8565b600082601f8301126200091857600080fd5b81516001600160401b0381111562000934576200093462000b73565b60206200094a601f8301601f1916820162000a78565b82815285828487010111156200095f57600080fd5b60005b838110156200097f57858101830151828201840152820162000962565b83811115620009915760008385840101525b5095945050505050565b600080600080600080600080610100898b031215620009b957600080fd5b88516001600160401b0380821115620009d157600080fd5b620009df8c838d0162000906565b995060208b01519850620009f660408c01620007ff565b975062000a0660608c01620007ff565b965060808b0151955060a08b015191508082111562000a2457600080fd5b62000a328c838d016200081c565b945060c08b015191508082111562000a4957600080fd5b5062000a588b828c016200089f565b92505062000a6960e08a01620007ff565b90509295985092959890939650565b604051601f8201601f191681016001600160401b038111828210171562000aa35762000aa362000b73565b604052919050565b60006001600160401b0382111562000ac75762000ac762000b73565b5060051b60200190565b6000821982111562000ae75762000ae762000b47565b500190565b600181811c9082168062000b0157607f821691505b6020821081141562000b2357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000b405762000b4062000b47565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05160601c6149ab62000bc96000396000612506015260008181611d830152612d5301526000612d2401526149ab6000f3fe6080604052600436106103a65760003560e01c8063715018a6116101e7578063bba7723e1161010d578063dc8c57b4116100a0578063f2fde38b1161006f578063f2fde38b14610b4e578063f5ebec8014610b6e578063ff1b655614610b95578063ffe630b514610baa57600080fd5b8063dc8c57b414610af0578063e33b7de314610b06578063e985e9c514610b1b578063efef39a114610b3b57600080fd5b8063c54e73e3116100dc578063c54e73e314610a67578063c86768d814610a87578063c87b56dd14610a9a578063ce7c2ac214610aba57600080fd5b8063bba7723e146109cd578063bc56602f146109fa578063bceae77b14610a27578063bf34be4414610a4757600080fd5b806395364a8411610185578063abd0359611610154578063abd0359614610951578063affe39c11461096b578063b88d4fde1461098d578063b8fa1b9c146109ad57600080fd5b806395364a84146108c757806395d89b41146108e65780639852595c146108fb578063a22cb4651461093157600080fd5b80638b83209b116101c15780638b83209b146108545780638da5cb5b1461087457806391ba317a1461089257806394985ddd146108a757600080fd5b8063715018a61461080a5780638033260a1461081f578063853828b61461083f57600080fd5b80632f745c59116102cc5780635c975abb1161026a5780636c19e783116102395780636c19e7831461078a5780636cf80690146107aa5780636e27fb74146107ca57806370a08231146107ea57600080fd5b80635c975abb146106ec578063611f3f101461070b57806362dc6e211461074a5780636352211e1461076a57600080fd5b806342842e0e116102a657806342842e0e1461066c5780634f6ccce71461068c57806354214f69146106ac57806355f804b3146106cc57600080fd5b80632f745c59146106245780633408e470146106445780633a98ef391461065757600080fd5b8063163e1e611161034457806320379ee51161031357806320379ee51461059957806323b872dd146105ae5780632a3f300c146105ce5780632d0335ab146105ee57600080fd5b8063163e1e611461051657806316c38b3c1461053657806318160ddd14610556578063191655871461057957600080fd5b8063095ea7b311610380578063095ea7b3146104835780630c53c51c146104a55780630f1876a2146104b85780630f7e5970146104cd57600080fd5b806301ffc9a7146103f457806306fdde0314610429578063081812fc1461044b57600080fd5b366103ef577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561040057600080fd5b5061041461040f3660046143e5565b610bca565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b5061043e610c26565b604051610420919061476e565b34801561045757600080fd5b5061046b6104663660046144ae565b610cb8565b6040516001600160a01b039091168152602001610420565b34801561048f57600080fd5b506104a361049e3660046142e8565b610d56565b005b61043e6104b336600461426a565b610e88565b3480156104c457600080fd5b506104a361108e565b3480156104d957600080fd5b5061043e6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561052257600080fd5b506104a3610531366004614314565b611149565b34801561054257600080fd5b506104a3610551366004614389565b611267565b34801561056257600080fd5b5061056b6112d6565b604051908152602001610420565b34801561058557600080fd5b506104a3610594366004614139565b611332565b3480156105a557600080fd5b5060065461056b565b3480156105ba57600080fd5b506104a36105c936600461418f565b61152c565b3480156105da57600080fd5b506104a36105e9366004614389565b6115b3565b3480156105fa57600080fd5b5061056b610609366004614139565b6001600160a01b031660009081526007602052604090205490565b34801561063057600080fd5b5061056b61063f3660046142e8565b611645565b34801561065057600080fd5b504661056b565b34801561066357600080fd5b50600b5461056b565b34801561067857600080fd5b506104a361068736600461418f565b611722565b34801561069857600080fd5b5061056b6106a73660046144ae565b61173d565b3480156106b857600080fd5b506013546104149062010000900460ff1681565b3480156106d857600080fd5b506104a36106e736600461443c565b611819565b3480156106f857600080fd5b50600854600160a01b900460ff16610414565b34801561071757600080fd5b5060125461073290600160801b90046001600160801b031681565b6040516001600160801b039091168152602001610420565b34801561075657600080fd5b50601254610732906001600160801b031681565b34801561077657600080fd5b5061046b6107853660046144ae565b61188a565b34801561079657600080fd5b506104a36107a5366004614139565b611938565b3480156107b657600080fd5b506104a36107c5366004614389565b6119c1565b3480156107d657600080fd5b506104a36107e5366004614485565b611a2e565b3480156107f657600080fd5b5061056b610805366004614139565b611aa7565b34801561081657600080fd5b506104a3611b81565b34801561082b57600080fd5b506104a361083a366004614485565b611be7565b34801561084b57600080fd5b506104a3611c7b565b34801561086057600080fd5b5061046b61086f3660046144ae565b611d24565b34801561088057600080fd5b506008546001600160a01b031661046b565b34801561089e57600080fd5b5061056b611d54565b3480156108b357600080fd5b506104a36108c23660046143c3565b611d78565b3480156108d357600080fd5b5060135461041490610100900460ff1681565b3480156108f257600080fd5b5061043e611dfa565b34801561090757600080fd5b5061056b610916366004614139565b6001600160a01b03166000908152600e602052604090205490565b34801561093d57600080fd5b506104a361094c36600461423c565b611e09565b34801561095d57600080fd5b506013546104149060ff1681565b34801561097757600080fd5b50610980611e14565b60405161042091906146e9565b34801561099957600080fd5b506104a36109a83660046141d0565b611e7a565b3480156109b957600080fd5b506104a36109c8366004614485565b611f02565b3480156109d957600080fd5b506109ed6109e8366004614139565b611f7b565b6040516104209190614736565b348015610a0657600080fd5b5061056b610a15366004614139565b60156020526000908152604090205481565b348015610a3357600080fd5b50601154610732906001600160801b031681565b348015610a5357600080fd5b506104a3610a62366004614485565b6120c4565b348015610a7357600080fd5b506104a3610a82366004614389565b612158565b6104a3610a953660046144c7565b6121e9565b348015610aa657600080fd5b5061043e610ab53660046144ae565b61241c565b348015610ac657600080fd5b5061056b610ad5366004614139565b6001600160a01b03166000908152600d602052604090205490565b348015610afc57600080fd5b5061056b60165481565b348015610b1257600080fd5b50600c5461056b565b348015610b2757600080fd5b50610414610b36366004614156565b6124cb565b6104a3610b493660046144ae565b6125d2565b348015610b5a57600080fd5b506104a3610b69366004614139565b612883565b348015610b7a57600080fd5b5060115461073290600160801b90046001600160801b031681565b348015610ba157600080fd5b5061043e612962565b348015610bb657600080fd5b506104a3610bc536600461443c565b6129f0565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610c205750610c2082612a5d565b92915050565b606060008054610c359061480f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c619061480f565b8015610cae5780601f10610c8357610100808354040283529160200191610cae565b820191906000526020600020905b815481529060010190602001808311610c9157829003601f168201915b5050505050905090565b6000610cc382612b40565b610d3a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610d618261188a565b9050806001600160a01b0316836001600160a01b03161415610deb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b336001600160a01b0382161480610e075750610e0781336124cb565b610e795760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d31565b610e838383612b8a565b505050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610ec68782878787612c05565b610f385760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b6001600160a01b038716600090815260076020526040902054610f5c906001612d0d565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610fac90899033908a90614659565b60405180910390a1600080306001600160a01b0316888a604051602001610fd492919061457b565b60408051601f1981840301815290829052610fee9161455f565b6000604051808303816000865af19150503d806000811461102b576040519150601f19603f3d011682016040523d82523d6000602084013e611030565b606091505b5091509150816110825760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610d31565b98975050505050505050565b6008546001600160a01b031633146110e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601654156111385760405162461bcd60e51b815260206004820152601560248201527f4f666673657420697320616c72656164792073657400000000000000000000006044820152606401610d31565b611146601b54601a54612d20565b50565b6008546001600160a01b031633146111a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6010546002548291600160801b90046001600160801b0316906111c69083614781565b11156112145760405162461bcd60e51b815260206004820152601860248201527f5f7175616e74697479206578636565647320737570706c7900000000000000006044820152606401610d31565b60005b818110156112615761124e848483818110611234576112346148b5565b90506020020160208101906112499190614139565b612eab565b508061125981614844565b915050611217565b50505050565b6008546001600160a01b031633146112c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b806112ce57611146612ec6565b611146612f87565b600254600090815b8181101561132d5760006001600160a01b031660028281548110611304576113046148b5565b6000918252602090912001546001600160a01b031614611325578260010192505b6001016112de565b505090565b6001600160a01b0381166000908152600d60205260409020546113bd5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610d31565b6000600c54476113cd9190614781565b6001600160a01b0383166000908152600e6020908152604080832054600b54600d90935290832054939450919261140490856147ad565b61140e9190614799565b61141891906147cc565b90508061148d5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610d31565b6001600160a01b0383166000908152600e60205260409020546114b1908290614781565b6001600160a01b0384166000908152600e6020526040902055600c546114d8908290614781565b600c556114e58382613037565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6115363382613150565b6115a85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d31565b610e83838383613223565b6008546001600160a01b0316331461160d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6013805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff909216919091179055565b6002546000905b808210156116a657836001600160a01b031660028381548110611671576116716148b5565b6000918252602090912001546001600160a01b0316141561169b5760001983019261169b576116a6565b81600101915061164c565b80821061171b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d31565b5092915050565b610e8383838360405180602001604052806000815250611e7a565b6002546000905b8082101561179e5760006001600160a01b03166002838154811061176a5761176a6148b5565b6000918252602090912001546001600160a01b031614611793576000198301926117935761179e565b816001019150611744565b8082106118135760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d31565b50919050565b6008546001600160a01b031633146118735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b805161188690601790602084019061400a565b5050565b600061189582612b40565b6119075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d31565b60006002838154811061191c5761191c6148b5565b6000918252602090912001546001600160a01b03169392505050565b6008546001600160a01b031633146119925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6019805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611a1b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6013805460ff1916911515919091179055565b6008546001600160a01b03163314611a885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601180546001600160801b03928316600160801b029216919091179055565b60006001600160a01b038216611b255760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d31565b60025460005b81811015611b7a57836001600160a01b031660028281548110611b5057611b506148b5565b6000918252602090912001546001600160a01b03161415611b72578260010192505b600101611b2b565b5050919050565b6008546001600160a01b03163314611bdb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b611be560006133b3565b565b6008546001600160a01b03163314611c415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601280547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166001600160801b0392909216919091179055565b6008546001600160a01b03163314611cd55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b60005b60185481101561114657611d1260188281548110611cf857611cf86148b5565b6000918252602090912001546001600160a01b0316611332565b80611d1c81614844565b915050611cd8565b6000600f8281548110611d3957611d396148b5565b6000918252602090912001546001600160a01b031692915050565b600254600090611d645750600090565b600254611d73906001906147cc565b905090565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611df05760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610d31565b6118868282613412565b606060018054610c359061480f565b611886338383613436565b606060006002805480602002602001604051908101604052809291908181526020018280548015611e6e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e50575b50939695505050505050565b611e843383613150565b611ef65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d31565b61126184848484613505565b6008546001600160a01b03163314611f5c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601280546001600160801b03928316600160801b029216919091179055565b60606000611f8883611aa7565b905080611ffd5760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f2060448201527f746f6b656e7300000000000000000000000000000000000000000000000000006064820152608401610d31565b60025460008267ffffffffffffffff81111561201b5761201b6148cb565b604051908082528060200260200182016040528015612044578160200160208202803683370190505b5090506000805b838110156120b957866001600160a01b031660028281548110612070576120706148b5565b6000918252602090912001546001600160a01b031614156120b157808383806001019450815181106120a4576120a46148b5565b6020026020010181815250505b60010161204b565b509095945050505050565b6008546001600160a01b0316331461211e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601180547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166001600160801b0392909216919091179055565b6008546001600160a01b031633146121b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b60138054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b6002600954141561223c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d31565b6002600955600854600160a01b900460ff161561229b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d31565b6019546122b490839083906001600160a01b031661358e565b6123005760405162461bcd60e51b815260206004820152601e60248201527f41646472657373206973206e6f74206f6e2050726573616c65204c69737400006044820152606401610d31565b60115433600090815260156020526040902054600160801b9091046001600160801b03169061232f9085614781565b11156123a35760405162461bcd60e51b815260206004820152602160248201527f5175616e746974792065786365656473207065722d77616c6c6574206c696d6960448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b60125434906123bb906001600160801b0316856147ad565b11156124095760405162461bcd60e51b815260206004820152601360248201527f4e6f7420656e6f756768206d696e6572616c73000000000000000000000000006044820152606401610d31565b6124128361365b565b5050600160095550565b606061242782612b40565b6124995760405162461bcd60e51b815260206004820152602860248201527f224552433732314d657461646174613a20746f6b656e496420646f6573206e6f60448201527f74206578697374220000000000000000000000000000000000000000000000006064820152608401610d31565b60176124a48361373a565b6040516020016124b59291906145b2565b6040516020818303038152906040529050919050565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526000917f000000000000000000000000000000000000000000000000000000000000000091848116919083169063c45527919060240160206040518083038186803b15801561254f57600080fd5b505afa158015612563573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612587919061441f565b6001600160a01b031614156125a0576001915050610c20565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b600260095414156126255760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d31565b6002600955600854600160a01b900460ff16156126845760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d31565b601354610100900460ff16156126dc5760405162461bcd60e51b815260206004820152600d60248201527f50726573616c65206f6e6c792e000000000000000000000000000000000000006044820152606401610d31565b6011546001600160801b031681111561275d5760405162461bcd60e51b815260206004820152602260248201527f5175616e746974792065786365656473205055424c49435f4d494e545f4c494d60448201527f49540000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b60135460ff161561280557601154336000908152601560205260409020546001600160801b03909116906127919083614781565b11156128055760405162461bcd60e51b815260206004820152602160248201527f5175616e746974792065786365656473207065722d77616c6c6574206c696d6960448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b601254349061282490600160801b90046001600160801b0316836147ad565b11156128725760405162461bcd60e51b815260206004820152601360248201527f4e6f7420656e6f756768206d696e6572616c73000000000000000000000000006044820152606401610d31565b61287b8161365b565b506001600955565b6008546001600160a01b031633146128dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6001600160a01b0381166129595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d31565b611146816133b3565b6014805461296f9061480f565b80601f016020809104026020016040519081016040528092919081815260200182805461299b9061480f565b80156129e85780601f106129bd576101008083540402835291602001916129e8565b820191906000526020600020905b8154815290600101906020018083116129cb57829003601f168201915b505050505081565b6008546001600160a01b03163314612a4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b805161188690601490602084019061400a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612af057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c2057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c20565b60025460009082108015610c20575060006001600160a01b031660028381548110612b6d57612b6d6148b5565b6000918252602090912001546001600160a01b0316141592915050565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612bcc8261188a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616612c835760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610d31565b6001612c96612c918761386c565b6138e9565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612ce4573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000612d198284614781565b9392505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612d90929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612dbd939291906146c1565b602060405180830381600087803b158015612dd757600080fd5b505af1158015612deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0f91906143a6565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612e6b906001614781565b6000858152600a60205260409020556125ca8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000610c208260405180602001604052806000815250613934565b600854600160a01b900460ff16612f1f5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610d31565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600854600160a01b900460ff1615612fe15760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d31565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612f6a3390565b804710156130875760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d31565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146130d4576040519150601f19603f3d011682016040523d82523d6000602084013e6130d9565b606091505b5050905080610e835760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d31565b600061315b82612b40565b6131cd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d31565b60006131d88361188a565b9050806001600160a01b0316846001600160a01b031614806132135750836001600160a01b031661320884610cb8565b6001600160a01b0316145b806125ca57506125ca81856124cb565b826001600160a01b03166132368261188a565b6001600160a01b0316146132b25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d31565b6001600160a01b03821661332d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d31565b613338600082612b8a565b816002828154811061334c5761334c6148b5565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60105461342f90600160801b90046001600160801b03168261485f565b6016555050565b816001600160a01b0316836001600160a01b031614156134985760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d31565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613510848484613223565b61351c848484846139c0565b6112615760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d31565b6000806136216040805130606090811b6bffffffffffffffffffffffff199081166020808501919091523390921b166034830152825160288184030181526048830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060688401526084808401919091528351808403909101815260a4909201909252805191012090565b9050848114613634576000915050612d19565b6001600160a01b0383166136488686613b6a565b6001600160a01b03161495945050505050565b6010546002546001600160801b03909116906136779083614781565b11156136eb5760405162461bcd60e51b815260206004820152602160248201527f5075726368617365206578636565647320617661696c61626c6520737570706c60448201527f79000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b60005b81811015613712576136ff33612eab565b508061370a81614844565b9150506136ee565b503360009081526015602052604081208054839290613732908490614781565b909155505050565b60608161377a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156137a4578061378e81614844565b915061379d9050600a83614799565b915061377e565b60008167ffffffffffffffff8111156137bf576137bf6148cb565b6040519080825280601f01601f1916602001820160405280156137e9576020820181803683370190505b5090505b84156125ca576137fe6001836147cc565b915061380b600a8661485f565b613816906030614781565b60f81b81838151811061382b5761382b6148b5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613865600a86614799565b94506137ed565b600060405180608001604052806043815260200161493360439139805160209182012083518483015160408087015180519086012090516138cc950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006138f460065490565b6040517f190100000000000000000000000000000000000000000000000000000000000060208201526022810191909152604281018390526062016138cc565b600061393f83613b8e565b905061394e60008483856139c0565b610c205760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d31565b60006001600160a01b0384163b15613b62576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613a1d903390899088908890600401614685565b602060405180830381600087803b158015613a3757600080fd5b505af1925050508015613a67575060408051601f3d908101601f19168201909252613a6491810190614402565b60015b613b17573d808015613a95576040519150601f19603f3d011682016040523d82523d6000602084013e613a9a565b606091505b508051613b0f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d31565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506125ca565b5060016125ca565b6000806000613b798585613c74565b91509150613b8681613ce4565b509392505050565b60006001600160a01b038216613be65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d31565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b600080825160411415613cab5760208301516040840151606085015160001a613c9f87828585613ed5565b94509450505050613cdd565b825160401415613cd55760208301516040840151613cca868383613fc2565b935093505050613cdd565b506000905060025b9250929050565b6000816004811115613cf857613cf861489f565b1415613d015750565b6001816004811115613d1557613d1561489f565b1415613d635760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d31565b6002816004811115613d7757613d7761489f565b1415613dc55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d31565b6003816004811115613dd957613dd961489f565b1415613e4d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b6004816004811115613e6157613e6161489f565b14156111465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613f0c5750600090506003613fb9565b8460ff16601b14158015613f2457508460ff16601c14155b15613f355750600090506004613fb9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613f89573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613fb257600060019250925050613fb9565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613ffc87828885613ed5565b935093505050935093915050565b8280546140169061480f565b90600052602060002090601f016020900481019282614038576000855561407e565b82601f1061405157805160ff191683800117855561407e565b8280016001018555821561407e579182015b8281111561407e578251825591602001919060010190614063565b5061408a92915061408e565b5090565b5b8082111561408a576000815560010161408f565b600067ffffffffffffffff808411156140be576140be6148cb565b604051601f8501601f19908116603f011681019082821181831017156140e6576140e66148cb565b816040528093508581528686860111156140ff57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261412a57600080fd5b612d19838335602085016140a3565b60006020828403121561414b57600080fd5b8135612d19816148e1565b6000806040838503121561416957600080fd5b8235614174816148e1565b91506020830135614184816148e1565b809150509250929050565b6000806000606084860312156141a457600080fd5b83356141af816148e1565b925060208401356141bf816148e1565b929592945050506040919091013590565b600080600080608085870312156141e657600080fd5b84356141f1816148e1565b93506020850135614201816148e1565b925060408501359150606085013567ffffffffffffffff81111561422457600080fd5b61423087828801614119565b91505092959194509250565b6000806040838503121561424f57600080fd5b823561425a816148e1565b91506020830135614184816148f6565b600080600080600060a0868803121561428257600080fd5b853561428d816148e1565b9450602086013567ffffffffffffffff8111156142a957600080fd5b6142b588828901614119565b9450506040860135925060608601359150608086013560ff811681146142da57600080fd5b809150509295509295909350565b600080604083850312156142fb57600080fd5b8235614306816148e1565b946020939093013593505050565b6000806020838503121561432757600080fd5b823567ffffffffffffffff8082111561433f57600080fd5b818501915085601f83011261435357600080fd5b81358181111561436257600080fd5b8660208260051b850101111561437757600080fd5b60209290920196919550909350505050565b60006020828403121561439b57600080fd5b8135612d19816148f6565b6000602082840312156143b857600080fd5b8151612d19816148f6565b600080604083850312156143d657600080fd5b50508035926020909101359150565b6000602082840312156143f757600080fd5b8135612d1981614904565b60006020828403121561441457600080fd5b8151612d1981614904565b60006020828403121561443157600080fd5b8151612d19816148e1565b60006020828403121561444e57600080fd5b813567ffffffffffffffff81111561446557600080fd5b8201601f8101841361447657600080fd5b6125ca848235602084016140a3565b60006020828403121561449757600080fd5b81356001600160801b0381168114612d1957600080fd5b6000602082840312156144c057600080fd5b5035919050565b6000806000606084860312156144dc57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561450157600080fd5b61450d86828701614119565b9150509250925092565b6000815180845261452f8160208601602086016147e3565b601f01601f19169290920160200192915050565b600081516145558185602086016147e3565b9290920192915050565b600082516145718184602087016147e3565b9190910192915050565b6000835161458d8184602088016147e3565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845481600182811c9150808316806145ce57607f831692505b60208084108214156145ee57634e487b7160e01b86526022600452602486fd5b818015614602576001811461461357614640565b60ff19861689528489019650614640565b60008b81526020902060005b868110156146385781548b82015290850190830161461f565b505084890196505b5050505050506146508185614543565b95945050505050565b60006001600160a01b038086168352808516602084015250606060408301526146506060830184614517565b60006001600160a01b038087168352808616602084015250836040830152608060608301526146b76080830184614517565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006146506060830184614517565b6020808252825182820181905260009190848201906040850190845b8181101561472a5783516001600160a01b031683529284019291840191600101614705565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561472a57835183529284019291840191600101614752565b602081526000612d196020830184614517565b6000821982111561479457614794614873565b500190565b6000826147a8576147a8614889565b500490565b60008160001904831182151516156147c7576147c7614873565b500290565b6000828210156147de576147de614873565b500390565b60005b838110156147fe5781810151838201526020016147e6565b838111156112615750506000910152565b600181811c9082168061482357607f821691505b6020821081141561181357634e487b7160e01b600052602260045260246000fd5b600060001982141561485857614858614873565b5060010190565b60008261486e5761486e614889565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461114657600080fd5b801515811461114657600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461114657600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220f77c6fa173fa940fa694e6a7d685f7dcb2ee0ad7b77790631335de440db6bc1d64736f6c63430008070033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74290000000000000000000000000000000000000000000000000000000000000100aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f737472616e676568616e64732e696f2f6d657461646174612f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000060ac4cf92fc610158886858c42e49c558db079b1000000000000000000000000313f4db3ac1977978fa384084f49840d2be826b1000000000000000000000000eb1d8d26a2208503d23b923bf0e18bf51f65a3d6000000000000000000000000b6ef1661d0bbd987aaab23baa1752a236d8ab78500000000000000000000000035880895759b2792deb5333f18097a85a1eb0531000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000000000000000001db
Deployed Bytecode
0x6080604052600436106103a65760003560e01c8063715018a6116101e7578063bba7723e1161010d578063dc8c57b4116100a0578063f2fde38b1161006f578063f2fde38b14610b4e578063f5ebec8014610b6e578063ff1b655614610b95578063ffe630b514610baa57600080fd5b8063dc8c57b414610af0578063e33b7de314610b06578063e985e9c514610b1b578063efef39a114610b3b57600080fd5b8063c54e73e3116100dc578063c54e73e314610a67578063c86768d814610a87578063c87b56dd14610a9a578063ce7c2ac214610aba57600080fd5b8063bba7723e146109cd578063bc56602f146109fa578063bceae77b14610a27578063bf34be4414610a4757600080fd5b806395364a8411610185578063abd0359611610154578063abd0359614610951578063affe39c11461096b578063b88d4fde1461098d578063b8fa1b9c146109ad57600080fd5b806395364a84146108c757806395d89b41146108e65780639852595c146108fb578063a22cb4651461093157600080fd5b80638b83209b116101c15780638b83209b146108545780638da5cb5b1461087457806391ba317a1461089257806394985ddd146108a757600080fd5b8063715018a61461080a5780638033260a1461081f578063853828b61461083f57600080fd5b80632f745c59116102cc5780635c975abb1161026a5780636c19e783116102395780636c19e7831461078a5780636cf80690146107aa5780636e27fb74146107ca57806370a08231146107ea57600080fd5b80635c975abb146106ec578063611f3f101461070b57806362dc6e211461074a5780636352211e1461076a57600080fd5b806342842e0e116102a657806342842e0e1461066c5780634f6ccce71461068c57806354214f69146106ac57806355f804b3146106cc57600080fd5b80632f745c59146106245780633408e470146106445780633a98ef391461065757600080fd5b8063163e1e611161034457806320379ee51161031357806320379ee51461059957806323b872dd146105ae5780632a3f300c146105ce5780632d0335ab146105ee57600080fd5b8063163e1e611461051657806316c38b3c1461053657806318160ddd14610556578063191655871461057957600080fd5b8063095ea7b311610380578063095ea7b3146104835780630c53c51c146104a55780630f1876a2146104b85780630f7e5970146104cd57600080fd5b806301ffc9a7146103f457806306fdde0314610429578063081812fc1461044b57600080fd5b366103ef577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561040057600080fd5b5061041461040f3660046143e5565b610bca565b60405190151581526020015b60405180910390f35b34801561043557600080fd5b5061043e610c26565b604051610420919061476e565b34801561045757600080fd5b5061046b6104663660046144ae565b610cb8565b6040516001600160a01b039091168152602001610420565b34801561048f57600080fd5b506104a361049e3660046142e8565b610d56565b005b61043e6104b336600461426a565b610e88565b3480156104c457600080fd5b506104a361108e565b3480156104d957600080fd5b5061043e6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561052257600080fd5b506104a3610531366004614314565b611149565b34801561054257600080fd5b506104a3610551366004614389565b611267565b34801561056257600080fd5b5061056b6112d6565b604051908152602001610420565b34801561058557600080fd5b506104a3610594366004614139565b611332565b3480156105a557600080fd5b5060065461056b565b3480156105ba57600080fd5b506104a36105c936600461418f565b61152c565b3480156105da57600080fd5b506104a36105e9366004614389565b6115b3565b3480156105fa57600080fd5b5061056b610609366004614139565b6001600160a01b031660009081526007602052604090205490565b34801561063057600080fd5b5061056b61063f3660046142e8565b611645565b34801561065057600080fd5b504661056b565b34801561066357600080fd5b50600b5461056b565b34801561067857600080fd5b506104a361068736600461418f565b611722565b34801561069857600080fd5b5061056b6106a73660046144ae565b61173d565b3480156106b857600080fd5b506013546104149062010000900460ff1681565b3480156106d857600080fd5b506104a36106e736600461443c565b611819565b3480156106f857600080fd5b50600854600160a01b900460ff16610414565b34801561071757600080fd5b5060125461073290600160801b90046001600160801b031681565b6040516001600160801b039091168152602001610420565b34801561075657600080fd5b50601254610732906001600160801b031681565b34801561077657600080fd5b5061046b6107853660046144ae565b61188a565b34801561079657600080fd5b506104a36107a5366004614139565b611938565b3480156107b657600080fd5b506104a36107c5366004614389565b6119c1565b3480156107d657600080fd5b506104a36107e5366004614485565b611a2e565b3480156107f657600080fd5b5061056b610805366004614139565b611aa7565b34801561081657600080fd5b506104a3611b81565b34801561082b57600080fd5b506104a361083a366004614485565b611be7565b34801561084b57600080fd5b506104a3611c7b565b34801561086057600080fd5b5061046b61086f3660046144ae565b611d24565b34801561088057600080fd5b506008546001600160a01b031661046b565b34801561089e57600080fd5b5061056b611d54565b3480156108b357600080fd5b506104a36108c23660046143c3565b611d78565b3480156108d357600080fd5b5060135461041490610100900460ff1681565b3480156108f257600080fd5b5061043e611dfa565b34801561090757600080fd5b5061056b610916366004614139565b6001600160a01b03166000908152600e602052604090205490565b34801561093d57600080fd5b506104a361094c36600461423c565b611e09565b34801561095d57600080fd5b506013546104149060ff1681565b34801561097757600080fd5b50610980611e14565b60405161042091906146e9565b34801561099957600080fd5b506104a36109a83660046141d0565b611e7a565b3480156109b957600080fd5b506104a36109c8366004614485565b611f02565b3480156109d957600080fd5b506109ed6109e8366004614139565b611f7b565b6040516104209190614736565b348015610a0657600080fd5b5061056b610a15366004614139565b60156020526000908152604090205481565b348015610a3357600080fd5b50601154610732906001600160801b031681565b348015610a5357600080fd5b506104a3610a62366004614485565b6120c4565b348015610a7357600080fd5b506104a3610a82366004614389565b612158565b6104a3610a953660046144c7565b6121e9565b348015610aa657600080fd5b5061043e610ab53660046144ae565b61241c565b348015610ac657600080fd5b5061056b610ad5366004614139565b6001600160a01b03166000908152600d602052604090205490565b348015610afc57600080fd5b5061056b60165481565b348015610b1257600080fd5b50600c5461056b565b348015610b2757600080fd5b50610414610b36366004614156565b6124cb565b6104a3610b493660046144ae565b6125d2565b348015610b5a57600080fd5b506104a3610b69366004614139565b612883565b348015610b7a57600080fd5b5060115461073290600160801b90046001600160801b031681565b348015610ba157600080fd5b5061043e612962565b348015610bb657600080fd5b506104a3610bc536600461443c565b6129f0565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610c205750610c2082612a5d565b92915050565b606060008054610c359061480f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c619061480f565b8015610cae5780601f10610c8357610100808354040283529160200191610cae565b820191906000526020600020905b815481529060010190602001808311610c9157829003601f168201915b5050505050905090565b6000610cc382612b40565b610d3a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610d618261188a565b9050806001600160a01b0316836001600160a01b03161415610deb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b336001600160a01b0382161480610e075750610e0781336124cb565b610e795760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d31565b610e838383612b8a565b505050565b60408051606081810183526001600160a01b03881660008181526007602090815290859020548452830152918101869052610ec68782878787612c05565b610f385760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b6001600160a01b038716600090815260076020526040902054610f5c906001612d0d565b6001600160a01b0388166000908152600760205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610fac90899033908a90614659565b60405180910390a1600080306001600160a01b0316888a604051602001610fd492919061457b565b60408051601f1981840301815290829052610fee9161455f565b6000604051808303816000865af19150503d806000811461102b576040519150601f19603f3d011682016040523d82523d6000602084013e611030565b606091505b5091509150816110825760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610d31565b98975050505050505050565b6008546001600160a01b031633146110e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601654156111385760405162461bcd60e51b815260206004820152601560248201527f4f666673657420697320616c72656164792073657400000000000000000000006044820152606401610d31565b611146601b54601a54612d20565b50565b6008546001600160a01b031633146111a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6010546002548291600160801b90046001600160801b0316906111c69083614781565b11156112145760405162461bcd60e51b815260206004820152601860248201527f5f7175616e74697479206578636565647320737570706c7900000000000000006044820152606401610d31565b60005b818110156112615761124e848483818110611234576112346148b5565b90506020020160208101906112499190614139565b612eab565b508061125981614844565b915050611217565b50505050565b6008546001600160a01b031633146112c15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b806112ce57611146612ec6565b611146612f87565b600254600090815b8181101561132d5760006001600160a01b031660028281548110611304576113046148b5565b6000918252602090912001546001600160a01b031614611325578260010192505b6001016112de565b505090565b6001600160a01b0381166000908152600d60205260409020546113bd5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610d31565b6000600c54476113cd9190614781565b6001600160a01b0383166000908152600e6020908152604080832054600b54600d90935290832054939450919261140490856147ad565b61140e9190614799565b61141891906147cc565b90508061148d5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610d31565b6001600160a01b0383166000908152600e60205260409020546114b1908290614781565b6001600160a01b0384166000908152600e6020526040902055600c546114d8908290614781565b600c556114e58382613037565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6115363382613150565b6115a85760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d31565b610e83838383613223565b6008546001600160a01b0316331461160d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6013805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff909216919091179055565b6002546000905b808210156116a657836001600160a01b031660028381548110611671576116716148b5565b6000918252602090912001546001600160a01b0316141561169b5760001983019261169b576116a6565b81600101915061164c565b80821061171b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d31565b5092915050565b610e8383838360405180602001604052806000815250611e7a565b6002546000905b8082101561179e5760006001600160a01b03166002838154811061176a5761176a6148b5565b6000918252602090912001546001600160a01b031614611793576000198301926117935761179e565b816001019150611744565b8082106118135760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d31565b50919050565b6008546001600160a01b031633146118735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b805161188690601790602084019061400a565b5050565b600061189582612b40565b6119075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d31565b60006002838154811061191c5761191c6148b5565b6000918252602090912001546001600160a01b03169392505050565b6008546001600160a01b031633146119925760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6019805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b03163314611a1b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6013805460ff1916911515919091179055565b6008546001600160a01b03163314611a885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601180546001600160801b03928316600160801b029216919091179055565b60006001600160a01b038216611b255760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d31565b60025460005b81811015611b7a57836001600160a01b031660028281548110611b5057611b506148b5565b6000918252602090912001546001600160a01b03161415611b72578260010192505b600101611b2b565b5050919050565b6008546001600160a01b03163314611bdb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b611be560006133b3565b565b6008546001600160a01b03163314611c415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601280547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166001600160801b0392909216919091179055565b6008546001600160a01b03163314611cd55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b60005b60185481101561114657611d1260188281548110611cf857611cf86148b5565b6000918252602090912001546001600160a01b0316611332565b80611d1c81614844565b915050611cd8565b6000600f8281548110611d3957611d396148b5565b6000918252602090912001546001600160a01b031692915050565b600254600090611d645750600090565b600254611d73906001906147cc565b905090565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614611df05760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610d31565b6118868282613412565b606060018054610c359061480f565b611886338383613436565b606060006002805480602002602001604051908101604052809291908181526020018280548015611e6e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e50575b50939695505050505050565b611e843383613150565b611ef65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d31565b61126184848484613505565b6008546001600160a01b03163314611f5c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601280546001600160801b03928316600160801b029216919091179055565b60606000611f8883611aa7565b905080611ffd5760405162461bcd60e51b815260206004820152602660248201527f455243373231456e756d657261626c653a206f776e6572206f776e73206e6f2060448201527f746f6b656e7300000000000000000000000000000000000000000000000000006064820152608401610d31565b60025460008267ffffffffffffffff81111561201b5761201b6148cb565b604051908082528060200260200182016040528015612044578160200160208202803683370190505b5090506000805b838110156120b957866001600160a01b031660028281548110612070576120706148b5565b6000918252602090912001546001600160a01b031614156120b157808383806001019450815181106120a4576120a46148b5565b6020026020010181815250505b60010161204b565b509095945050505050565b6008546001600160a01b0316331461211e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b601180547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166001600160801b0392909216919091179055565b6008546001600160a01b031633146121b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b60138054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b6002600954141561223c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d31565b6002600955600854600160a01b900460ff161561229b5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d31565b6019546122b490839083906001600160a01b031661358e565b6123005760405162461bcd60e51b815260206004820152601e60248201527f41646472657373206973206e6f74206f6e2050726573616c65204c69737400006044820152606401610d31565b60115433600090815260156020526040902054600160801b9091046001600160801b03169061232f9085614781565b11156123a35760405162461bcd60e51b815260206004820152602160248201527f5175616e746974792065786365656473207065722d77616c6c6574206c696d6960448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b60125434906123bb906001600160801b0316856147ad565b11156124095760405162461bcd60e51b815260206004820152601360248201527f4e6f7420656e6f756768206d696e6572616c73000000000000000000000000006044820152606401610d31565b6124128361365b565b5050600160095550565b606061242782612b40565b6124995760405162461bcd60e51b815260206004820152602860248201527f224552433732314d657461646174613a20746f6b656e496420646f6573206e6f60448201527f74206578697374220000000000000000000000000000000000000000000000006064820152608401610d31565b60176124a48361373a565b6040516020016124b59291906145b2565b6040516020818303038152906040529050919050565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526000917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c191848116919083169063c45527919060240160206040518083038186803b15801561254f57600080fd5b505afa158015612563573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612587919061441f565b6001600160a01b031614156125a0576001915050610c20565b6001600160a01b0380851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b600260095414156126255760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d31565b6002600955600854600160a01b900460ff16156126845760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d31565b601354610100900460ff16156126dc5760405162461bcd60e51b815260206004820152600d60248201527f50726573616c65206f6e6c792e000000000000000000000000000000000000006044820152606401610d31565b6011546001600160801b031681111561275d5760405162461bcd60e51b815260206004820152602260248201527f5175616e746974792065786365656473205055424c49435f4d494e545f4c494d60448201527f49540000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b60135460ff161561280557601154336000908152601560205260409020546001600160801b03909116906127919083614781565b11156128055760405162461bcd60e51b815260206004820152602160248201527f5175616e746974792065786365656473207065722d77616c6c6574206c696d6960448201527f74000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b601254349061282490600160801b90046001600160801b0316836147ad565b11156128725760405162461bcd60e51b815260206004820152601360248201527f4e6f7420656e6f756768206d696e6572616c73000000000000000000000000006044820152606401610d31565b61287b8161365b565b506001600955565b6008546001600160a01b031633146128dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b6001600160a01b0381166129595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d31565b611146816133b3565b6014805461296f9061480f565b80601f016020809104026020016040519081016040528092919081815260200182805461299b9061480f565b80156129e85780601f106129bd576101008083540402835291602001916129e8565b820191906000526020600020905b8154815290600101906020018083116129cb57829003601f168201915b505050505081565b6008546001600160a01b03163314612a4a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d31565b805161188690601490602084019061400a565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612af057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c2057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c20565b60025460009082108015610c20575060006001600160a01b031660028381548110612b6d57612b6d6148b5565b6000918252602090912001546001600160a01b0316141592915050565b6000818152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190612bcc8261188a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616612c835760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610d31565b6001612c96612c918761386c565b6138e9565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612ce4573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000612d198284614781565b9392505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612d90929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612dbd939291906146c1565b602060405180830381600087803b158015612dd757600080fd5b505af1158015612deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0f91906143a6565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052612e6b906001614781565b6000858152600a60205260409020556125ca8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6000610c208260405180602001604052806000815250613934565b600854600160a01b900460ff16612f1f5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610d31565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600854600160a01b900460ff1615612fe15760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610d31565b600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612f6a3390565b804710156130875760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d31565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146130d4576040519150601f19603f3d011682016040523d82523d6000602084013e6130d9565b606091505b5050905080610e835760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d31565b600061315b82612b40565b6131cd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d31565b60006131d88361188a565b9050806001600160a01b0316846001600160a01b031614806132135750836001600160a01b031661320884610cb8565b6001600160a01b0316145b806125ca57506125ca81856124cb565b826001600160a01b03166132368261188a565b6001600160a01b0316146132b25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d31565b6001600160a01b03821661332d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d31565b613338600082612b8a565b816002828154811061334c5761334c6148b5565b60009182526020822001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60105461342f90600160801b90046001600160801b03168261485f565b6016555050565b816001600160a01b0316836001600160a01b031614156134985760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d31565b6001600160a01b03838116600081815260046020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613510848484613223565b61351c848484846139c0565b6112615760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d31565b6000806136216040805130606090811b6bffffffffffffffffffffffff199081166020808501919091523390921b166034830152825160288184030181526048830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060688401526084808401919091528351808403909101815260a4909201909252805191012090565b9050848114613634576000915050612d19565b6001600160a01b0383166136488686613b6a565b6001600160a01b03161495945050505050565b6010546002546001600160801b03909116906136779083614781565b11156136eb5760405162461bcd60e51b815260206004820152602160248201527f5075726368617365206578636565647320617661696c61626c6520737570706c60448201527f79000000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b60005b81811015613712576136ff33612eab565b508061370a81614844565b9150506136ee565b503360009081526015602052604081208054839290613732908490614781565b909155505050565b60608161377a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156137a4578061378e81614844565b915061379d9050600a83614799565b915061377e565b60008167ffffffffffffffff8111156137bf576137bf6148cb565b6040519080825280601f01601f1916602001820160405280156137e9576020820181803683370190505b5090505b84156125ca576137fe6001836147cc565b915061380b600a8661485f565b613816906030614781565b60f81b81838151811061382b5761382b6148b5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613865600a86614799565b94506137ed565b600060405180608001604052806043815260200161493360439139805160209182012083518483015160408087015180519086012090516138cc950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006138f460065490565b6040517f190100000000000000000000000000000000000000000000000000000000000060208201526022810191909152604281018390526062016138cc565b600061393f83613b8e565b905061394e60008483856139c0565b610c205760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d31565b60006001600160a01b0384163b15613b62576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290613a1d903390899088908890600401614685565b602060405180830381600087803b158015613a3757600080fd5b505af1925050508015613a67575060408051601f3d908101601f19168201909252613a6491810190614402565b60015b613b17573d808015613a95576040519150601f19603f3d011682016040523d82523d6000602084013e613a9a565b606091505b508051613b0f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d31565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506125ca565b5060016125ca565b6000806000613b798585613c74565b91509150613b8681613ce4565b509392505050565b60006001600160a01b038216613be65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d31565b506002546002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace01805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4919050565b600080825160411415613cab5760208301516040840151606085015160001a613c9f87828585613ed5565b94509450505050613cdd565b825160401415613cd55760208301516040840151613cca868383613fc2565b935093505050613cdd565b506000905060025b9250929050565b6000816004811115613cf857613cf861489f565b1415613d015750565b6001816004811115613d1557613d1561489f565b1415613d635760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d31565b6002816004811115613d7757613d7761489f565b1415613dc55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d31565b6003816004811115613dd957613dd961489f565b1415613e4d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b6004816004811115613e6157613e6161489f565b14156111465760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610d31565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613f0c5750600090506003613fb9565b8460ff16601b14158015613f2457508460ff16601c14155b15613f355750600090506004613fb9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613f89573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613fb257600060019250925050613fb9565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01613ffc87828885613ed5565b935093505050935093915050565b8280546140169061480f565b90600052602060002090601f016020900481019282614038576000855561407e565b82601f1061405157805160ff191683800117855561407e565b8280016001018555821561407e579182015b8281111561407e578251825591602001919060010190614063565b5061408a92915061408e565b5090565b5b8082111561408a576000815560010161408f565b600067ffffffffffffffff808411156140be576140be6148cb565b604051601f8501601f19908116603f011681019082821181831017156140e6576140e66148cb565b816040528093508581528686860111156140ff57600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261412a57600080fd5b612d19838335602085016140a3565b60006020828403121561414b57600080fd5b8135612d19816148e1565b6000806040838503121561416957600080fd5b8235614174816148e1565b91506020830135614184816148e1565b809150509250929050565b6000806000606084860312156141a457600080fd5b83356141af816148e1565b925060208401356141bf816148e1565b929592945050506040919091013590565b600080600080608085870312156141e657600080fd5b84356141f1816148e1565b93506020850135614201816148e1565b925060408501359150606085013567ffffffffffffffff81111561422457600080fd5b61423087828801614119565b91505092959194509250565b6000806040838503121561424f57600080fd5b823561425a816148e1565b91506020830135614184816148f6565b600080600080600060a0868803121561428257600080fd5b853561428d816148e1565b9450602086013567ffffffffffffffff8111156142a957600080fd5b6142b588828901614119565b9450506040860135925060608601359150608086013560ff811681146142da57600080fd5b809150509295509295909350565b600080604083850312156142fb57600080fd5b8235614306816148e1565b946020939093013593505050565b6000806020838503121561432757600080fd5b823567ffffffffffffffff8082111561433f57600080fd5b818501915085601f83011261435357600080fd5b81358181111561436257600080fd5b8660208260051b850101111561437757600080fd5b60209290920196919550909350505050565b60006020828403121561439b57600080fd5b8135612d19816148f6565b6000602082840312156143b857600080fd5b8151612d19816148f6565b600080604083850312156143d657600080fd5b50508035926020909101359150565b6000602082840312156143f757600080fd5b8135612d1981614904565b60006020828403121561441457600080fd5b8151612d1981614904565b60006020828403121561443157600080fd5b8151612d19816148e1565b60006020828403121561444e57600080fd5b813567ffffffffffffffff81111561446557600080fd5b8201601f8101841361447657600080fd5b6125ca848235602084016140a3565b60006020828403121561449757600080fd5b81356001600160801b0381168114612d1957600080fd5b6000602082840312156144c057600080fd5b5035919050565b6000806000606084860312156144dc57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561450157600080fd5b61450d86828701614119565b9150509250925092565b6000815180845261452f8160208601602086016147e3565b601f01601f19169290920160200192915050565b600081516145558185602086016147e3565b9290920192915050565b600082516145718184602087016147e3565b9190910192915050565b6000835161458d8184602088016147e3565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600080845481600182811c9150808316806145ce57607f831692505b60208084108214156145ee57634e487b7160e01b86526022600452602486fd5b818015614602576001811461461357614640565b60ff19861689528489019650614640565b60008b81526020902060005b868110156146385781548b82015290850190830161461f565b505084890196505b5050505050506146508185614543565b95945050505050565b60006001600160a01b038086168352808516602084015250606060408301526146506060830184614517565b60006001600160a01b038087168352808616602084015250836040830152608060608301526146b76080830184614517565b9695505050505050565b6001600160a01b03841681528260208201526060604082015260006146506060830184614517565b6020808252825182820181905260009190848201906040850190845b8181101561472a5783516001600160a01b031683529284019291840191600101614705565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561472a57835183529284019291840191600101614752565b602081526000612d196020830184614517565b6000821982111561479457614794614873565b500190565b6000826147a8576147a8614889565b500490565b60008160001904831182151516156147c7576147c7614873565b500290565b6000828210156147de576147de614873565b500390565b60005b838110156147fe5781810151838201526020016147e6565b838111156112615750506000910152565b600181811c9082168061482357607f821691505b6020821081141561181357634e487b7160e01b600052602260045260246000fd5b600060001982141561485857614858614873565b5060010190565b60008261486e5761486e614889565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461114657600080fd5b801515811461114657600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461114657600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220f77c6fa173fa940fa694e6a7d685f7dcb2ee0ad7b77790631335de440db6bc1d64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000100aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f737472616e676568616e64732e696f2f6d657461646174612f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000060ac4cf92fc610158886858c42e49c558db079b1000000000000000000000000313f4db3ac1977978fa384084f49840d2be826b1000000000000000000000000eb1d8d26a2208503d23b923bf0e18bf51f65a3d6000000000000000000000000b6ef1661d0bbd987aaab23baa1752a236d8ab78500000000000000000000000035880895759b2792deb5333f18097a85a1eb0531000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000e100000000000000000000000000000000000000000000000000000000000001db
-----Decoded View---------------
Arg [0] : _initialURI (string): https://strangehands.io/metadata/
Arg [1] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [2] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [3] : _linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [4] : _linkFee (uint256): 2000000000000000000
Arg [5] : _payees (address[]): 0x60ac4cF92Fc610158886858c42E49c558Db079b1,0x313F4dB3Ac1977978fA384084f49840D2be826B1,0xEB1d8D26A2208503d23b923bF0E18Bf51f65A3d6,0xB6EF1661d0bBD987AAab23bAa1752A236d8Ab785,0x35880895759B2792DeB5333f18097A85a1Eb0531
Arg [6] : _shares (uint256[]): 100,100,100,225,475
Arg [7] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
23 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [2] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [3] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [4] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [7] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [9] : 68747470733a2f2f737472616e676568616e64732e696f2f6d65746164617461
Arg [10] : 2f00000000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 00000000000000000000000060ac4cf92fc610158886858c42e49c558db079b1
Arg [13] : 000000000000000000000000313f4db3ac1977978fa384084f49840d2be826b1
Arg [14] : 000000000000000000000000eb1d8d26a2208503d23b923bf0e18bf51f65a3d6
Arg [15] : 000000000000000000000000b6ef1661d0bbd987aaab23baa1752a236d8ab785
Arg [16] : 00000000000000000000000035880895759b2792deb5333f18097a85a1eb0531
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [21] : 00000000000000000000000000000000000000000000000000000000000000e1
Arg [22] : 00000000000000000000000000000000000000000000000000000000000001db
Loading...
Loading
Loading...
Loading
[ 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.