ERC-721
NFT
Overview
Max Total Supply
2,044 iMORPH
Holders
421
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 iMORPHLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PolymorphRoot
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "./IPolymorphRoot.sol"; import "../base/Polymorph.sol"; import "../base/PolymorphWithGeneChanger.sol"; contract PolymorphRoot is PolymorphWithGeneChanger, IPolymorphRoot { using PolymorphGeneGenerator for PolymorphGeneGenerator.Gene; struct Params { string name; string symbol; string baseURI; address payable _daoAddress; uint96 _royaltyFee; uint256 _baseGenomeChangePrice; uint256 _polymorphPrice; uint256 _maxSupply; uint256 _randomizeGenomePrice; uint256 _bulkBuyLimit; string _arweaveAssetsJSON; address _polymorphV1Address; } uint256 public polymorphPrice; uint256 public maxSupply; uint256 public bulkBuyLimit; Polymorph public polymorphV1Contract; mapping(address => uint256) public burnCount; uint16 constant private STARTING_TOKEN_ID = 10000; event PolymorphPriceChanged(uint256 newPolymorphPrice); event MaxSupplyChanged(uint256 newMaxSupply); event BulkBuyLimitChanged(uint256 newBulkBuyLimit); event DefaultRoyaltyChanged(address newReceiver, uint96 newDefaultRoyalty); constructor(Params memory params) PolymorphWithGeneChanger( params.name, params.symbol, params.baseURI, params._daoAddress, params._baseGenomeChangePrice, params._randomizeGenomePrice, params._arweaveAssetsJSON ) { polymorphPrice = params._polymorphPrice; maxSupply = params._maxSupply; bulkBuyLimit = params._bulkBuyLimit; polymorphV1Contract = Polymorph(params._polymorphV1Address); geneGenerator.random(); _tokenId = _tokenId + STARTING_TOKEN_ID; _setDefaultRoyalty(params._daoAddress, params._royaltyFee); } function mint() public payable override nonReentrant { require(_tokenId < maxSupply, "Total supply reached"); require(msg.value >= polymorphPrice, "Insufficient funds"); _tokenId++; _genes[_tokenId] = geneGenerator.random(); _mint(_msgSender(), _tokenId); (bool transferToDaoStatus, ) = daoAddress.call{value: polymorphPrice}( "" ); require( transferToDaoStatus, "Address: unable to send value, recipient may have reverted" ); emit TokenMinted(_tokenId, _genes[_tokenId]); emit TokenMorphed( _tokenId, 0, _genes[_tokenId], polymorphPrice, PolymorphEventType.MINT ); } function burnAndMintNewPolymorph(uint256[] calldata tokenIds) external nonReentrant { for(uint256 i = 0; i < tokenIds.length; i++) { uint256 currentIdToBurnAndMint = tokenIds[i]; require(_msgSender() == polymorphV1Contract.ownerOf(currentIdToBurnAndMint)); uint256 geneToTransfer = polymorphV1Contract.geneOf(currentIdToBurnAndMint); polymorphV1Contract.burn(currentIdToBurnAndMint); burnCount[_msgSender()]+=1; _genes[currentIdToBurnAndMint] = geneToTransfer; _mint(_msgSender(), currentIdToBurnAndMint); emit TokenMinted(currentIdToBurnAndMint, _genes[currentIdToBurnAndMint]); emit TokenBurnedAndMinted(currentIdToBurnAndMint, _genes[currentIdToBurnAndMint]); } } function bulkBuy(uint256 amount) public payable override nonReentrant { require( amount <= bulkBuyLimit, "Cannot bulk buy more than the preset limit" ); require( _tokenId + amount <= maxSupply, "Total supply reached" ); require(msg.value >= polymorphPrice * amount, "Insufficient funds"); for (uint256 i = 0; i < amount; i++) { _tokenId++; _genes[_tokenId] = geneGenerator.random(); _mint(_msgSender(), _tokenId); emit TokenMinted(_tokenId, _genes[_tokenId]); emit TokenMorphed( _tokenId, 0, _genes[_tokenId], polymorphPrice, PolymorphEventType.MINT ); } (bool transferToDaoStatus, ) = daoAddress.call{ value: polymorphPrice * amount }(""); require( transferToDaoStatus, "Address: unable to send value, recipient may have reverted" ); } function mint(address to) public pure override(ERC721PresetMinterPauserAutoId) { revert("Should not use this one"); } function setPolymorphPrice(uint256 newPolymorphPrice) public virtual override onlyDAO { polymorphPrice = newPolymorphPrice; emit PolymorphPriceChanged(newPolymorphPrice); } function setMaxSupply(uint256 _maxSupply) public virtual override onlyDAO { maxSupply = _maxSupply; emit MaxSupplyChanged(maxSupply); } function setBulkBuyLimit(uint256 _bulkBuyLimit) public virtual override onlyDAO { bulkBuyLimit = _bulkBuyLimit; emit BulkBuyLimitChanged(_bulkBuyLimit); } function setDefaultRoyalty(address receiver, uint96 royaltyFee) external onlyDAO { _setDefaultRoyalty(receiver, royaltyFee); emit DefaultRoyaltyChanged(receiver, royaltyFee); } receive() external payable { mint(); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IPolymorphRoot is IERC721 { function mint() external payable; function bulkBuy(uint256 amount) external payable; function setPolymorphPrice(uint256 newPolymorphPrice) external; function setMaxSupply(uint256 maxSupply) external; function setBulkBuyLimit(uint256 bulkBuyLimit) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "./IPolymorph.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../base/ERC721PresetMinterPauserAutoId.sol"; import "../lib/PolymorphGeneGenerator.sol"; import "../modifiers/DAOControlled.sol"; abstract contract Polymorph is IPolymorph, ERC721PresetMinterPauserAutoId, ReentrancyGuard, DAOControlled, Ownable { using PolymorphGeneGenerator for PolymorphGeneGenerator.Gene; PolymorphGeneGenerator.Gene internal geneGenerator; mapping(uint256 => uint256) internal _genes; string public arweaveAssetsJSON; event TokenMorphed( uint256 indexed tokenId, uint256 oldGene, uint256 newGene, uint256 price, PolymorphEventType eventType ); event TokenMinted(uint256 indexed tokenId, uint256 newGene); event TokenBurnedAndMinted( uint256 indexed tokenId, uint256 gene ); event ArweaveAssetsJSONChanged(string arweaveAssetsJSON); enum PolymorphEventType { MINT, MORPH, TRANSFER } constructor( string memory name, string memory symbol, string memory baseURI, address payable _daoAddress, string memory _arweaveAssetsJSON ) DAOControlled(_daoAddress) ERC721PresetMinterPauserAutoId(name, symbol, baseURI) { arweaveAssetsJSON = _arweaveAssetsJSON; } function geneOf(uint256 tokenId) public view virtual override returns (uint256 gene) { return _genes[tokenId]; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721PresetMinterPauserAutoId) { ERC721PresetMinterPauserAutoId._beforeTokenTransfer(from, to, tokenId); emit TokenMorphed( tokenId, _genes[tokenId], _genes[tokenId], 0, PolymorphEventType.TRANSFER ); } function setBaseURI(string memory _baseURI) public virtual override onlyDAO { _setBaseURI(_baseURI); emit BaseURIChanged(_baseURI); } function setArweaveAssetsJSON(string memory _arweaveAssetsJSON) public virtual override onlyDAO { arweaveAssetsJSON = _arweaveAssetsJSON; emit ArweaveAssetsJSONChanged(_arweaveAssetsJSON); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/utils/Address.sol"; import "../lib/PolymorphGeneGenerator.sol"; import "../modifiers/TunnelEnabled.sol"; import "./Polymorph.sol"; import "./IPolymorphWithGeneChanger.sol"; abstract contract PolymorphWithGeneChanger is IPolymorphWithGeneChanger, Polymorph, TunnelEnabled { using PolymorphGeneGenerator for PolymorphGeneGenerator.Gene; using Address for address; uint256 constant private TOTAL_ATTRIBUTES = 38; mapping(uint256 => uint256) internal _genomeChanges; mapping(uint256 => bool) public isNotVirgin; uint256 public baseGenomeChangePrice; uint256 public randomizeGenomePrice; event BaseGenomeChangePriceChanged(uint256 newGenomeChange); event RandomizeGenomePriceChanged(uint256 newRandomizeGenomePriceChange); constructor( string memory name, string memory symbol, string memory baseURI, address payable _daoAddress, uint256 _baseGenomeChangePrice, uint256 _randomizeGenomePrice, string memory _arweaveAssetsJSON ) Polymorph(name, symbol, baseURI, _daoAddress, _arweaveAssetsJSON) { baseGenomeChangePrice = _baseGenomeChangePrice; randomizeGenomePrice = _randomizeGenomePrice; } function changeBaseGenomeChangePrice(uint256 newGenomeChangePrice) public virtual override onlyDAO { baseGenomeChangePrice = newGenomeChangePrice; emit BaseGenomeChangePriceChanged(newGenomeChangePrice); } function changeRandomizeGenomePrice(uint256 newRandomizeGenomePrice) public virtual override onlyDAO { randomizeGenomePrice = newRandomizeGenomePrice; emit RandomizeGenomePriceChanged(newRandomizeGenomePrice); } function morphGene(uint256 tokenId, uint256 genePosition) public payable virtual override nonReentrant { require(genePosition > 0, "Base character not morphable"); _beforeGenomeChange(tokenId); uint256 price = priceForGenomeChange(tokenId); require(msg.value >= price, "Insufficient funds"); uint256 oldGene = _genes[tokenId]; uint256 newTrait = geneGenerator.random() % 100; _genes[tokenId] = replaceGene(oldGene, newTrait, genePosition); _genomeChanges[tokenId]++; isNotVirgin[tokenId] = true; emit TokenMorphed( tokenId, oldGene, _genes[tokenId], price, PolymorphEventType.MORPH ); (bool transferToDaoStatus, ) = daoAddress.call{value: price}(""); require( transferToDaoStatus, "Address: unable to send value, recipient may have reverted" ); } function replaceGene( uint256 genome, uint256 replacement, uint256 genePosition ) internal pure virtual returns (uint256 newGene) { require(genePosition < TOTAL_ATTRIBUTES, "Bad gene position"); uint256 mod = 0; if (genePosition > 0) { mod = genome % (10**(genePosition * 2)); // Each gene is 2 digits long } uint256 div = (genome / (10**((genePosition + 1) * 2))) * (10**((genePosition + 1) * 2)); uint256 insert = replacement * (10**(genePosition * 2)); newGene = div + insert + mod; return newGene; } function randomizeGenome(uint256 tokenId) public payable virtual override nonReentrant { _beforeGenomeChange(tokenId); require(msg.value >= randomizeGenomePrice, "Insufficient funds"); uint256 oldGene = _genes[tokenId]; _genes[tokenId] = geneGenerator.random(); _genes[tokenId] = replaceGene(_genes[tokenId], oldGene % 100, 0); // additional step so that the base character is not changed after scrambling _genomeChanges[tokenId] = 0; isNotVirgin[tokenId] = true; emit TokenMorphed( tokenId, oldGene, _genes[tokenId], randomizeGenomePrice, PolymorphEventType.MORPH ); (bool transferToDaoStatus, ) = daoAddress.call{ value: randomizeGenomePrice }(""); require( transferToDaoStatus, "Address: unable to send value, recipient may have reverted" ); } function whitelistBridgeAddress(address bridgeAddress, bool status) external override onlyDAO { whitelistTunnelAddresses[bridgeAddress] = status; } function priceForGenomeChange(uint256 tokenId) public view virtual override returns (uint256 price) { uint256 pastChanges = _genomeChanges[tokenId]; return baseGenomeChangePrice * (1 << pastChanges); } function genomeChanges(uint256 tokenId) public view override returns (uint256 genomeChnages) { return _genomeChanges[tokenId]; } function _beforeGenomeChange(uint256 tokenId) internal view { require( !address(_msgSender()).isContract(), "Caller cannot be a contract" ); require( _msgSender() == tx.origin, "Msg sender should be original caller" ); beforeTransfer(tokenId, _msgSender()); } function beforeTransfer(uint256 tokenId, address owner) internal view { require( ownerOf(tokenId) == owner, "PolymorphWithGeneChanger: cannot change genome of token that is not own" ); } function wormholeUpdateGene( uint256 tokenId, uint256 gene, bool isVirgin, uint256 genomeChangesCount ) external nonReentrant onlyTunnel { uint256 oldGene = _genes[tokenId]; _genes[tokenId] = gene; isNotVirgin[tokenId] = isVirgin; _genomeChanges[tokenId] = genomeChangesCount; emit TokenMorphed( tokenId, oldGene, _genes[tokenId], priceForGenomeChange(tokenId), PolymorphEventType.MORPH ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IPolymorph is IERC721 { function geneOf(uint256 tokenId) external view returns (uint256 gene); function setBaseURI(string memory _baseURI) external; function setArweaveAssetsJSON(string memory _arweaveAssetsJSON) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "./ERC721Consumable.sol"; /** * @dev {ERC721} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * - token ID and URI autogeneration * * This contract uses {AccessControl} to lock permissioned functions using the * different roles - head to its documentation for details. * * The account that deploys the contract will be granted the minter and pauser * roles, as well as the default admin role, which will let it grant both minter * and pauser roles to other accounts. */ contract ERC721PresetMinterPauserAutoId is Context, AccessControlEnumerable, ERC721Consumable, ERC721Enumerable, ERC721Burnable, ERC721Pausable, ERC2981 { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); uint256 internal _tokenId; string private _baseTokenURI; event BaseURIChanged(string baseURI); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the * account that deploys the contract. * * Token URIs will be autogenerated based on `baseURI` and their token IDs. * See {ERC721-tokenURI}. */ constructor( string memory name, string memory symbol, string memory baseTokenURI ) ERC721(name, symbol) { _baseTokenURI = baseTokenURI; _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); } function _setBaseURI(string memory baseURI_) internal virtual { _baseTokenURI = baseURI_; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function baseURI() external view virtual returns (string memory) { return _baseURI(); } function lastTokenId() public view virtual returns (uint256 tokenId) { return _tokenId; } /** * @dev Creates a new token for `to`. Its token ID will be automatically * assigned (and available on the emitted {IERC721-Transfer} event), and the token * URI autogenerated based on the base URI passed at construction. * * See {ERC721-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint(address to) public virtual { require( hasRole(MINTER_ROLE, _msgSender()), "ERC721PresetMinterPauserAutoId: must have minter role to mint" ); // We cannot just use balanceOf to create the new tokenId because tokens // can be burned (destroyed), so we need a separate counter. _mint(to, _tokenId); _tokenId++; } /** * @dev Pauses all token transfers. * * See {ERC721Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public virtual { require( hasRole(PAUSER_ROLE, _msgSender()), "ERC721PresetMinterPauserAutoId: must have pauser role to pause" ); _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC721Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function unpause() public virtual { require( hasRole(PAUSER_ROLE, _msgSender()), "ERC721PresetMinterPauserAutoId: must have pauser role to unpause" ); _unpause(); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721, ERC721Consumable, ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override( AccessControlEnumerable, ERC721, ERC721Consumable, ERC721Enumerable, ERC2981 ) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; library PolymorphGeneGenerator { struct Gene { uint256 lastRandom; } function random(Gene storage g) internal returns (uint256) { g.lastRandom = uint256( keccak256( abi.encode( keccak256( abi.encodePacked( msg.sender, tx.origin, gasleft(), g.lastRandom, block.timestamp, block.number, blockhash(block.number), blockhash(block.number - 100) ) ) ) ) ); return g.lastRandom; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; abstract contract DAOControlled { address payable public daoAddress; constructor(address payable _daoAddress) { daoAddress = _daoAddress; } modifier onlyDAO() { require(msg.sender == daoAddress, "Not called from the dao"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControlEnumerable.sol"; import "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {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. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) 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) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
//SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "./IERC721Consumable.sol"; abstract contract ERC721Consumable is IERC721Consumable, ERC721 { // Mapping from token ID to consumer address mapping(uint256 => address) _tokenConsumers; /** * @dev See {IERC721Consumable-consumerOf} */ function consumerOf(uint256 _tokenId) view external returns (address) { require(_exists(_tokenId), "ERC721Consumable: consumer query for nonexistent token"); return _tokenConsumers[_tokenId]; } /** * @dev See {IERC721Consumable-changeConsumer} */ function changeConsumer(address _consumer, uint256 _tokenId) external { address owner = this.ownerOf(_tokenId); require(msg.sender == owner || msg.sender == getApproved(_tokenId) || isApprovedForAll(owner, msg.sender), "ERC721Consumable: changeConsumer caller is not owner nor approved"); _changeConsumer(owner, _consumer, _tokenId); } /** * @dev Changes the consumer * Requirement: `tokenId` must exist */ function _changeConsumer(address _owner, address _consumer, uint256 _tokenId) internal { _tokenConsumers[_tokenId] = _consumer; emit ConsumerChanged(_owner, _consumer, _tokenId); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Consumable).interfaceId || super.supportsInterface(interfaceId); } function _beforeTokenTransfer(address _from, address _to, uint256 _tokenId) internal virtual override (ERC721) { super._beforeTokenTransfer(_from, _to, _tokenId); _changeConsumer(_from, address(0), _tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) 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 // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; /// @title ERC-721 Consumer Role extension /// Note: the ERC-165 identifier for this interface is 0x953c8dfa interface IERC721Consumable is IERC721 { /// @notice Emitted when `owner` changes the `consumer` of an NFT /// The zero address for consumer indicates that there is no consumer address /// When a Transfer event emits, this also indicates that the consumer address /// for that NFT (if any) is set to none event ConsumerChanged( address indexed owner, address indexed consumer, uint256 indexed tokenId ); /// @notice Get the consumer address of an NFT /// @dev The zero address indicates that there is no consumer /// Throws if `_tokenId` is not a valid NFT /// @param _tokenId The NFT to get the consumer address for /// @return The consumer address for this NFT, or the zero address if there is none function consumerOf(uint256 _tokenId) external view returns (address); /// @notice Change or reaffirm the consumer address for an NFT /// @dev The zero address indicates there is no consumer address /// Throws unless `msg.sender` is the current NFT owner, an authorised /// operator of the current owner or approved address /// Throws if `_tokenId` is not valid NFT /// @param _consumer The new consumer of the NFT function changeConsumer(address _consumer, uint256 _tokenId) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; abstract contract TunnelEnabled { mapping(address => bool) public whitelistTunnelAddresses; modifier onlyTunnel() { require( whitelistTunnelAddresses[msg.sender], "Not called from the tunnel" ); _; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; interface IPolymorphWithGeneChanger { function morphGene(uint256 tokenId, uint256 genePosition) external payable; function randomizeGenome(uint256 tokenId) external payable; function priceForGenomeChange(uint256 tokenId) external view returns (uint256 price); function changeBaseGenomeChangePrice(uint256 newGenomeChangePrice) external; function changeRandomizeGenomePrice(uint256 newRandomizeGenomePrice) external; function whitelistBridgeAddress(address bridgeAddress, bool status) external; function genomeChanges(uint256 tokenId) external view returns (uint256 genomeChnages); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address payable","name":"_daoAddress","type":"address"},{"internalType":"uint96","name":"_royaltyFee","type":"uint96"},{"internalType":"uint256","name":"_baseGenomeChangePrice","type":"uint256"},{"internalType":"uint256","name":"_polymorphPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_randomizeGenomePrice","type":"uint256"},{"internalType":"uint256","name":"_bulkBuyLimit","type":"uint256"},{"internalType":"string","name":"_arweaveAssetsJSON","type":"string"},{"internalType":"address","name":"_polymorphV1Address","type":"address"}],"internalType":"struct PolymorphRoot.Params","name":"params","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"arweaveAssetsJSON","type":"string"}],"name":"ArweaveAssetsJSONChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newGenomeChange","type":"uint256"}],"name":"BaseGenomeChangePriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newBulkBuyLimit","type":"uint256"}],"name":"BulkBuyLimitChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"consumer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ConsumerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newReceiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"newDefaultRoyalty","type":"uint96"}],"name":"DefaultRoyaltyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"MaxSupplyChanged","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":"uint256","name":"newPolymorphPrice","type":"uint256"}],"name":"PolymorphPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRandomizeGenomePriceChange","type":"uint256"}],"name":"RandomizeGenomePriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gene","type":"uint256"}],"name":"TokenBurnedAndMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newGene","type":"uint256"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldGene","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newGene","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"enum Polymorph.PolymorphEventType","name":"eventType","type":"uint8"}],"name":"TokenMorphed","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[],"name":"arweaveAssetsJSON","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseGenomeChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bulkBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"bulkBuyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnAndMintNewPolymorph","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"burnCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newGenomeChangePrice","type":"uint256"}],"name":"changeBaseGenomeChangePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_consumer","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"changeConsumer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRandomizeGenomePrice","type":"uint256"}],"name":"changeRandomizeGenomePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"consumerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"geneOf","outputs":[{"internalType":"uint256","name":"gene","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"genomeChanges","outputs":[{"internalType":"uint256","name":"genomeChnages","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isNotVirgin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenId","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"genePosition","type":"uint256"}],"name":"morphGene","outputs":[],"stateMutability":"payable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"polymorphPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"polymorphV1Contract","outputs":[{"internalType":"contract Polymorph","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"priceForGenomeChange","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"randomizeGenome","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"randomizeGenomePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"_arweaveAssetsJSON","type":"string"}],"name":"setArweaveAssetsJSON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bulkBuyLimit","type":"uint256"}],"name":"setBulkBuyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"royaltyFee","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPolymorphPrice","type":"uint256"}],"name":"setPolymorphPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"bridgeAddress","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"whitelistBridgeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistTunnelAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"gene","type":"uint256"},{"internalType":"bool","name":"isVirgin","type":"bool"},{"internalType":"uint256","name":"genomeChangesCount","type":"uint256"}],"name":"wormholeUpdateGene","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620053c2380380620053c2833981016040819052620000349162000748565b80600001518160200151826040015183606001518460a00151856101000151866101400151868686868481858585828281600290805190602001906200007c92919062000563565b5080516200009290600390602084019062000563565b5050600d805460ff19169055508051620000b490601190602084019062000563565b50620000c260003362000205565b620000ee7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000205565b6200011a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a3362000205565b5050600160125550601380546001600160a01b0319166001600160a01b0392909216919091179055620001546200014e3390565b62000215565b80516200016990601790602084019062000563565b505050601b95909555505050601c555050505060c0820151601d555060e0810151601e55610120810151601f55610160810151602080546001600160a01b0319166001600160a01b03909216919091178155620001d29060159062000267811b6200291617901c565b50601054620001e59061271090620008be565b60105560608101516080820151620001fe919062000309565b506200092f565b6200021182826200040e565b5050565b601480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600033325a8454424380406200027f606483620008d9565b6040516001600160601b03196060998a1b811660208301529790981b909616603488015260488701949094526068860192909252608885015260a884015260c88301524060e88201526101080160408051601f198184030181528282528051602091820120908301520160408051601f198184030181529190528051602090910120918290555090565b6127106001600160601b03821611156200037d5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620003d55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000374565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600e55565b6200042582826200045160201b620029bb1760201c565b60008281526001602090815260409091206200044c91839062002a3f620004f1821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000211576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620004ad3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000508836001600160a01b03841662000511565b90505b92915050565b60008181526001830160205260408120546200055a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200050b565b5060006200050b565b8280546200057190620008f3565b90600052602060002090601f016020900481019282620005955760008555620005e0565b82601f10620005b057805160ff1916838001178555620005e0565b82800160010185558215620005e0579182015b82811115620005e0578251825591602001919060010190620005c3565b50620005ee929150620005f2565b5090565b5b80821115620005ee5760008155600101620005f3565b634e487b7160e01b600052604160045260246000fd5b60405161018081016001600160401b038111828210171562000645576200064562000609565b60405290565b604051601f8201601f191681016001600160401b038111828210171562000676576200067662000609565b604052919050565b600082601f8301126200069057600080fd5b81516001600160401b03811115620006ac57620006ac62000609565b6020620006c2601f8301601f191682016200064b565b8281528582848701011115620006d757600080fd5b60005b83811015620006f7578581018301518282018401528201620006da565b83811115620007095760008385840101525b5095945050505050565b80516001600160a01b03811681146200072b57600080fd5b919050565b80516001600160601b03811681146200072b57600080fd5b6000602082840312156200075b57600080fd5b81516001600160401b03808211156200077357600080fd5b9083019061018082860312156200078957600080fd5b620007936200061f565b825182811115620007a357600080fd5b620007b1878286016200067e565b825250602083015182811115620007c757600080fd5b620007d5878286016200067e565b602083015250604083015182811115620007ee57600080fd5b620007fc878286016200067e565b604083015250620008106060840162000713565b6060820152620008236080840162000730565b608082015260a083015160a082015260c083015160c082015260e083015160e082015261010080840151818301525061012080840151818301525061014080840151838111156200087357600080fd5b62000881888287016200067e565b82840152505061016091506200089982840162000713565b91810191909152949350505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115620008d457620008d4620008a8565b500190565b600082821015620008ee57620008ee620008a8565b500390565b600181811c908216806200090857607f821691505b6020821081036200092957634e487b7160e01b600052602260045260246000fd5b50919050565b614a83806200093f6000396000f3fe6080604052600436106103f35760003560e01c80636c0360eb11610208578063b88d4fde11610118578063d5a83d3e116100ab578063e985e9c51161007a578063e985e9c514610c04578063ec9c074c14610c24578063f2fde38b14610c3a578063f528a62714610c5a578063f84ddf0b14610c6f57600080fd5b8063d5a83d3e14610b87578063d5abeb0114610b9a578063e589233114610bb0578063e63ab1e914610bd057600080fd5b8063ce14617d116100e7578063ce14617d14610afd578063d45351e514610b13578063d539139314610b33578063d547741f14610b6757600080fd5b8063b88d4fde14610a6d578063c87b56dd14610a8d578063ca15c87314610aad578063cccb6d0d14610acd57600080fd5b80639010d07c1161019b5780639e7bb4671161016a5780639e7bb467146109ef578063a217fddf14610a02578063a22cb46514610a17578063a49bccca14610a37578063ab39a3c814610a4d57600080fd5b80639010d07c1461097a57806391d148541461099a57806395d89b41146109ba57806398c5c078146109cf57600080fd5b806370b5aecb116101d757806370b5aecb14610912578063715018a6146109325780638456cb59146109475780638da5cb5b1461095c57600080fd5b80636c0360eb146108a75780636f8b44b0146108bc578063704ec036146108dc57806370a08231146108f257600080fd5b80632f745c591161030357806356a5c926116102965780635e468dfd116102655780635e468dfd146107fa5780636352211e1461081a5780636a1c03dc1461083a5780636a5be6861461085a5780636a6278421461088757600080fd5b806356a5c9261461078f57806356b1b300146107a2578063572a1070146107c25780635c975abb146107e257600080fd5b806342966c68116102d257806342966c68146106ff5780634df774161461071f5780634f6ccce71461074f57806355f804b31461076f57600080fd5b80632f745c591461068a57806336568abe146106aa5780633f4ba83a146106ca57806342842e0e146106df57600080fd5b806318160ddd11610386578063248a9ca311610355578063248a9ca3146105bb57806325b081ff146105eb578063289ea0a91461060b5780632a55205a1461062b5780632f2ff15d1461066a57600080fd5b806318160ddd146105395780632131c68c1461054e57806323b872dd1461056e57806323c8d07a1461058e57600080fd5b8063081812fc116103c2578063081812fc1461049e578063095ea7b3146104d65780631249c58b146104f657806315889e43146104fe57600080fd5b8063017f1e341461040757806301ffc9a71461042757806304634d8d1461045c57806306fdde031461047c57600080fd5b3661040257610400610c84565b005b600080fd5b34801561041357600080fd5b50610400610422366004614089565b610e5f565b34801561043357600080fd5b506104476104423660046140b8565b610ec5565b60405190151581526020015b60405180910390f35b34801561046857600080fd5b506104006104773660046140ea565b610ed6565b34801561048857600080fd5b50610491610f58565b6040516104539190614187565b3480156104aa57600080fd5b506104be6104b9366004614089565b610fea565b6040516001600160a01b039091168152602001610453565b3480156104e257600080fd5b506104006104f136600461419a565b61107f565b610400610c84565b34801561050a57600080fd5b5061052b6105193660046141c6565b60216020526000908152604090205481565b604051908152602001610453565b34801561054557600080fd5b50600b5461052b565b34801561055a57600080fd5b506013546104be906001600160a01b031681565b34801561057a57600080fd5b506104006105893660046141e3565b611194565b34801561059a57600080fd5b5061052b6105a9366004614089565b60009081526019602052604090205490565b3480156105c757600080fd5b5061052b6105d6366004614089565b60009081526020819052604090206001015490565b3480156105f757600080fd5b506020546104be906001600160a01b031681565b34801561061757600080fd5b50610400610626366004614089565b6111c6565b34801561063757600080fd5b5061064b610646366004614224565b611225565b604080516001600160a01b039093168352602083019190915201610453565b34801561067657600080fd5b50610400610685366004614246565b6112d1565b34801561069657600080fd5b5061052b6106a536600461419a565b6112f6565b3480156106b657600080fd5b506104006106c5366004614246565b61138c565b3480156106d657600080fd5b5061040061140a565b3480156106eb57600080fd5b506104006106fa3660046141e3565b6114b2565b34801561070b57600080fd5b5061040061071a366004614089565b6114cd565b34801561072b57600080fd5b5061044761073a366004614089565b601a6020526000908152604090205460ff1681565b34801561075b57600080fd5b5061052b61076a366004614089565b611547565b34801561077b57600080fd5b5061040061078a3660046142f7565b6115da565b61040061079d366004614224565b61163c565b3480156107ae57600080fd5b506104006107bd3660046142f7565b611819565b3480156107ce57600080fd5b506104006107dd366004614340565b611886565b3480156107ee57600080fd5b50600d5460ff16610447565b34801561080657600080fd5b50610400610815366004614089565b611b45565b34801561082657600080fd5b506104be610835366004614089565b611ba4565b34801561084657600080fd5b506104006108553660046143ca565b611c1b565b34801561086657600080fd5b5061052b610875366004614089565b60009081526016602052604090205490565b34801561089357600080fd5b506104006108a23660046141c6565b611d1d565b3480156108b357600080fd5b50610491611d65565b3480156108c857600080fd5b506104006108d7366004614089565b611d74565b3480156108e857600080fd5b5061052b601d5481565b3480156108fe57600080fd5b5061052b61090d3660046141c6565b611dd3565b34801561091e57600080fd5b5061040061092d36600461419a565b611e5a565b34801561093e57600080fd5b50610400611f86565b34801561095357600080fd5b50610400611fea565b34801561096857600080fd5b506014546001600160a01b03166104be565b34801561098657600080fd5b506104be610995366004614224565b61208e565b3480156109a657600080fd5b506104476109b5366004614246565b6120ad565b3480156109c657600080fd5b506104916120d6565b3480156109db57600080fd5b506104006109ea366004614089565b6120e5565b6104006109fd366004614089565b612144565b348015610a0e57600080fd5b5061052b600081565b348015610a2357600080fd5b50610400610a32366004614407565b6122b1565b348015610a4357600080fd5b5061052b601f5481565b348015610a5957600080fd5b50610400610a68366004614407565b6122bc565b348015610a7957600080fd5b50610400610a8836600461443c565b612311565b348015610a9957600080fd5b50610491610aa8366004614089565b612349565b348015610ab957600080fd5b5061052b610ac8366004614089565b612423565b348015610ad957600080fd5b50610447610ae83660046141c6565b60186020526000908152604090205460ff1681565b348015610b0957600080fd5b5061052b601b5481565b348015610b1f57600080fd5b5061052b610b2e366004614089565b61243a565b348015610b3f57600080fd5b5061052b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610b7357600080fd5b50610400610b82366004614246565b61245a565b610400610b95366004614089565b61247f565b348015610ba657600080fd5b5061052b601e5481565b348015610bbc57600080fd5b506104be610bcb366004614089565b6126f3565b348015610bdc57600080fd5b5061052b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b348015610c1057600080fd5b50610447610c1f3660046144bc565b612792565b348015610c3057600080fd5b5061052b601c5481565b348015610c4657600080fd5b50610400610c553660046141c6565b6127c0565b348015610c6657600080fd5b50610491612888565b348015610c7b57600080fd5b5060105461052b565b600260125403610caf5760405162461bcd60e51b8152600401610ca6906144ea565b60405180910390fd5b6002601255601e5460105410610cfe5760405162461bcd60e51b8152602060048201526014602482015273151bdd185b081cdd5c1c1b1e481c995858da195960621b6044820152606401610ca6565b601d54341015610d205760405162461bcd60e51b8152600401610ca690614521565b60108054906000610d3083614563565b9190505550610d3f6015612916565b601054600090815260166020526040902055610d5e335b601054612a54565b601354601d546040516000926001600160a01b031691908381818185875af1925050503d8060008114610dad576040519150601f19603f3d011682016040523d82523d6000602084013e610db2565b606091505b5050905080610dd35760405162461bcd60e51b8152600401610ca69061457c565b6010546000818152601660209081526040918290205491519182527f5f7666687319b40936f33c188908d86aea154abd3f4127b4fa0a3f04f303c7da910160405180910390a260105460008181526016602052604080822054601d549151600080516020614a2e83398151915293610e4f9390929183906145fb565b60405180910390a2506001601255565b6013546001600160a01b03163314610e895760405162461bcd60e51b8152600401610ca690614626565b601d8190556040518181527f6a08b3bba14e54ee218389c7c7444e619f3897465dc06757938cfd01a6957f6c906020015b60405180910390a150565b6000610ed082612ba2565b92915050565b6013546001600160a01b03163314610f005760405162461bcd60e51b8152600401610ca690614626565b610f0a8282612bc7565b604080516001600160a01b03841681526001600160601b03831660208201527fe5ed39918c4170e24337471011e1ccdeb5e4a433f53fae4eb2ad73e03cd21bda910160405180910390a15050565b606060028054610f679061465d565b80601f0160208091040260200160405190810160405280929190818152602001828054610f939061465d565b8015610fe05780601f10610fb557610100808354040283529160200191610fe0565b820191906000526020600020905b815481529060010190602001808311610fc357829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166110635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ca6565b506000908152600660205260409020546001600160a01b031690565b600061108a82611ba4565b9050806001600160a01b0316836001600160a01b0316036110f75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ca6565b336001600160a01b038216148061111357506111138133612792565b6111855760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ca6565b61118f8383612cc4565b505050565b61119f335b82612d32565b6111bb5760405162461bcd60e51b8152600401610ca690614697565b61118f838383612e09565b6013546001600160a01b031633146111f05760405162461bcd60e51b8152600401610ca690614626565b601b8190556040518181527fb1d78271daba9a366098d40b64d642a1399cabaa22c5234bacc87e92cef82ae690602001610eba565b6000828152600f602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161129a575060408051808201909152600e546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112b9906001600160601b0316876146e8565b6112c3919061471d565b915196919550909350505050565b6000828152602081905260409020600101546112ec81612fb0565b61118f8383612fba565b600061130183611dd3565b82106113635760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ca6565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b6001600160a01b03811633146113fc5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610ca6565b6114068282612fdc565b5050565b6114347f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336120ad565b6114a8576040805162461bcd60e51b81526020600482015260248101919091527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f20756e70617573656064820152608401610ca6565b6114b0612ffe565b565b61118f83838360405180602001604052806000815250612311565b6114d633611199565b61153b5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610ca6565b61154481613091565b50565b6000611552600b5490565b82106115b55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ca6565b600b82815481106115c8576115c8614731565b90600052602060002001549050919050565b6013546001600160a01b031633146116045760405162461bcd60e51b8152600401610ca690614626565b61160d81613138565b7f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf681604051610eba9190614187565b60026012540361165e5760405162461bcd60e51b8152600401610ca6906144ea565b6002601255806116b05760405162461bcd60e51b815260206004820152601c60248201527f4261736520636861726163746572206e6f74206d6f72706861626c65000000006044820152606401610ca6565b6116b98261314b565b60006116c48361243a565b9050803410156116e65760405162461bcd60e51b8152600401610ca690614521565b6000838152601660205260408120549060646117026015612916565b61170c9190614747565b90506117198282866131ff565b6000868152601660209081526040808320939093556019905290812080549161174183614563565b90915550506000858152601a60209081526040808320805460ff191660019081179091556016909252918290205491518792600080516020614a2e833981519152926117919287929189916145fb565b60405180910390a26013546040516000916001600160a01b03169085908381818185875af1925050503d80600081146117e6576040519150601f19603f3d011682016040523d82523d6000602084013e6117eb565b606091505b505090508061180c5760405162461bcd60e51b8152600401610ca69061457c565b5050600160125550505050565b6013546001600160a01b031633146118435760405162461bcd60e51b8152600401610ca690614626565b8051611856906017906020840190613ff0565b507f4a826ca029d05af64e411551e15f7ee1e70af0b9bc43a31154ace86a863397b481604051610eba9190614187565b6002601254036118a85760405162461bcd60e51b8152600401610ca6906144ea565b600260125560005b81811015611b3b5760008383838181106118cc576118cc614731565b602080546040516331a9108f60e11b81529290910293909301356004820181905293506001600160a01b0390921691636352211e9150602401602060405180830381865afa158015611922573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611946919061475b565b6001600160a01b0316336001600160a01b03161461196357600080fd5b60205460405163352df34360e11b8152600481018390526000916001600160a01b031690636a5be68690602401602060405180830381865afa1580156119ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d19190614778565b602054604051630852cd8d60e31b8152600481018590529192506001600160a01b0316906342966c6890602401600060405180830381600087803b158015611a1857600080fd5b505af1158015611a2c573d6000803e3d6000fd5b50505050600160216000611a3d3390565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611a6c9190614791565b90915550506000828152601660205260409020819055611a8c3383612a54565b817f5f7666687319b40936f33c188908d86aea154abd3f4127b4fa0a3f04f303c7da6016600085815260200190815260200160002054604051611ad191815260200190565b60405180910390a2817fb583e10e1b691f0fec5bb6e5bafd39038a17365ca548d3beb76c0822618055836016600085815260200190815260200160002054604051611b1e91815260200190565b60405180910390a250508080611b3390614563565b9150506118b0565b5050600160125550565b6013546001600160a01b03163314611b6f5760405162461bcd60e51b8152600401610ca690614626565b601f8190556040518181527fa0e0113404674c6f545b966e8ec54db3066a6c720a0054f0bc4b0c900cfff24390602001610eba565b6000818152600460205260408120546001600160a01b031680610ed05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ca6565b600260125403611c3d5760405162461bcd60e51b8152600401610ca6906144ea565b60026012553360009081526018602052604090205460ff16611ca15760405162461bcd60e51b815260206004820152601a60248201527f4e6f742063616c6c65642066726f6d207468652074756e6e656c0000000000006044820152606401610ca6565b60008481526016602081815260408084208054888255601a8452828620805460ff1916891515179055601984529190942085905591905290548590600080516020614a2e833981519152908390611cf78461243a565b6001604051611d0994939291906145fb565b60405180910390a250506001601255505050565b60405162461bcd60e51b815260206004820152601760248201527f53686f756c64206e6f74207573652074686973206f6e650000000000000000006044820152606401610ca6565b6060611d6f61330e565b905090565b6013546001600160a01b03163314611d9e5760405162461bcd60e51b8152600401610ca690614626565b601e8190556040518181527f28a10a2e0b5582da7164754cb994f6214b8af6aa7f7e003305fbc09e7106c51390602001610eba565b60006001600160a01b038216611e3e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ca6565b506001600160a01b031660009081526005602052604090205490565b6040516331a9108f60e11b8152600481018290526000903090636352211e90602401602060405180830381865afa158015611e99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebd919061475b565b9050336001600160a01b0382161480611eef5750611eda82610fea565b6001600160a01b0316336001600160a01b0316145b80611eff5750611eff8133612792565b611f7b5760405162461bcd60e51b815260206004820152604160248201527f455243373231436f6e73756d61626c653a206368616e6765436f6e73756d657260448201527f2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656064820152601960fa1b608482015260a401610ca6565b61118f81848461331d565b6014546001600160a01b03163314611fe05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca6565b6114b06000613379565b6120147f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336120ad565b6120865760405162461bcd60e51b815260206004820152603e60248201527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f20706175736500006064820152608401610ca6565b6114b06133cb565b60008281526001602052604081206120a69083613446565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b606060038054610f679061465d565b6013546001600160a01b0316331461210f5760405162461bcd60e51b8152600401610ca690614626565b601c8190556040518181527fff4da8d01e7184cc8c9d6c57d64b336b1de6d676b6215408967bd071c8da7e3d90602001610eba565b6002601254036121665760405162461bcd60e51b8152600401610ca6906144ea565b60026012556121748161314b565b601c543410156121965760405162461bcd60e51b8152600401610ca690614521565b6000818152601660205260409020546121af6015612916565b60008381526016602052604090208190556121d6906121cf606484614747565b60006131ff565b600083815260166020818152604080842094855560198252808420849055601a825292839020805460ff191660019081179091559190529154601c5491518593600080516020614a2e833981519152936122349387939092906145fb565b60405180910390a2601354601c546040516000926001600160a01b031691908381818185875af1925050503d806000811461228b576040519150601f19603f3d011682016040523d82523d6000602084013e612290565b606091505b5050905080611b3b5760405162461bcd60e51b8152600401610ca69061457c565b611406338383613452565b6013546001600160a01b031633146122e65760405162461bcd60e51b8152600401610ca690614626565b6001600160a01b03919091166000908152601860205260409020805460ff1916911515919091179055565b61231b3383612d32565b6123375760405162461bcd60e51b8152600401610ca690614697565b61234384848484613520565b50505050565b6000818152600460205260409020546060906001600160a01b03166123c85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ca6565b60006123d261330e565b905060008151116123f257604051806020016040528060008152506120a6565b806123fc84613553565b60405160200161240d9291906147a9565b6040516020818303038152906040529392505050565b6000818152600160205260408120610ed090613654565b600081815260196020526040812054601b546120a6906001831b906146e8565b60008281526020819052604090206001015461247581612fb0565b61118f8383612fdc565b6002601254036124a15760405162461bcd60e51b8152600401610ca6906144ea565b6002601255601f5481111561250b5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f742062756c6b20627579206d6f7265207468616e20746865207072604482015269195cd95d081b1a5b5a5d60b21b6064820152608401610ca6565b601e548160105461251c9190614791565b11156125615760405162461bcd60e51b8152602060048201526014602482015273151bdd185b081cdd5c1c1b1e481c995858da195960621b6044820152606401610ca6565b80601d5461256f91906146e8565b34101561258e5760405162461bcd60e51b8152600401610ca690614521565b60005b8181101561266957601080549060006125a983614563565b91905055506125b86015612916565b6010546000908152601660205260409020556125d333610d56565b6010546000818152601660209081526040918290205491519182527f5f7666687319b40936f33c188908d86aea154abd3f4127b4fa0a3f04f303c7da910160405180910390a260105460008181526016602052604080822054601d549151600080516020614a2e8339815191529361264f9390929183906145fb565b60405180910390a28061266181614563565b915050612591565b50601354601d546000916001600160a01b0316906126889084906146e8565b604051600081818185875af1925050503d80600081146126c4576040519150601f19603f3d011682016040523d82523d6000602084013e6126c9565b606091505b50509050806126ea5760405162461bcd60e51b8152600401610ca69061457c565b50506001601255565b6000818152600460205260408120546001600160a01b03166127765760405162461bcd60e51b815260206004820152603660248201527f455243373231436f6e73756d61626c653a20636f6e73756d6572207175657279604482015275103337b9103737b732bc34b9ba32b73a103a37b5b2b760511b6064820152608401610ca6565b506000908152600860205260409020546001600160a01b031690565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6014546001600160a01b0316331461281a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca6565b6001600160a01b03811661287f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ca6565b61154481613379565b601780546128959061465d565b80601f01602080910402602001604051908101604052809291908181526020018280546128c19061465d565b801561290e5780601f106128e35761010080835404028352916020019161290e565b820191906000526020600020905b8154815290600101906020018083116128f157829003601f168201915b505050505081565b600033325a84544243804061292c6064836147d8565b6040516bffffffffffffffffffffffff196060998a1b811660208301529790981b909616603488015260488701949094526068860192909252608885015260a884015260c88301524060e88201526101080160408051601f198184030181528282528051602091820120908301520160408051601f198184030181529190528051602090910120918290555090565b6129c582826120ad565b611406576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556129fb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006120a6836001600160a01b03841661365e565b6001600160a01b038216612aaa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ca6565b6000818152600460205260409020546001600160a01b031615612b0f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ca6565b612b1b600083836136ad565b6001600160a01b0382166000908152600560205260408120805460019290612b44908490614791565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b0319821663152a902d60e11b1480610ed05750610ed0826136f9565b6127106001600160601b0382161115612c355760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610ca6565b6001600160a01b038216612c8b5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ca6565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600e55565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612cf982611ba4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316612dab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ca6565b6000612db683611ba4565b9050806001600160a01b0316846001600160a01b03161480612ddd5750612ddd8185612792565b80612e015750836001600160a01b0316612df684610fea565b6001600160a01b0316145b949350505050565b826001600160a01b0316612e1c82611ba4565b6001600160a01b031614612e805760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610ca6565b6001600160a01b038216612ee25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ca6565b612eed8383836136ad565b612ef8600082612cc4565b6001600160a01b0383166000908152600560205260408120805460019290612f219084906147d8565b90915550506001600160a01b0382166000908152600560205260408120805460019290612f4f908490614791565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611544813361371e565b612fc482826129bb565b600082815260016020526040902061118f9082612a3f565b612fe68282613782565b600082815260016020526040902061118f90826137e7565b600d5460ff166130475760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610ca6565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061309c82611ba4565b90506130aa816000846136ad565b6130b5600083612cc4565b6001600160a01b03811660009081526005602052604081208054600192906130de9084906147d8565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8051611406906011906020840190613ff0565b333b1561319a5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c65722063616e6e6f74206265206120636f6e747261637400000000006044820152606401610ca6565b3332146131f55760405162461bcd60e51b8152602060048201526024808201527f4d73672073656e6465722073686f756c64206265206f726967696e616c206361604482015263363632b960e11b6064820152608401610ca6565b61154481336137fc565b6000602682106132455760405162461bcd60e51b81526020600482015260116024820152702130b21033b2b732903837b9b4ba34b7b760791b6044820152606401610ca6565b60008215613270576132588360026146e8565b61326390600a6148d3565b61326d9086614747565b90505b600061327d846001614791565b6132889060026146e8565b61329390600a6148d3565b61329e856001614791565b6132a99060026146e8565b6132b490600a6148d3565b6132be908861471d565b6132c891906146e8565b905060006132d78560026146e8565b6132e290600a6148d3565b6132ec90876146e8565b9050826132f98284614791565b6133039190614791565b979650505050505050565b606060118054610f679061465d565b60008181526008602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917f42ef856c2602f37ce625d252830bed486c5c8e9a4de8aa36cc3d15f304eb662b91a4505050565b601480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600d5460ff16156134115760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ca6565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130743390565b60006120a6838361389b565b816001600160a01b0316836001600160a01b0316036134b35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ca6565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61352b848484612e09565b613537848484846138c5565b6123435760405162461bcd60e51b8152600401610ca6906148df565b60608160000361357a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156135a4578061358e81614563565b915061359d9050600a8361471d565b915061357e565b60008167ffffffffffffffff8111156135bf576135bf61426b565b6040519080825280601f01601f1916602001820160405280156135e9576020820181803683370190505b5090505b8415612e01576135fe6001836147d8565b915061360b600a86614747565b613616906030614791565b60f81b81838151811061362b5761362b614731565b60200101906001600160f81b031916908160001a90535061364d600a8661471d565b94506135ed565b6000610ed0825490565b60008181526001830160205260408120546136a557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ed0565b506000610ed0565b6136b88383836139c6565b6000818152601660205260408082205490518392600080516020614a2e833981519152926136ec92909182916002906145fb565b60405180910390a2505050565b60006001600160e01b0319821663780e9d6360e01b1480610ed05750610ed0826139d1565b61372882826120ad565b61140657613740816001600160a01b031660146139f6565b61374b8360206139f6565b60405160200161375c929190614931565b60408051601f198184030181529082905262461bcd60e51b8252610ca691600401614187565b61378c82826120ad565b15611406576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006120a6836001600160a01b038416613b92565b806001600160a01b031661380f83611ba4565b6001600160a01b0316146114065760405162461bcd60e51b815260206004820152604760248201527f506f6c796d6f7270685769746847656e654368616e6765723a2063616e6e6f7460448201527f206368616e67652067656e6f6d65206f6620746f6b656e2074686174206973206064820152663737ba1037bbb760c91b608482015260a401610ca6565b60008260000182815481106138b2576138b2614731565b9060005260206000200154905092915050565b60006001600160a01b0384163b156139bb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906139099033908990889088906004016149a6565b6020604051808303816000875af1925050508015613944575060408051601f3d908101601f19168201909252613941918101906149e3565b60015b6139a1573d808015613972576040519150601f19603f3d011682016040523d82523d6000602084013e613977565b606091505b5080516000036139995760405162461bcd60e51b8152600401610ca6906148df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612e01565b506001949350505050565b61118f838383613c85565b60006001600160e01b03198216634a9e46fd60e11b1480610ed05750610ed082613cf7565b60606000613a058360026146e8565b613a10906002614791565b67ffffffffffffffff811115613a2857613a2861426b565b6040519080825280601f01601f191660200182016040528015613a52576020820181803683370190505b509050600360fc1b81600081518110613a6d57613a6d614731565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613a9c57613a9c614731565b60200101906001600160f81b031916908160001a9053506000613ac08460026146e8565b613acb906001614791565b90505b6001811115613b43576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613aff57613aff614731565b1a60f81b828281518110613b1557613b15614731565b60200101906001600160f81b031916908160001a90535060049490941c93613b3c81614a00565b9050613ace565b5083156120a65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ca6565b60008181526001830160205260408120548015613c7b576000613bb66001836147d8565b8554909150600090613bca906001906147d8565b9050818114613c2f576000866000018281548110613bea57613bea614731565b9060005260206000200154905080876000018481548110613c0d57613c0d614731565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613c4057613c40614a17565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610ed0565b6000915050610ed0565b613c90838383613d37565b600d5460ff161561118f5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610ca6565b60006001600160e01b031982166380ac58cd60e01b1480613d2857506001600160e01b03198216635b5e139f60e01b145b80610ed05750610ed082613dfa565b613d42838383613e1f565b6001600160a01b038316613d9d57613d9881600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b613dc0565b816001600160a01b0316836001600160a01b031614613dc057613dc08382613e2b565b6001600160a01b038216613dd75761118f81613ec8565b826001600160a01b0316826001600160a01b03161461118f5761118f8282613f77565b60006001600160e01b03198216635a05180f60e01b1480610ed05750610ed082613fbb565b61118f8360008361331d565b60006001613e3884611dd3565b613e4291906147d8565b6000838152600a6020526040902054909150808214613e95576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b54600090613eda906001906147d8565b6000838152600c6020526040812054600b8054939450909284908110613f0257613f02614731565b9060005260206000200154905080600b8381548110613f2357613f23614731565b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b805480613f5b57613f5b614a17565b6001900381819060005260206000200160009055905550505050565b6000613f8283611dd3565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b60006001600160e01b03198216637965db0b60e01b1480610ed057506301ffc9a760e01b6001600160e01b0319831614610ed0565b828054613ffc9061465d565b90600052602060002090601f01602090048101928261401e5760008555614064565b82601f1061403757805160ff1916838001178555614064565b82800160010185558215614064579182015b82811115614064578251825591602001919060010190614049565b50614070929150614074565b5090565b5b808211156140705760008155600101614075565b60006020828403121561409b57600080fd5b5035919050565b6001600160e01b03198116811461154457600080fd5b6000602082840312156140ca57600080fd5b81356120a6816140a2565b6001600160a01b038116811461154457600080fd5b600080604083850312156140fd57600080fd5b8235614108816140d5565b915060208301356001600160601b038116811461412457600080fd5b809150509250929050565b60005b8381101561414a578181015183820152602001614132565b838111156123435750506000910152565b6000815180845261417381602086016020860161412f565b601f01601f19169290920160200192915050565b6020815260006120a6602083018461415b565b600080604083850312156141ad57600080fd5b82356141b8816140d5565b946020939093013593505050565b6000602082840312156141d857600080fd5b81356120a6816140d5565b6000806000606084860312156141f857600080fd5b8335614203816140d5565b92506020840135614213816140d5565b929592945050506040919091013590565b6000806040838503121561423757600080fd5b50508035926020909101359150565b6000806040838503121561425957600080fd5b823591506020830135614124816140d5565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561429c5761429c61426b565b604051601f8501601f19908116603f011681019082821181831017156142c4576142c461426b565b816040528093508581528686860111156142dd57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561430957600080fd5b813567ffffffffffffffff81111561432057600080fd5b8201601f8101841361433157600080fd5b612e0184823560208401614281565b6000806020838503121561435357600080fd5b823567ffffffffffffffff8082111561436b57600080fd5b818501915085601f83011261437f57600080fd5b81358181111561438e57600080fd5b8660208260051b85010111156143a357600080fd5b60209290920196919550909350505050565b803580151581146143c557600080fd5b919050565b600080600080608085870312156143e057600080fd5b84359350602085013592506143f7604086016143b5565b9396929550929360600135925050565b6000806040838503121561441a57600080fd5b8235614425816140d5565b9150614433602084016143b5565b90509250929050565b6000806000806080858703121561445257600080fd5b843561445d816140d5565b9350602085013561446d816140d5565b925060408501359150606085013567ffffffffffffffff81111561449057600080fd5b8501601f810187136144a157600080fd5b6144b087823560208401614281565b91505092959194509250565b600080604083850312156144cf57600080fd5b82356144da816140d5565b91506020830135614124816140d5565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600182016145755761457561454d565b5060010190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b600381106145f757634e487b7160e01b600052602160045260246000fd5b9052565b84815260208101849052604081018390526080810161461d60608301846145d9565b95945050505050565b60208082526017908201527f4e6f742063616c6c65642066726f6d207468652064616f000000000000000000604082015260600190565b600181811c9082168061467157607f821691505b60208210810361469157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008160001904831182151516156147025761470261454d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261472c5761472c614707565b500490565b634e487b7160e01b600052603260045260246000fd5b60008261475657614756614707565b500690565b60006020828403121561476d57600080fd5b81516120a6816140d5565b60006020828403121561478a57600080fd5b5051919050565b600082198211156147a4576147a461454d565b500190565b600083516147bb81846020880161412f565b8351908301906147cf81836020880161412f565b01949350505050565b6000828210156147ea576147ea61454d565b500390565b600181815b8085111561482a5781600019048211156148105761481061454d565b8085161561481d57918102915b93841c93908002906147f4565b509250929050565b60008261484157506001610ed0565b8161484e57506000610ed0565b8160018114614864576002811461486e5761488a565b6001915050610ed0565b60ff84111561487f5761487f61454d565b50506001821b610ed0565b5060208310610133831016604e8410600b84101617156148ad575081810a610ed0565b6148b783836147ef565b80600019048211156148cb576148cb61454d565b029392505050565b60006120a68383614832565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161496981601785016020880161412f565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161499a81602884016020880161412f565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906149d99083018461415b565b9695505050505050565b6000602082840312156149f557600080fd5b81516120a6816140a2565b600081614a0f57614a0f61454d565b506000190190565b634e487b7160e01b600052603160045260246000fdfe8c0bdd7bca83c4e0c810cbecf44bc544a9dc0b9f265664e31ce0ce85f07a052ba2646970667358221220fa6a5b3cf4d3297e0fd503535cf6008c398f3f1e5b1d6182f8be2b0d8663c4fd64736f6c634300080e00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000a8047c2a86d5a188b0e15c3c10e2bc144cb272c200000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000001140bbd030c40000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000002800000000000000000000000001cbb182322aee8ce9f4f1f98d7460173ee30af1f000000000000000000000000000000000000000000000000000000000000000a506f6c796d6f72706873000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006694d4f5250480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004f68747470733a2f2f75732d63656e7472616c312d706f6c796d6f7270686d657461646174612e636c6f756466756e6374696f6e732e6e65742f696d616765732d66756e6374696f6e2d76323f69643d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f617277656176652e6e65742f354b4444524135454539702d4277323972794239557a3653764d524e4d4379584b6b4f7a575f5a5439674100
Deployed Bytecode
0x6080604052600436106103f35760003560e01c80636c0360eb11610208578063b88d4fde11610118578063d5a83d3e116100ab578063e985e9c51161007a578063e985e9c514610c04578063ec9c074c14610c24578063f2fde38b14610c3a578063f528a62714610c5a578063f84ddf0b14610c6f57600080fd5b8063d5a83d3e14610b87578063d5abeb0114610b9a578063e589233114610bb0578063e63ab1e914610bd057600080fd5b8063ce14617d116100e7578063ce14617d14610afd578063d45351e514610b13578063d539139314610b33578063d547741f14610b6757600080fd5b8063b88d4fde14610a6d578063c87b56dd14610a8d578063ca15c87314610aad578063cccb6d0d14610acd57600080fd5b80639010d07c1161019b5780639e7bb4671161016a5780639e7bb467146109ef578063a217fddf14610a02578063a22cb46514610a17578063a49bccca14610a37578063ab39a3c814610a4d57600080fd5b80639010d07c1461097a57806391d148541461099a57806395d89b41146109ba57806398c5c078146109cf57600080fd5b806370b5aecb116101d757806370b5aecb14610912578063715018a6146109325780638456cb59146109475780638da5cb5b1461095c57600080fd5b80636c0360eb146108a75780636f8b44b0146108bc578063704ec036146108dc57806370a08231146108f257600080fd5b80632f745c591161030357806356a5c926116102965780635e468dfd116102655780635e468dfd146107fa5780636352211e1461081a5780636a1c03dc1461083a5780636a5be6861461085a5780636a6278421461088757600080fd5b806356a5c9261461078f57806356b1b300146107a2578063572a1070146107c25780635c975abb146107e257600080fd5b806342966c68116102d257806342966c68146106ff5780634df774161461071f5780634f6ccce71461074f57806355f804b31461076f57600080fd5b80632f745c591461068a57806336568abe146106aa5780633f4ba83a146106ca57806342842e0e146106df57600080fd5b806318160ddd11610386578063248a9ca311610355578063248a9ca3146105bb57806325b081ff146105eb578063289ea0a91461060b5780632a55205a1461062b5780632f2ff15d1461066a57600080fd5b806318160ddd146105395780632131c68c1461054e57806323b872dd1461056e57806323c8d07a1461058e57600080fd5b8063081812fc116103c2578063081812fc1461049e578063095ea7b3146104d65780631249c58b146104f657806315889e43146104fe57600080fd5b8063017f1e341461040757806301ffc9a71461042757806304634d8d1461045c57806306fdde031461047c57600080fd5b3661040257610400610c84565b005b600080fd5b34801561041357600080fd5b50610400610422366004614089565b610e5f565b34801561043357600080fd5b506104476104423660046140b8565b610ec5565b60405190151581526020015b60405180910390f35b34801561046857600080fd5b506104006104773660046140ea565b610ed6565b34801561048857600080fd5b50610491610f58565b6040516104539190614187565b3480156104aa57600080fd5b506104be6104b9366004614089565b610fea565b6040516001600160a01b039091168152602001610453565b3480156104e257600080fd5b506104006104f136600461419a565b61107f565b610400610c84565b34801561050a57600080fd5b5061052b6105193660046141c6565b60216020526000908152604090205481565b604051908152602001610453565b34801561054557600080fd5b50600b5461052b565b34801561055a57600080fd5b506013546104be906001600160a01b031681565b34801561057a57600080fd5b506104006105893660046141e3565b611194565b34801561059a57600080fd5b5061052b6105a9366004614089565b60009081526019602052604090205490565b3480156105c757600080fd5b5061052b6105d6366004614089565b60009081526020819052604090206001015490565b3480156105f757600080fd5b506020546104be906001600160a01b031681565b34801561061757600080fd5b50610400610626366004614089565b6111c6565b34801561063757600080fd5b5061064b610646366004614224565b611225565b604080516001600160a01b039093168352602083019190915201610453565b34801561067657600080fd5b50610400610685366004614246565b6112d1565b34801561069657600080fd5b5061052b6106a536600461419a565b6112f6565b3480156106b657600080fd5b506104006106c5366004614246565b61138c565b3480156106d657600080fd5b5061040061140a565b3480156106eb57600080fd5b506104006106fa3660046141e3565b6114b2565b34801561070b57600080fd5b5061040061071a366004614089565b6114cd565b34801561072b57600080fd5b5061044761073a366004614089565b601a6020526000908152604090205460ff1681565b34801561075b57600080fd5b5061052b61076a366004614089565b611547565b34801561077b57600080fd5b5061040061078a3660046142f7565b6115da565b61040061079d366004614224565b61163c565b3480156107ae57600080fd5b506104006107bd3660046142f7565b611819565b3480156107ce57600080fd5b506104006107dd366004614340565b611886565b3480156107ee57600080fd5b50600d5460ff16610447565b34801561080657600080fd5b50610400610815366004614089565b611b45565b34801561082657600080fd5b506104be610835366004614089565b611ba4565b34801561084657600080fd5b506104006108553660046143ca565b611c1b565b34801561086657600080fd5b5061052b610875366004614089565b60009081526016602052604090205490565b34801561089357600080fd5b506104006108a23660046141c6565b611d1d565b3480156108b357600080fd5b50610491611d65565b3480156108c857600080fd5b506104006108d7366004614089565b611d74565b3480156108e857600080fd5b5061052b601d5481565b3480156108fe57600080fd5b5061052b61090d3660046141c6565b611dd3565b34801561091e57600080fd5b5061040061092d36600461419a565b611e5a565b34801561093e57600080fd5b50610400611f86565b34801561095357600080fd5b50610400611fea565b34801561096857600080fd5b506014546001600160a01b03166104be565b34801561098657600080fd5b506104be610995366004614224565b61208e565b3480156109a657600080fd5b506104476109b5366004614246565b6120ad565b3480156109c657600080fd5b506104916120d6565b3480156109db57600080fd5b506104006109ea366004614089565b6120e5565b6104006109fd366004614089565b612144565b348015610a0e57600080fd5b5061052b600081565b348015610a2357600080fd5b50610400610a32366004614407565b6122b1565b348015610a4357600080fd5b5061052b601f5481565b348015610a5957600080fd5b50610400610a68366004614407565b6122bc565b348015610a7957600080fd5b50610400610a8836600461443c565b612311565b348015610a9957600080fd5b50610491610aa8366004614089565b612349565b348015610ab957600080fd5b5061052b610ac8366004614089565b612423565b348015610ad957600080fd5b50610447610ae83660046141c6565b60186020526000908152604090205460ff1681565b348015610b0957600080fd5b5061052b601b5481565b348015610b1f57600080fd5b5061052b610b2e366004614089565b61243a565b348015610b3f57600080fd5b5061052b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610b7357600080fd5b50610400610b82366004614246565b61245a565b610400610b95366004614089565b61247f565b348015610ba657600080fd5b5061052b601e5481565b348015610bbc57600080fd5b506104be610bcb366004614089565b6126f3565b348015610bdc57600080fd5b5061052b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b348015610c1057600080fd5b50610447610c1f3660046144bc565b612792565b348015610c3057600080fd5b5061052b601c5481565b348015610c4657600080fd5b50610400610c553660046141c6565b6127c0565b348015610c6657600080fd5b50610491612888565b348015610c7b57600080fd5b5060105461052b565b600260125403610caf5760405162461bcd60e51b8152600401610ca6906144ea565b60405180910390fd5b6002601255601e5460105410610cfe5760405162461bcd60e51b8152602060048201526014602482015273151bdd185b081cdd5c1c1b1e481c995858da195960621b6044820152606401610ca6565b601d54341015610d205760405162461bcd60e51b8152600401610ca690614521565b60108054906000610d3083614563565b9190505550610d3f6015612916565b601054600090815260166020526040902055610d5e335b601054612a54565b601354601d546040516000926001600160a01b031691908381818185875af1925050503d8060008114610dad576040519150601f19603f3d011682016040523d82523d6000602084013e610db2565b606091505b5050905080610dd35760405162461bcd60e51b8152600401610ca69061457c565b6010546000818152601660209081526040918290205491519182527f5f7666687319b40936f33c188908d86aea154abd3f4127b4fa0a3f04f303c7da910160405180910390a260105460008181526016602052604080822054601d549151600080516020614a2e83398151915293610e4f9390929183906145fb565b60405180910390a2506001601255565b6013546001600160a01b03163314610e895760405162461bcd60e51b8152600401610ca690614626565b601d8190556040518181527f6a08b3bba14e54ee218389c7c7444e619f3897465dc06757938cfd01a6957f6c906020015b60405180910390a150565b6000610ed082612ba2565b92915050565b6013546001600160a01b03163314610f005760405162461bcd60e51b8152600401610ca690614626565b610f0a8282612bc7565b604080516001600160a01b03841681526001600160601b03831660208201527fe5ed39918c4170e24337471011e1ccdeb5e4a433f53fae4eb2ad73e03cd21bda910160405180910390a15050565b606060028054610f679061465d565b80601f0160208091040260200160405190810160405280929190818152602001828054610f939061465d565b8015610fe05780601f10610fb557610100808354040283529160200191610fe0565b820191906000526020600020905b815481529060010190602001808311610fc357829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166110635760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ca6565b506000908152600660205260409020546001600160a01b031690565b600061108a82611ba4565b9050806001600160a01b0316836001600160a01b0316036110f75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ca6565b336001600160a01b038216148061111357506111138133612792565b6111855760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ca6565b61118f8383612cc4565b505050565b61119f335b82612d32565b6111bb5760405162461bcd60e51b8152600401610ca690614697565b61118f838383612e09565b6013546001600160a01b031633146111f05760405162461bcd60e51b8152600401610ca690614626565b601b8190556040518181527fb1d78271daba9a366098d40b64d642a1399cabaa22c5234bacc87e92cef82ae690602001610eba565b6000828152600f602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161129a575060408051808201909152600e546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906112b9906001600160601b0316876146e8565b6112c3919061471d565b915196919550909350505050565b6000828152602081905260409020600101546112ec81612fb0565b61118f8383612fba565b600061130183611dd3565b82106113635760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ca6565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b6001600160a01b03811633146113fc5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610ca6565b6114068282612fdc565b5050565b6114347f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336120ad565b6114a8576040805162461bcd60e51b81526020600482015260248101919091527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f20756e70617573656064820152608401610ca6565b6114b0612ffe565b565b61118f83838360405180602001604052806000815250612311565b6114d633611199565b61153b5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610ca6565b61154481613091565b50565b6000611552600b5490565b82106115b55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ca6565b600b82815481106115c8576115c8614731565b90600052602060002001549050919050565b6013546001600160a01b031633146116045760405162461bcd60e51b8152600401610ca690614626565b61160d81613138565b7f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf681604051610eba9190614187565b60026012540361165e5760405162461bcd60e51b8152600401610ca6906144ea565b6002601255806116b05760405162461bcd60e51b815260206004820152601c60248201527f4261736520636861726163746572206e6f74206d6f72706861626c65000000006044820152606401610ca6565b6116b98261314b565b60006116c48361243a565b9050803410156116e65760405162461bcd60e51b8152600401610ca690614521565b6000838152601660205260408120549060646117026015612916565b61170c9190614747565b90506117198282866131ff565b6000868152601660209081526040808320939093556019905290812080549161174183614563565b90915550506000858152601a60209081526040808320805460ff191660019081179091556016909252918290205491518792600080516020614a2e833981519152926117919287929189916145fb565b60405180910390a26013546040516000916001600160a01b03169085908381818185875af1925050503d80600081146117e6576040519150601f19603f3d011682016040523d82523d6000602084013e6117eb565b606091505b505090508061180c5760405162461bcd60e51b8152600401610ca69061457c565b5050600160125550505050565b6013546001600160a01b031633146118435760405162461bcd60e51b8152600401610ca690614626565b8051611856906017906020840190613ff0565b507f4a826ca029d05af64e411551e15f7ee1e70af0b9bc43a31154ace86a863397b481604051610eba9190614187565b6002601254036118a85760405162461bcd60e51b8152600401610ca6906144ea565b600260125560005b81811015611b3b5760008383838181106118cc576118cc614731565b602080546040516331a9108f60e11b81529290910293909301356004820181905293506001600160a01b0390921691636352211e9150602401602060405180830381865afa158015611922573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611946919061475b565b6001600160a01b0316336001600160a01b03161461196357600080fd5b60205460405163352df34360e11b8152600481018390526000916001600160a01b031690636a5be68690602401602060405180830381865afa1580156119ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d19190614778565b602054604051630852cd8d60e31b8152600481018590529192506001600160a01b0316906342966c6890602401600060405180830381600087803b158015611a1857600080fd5b505af1158015611a2c573d6000803e3d6000fd5b50505050600160216000611a3d3390565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611a6c9190614791565b90915550506000828152601660205260409020819055611a8c3383612a54565b817f5f7666687319b40936f33c188908d86aea154abd3f4127b4fa0a3f04f303c7da6016600085815260200190815260200160002054604051611ad191815260200190565b60405180910390a2817fb583e10e1b691f0fec5bb6e5bafd39038a17365ca548d3beb76c0822618055836016600085815260200190815260200160002054604051611b1e91815260200190565b60405180910390a250508080611b3390614563565b9150506118b0565b5050600160125550565b6013546001600160a01b03163314611b6f5760405162461bcd60e51b8152600401610ca690614626565b601f8190556040518181527fa0e0113404674c6f545b966e8ec54db3066a6c720a0054f0bc4b0c900cfff24390602001610eba565b6000818152600460205260408120546001600160a01b031680610ed05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ca6565b600260125403611c3d5760405162461bcd60e51b8152600401610ca6906144ea565b60026012553360009081526018602052604090205460ff16611ca15760405162461bcd60e51b815260206004820152601a60248201527f4e6f742063616c6c65642066726f6d207468652074756e6e656c0000000000006044820152606401610ca6565b60008481526016602081815260408084208054888255601a8452828620805460ff1916891515179055601984529190942085905591905290548590600080516020614a2e833981519152908390611cf78461243a565b6001604051611d0994939291906145fb565b60405180910390a250506001601255505050565b60405162461bcd60e51b815260206004820152601760248201527f53686f756c64206e6f74207573652074686973206f6e650000000000000000006044820152606401610ca6565b6060611d6f61330e565b905090565b6013546001600160a01b03163314611d9e5760405162461bcd60e51b8152600401610ca690614626565b601e8190556040518181527f28a10a2e0b5582da7164754cb994f6214b8af6aa7f7e003305fbc09e7106c51390602001610eba565b60006001600160a01b038216611e3e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ca6565b506001600160a01b031660009081526005602052604090205490565b6040516331a9108f60e11b8152600481018290526000903090636352211e90602401602060405180830381865afa158015611e99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ebd919061475b565b9050336001600160a01b0382161480611eef5750611eda82610fea565b6001600160a01b0316336001600160a01b0316145b80611eff5750611eff8133612792565b611f7b5760405162461bcd60e51b815260206004820152604160248201527f455243373231436f6e73756d61626c653a206368616e6765436f6e73756d657260448201527f2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656064820152601960fa1b608482015260a401610ca6565b61118f81848461331d565b6014546001600160a01b03163314611fe05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca6565b6114b06000613379565b6120147f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336120ad565b6120865760405162461bcd60e51b815260206004820152603e60248201527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f20706175736500006064820152608401610ca6565b6114b06133cb565b60008281526001602052604081206120a69083613446565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b606060038054610f679061465d565b6013546001600160a01b0316331461210f5760405162461bcd60e51b8152600401610ca690614626565b601c8190556040518181527fff4da8d01e7184cc8c9d6c57d64b336b1de6d676b6215408967bd071c8da7e3d90602001610eba565b6002601254036121665760405162461bcd60e51b8152600401610ca6906144ea565b60026012556121748161314b565b601c543410156121965760405162461bcd60e51b8152600401610ca690614521565b6000818152601660205260409020546121af6015612916565b60008381526016602052604090208190556121d6906121cf606484614747565b60006131ff565b600083815260166020818152604080842094855560198252808420849055601a825292839020805460ff191660019081179091559190529154601c5491518593600080516020614a2e833981519152936122349387939092906145fb565b60405180910390a2601354601c546040516000926001600160a01b031691908381818185875af1925050503d806000811461228b576040519150601f19603f3d011682016040523d82523d6000602084013e612290565b606091505b5050905080611b3b5760405162461bcd60e51b8152600401610ca69061457c565b611406338383613452565b6013546001600160a01b031633146122e65760405162461bcd60e51b8152600401610ca690614626565b6001600160a01b03919091166000908152601860205260409020805460ff1916911515919091179055565b61231b3383612d32565b6123375760405162461bcd60e51b8152600401610ca690614697565b61234384848484613520565b50505050565b6000818152600460205260409020546060906001600160a01b03166123c85760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ca6565b60006123d261330e565b905060008151116123f257604051806020016040528060008152506120a6565b806123fc84613553565b60405160200161240d9291906147a9565b6040516020818303038152906040529392505050565b6000818152600160205260408120610ed090613654565b600081815260196020526040812054601b546120a6906001831b906146e8565b60008281526020819052604090206001015461247581612fb0565b61118f8383612fdc565b6002601254036124a15760405162461bcd60e51b8152600401610ca6906144ea565b6002601255601f5481111561250b5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f742062756c6b20627579206d6f7265207468616e20746865207072604482015269195cd95d081b1a5b5a5d60b21b6064820152608401610ca6565b601e548160105461251c9190614791565b11156125615760405162461bcd60e51b8152602060048201526014602482015273151bdd185b081cdd5c1c1b1e481c995858da195960621b6044820152606401610ca6565b80601d5461256f91906146e8565b34101561258e5760405162461bcd60e51b8152600401610ca690614521565b60005b8181101561266957601080549060006125a983614563565b91905055506125b86015612916565b6010546000908152601660205260409020556125d333610d56565b6010546000818152601660209081526040918290205491519182527f5f7666687319b40936f33c188908d86aea154abd3f4127b4fa0a3f04f303c7da910160405180910390a260105460008181526016602052604080822054601d549151600080516020614a2e8339815191529361264f9390929183906145fb565b60405180910390a28061266181614563565b915050612591565b50601354601d546000916001600160a01b0316906126889084906146e8565b604051600081818185875af1925050503d80600081146126c4576040519150601f19603f3d011682016040523d82523d6000602084013e6126c9565b606091505b50509050806126ea5760405162461bcd60e51b8152600401610ca69061457c565b50506001601255565b6000818152600460205260408120546001600160a01b03166127765760405162461bcd60e51b815260206004820152603660248201527f455243373231436f6e73756d61626c653a20636f6e73756d6572207175657279604482015275103337b9103737b732bc34b9ba32b73a103a37b5b2b760511b6064820152608401610ca6565b506000908152600860205260409020546001600160a01b031690565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6014546001600160a01b0316331461281a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ca6565b6001600160a01b03811661287f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ca6565b61154481613379565b601780546128959061465d565b80601f01602080910402602001604051908101604052809291908181526020018280546128c19061465d565b801561290e5780601f106128e35761010080835404028352916020019161290e565b820191906000526020600020905b8154815290600101906020018083116128f157829003601f168201915b505050505081565b600033325a84544243804061292c6064836147d8565b6040516bffffffffffffffffffffffff196060998a1b811660208301529790981b909616603488015260488701949094526068860192909252608885015260a884015260c88301524060e88201526101080160408051601f198184030181528282528051602091820120908301520160408051601f198184030181529190528051602090910120918290555090565b6129c582826120ad565b611406576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556129fb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006120a6836001600160a01b03841661365e565b6001600160a01b038216612aaa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ca6565b6000818152600460205260409020546001600160a01b031615612b0f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ca6565b612b1b600083836136ad565b6001600160a01b0382166000908152600560205260408120805460019290612b44908490614791565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b0319821663152a902d60e11b1480610ed05750610ed0826136f9565b6127106001600160601b0382161115612c355760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610ca6565b6001600160a01b038216612c8b5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ca6565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600e55565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612cf982611ba4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316612dab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ca6565b6000612db683611ba4565b9050806001600160a01b0316846001600160a01b03161480612ddd5750612ddd8185612792565b80612e015750836001600160a01b0316612df684610fea565b6001600160a01b0316145b949350505050565b826001600160a01b0316612e1c82611ba4565b6001600160a01b031614612e805760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610ca6565b6001600160a01b038216612ee25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ca6565b612eed8383836136ad565b612ef8600082612cc4565b6001600160a01b0383166000908152600560205260408120805460019290612f219084906147d8565b90915550506001600160a01b0382166000908152600560205260408120805460019290612f4f908490614791565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611544813361371e565b612fc482826129bb565b600082815260016020526040902061118f9082612a3f565b612fe68282613782565b600082815260016020526040902061118f90826137e7565b600d5460ff166130475760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610ca6565b600d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061309c82611ba4565b90506130aa816000846136ad565b6130b5600083612cc4565b6001600160a01b03811660009081526005602052604081208054600192906130de9084906147d8565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8051611406906011906020840190613ff0565b333b1561319a5760405162461bcd60e51b815260206004820152601b60248201527f43616c6c65722063616e6e6f74206265206120636f6e747261637400000000006044820152606401610ca6565b3332146131f55760405162461bcd60e51b8152602060048201526024808201527f4d73672073656e6465722073686f756c64206265206f726967696e616c206361604482015263363632b960e11b6064820152608401610ca6565b61154481336137fc565b6000602682106132455760405162461bcd60e51b81526020600482015260116024820152702130b21033b2b732903837b9b4ba34b7b760791b6044820152606401610ca6565b60008215613270576132588360026146e8565b61326390600a6148d3565b61326d9086614747565b90505b600061327d846001614791565b6132889060026146e8565b61329390600a6148d3565b61329e856001614791565b6132a99060026146e8565b6132b490600a6148d3565b6132be908861471d565b6132c891906146e8565b905060006132d78560026146e8565b6132e290600a6148d3565b6132ec90876146e8565b9050826132f98284614791565b6133039190614791565b979650505050505050565b606060118054610f679061465d565b60008181526008602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917f42ef856c2602f37ce625d252830bed486c5c8e9a4de8aa36cc3d15f304eb662b91a4505050565b601480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600d5460ff16156134115760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ca6565b600d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130743390565b60006120a6838361389b565b816001600160a01b0316836001600160a01b0316036134b35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ca6565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61352b848484612e09565b613537848484846138c5565b6123435760405162461bcd60e51b8152600401610ca6906148df565b60608160000361357a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156135a4578061358e81614563565b915061359d9050600a8361471d565b915061357e565b60008167ffffffffffffffff8111156135bf576135bf61426b565b6040519080825280601f01601f1916602001820160405280156135e9576020820181803683370190505b5090505b8415612e01576135fe6001836147d8565b915061360b600a86614747565b613616906030614791565b60f81b81838151811061362b5761362b614731565b60200101906001600160f81b031916908160001a90535061364d600a8661471d565b94506135ed565b6000610ed0825490565b60008181526001830160205260408120546136a557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ed0565b506000610ed0565b6136b88383836139c6565b6000818152601660205260408082205490518392600080516020614a2e833981519152926136ec92909182916002906145fb565b60405180910390a2505050565b60006001600160e01b0319821663780e9d6360e01b1480610ed05750610ed0826139d1565b61372882826120ad565b61140657613740816001600160a01b031660146139f6565b61374b8360206139f6565b60405160200161375c929190614931565b60408051601f198184030181529082905262461bcd60e51b8252610ca691600401614187565b61378c82826120ad565b15611406576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006120a6836001600160a01b038416613b92565b806001600160a01b031661380f83611ba4565b6001600160a01b0316146114065760405162461bcd60e51b815260206004820152604760248201527f506f6c796d6f7270685769746847656e654368616e6765723a2063616e6e6f7460448201527f206368616e67652067656e6f6d65206f6620746f6b656e2074686174206973206064820152663737ba1037bbb760c91b608482015260a401610ca6565b60008260000182815481106138b2576138b2614731565b9060005260206000200154905092915050565b60006001600160a01b0384163b156139bb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906139099033908990889088906004016149a6565b6020604051808303816000875af1925050508015613944575060408051601f3d908101601f19168201909252613941918101906149e3565b60015b6139a1573d808015613972576040519150601f19603f3d011682016040523d82523d6000602084013e613977565b606091505b5080516000036139995760405162461bcd60e51b8152600401610ca6906148df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612e01565b506001949350505050565b61118f838383613c85565b60006001600160e01b03198216634a9e46fd60e11b1480610ed05750610ed082613cf7565b60606000613a058360026146e8565b613a10906002614791565b67ffffffffffffffff811115613a2857613a2861426b565b6040519080825280601f01601f191660200182016040528015613a52576020820181803683370190505b509050600360fc1b81600081518110613a6d57613a6d614731565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613a9c57613a9c614731565b60200101906001600160f81b031916908160001a9053506000613ac08460026146e8565b613acb906001614791565b90505b6001811115613b43576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613aff57613aff614731565b1a60f81b828281518110613b1557613b15614731565b60200101906001600160f81b031916908160001a90535060049490941c93613b3c81614a00565b9050613ace565b5083156120a65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ca6565b60008181526001830160205260408120548015613c7b576000613bb66001836147d8565b8554909150600090613bca906001906147d8565b9050818114613c2f576000866000018281548110613bea57613bea614731565b9060005260206000200154905080876000018481548110613c0d57613c0d614731565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613c4057613c40614a17565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610ed0565b6000915050610ed0565b613c90838383613d37565b600d5460ff161561118f5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610ca6565b60006001600160e01b031982166380ac58cd60e01b1480613d2857506001600160e01b03198216635b5e139f60e01b145b80610ed05750610ed082613dfa565b613d42838383613e1f565b6001600160a01b038316613d9d57613d9881600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b613dc0565b816001600160a01b0316836001600160a01b031614613dc057613dc08382613e2b565b6001600160a01b038216613dd75761118f81613ec8565b826001600160a01b0316826001600160a01b03161461118f5761118f8282613f77565b60006001600160e01b03198216635a05180f60e01b1480610ed05750610ed082613fbb565b61118f8360008361331d565b60006001613e3884611dd3565b613e4291906147d8565b6000838152600a6020526040902054909150808214613e95576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b54600090613eda906001906147d8565b6000838152600c6020526040812054600b8054939450909284908110613f0257613f02614731565b9060005260206000200154905080600b8381548110613f2357613f23614731565b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b805480613f5b57613f5b614a17565b6001900381819060005260206000200160009055905550505050565b6000613f8283611dd3565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b60006001600160e01b03198216637965db0b60e01b1480610ed057506301ffc9a760e01b6001600160e01b0319831614610ed0565b828054613ffc9061465d565b90600052602060002090601f01602090048101928261401e5760008555614064565b82601f1061403757805160ff1916838001178555614064565b82800160010185558215614064579182015b82811115614064578251825591602001919060010190614049565b50614070929150614074565b5090565b5b808211156140705760008155600101614075565b60006020828403121561409b57600080fd5b5035919050565b6001600160e01b03198116811461154457600080fd5b6000602082840312156140ca57600080fd5b81356120a6816140a2565b6001600160a01b038116811461154457600080fd5b600080604083850312156140fd57600080fd5b8235614108816140d5565b915060208301356001600160601b038116811461412457600080fd5b809150509250929050565b60005b8381101561414a578181015183820152602001614132565b838111156123435750506000910152565b6000815180845261417381602086016020860161412f565b601f01601f19169290920160200192915050565b6020815260006120a6602083018461415b565b600080604083850312156141ad57600080fd5b82356141b8816140d5565b946020939093013593505050565b6000602082840312156141d857600080fd5b81356120a6816140d5565b6000806000606084860312156141f857600080fd5b8335614203816140d5565b92506020840135614213816140d5565b929592945050506040919091013590565b6000806040838503121561423757600080fd5b50508035926020909101359150565b6000806040838503121561425957600080fd5b823591506020830135614124816140d5565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561429c5761429c61426b565b604051601f8501601f19908116603f011681019082821181831017156142c4576142c461426b565b816040528093508581528686860111156142dd57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561430957600080fd5b813567ffffffffffffffff81111561432057600080fd5b8201601f8101841361433157600080fd5b612e0184823560208401614281565b6000806020838503121561435357600080fd5b823567ffffffffffffffff8082111561436b57600080fd5b818501915085601f83011261437f57600080fd5b81358181111561438e57600080fd5b8660208260051b85010111156143a357600080fd5b60209290920196919550909350505050565b803580151581146143c557600080fd5b919050565b600080600080608085870312156143e057600080fd5b84359350602085013592506143f7604086016143b5565b9396929550929360600135925050565b6000806040838503121561441a57600080fd5b8235614425816140d5565b9150614433602084016143b5565b90509250929050565b6000806000806080858703121561445257600080fd5b843561445d816140d5565b9350602085013561446d816140d5565b925060408501359150606085013567ffffffffffffffff81111561449057600080fd5b8501601f810187136144a157600080fd5b6144b087823560208401614281565b91505092959194509250565b600080604083850312156144cf57600080fd5b82356144da816140d5565b91506020830135614124816140d5565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600182016145755761457561454d565b5060010190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b600381106145f757634e487b7160e01b600052602160045260246000fd5b9052565b84815260208101849052604081018390526080810161461d60608301846145d9565b95945050505050565b60208082526017908201527f4e6f742063616c6c65642066726f6d207468652064616f000000000000000000604082015260600190565b600181811c9082168061467157607f821691505b60208210810361469157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008160001904831182151516156147025761470261454d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261472c5761472c614707565b500490565b634e487b7160e01b600052603260045260246000fd5b60008261475657614756614707565b500690565b60006020828403121561476d57600080fd5b81516120a6816140d5565b60006020828403121561478a57600080fd5b5051919050565b600082198211156147a4576147a461454d565b500190565b600083516147bb81846020880161412f565b8351908301906147cf81836020880161412f565b01949350505050565b6000828210156147ea576147ea61454d565b500390565b600181815b8085111561482a5781600019048211156148105761481061454d565b8085161561481d57918102915b93841c93908002906147f4565b509250929050565b60008261484157506001610ed0565b8161484e57506000610ed0565b8160018114614864576002811461486e5761488a565b6001915050610ed0565b60ff84111561487f5761487f61454d565b50506001821b610ed0565b5060208310610133831016604e8410600b84101617156148ad575081810a610ed0565b6148b783836147ef565b80600019048211156148cb576148cb61454d565b029392505050565b60006120a68383614832565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161496981601785016020880161412f565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161499a81602884016020880161412f565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906149d99083018461415b565b9695505050505050565b6000602082840312156149f557600080fd5b81516120a6816140a2565b600081614a0f57614a0f61454d565b506000190190565b634e487b7160e01b600052603160045260246000fdfe8c0bdd7bca83c4e0c810cbecf44bc544a9dc0b9f265664e31ce0ce85f07a052ba2646970667358221220fa6a5b3cf4d3297e0fd503535cf6008c398f3f1e5b1d6182f8be2b0d8663c4fd64736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000a8047c2a86d5a188b0e15c3c10e2bc144cb272c200000000000000000000000000000000000000000000000000000000000002ee000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000001140bbd030c40000000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000002800000000000000000000000001cbb182322aee8ce9f4f1f98d7460173ee30af1f000000000000000000000000000000000000000000000000000000000000000a506f6c796d6f72706873000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006694d4f5250480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004f68747470733a2f2f75732d63656e7472616c312d706f6c796d6f7270686d657461646174612e636c6f756466756e6374696f6e732e6e65742f696d616765732d66756e6374696f6e2d76323f69643d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f617277656176652e6e65742f354b4444524135454539702d4277323972794239557a3653764d524e4d4379584b6b4f7a575f5a5439674100
-----Decoded View---------------
Arg [0] : params (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [4] : 000000000000000000000000a8047c2a86d5a188b0e15c3c10e2bc144cb272c2
Arg [5] : 00000000000000000000000000000000000000000000000000000000000002ee
Arg [6] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [7] : 00000000000000000000000000000000000000000000000001140bbd030c4000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [9] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [12] : 0000000000000000000000001cbb182322aee8ce9f4f1f98d7460173ee30af1f
Arg [13] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [14] : 506f6c796d6f7270687300000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [16] : 694d4f5250480000000000000000000000000000000000000000000000000000
Arg [17] : 000000000000000000000000000000000000000000000000000000000000004f
Arg [18] : 68747470733a2f2f75732d63656e7472616c312d706f6c796d6f7270686d6574
Arg [19] : 61646174612e636c6f756466756e6374696f6e732e6e65742f696d616765732d
Arg [20] : 66756e6374696f6e2d76323f69643d0000000000000000000000000000000000
Arg [21] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [22] : 68747470733a2f2f617277656176652e6e65742f354b4444524135454539702d
Arg [23] : 4277323972794239557a3653764d524e4d4379584b6b4f7a575f5a5439674100
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.