Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Palette
Compiler Version
v0.8.4+commit.c7e474f2
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.4;
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Counters.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import './RandomColor.sol';
import './utils/Base64.sol';
import './IPalette.sol';
import './opensea/BaseOpensea.sol';
import './@rarible/royalties/contracts/impl/RoyaltiesV2Impl.sol';
import './@rarible/royalties/contracts/LibPart.sol';
import './@rarible/royalties/contracts/LibRoyaltiesV2.sol';
contract Palette is
IPalette,
RandomColor,
ReentrancyGuard,
Ownable,
ERC721,
BaseOpenSea,
RoyaltiesV2Impl
{
using Strings for uint256;
using Counters for Counters.Counter;
uint256 public MAX_SUPPLY;
bool public FAIR_MINT;
uint96 public ROYALTY = 1000; // 10%
Counters.Counter private _totalSupply;
mapping(address => bool) private _minters;
bytes32 private _lastSeed;
mapping(uint256 => bytes32[]) private _tokenSeeds;
bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
constructor(
uint256 maxSupply,
bool fairMint,
address owner,
address openSeaProxyRegistry
) ERC721('PaletteOnChain', 'PALETTE') Ownable() {
MAX_SUPPLY = maxSupply;
FAIR_MINT = fairMint;
if (owner != _msgSender()) {
transferOwnership(owner);
}
if (openSeaProxyRegistry != address(0)) {
_setOpenSeaRegistry(openSeaProxyRegistry);
}
}
function totalSupply() external view override returns (uint256) {
return _totalSupply.current();
}
function remainingSupply() external view override returns (uint256) {
return MAX_SUPPLY - _totalSupply.current();
}
function mint() external override nonReentrant {
require(_totalSupply.current() < MAX_SUPPLY, 'Mint would exceed max supply');
address operator = _msgSender();
if (FAIR_MINT) {
require(!_minters[operator], 'Mint only once');
}
_minters[operator] = true;
bytes32 seed = _lastSeed;
bytes32 blockHash = blockhash(block.number - 1);
uint256 timestamp = block.timestamp;
uint256 paletteCount = 5;
bytes32[] memory seeds = new bytes32[](paletteCount);
for (uint256 i = 0; i < paletteCount; i++) {
seed = _nextSeed(seed, timestamp, operator, blockHash);
seeds[i] = seed;
}
_lastSeed = seed;
_totalSupply.increment();
uint256 tokenId = _totalSupply.current();
_tokenSeeds[tokenId] = seeds;
_safeMint(operator, tokenId);
_setRoyalties(tokenId, payable(owner()), ROYALTY);
}
function tokenURI(uint256 tokenId) public view override returns (string memory) {
require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token');
string[5] memory palette = _getPalette(tokenId);
string[8] memory parts;
string[5] memory attributeParts;
parts[
0
] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" width="800" height="800" viewBox="0 0 10 10"><g transform="rotate(-90 5 5)">';
for (uint256 i = 0; i < palette.length; i++) {
parts[i + 1] = string(
abi.encodePacked(
'<rect x="0" y="',
(i * 2).toString(),
'" width="10" height="2" fill="',
palette[i],
'" />'
)
);
attributeParts[i] = string(
abi.encodePacked(
'{"trait_type": "Color',
(i + 1).toString(),
'", "value": "',
palette[i],
'"}',
i + 1 == palette.length ? '' : ', '
)
);
}
parts[7] = '</g></svg>';
string memory output = string(
abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4])
);
output = string(abi.encodePacked(output, parts[5], parts[6], parts[7]));
string memory attributes = string(
abi.encodePacked(
attributeParts[0],
attributeParts[1],
attributeParts[2],
attributeParts[3],
attributeParts[4]
)
);
string memory json = Base64.encode(
bytes(
string(
abi.encodePacked(
'{"name": "Palette #',
tokenId.toString(),
'", "description": "PaletteOnChain is randomly generated color palette and stored on chain. This palette can be used as a color base by others to create new collectable art.", "image": "data:image/svg+xml;base64,',
Base64.encode(bytes(output)),
'", "attributes": [',
attributes,
'], "license": { "type": "CC0", "url": "https://creativecommons.org/publicdomain/zero/1.0/" }}'
)
)
)
);
output = string(abi.encodePacked('data:application/json;base64,', json));
return output;
}
function getRandomColorCode(uint256 seed) external view override returns (string memory) {
return _getColorCode(uint256(seed));
}
function getColorCodeFromHSV(
uint256 hue,
uint256 saturation,
uint256 brightness
) external pure override returns (string memory) {
return _getColorCode(hue, saturation, brightness);
}
function getPalette(uint256 tokenId) external view override returns (string[5] memory) {
return _getPalette(tokenId);
}
function _getPalette(uint256 tokenId) private view returns (string[5] memory) {
require(_exists(tokenId), 'getPalette query for nonexistent token');
bytes32[] memory seeds = _tokenSeeds[tokenId];
string[5] memory palette;
for (uint256 i = 0; i < seeds.length; i++) {
palette[i] = _getColorCode(uint256(seeds[i]));
}
return palette;
}
function _nextSeed(
bytes32 currentSeed,
uint256 timestamp,
address operator,
bytes32 blockHash
) private view returns (bytes32) {
return
keccak256(
abi.encodePacked(
currentSeed,
timestamp,
operator,
blockHash,
block.coinbase,
block.difficulty,
tx.gasprice
)
);
}
/// @notice Allows gas-less trading on OpenSea by safelisting the Proxy of the user
/// @dev Override isApprovedForAll to check first if current operator is owner's OpenSea proxy
/// @inheritdoc ERC721
function isApprovedForAll(address owner, address operator)
public
view
virtual
override
returns (bool)
{
// allows gas less trading on OpenSea
if (isOwnersOpenSeaProxy(owner, operator)) {
return true;
}
return super.isApprovedForAll(owner, operator);
}
function _setRoyalties(
uint256 _tokenId,
address payable _royaltiesReceipientAddress,
uint96 _percentageBasisPoints
) private {
LibPart.Part[] memory _royalties = new LibPart.Part[](1);
_royalties[0].value = _percentageBasisPoints;
_royalties[0].account = _royaltiesReceipientAddress;
_saveRoyalties(_tokenId, _royalties);
}
function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
external
view
returns (address receiver, uint256 royaltyAmount)
{
LibPart.Part[] memory _royalties = royalties[_tokenId];
if (_royalties.length > 0) {
return (_royalties[0].account, (_salePrice * _royalties[0].value) / 10000);
}
return (address(0), 0);
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC721)
returns (bool)
{
if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
return true;
}
if (interfaceId == _INTERFACE_ID_ERC2981) {
return true;
}
return super.supportsInterface(interfaceId);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
//inspired by David Merfield's randomColor.js
//https://github.com/davidmerfield/randomColor
import '@openzeppelin/contracts/utils/Strings.sol';
import {ColorStrings} from './utils/ColorStrings.sol';
import './utils/Randomize.sol';
abstract contract RandomColor {
using Strings for uint256;
using ColorStrings for uint256;
using Randomize for Randomize.Random;
struct HueRange {
string _name;
uint256 _min;
uint256 _max;
}
struct Range {
uint256 _min;
uint256 _max;
}
struct LowerBound {
uint256 _saturation;
uint256 _brightness;
}
HueRange[] private _hueRanges;
mapping(string => LowerBound[]) private _lowerBounds;
mapping(string => Range) private _saturationRanges;
mapping(string => Range) private _brightnessRanges;
constructor() {
_hueRangeSetup();
_lowerBoundMapping();
_saturationRangeMapping();
_brightnessRangeMapping();
}
function _hueRangeSetup() private {
_hueRanges.push(HueRange('red', 0, 18));
_hueRanges.push(HueRange('orange', 18, 46));
_hueRanges.push(HueRange('yellow', 46, 62));
_hueRanges.push(HueRange('green', 62, 178));
_hueRanges.push(HueRange('blue', 178, 257));
_hueRanges.push(HueRange('purple', 257, 282));
_hueRanges.push(HueRange('pink', 282, 334));
}
function _lowerBoundMapping() private {
_lowerBounds['red'].push(LowerBound(20, 100));
_lowerBounds['red'].push(LowerBound(30, 92));
_lowerBounds['red'].push(LowerBound(40, 89));
_lowerBounds['red'].push(LowerBound(50, 85));
_lowerBounds['red'].push(LowerBound(60, 78));
_lowerBounds['red'].push(LowerBound(70, 70));
_lowerBounds['red'].push(LowerBound(80, 60));
_lowerBounds['red'].push(LowerBound(90, 55));
_lowerBounds['red'].push(LowerBound(100, 50));
_lowerBounds['orange'].push(LowerBound(20, 100));
_lowerBounds['orange'].push(LowerBound(30, 93));
_lowerBounds['orange'].push(LowerBound(40, 88));
_lowerBounds['orange'].push(LowerBound(50, 86));
_lowerBounds['orange'].push(LowerBound(60, 85));
_lowerBounds['orange'].push(LowerBound(70, 70));
_lowerBounds['orange'].push(LowerBound(100, 70));
_lowerBounds['yellow'].push(LowerBound(25, 100));
_lowerBounds['yellow'].push(LowerBound(40, 94));
_lowerBounds['yellow'].push(LowerBound(50, 89));
_lowerBounds['yellow'].push(LowerBound(60, 86));
_lowerBounds['yellow'].push(LowerBound(70, 84));
_lowerBounds['yellow'].push(LowerBound(80, 82));
_lowerBounds['yellow'].push(LowerBound(90, 80));
_lowerBounds['yellow'].push(LowerBound(100, 75));
_lowerBounds['green'].push(LowerBound(30, 100));
_lowerBounds['green'].push(LowerBound(40, 90));
_lowerBounds['green'].push(LowerBound(50, 85));
_lowerBounds['green'].push(LowerBound(60, 81));
_lowerBounds['green'].push(LowerBound(70, 74));
_lowerBounds['green'].push(LowerBound(80, 64));
_lowerBounds['green'].push(LowerBound(90, 50));
_lowerBounds['green'].push(LowerBound(100, 40));
_lowerBounds['blue'].push(LowerBound(20, 100));
_lowerBounds['blue'].push(LowerBound(30, 86));
_lowerBounds['blue'].push(LowerBound(40, 80));
_lowerBounds['blue'].push(LowerBound(50, 74));
_lowerBounds['blue'].push(LowerBound(60, 60));
_lowerBounds['blue'].push(LowerBound(70, 52));
_lowerBounds['blue'].push(LowerBound(80, 44));
_lowerBounds['blue'].push(LowerBound(90, 39));
_lowerBounds['blue'].push(LowerBound(100, 35));
_lowerBounds['purple'].push(LowerBound(20, 100));
_lowerBounds['purple'].push(LowerBound(30, 87));
_lowerBounds['purple'].push(LowerBound(40, 79));
_lowerBounds['purple'].push(LowerBound(50, 70));
_lowerBounds['purple'].push(LowerBound(60, 65));
_lowerBounds['purple'].push(LowerBound(70, 59));
_lowerBounds['purple'].push(LowerBound(80, 52));
_lowerBounds['purple'].push(LowerBound(90, 45));
_lowerBounds['purple'].push(LowerBound(100, 42));
_lowerBounds['pink'].push(LowerBound(20, 100));
_lowerBounds['pink'].push(LowerBound(30, 90));
_lowerBounds['pink'].push(LowerBound(40, 86));
_lowerBounds['pink'].push(LowerBound(60, 84));
_lowerBounds['pink'].push(LowerBound(80, 80));
_lowerBounds['pink'].push(LowerBound(90, 75));
_lowerBounds['pink'].push(LowerBound(100, 73));
}
function _saturationRangeMapping() private {
_saturationRanges['red'] = Range(20, 100);
_saturationRanges['orange'] = Range(20, 100);
_saturationRanges['yellow'] = Range(25, 100);
_saturationRanges['green'] = Range(30, 100);
_saturationRanges['blue'] = Range(20, 100);
_saturationRanges['purple'] = Range(20, 100);
_saturationRanges['pink'] = Range(30, 100);
}
function _brightnessRangeMapping() private {
_brightnessRanges['red'] = Range(50, 100);
_brightnessRanges['orange'] = Range(70, 100);
_brightnessRanges['yellow'] = Range(75, 100);
_brightnessRanges['green'] = Range(40, 100);
_brightnessRanges['blue'] = Range(35, 100);
_brightnessRanges['purple'] = Range(42, 100);
_brightnessRanges['pink'] = Range(73, 100);
}
function _pickHue(Randomize.Random memory random) private pure returns (uint256) {
return random.next(0, 360);
}
function _pickSaturation(Randomize.Random memory random, uint256 hue)
private
view
returns (uint256)
{
string memory colorName = _getColorName(hue);
require(keccak256(bytes(colorName)) != keccak256(bytes('not_found')), 'Color name not found');
Range memory saturationRange = _saturationRanges[colorName];
return random.next(saturationRange._min, saturationRange._max);
}
function _pickBrightness(
Randomize.Random memory random,
uint256 hue,
uint256 saturation
) private view returns (uint256) {
string memory colorName = _getColorName(hue);
require(keccak256(bytes(colorName)) != keccak256(bytes('not_found')), 'Color name not found');
uint256 minBrightness = _getMinimumBrightness(hue, saturation);
uint256 maxBrightness = 100;
if (minBrightness == maxBrightness) {
return minBrightness;
}
return random.next(minBrightness, maxBrightness);
}
function _getMinimumBrightness(uint256 hue, uint256 saturation) private view returns (uint256) {
string memory colorName = _getColorName(hue);
require(keccak256(bytes(colorName)) != keccak256(bytes('not_found')), 'Color name not found');
LowerBound[] memory lowerBounds = _lowerBounds[colorName];
uint256 len = lowerBounds.length;
for (uint256 i = 0; i < len - 1; i++) {
uint256 s1 = lowerBounds[i]._saturation;
uint256 v1 = lowerBounds[i]._brightness;
uint256 s2 = lowerBounds[i + 1]._saturation;
uint256 v2 = lowerBounds[i + 1]._brightness;
if (saturation >= s1 && saturation <= s2) {
int256 m = ((int256(v2) - int256(v1)) * 10) / int256(s2 - s1);
int256 b = int256(v1 * 10) - (m * int256(s1));
return uint256((m * int256(saturation) + b) / 10);
}
}
return 0;
}
function _getColorName(uint256 hue) private view returns (string memory) {
if (hue >= 334 && hue <= 360) {
hue = 0;
}
uint256 len = _hueRanges.length;
for (uint256 i = 0; i < len; i++) {
if (hue >= _hueRanges[i]._min && hue <= _hueRanges[i]._max) {
return _hueRanges[i]._name;
}
}
return 'not_found';
}
/// @dev this function is not accurate due to rounding errors, and may have an error of 1 for each value of rgb.
function _hsvToRgb(
uint256 hue,
uint256 saturation,
uint256 value
) private pure returns (uint256[3] memory) {
if (hue == 0) {
hue = 1;
}
if (hue == 360) {
hue = 359;
}
uint256 multiplier = 10000;
uint256 h = (hue * multiplier) / 360;
uint256 s = (saturation * multiplier) / 100;
uint256 v = (value * multiplier) / 100;
uint256 h_i = (h * 6);
uint256 f = h_i % multiplier;
uint256 p = (v * (1 * multiplier - s)) / multiplier;
uint256 q = (v * (1 * multiplier - ((f * s) / multiplier))) / multiplier;
uint256 t = (v * (1 * multiplier - (((1 * multiplier - f) * s) / multiplier))) / multiplier;
uint256 r = 256;
uint256 g = 256;
uint256 b = 256;
if (h_i < 1 * multiplier) {
r = v;
g = t;
b = p;
} else if (h_i < 2 * multiplier) {
r = q;
g = v;
b = p;
} else if (h_i < 3 * multiplier) {
r = p;
g = v;
b = t;
} else if (h_i < 4 * multiplier) {
r = p;
g = q;
b = v;
} else if (h_i < 5 * multiplier) {
r = t;
g = p;
b = v;
} else if (h_i < 6 * multiplier) {
r = v;
g = p;
b = q;
}
return [(r * 255) / multiplier, (g * 255) / multiplier, (b * 255) / multiplier];
}
function _rgbToHexString(uint256[3] memory rgb) private pure returns (string memory) {
string memory colorCode = string(
abi.encodePacked(
'#',
rgb[0].toHexColorString(),
rgb[1].toHexColorString(),
rgb[2].toHexColorString()
)
);
return colorCode;
}
function _getColorCode(uint256 seed) internal view returns (string memory) {
Randomize.Random memory random = Randomize.Random({seed: seed, offsetBit: 0});
uint256 hue = _pickHue(random);
uint256 saturation = _pickSaturation(random, hue);
uint256 brightness = _pickBrightness(random, hue, saturation);
uint256[3] memory rgb = _hsvToRgb(hue, saturation, brightness);
return _rgbToHexString(rgb);
}
function _getColorCode(
uint256 hue,
uint256 saturation,
uint256 brightness
) internal pure returns (string memory) {
require(hue <= 360, 'Max hue is 360');
require(saturation <= 100, 'Max saturation is 100');
require(brightness <= 100, 'Max brightness is 100');
uint256[3] memory rgb = _hsvToRgb(hue, saturation, brightness);
return _rgbToHexString(rgb);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
// This is a copy of Base64 from LOOT.
// https://etherscan.io/address/0xff9c1b15b16263c61d017ee9f65c50e4ae0113d7#code#L1609
/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <brecht@loopring.org>
library Base64 {
bytes internal constant TABLE =
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
/// @notice Encodes some bytes to the base64 representation
function encode(bytes memory data) internal pure returns (string memory) {
uint256 len = data.length;
if (len == 0) return '';
// multiply by 4/3 rounded up
uint256 encodedLen = 4 * ((len + 2) / 3);
// Add some extra buffer at the end
bytes memory result = new bytes(encodedLen + 32);
bytes memory table = TABLE;
assembly {
let tablePtr := add(table, 1)
let resultPtr := add(result, 32)
for {
let i := 0
} lt(i, len) {
} {
i := add(i, 3)
let input := and(mload(add(data, i)), 0xffffff)
let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
out := shl(8, out)
out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
out := shl(8, out)
out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
out := shl(8, out)
out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
out := shl(224, out)
mstore(resultPtr, out)
resultPtr := add(resultPtr, 4)
}
switch mod(len, 3)
case 1 {
mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
}
case 2 {
mstore(sub(resultPtr, 1), shl(248, 0x3d))
}
mstore(result, encodedLen)
}
return string(result);
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
interface IPalette {
/// @dev Returns the total amount of tokens stored by the contract.
function totalSupply() external view returns (uint256);
/// @dev Returns the remaining amount of tokens.
function remainingSupply() external view returns (uint256);
/// @dev Mints new token and transfers it to msgSender.
function mint() external;
/// @dev tokenId is from 1 to MAX_SUPPLY.
function getPalette(uint256 tokenId) external view returns (string[5] memory);
/// @dev specifying a multiple of 16 for seed will change the color code.
function getRandomColorCode(uint256 seed) external view returns (string memory);
/**
* @dev hue: 0 ~ 360
* saturation: 0 ~ 100
* brightness: 0 ~ 100
*/
function getColorCodeFromHSV(
uint256 hue,
uint256 saturation,
uint256 brightness
) external pure returns (string memory);
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// This is a copy of BaseOpenSea.sol.
// https://gist.github.com/dievardump/483eb43bc6ed30b14f01e01842e3339b#file-baseopensea-sol
/// @title OpenSea contract helper that defines a few things
/// @author Simon Fremaux (@dievardump)
/// @dev This is a contract used to add OpenSea's
/// gas-less trading and contractURI support
contract BaseOpenSea {
string private _contractURI;
address private _proxyRegistry;
/// @notice Returns the contract URI function. Used on OpenSea to get details
// about a contract (owner, royalties etc...)
function contractURI() public view returns (string memory) {
return _contractURI;
}
/// @notice Returns the current OS proxyRegistry address registered
function proxyRegistry() public view returns (address) {
return _proxyRegistry;
}
/// @notice Helper allowing OpenSea gas-less trading by verifying who's operator
/// for owner
/// @dev Allows to check if `operator` is owner's OpenSea proxy on eth mainnet / rinkeby
/// or to check if operator is OpenSea's proxy contract on Polygon and Mumbai
/// @param owner the owner we check for
/// @param operator the operator (proxy) we check for
function isOwnersOpenSeaProxy(address owner, address operator) public view returns (bool) {
address proxyRegistry_ = _proxyRegistry;
// if we have a proxy registry
if (proxyRegistry_ != address(0)) {
// on ethereum mainnet or rinkeby use "ProxyRegistry" to
// get owner's proxy
if (block.chainid == 1 || block.chainid == 4) {
return address(ProxyRegistry(proxyRegistry_).proxies(owner)) == operator;
} else if (block.chainid == 137 || block.chainid == 80001) {
// on Polygon and Mumbai just try with OpenSea's proxy contract
// https://docs.opensea.io/docs/polygon-basic-integration
return proxyRegistry_ == operator;
}
}
return false;
}
/// @dev Internal function to set the _contractURI
/// @param contractURI_ the new contract uri
function _setContractURI(string memory contractURI_) internal {
_contractURI = contractURI_;
}
/// @dev Internal function to set the _proxyRegistry
/// @param proxyRegistryAddress the new proxy registry address
function _setOpenSeaRegistry(address proxyRegistryAddress) internal {
_proxyRegistry = proxyRegistryAddress;
}
}
contract OwnableDelegateProxy {}
contract ProxyRegistry {
mapping(address => OwnableDelegateProxy) public proxies;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './AbstractRoyalties.sol';
import '../RoyaltiesV2.sol';
contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2 {
function getRaribleV2Royalties(uint256 id)
external
view
override
returns (LibPart.Part[] memory)
{
return royalties[id];
}
function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) internal override {
emit RoyaltiesSet(_id, _royalties);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library LibPart {
bytes32 public constant TYPE_HASH = keccak256('Part(address account,uint96 value)');
struct Part {
address payable account;
uint96 value;
}
function hash(Part memory part) internal pure returns (bytes32) {
return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library LibRoyaltiesV2 {
/*
* bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0x44c74bcc
*/
bytes4 constant _INTERFACE_ID_ROYALTIES = 0x44c74bcc;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library ColorStrings {
bytes16 private constant _HEX_SYMBOLS = '0123456789abcdef';
function toHexColorString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return '00';
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexColorString(value, length);
}
function toHexColorString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length);
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i - 2] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, 'Strings: hex length insufficient');
return string(buffer);
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
// This is a copy of Randomize.sol from SSGS#0.
// https://etherscan.io/address/0x5d4683ba64ee6283bb7fdb8a91252f6aab32a110#code#F21#L5
// small library to randomize using (min, max, seed, offsetBit etc...)
library Randomize {
struct Random {
uint256 seed;
uint256 offsetBit;
}
/// @notice get an random number between (min and max) using seed and offseting bits
/// this function assumes that max is never bigger than 0xffffff (hex color with opacity included)
/// @dev this function is simply used to get random number using a seed.
/// if does bitshifting operations to try to reuse the same seed as much as possible.
/// should be enough for anyth
/// @param random the randomizer
/// @param min the minimum
/// @param max the maximum
/// @return result the resulting pseudo random number
function next(
Random memory random,
uint256 min,
uint256 max
) internal pure returns (uint256 result) {
uint256 newSeed = random.seed;
uint256 newOffset = random.offsetBit + 3;
uint256 maxOffset = 4;
uint256 mask = 0xf;
if (max > 0xfffff) {
mask = 0xffffff;
maxOffset = 24;
} else if (max > 0xffff) {
mask = 0xfffff;
maxOffset = 20;
} else if (max > 0xfff) {
mask = 0xffff;
maxOffset = 16;
} else if (max > 0xff) {
mask = 0xfff;
maxOffset = 12;
} else if (max > 0xf) {
mask = 0xff;
maxOffset = 8;
}
// if offsetBit is too high to get the max number
// just get new seed and restart offset to 0
if (newOffset > (256 - maxOffset)) {
newOffset = 0;
newSeed = uint256(keccak256(abi.encode(newSeed)));
}
uint256 offseted = (newSeed >> newOffset);
uint256 part = offseted & mask;
result = min + (part % (max - min));
random.seed = newSeed;
random.offsetBit = newOffset;
}
function nextInt(
Random memory random,
uint256 min,
uint256 max
) internal pure returns (int256 result) {
result = int256(Randomize.next(random, min, max));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '../LibPart.sol';
abstract contract AbstractRoyalties {
mapping(uint256 => LibPart.Part[]) public royalties;
function _saveRoyalties(uint256 _id, LibPart.Part[] memory _royalties) internal {
for (uint256 i = 0; i < _royalties.length; i++) {
require(_royalties[i].account != address(0x0), 'Recipient should be present');
require(_royalties[i].value != 0, 'Royalty value should be positive');
royalties[_id].push(_royalties[i]);
}
_onRoyaltiesSet(_id, _royalties);
}
function _updateAccount(
uint256 _id,
address _from,
address _to
) internal {
uint256 length = royalties[_id].length;
for (uint256 i = 0; i < length; i++) {
if (royalties[_id][i].account == _from) {
royalties[_id][i].account = payable(address(uint160(_to)));
}
}
}
function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) internal virtual;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './LibPart.sol';
interface RoyaltiesV2 {
event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);
function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"bool","name":"fairMint","type":"bool"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"openSeaProxyRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FAIR_MINT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"hue","type":"uint256"},{"internalType":"uint256","name":"saturation","type":"uint256"},{"internalType":"uint256","name":"brightness","type":"uint256"}],"name":"getColorCodeFromHSV","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPalette","outputs":[{"internalType":"string[5]","name":"","type":"string[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"getRandomColorCode","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isOwnersOpenSeaProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":"proxyRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"royalties","outputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"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"}]Contract Creation Code
608060405260108054610100600160681b0319166203e8001790553480156200002757600080fd5b50604051620059de380380620059de8339810160408190526200004a9162001d4e565b6040518060400160405280600e81526020016d2830b632ba3a32a7b721b430b4b760911b8152506040518060400160405280600781526020016650414c4554544560c81b815250620000a16200148860201b60201c565b620013c1604051621c995960ea1b8152600190600301908152604080516020928190038301812081830183526014825260648483019081528154600180820184556000938452959092209251600290920290920190815590519083015551621c995960ea1b815260030190815260408051602092819003830181208183018352601e8252605c8483019081528154600180820184556000938452959092209251600290920290920190815590519083015551621c995960ea1b8152600301908152604080516020928190038301812081830183526028825260598483019081528154600180820184556000938452959092209251600290920290920190815590519083015551621c995960ea1b8152600301908152604080516020928190038301812081830183526032825260558483019081528154600180820184556000938452959092209251600290920290920190815590519083015551621c995960ea1b815260030190815260408051602092819003830181208183018352603c8252604e8483019081528154600180820184556000938452959092209251600290920290920190815590519083015551621c995960ea1b81526003019081526040805160209281900383018120818301835260468083528483019081528154600180820184556000938452959092209251600290920290920190815590519083015551621c995960ea1b81526003019081526040805160209281900383018120818301835260508252603c8483019081528154600180820184556000938452959092209251600290920290920190815590519083015551621c995960ea1b815260030190815260408051602092819003830181208183018352605a825260378483019081528154600180820184556000938452959092209251600290920290920190815590519083015551621c995960ea1b8152600301908152604080516020928190038301812081830183526064825260328483019081528154600180820184556000938452959092209251600290920290920190815590519083015551656f72616e676560d01b8152600601908152604080516020928190038301812081830183526014825260648483019081528154600180820184556000938452959092209251600290920290920190815590519083015551656f72616e676560d01b815260060190815260408051602092819003830181208183018352601e8252605d8483019081528154600180820184556000938452959092209251600290920290920190815590519083015551656f72616e676560d01b8152600601908152604080516020928190038301812081830183526028825260588483019081528154600180820184556000938452959092209251600290920290920190815590519083015551656f72616e676560d01b8152600601908152604080516020928190038301812081830183526032825260568483019081528154600180820184556000938452959092209251600290920290920190815590519083015551656f72616e676560d01b815260060190815260408051602092819003830181208183018352603c825260558483019081528154600180820184556000938452959092209251600290920290920190815590519083015551656f72616e676560d01b81526006019081526040805160209281900383018120818301835260468083528483019081528154600180820184556000938452959092209251600290920290920190815590519083015551656f72616e676560d01b81526006019081526040805160209281900383018120818301835260648252604684830190815281546001808201845560009384529590922092516002909202909201908155905190830155516579656c6c6f7760d01b81526006019081526040805160209281900383018120818301835260198252606484830190815281546001808201845560009384529590922092516002909202909201908155905190830155516579656c6c6f7760d01b81526006019081526040805160209281900383018120818301835260288252605e84830190815281546001808201845560009384529590922092516002909202909201908155905190830155516579656c6c6f7760d01b81526006019081526040805160209281900383018120818301835260328252605984830190815281546001808201845560009384529590922092516002909202909201908155905190830155516579656c6c6f7760d01b815260060190815260408051602092819003830181208183018352603c8252605684830190815281546001808201845560009384529590922092516002909202909201908155905190830155516579656c6c6f7760d01b81526006019081526040805160209281900383018120818301835260468252605484830190815281546001808201845560009384529590922092516002909202909201908155905190830155516579656c6c6f7760d01b81526006019081526040805160209281900383018120818301835260508252605284830190815281546001808201845560009384529590922092516002909202909201908155905190830155516579656c6c6f7760d01b815260060190815260408051602092819003830181208183018352605a8252605084830190815281546001808201845560009384529590922092516002909202909201908155905190830155516579656c6c6f7760d01b81526006019081526040805160209281900383018120818301835260648252604b84830190815281546001808201845560009384529590922092516002909202909201908155905190830155516433b932b2b760d91b815260050190815260408051602092819003830181208183018352601e8252606484830190815281546001808201845560009384529590922092516002909202909201908155905190830155516433b932b2b760d91b81526005019081526040805160209281900383018120818301835260288252605a84830190815281546001808201845560009384529590922092516002909202909201908155905190830155516433b932b2b760d91b81526005019081526040805160209281900383018120818301835260328252605584830190815281546001808201845560009384529590922092516002909202909201908155905190830155516433b932b2b760d91b815260050190815260408051602092819003830181208183018352603c8252605184830190815281546001808201845560009384529590922092516002909202909201908155905190830155516433b932b2b760d91b81526005019081526040805160209281900383018120818301835260468252604a84830190815281546001808201845560009384529590922092516002909202909201908155905190830155516433b932b2b760d91b8152600501908152604080516020928190038301812081830183526050825283820183815281546001808201845560009384529590922092516002909202909201908155905190830155516433b932b2b760d91b815260050190815260408051602092819003830181208183018352605a8252603284830190815281546001808201845560009384529590922092516002909202909201908155905190830155516433b932b2b760d91b815260050190815260408051602092819003830181208183018352606482526028848301908152815460018082018455600093845295909220925160029092029092019081559051908301555163626c756560e01b815260040190815260408051602092819003830181208183018352601482526064848301908152815460018082018455600093845295909220925160029092029092019081559051908301555163626c756560e01b815260040190815260408051602092819003830181208183018352601e82526056848301908152815460018082018455600093845295909220925160029092029092019081559051908301555163626c756560e01b815260040190815260408051602092819003830181208183018352602882526050848301908152815460018082018455600093845295909220925160029092029092019081559051908301555163626c756560e01b81526004019081526040805160209281900383018120818301835260328252604a848301908152815460018082018455600093845295909220925160029092029092019081559051908301555163626c756560e01b815260040190815260408051602092819003830181208183018352603c808352848301908152815460018082018455600093845295909220925160029092029092019081559051908301555163626c756560e01b815260040190815260408051602092819003830181208183018352604682526034848301908152815460018082018455600093845295909220925160029092029092019081559051908301555163626c756560e01b81526004019081526040805160209281900383018120818301835260508252602c848301908152815460018082018455600093845295909220925160029092029092019081559051908301555163626c756560e01b815260040190815260408051602092819003830181208183018352605a82526027848301908152815460018082018455600093845295909220925160029092029092019081559051908301555163626c756560e01b815260040190815260408051602092819003830181208183018352606482526023848301908152815460018082018455600093845295909220925160029092029092019081559051908301555165707572706c6560d01b815260060190815260408051602092819003830181208183018352601482526064848301908152815460018082018455600093845295909220925160029092029092019081559051908301555165707572706c6560d01b815260060190815260408051602092819003830181208183018352601e82526057848301908152815460018082018455600093845295909220925160029092029092019081559051908301555165707572706c6560d01b81526006019081526040805160209281900383018120818301835260288252604f848301908152815460018082018455600093845295909220925160029092029092019081559051908301555165707572706c6560d01b815260060190815260408051602092819003830181208183018352603282526046848301908152815460018082018455600093845295909220925160029092029092019081559051908301555165707572706c6560d01b815260060190815260408051602092819003830181208183018352603c82526041848301908152815460018082018455600093845295909220925160029092029092019081559051908301555165707572706c6560d01b81526006019081526040805160209281900383018120818301835260468252603b848301908152815460018082018455600093845295909220925160029092029092019081559051908301555165707572706c6560d01b815260060190815260408051602092819003830181208183018352605082526034848301908152815460018082018455600093845295909220925160029092029092019081559051908301555165707572706c6560d01b815260060190815260408051602092819003830181208183018352605a8252602d848301908152815460018082018455600093845295909220925160029092029092019081559051908301555165707572706c6560d01b81526006019081526040805160209281900383018120818301835260648252602a84830190815281546001808201845560009384529590922092516002909202909201908155905190830155516370696e6b60e01b81526004019081526040805160209281900383018120818301835260148252606484830190815281546001808201845560009384529590922092516002909202909201908155905190830155516370696e6b60e01b815260040190815260408051602092819003830181208183018352601e8252605a84830190815281546001808201845560009384529590922092516002909202909201908155905190830155516370696e6b60e01b81526004019081526040805160209281900383018120818301835260288252605684830190815281546001808201845560009384529590922092516002909202909201908155905190830155516370696e6b60e01b815260040190815260408051602092819003830181208183018352603c8252605484830190815281546001808201845560009384529590922092516002909202909201908155905190830155516370696e6b60e01b815260040190815260408051602092819003830181208183018352605080835284830190815281546001808201845560009384529590922092516002909202909201908155905190830155516370696e6b60e01b815260040190815260408051602092819003830181208183018352605a8252604b84830190815281546001808201845560009384529590922092516002909202909201908155905190830155516370696e6b60e01b815260040190815260408051602092819003830181208183019092526064815260498382019081528254600180820185556000948552949093209151600290930290910191825551910155565b620013cb62001829565b620013d5620019d2565b6001600455620013e53362001b64565b8151620013fa90600690602085019062001c8b565b5080516200141090600790602084019062001c8b565b505050600f8490556010805460ff19168415151790556200142e3390565b6001600160a01b0316826001600160a01b0316146200145257620014528262001bb6565b6001600160a01b038116156200147e57600d80546001600160a01b0319166001600160a01b0383161790555b5050505062001de3565b6040805160a081018252600360608201818152621c995960ea1b6080840152825260006020808401829052601294840194909452805460018101825590805282518051939491909202600080516020620059be8339815191520192620014f2928492019062001c8b565b50602082810151600180840191909155604093840151600290930192909255825160a081018452600660608201908152656f72616e676560d01b60808301528152601281830152602e938101939093526000805492830181558052825180516003909302600080516020620059be833981519152019262001577928492019062001c8b565b50602082810151600180840191909155604093840151600290930192909255825160a0810184526006606082019081526579656c6c6f7760d01b60808301528152602e81830152603e938101939093526000805492830181558052825180516003909302600080516020620059be8339815191520192620015fc928492019062001c8b565b50602082810151600180840191909155604093840151600290930192909255825160a0810184526005606082019081526433b932b2b760d91b60808301528152603e8183015260b2938101939093526000805492830181558052825180516003909302600080516020620059be833981519152019262001680928492019062001c8b565b50602082810151600180840191909155604093840151600290930192909255825160a08101845260046060820190815263626c756560e01b6080830152815260b281830152610101938101939093526000805492830181558052825180516003909302600080516020620059be833981519152019262001704928492019062001c8b565b50602082810151600180840191909155604093840151600290930192909255825160a08101845260066060820190815265707572706c6560d01b608083015281526101018183015261011a938101939093526000805492830181558052825180516003909302600080516020620059be83398151915201926200178b928492019062001c8b565b50602082810151600180840191909155604093840151600290930192909255825160a0810184526004606082019081526370696e6b60e01b6080830152815261011a8183015261014e938101939093526000805492830181558052825180516003909302600080516020620059be833981519152019262001810928492019062001c8b565b5060208201518160010155604082015181600201555050565b6040805180820182526014808252606460208084018281528551621c995960ea1b8152600260038201819052875191829003602301822096518755915160019687015580870187528481528083018481528751656f72616e676560d01b81526006808201859052895191829003602690810183209451855592519389019390935580890189526019815280850186815289516579656c6c6f7760d01b81528085018690528a519081900384018120925183559051918901919091558089018952601e8082528186018781528a516433b932b2b760d91b8152600581018790528b51908190036025018120935184559051928a0192909255818a018a528782528186018781528a5163626c756560e01b815260048082018890528c51918290036024018220945185559151938b0193909355828b018b529782528186018781528a5165707572706c6560d01b81529485018690528a5194859003909301842091518255915197019690965580870187529485529084019190915292516370696e6b60e01b8152919291015b9081526040516020918190038201902082518155910151600190910155565b60408051808201825260328152606460208083018281528451621c995960ea1b81526003808201819052865191829003602390810183209651875592516001968701558187018752604682528184018581528751656f72616e676560d01b8152600680820184905289519182900360269081018320955186559251948901949094558089018952604b815280860187815289516579656c6c6f7760d01b81528086018590528a5190819003840181209251835590519189019190915580890189526028815280860187815289516433b932b2b760d91b8152600581018590528a51908190036025018120925183559051918901919091558089018952938452838501868152885163626c756560e01b815260048082018590528a51918290036024018220965187559151958901959095558489018952602a8552848601878152895165707572706c6560d01b8152948501849052895194859003909201842094518555905193909601929092558086018652604981529182019290925292516370696e6b60e01b8152909101620019b3565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6005546001600160a01b0316331462001c165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b03811662001c7d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162001c0d565b62001c888162001b64565b50565b82805462001c999062001da6565b90600052602060002090601f01602090048101928262001cbd576000855562001d08565b82601f1062001cd857805160ff191683800117855562001d08565b8280016001018555821562001d08579182015b8281111562001d0857825182559160200191906001019062001ceb565b5062001d1692915062001d1a565b5090565b5b8082111562001d16576000815560010162001d1b565b80516001600160a01b038116811462001d4957600080fd5b919050565b6000806000806080858703121562001d64578384fd5b845193506020850151801515811462001d7b578384fd5b925062001d8b6040860162001d31565b915062001d9b6060860162001d31565b905092959194509250565b600181811c9082168062001dbb57607f821691505b6020821081141562001ddd57634e487b7160e01b600052602260045260246000fd5b50919050565b613bcb8062001df36000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063715018a61161010f578063b50cbd9f116100a2578063da0239a611610071578063da0239a614610467578063e8a3d4851461046f578063e985e9c514610477578063f2fde38b1461048a57600080fd5b8063b50cbd9f14610410578063b88d4fde14610421578063c87b56dd14610434578063cad96cca1461044757600080fd5b80638c8ff3d4116100de5780638c8ff3d4146103d15780638da5cb5b146103e457806395d89b41146103f5578063a22cb465146103fd57600080fd5b8063715018a61461035257806373f931ae1461035a5780638704a208146103675780638924af741461039757600080fd5b80632a55205a1161018757806357c796911161015657806357c79691146103065780636102de98146103195780636352211e1461032c57806370a082311461033f57600080fd5b80632a55205a1461029857806332cb6b0c146102ca57806342842e0e146102d3578063505e570a146102e657600080fd5b8063095ea7b3116101c3578063095ea7b3146102525780631249c58b1461026757806318160ddd1461026f57806323b872dd1461028557600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f83660046130a5565b61049d565b60405190151581526020015b60405180910390f35b61021a6104f0565b6040516102099190613713565b61023a6102353660046130f9565b610582565b6040516001600160a01b039091168152602001610209565b61026561026036600461307a565b61061c565b005b610265610732565b610277610982565b604051908152602001610209565b610265610293366004612f30565b610992565b6102ab6102a6366004613111565b6109c3565b604080516001600160a01b039093168352602083019190915201610209565b610277600f5481565b6102656102e1366004612f30565b610ae5565b6102f96102f43660046130f9565b610b00565b60405161020991906136b3565b61021a610314366004613132565b610b11565b6101fd610327366004612ef8565b610b28565b61023a61033a3660046130f9565b610c1e565b61027761034d366004612edc565b610c95565b610265610d1c565b6010546101fd9060ff1681565b60105461037f9061010090046001600160601b031681565b6040516001600160601b039091168152602001610209565b6103aa6103a5366004613111565b610d82565b604080516001600160a01b0390931683526001600160601b03909116602083015201610209565b61021a6103df3660046130f9565b610dcb565b6005546001600160a01b031661023a565b61021a610dd6565b61026561040b366004613049565b610de5565b600d546001600160a01b031661023a565b61026561042f366004612f70565b610eaa565b61021a6104423660046130f9565b610ee2565b61045a6104553660046130f9565b61123a565b6040516102099190613700565b6102776112c9565b61021a6112e1565b6101fd610485366004612ef8565b6112f0565b610265610498366004612edc565b611337565b60006001600160e01b03198216631131d2f360e21b14156104c057506001919050565b6001600160e01b0319821663152a902d60e11b14156104e157506001919050565b6104ea82611402565b92915050565b6060600680546104ff906139e6565b80601f016020809104026020016040519081016040528092919081815260200182805461052b906139e6565b80156105785780601f1061054d57610100808354040283529160200191610578565b820191906000526020600020905b81548152906001019060200180831161055b57829003601f168201915b5050505050905090565b6000818152600860205260408120546001600160a01b03166106005760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600a60205260409020546001600160a01b031690565b600061062782610c1e565b9050806001600160a01b0316836001600160a01b031614156106955760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105f7565b336001600160a01b03821614806106b157506106b181336112f0565b6107235760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105f7565b61072d8383611452565b505050565b600260045414156107855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105f7565b6002600455600f54601154106107dd5760405162461bcd60e51b815260206004820152601c60248201527f4d696e7420776f756c6420657863656564206d617820737570706c790000000060448201526064016105f7565b601054339060ff1615610844576001600160a01b03811660009081526012602052604090205460ff16156108445760405162461bcd60e51b815260206004820152600e60248201526d4d696e74206f6e6c79206f6e636560901b60448201526064016105f7565b6001600160a01b0381166000908152601260205260408120805460ff191660019081179091556013549190610879904361398c565b60408051600580825260c08201909252914092504291600090826020820160a08036833701905050905060005b828110156108fa576108ba868589886114c0565b9550858282815181106108dd57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806108f281613a21565b9150506108a6565b50601385905561090e601180546001019055565b600061091960115490565b6000818152601460209081526040909120845192935061093d929091850190612e1c565b50610948878261152d565b6109748161095e6005546001600160a01b031690565b60105461010090046001600160601b031661154b565b505060016004555050505050565b600061098d60115490565b905090565b61099c3382611615565b6109b85760405162461bcd60e51b81526004016105f7906137a6565b61072d8383836116e4565b6000828152600e60209081526040808320805482518185028101850190935280835284938493929190849084015b82821015610a4057600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b0316818301528252600190920191016109f1565b505050509050600081511115610ad55780600081518110610a7157634e487b7160e01b600052603260045260246000fd5b60200260200101516000015161271082600081518110610aa157634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b031686610ac1919061392e565b610acb9190613897565b9250925050610ade565b60008092509250505b9250929050565b61072d83838360405180602001604052806000815250610eaa565b610b08612e67565b6104ea82611884565b6060610b1e8484846119e2565b90505b9392505050565b600d546000906001600160a01b03168015610c14574660011480610b4c5750466004145b15610be15760405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b158015610b9757600080fd5b505afa158015610bab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcf91906130dd565b6001600160a01b0316149150506104ea565b4660891480610bf257504662013881145b15610c1457826001600160a01b0316816001600160a01b0316149150506104ea565b5060009392505050565b6000818152600860205260408120546001600160a01b0316806104ea5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105f7565b60006001600160a01b038216610d005760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105f7565b506001600160a01b031660009081526009602052604090205490565b6005546001600160a01b03163314610d765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f7565b610d806000611ada565b565b600e6020528160005260406000208181548110610d9e57600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b60606104ea82611b2c565b6060600780546104ff906139e6565b6001600160a01b038216331415610e3e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105f7565b336000818152600b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610eb43383611615565b610ed05760405162461bcd60e51b81526004016105f7906137a6565b610edc84848484611b95565b50505050565b6000818152600860205260409020546060906001600160a01b0316610f615760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105f7565b6000610f6c83611884565b9050610f76612e8e565b610f7e612e67565b6040518060c0016040528060988152602001613afe60989139825260005b60058110156110fb57610fb8610fb382600261392e565b611bc8565b848260058110610fd857634e487b7160e01b600052603260045260246000fd5b6020020151604051602001610fee929190613368565b60408051601f198184030181529190528361100a836001613851565b6008811061102857634e487b7160e01b600052603260045260246000fd5b602002015261103b610fb3826001613851565b84826005811061105b57634e487b7160e01b600052603260045260246000fd5b6020020151600561106d846001613851565b146110925760405180604001604052806002815260200161016160f51b8152506110a3565b604051806020016040528060008152505b6040516020016110b5939291906132da565b6040516020818303038152906040528282600581106110e457634e487b7160e01b600052603260045260246000fd5b6020020152806110f381613a21565b915050610f9c565b50604080518082018252600a8152691e17b39f1e17b9bb339f60b11b60208083019190915260e08501919091528351848201518584015160608701516080880151955160009661114d9690910161326f565b60408051808303601f190181529082905260a085015160c086015160e087015192945061117f93859390602001613218565b60408051808303601f19018152828252845160208087015193870151606088015160808901519497506000966111bc96949592939192910161326f565b6040516020818303038152906040529050600061120b6111db89611bc8565b6111e485611ce2565b846040516020016111f793929190613443565b604051602081830303815290604052611ce2565b90508060405160200161121e9190613631565b60408051601f1981840301815291905298975050505050505050565b6060600e6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156112be57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b03168183015282526001909201910161126f565b505050509050919050565b60006112d460115490565b600f5461098d919061398c565b6060600c80546104ff906139e6565b60006112fc8383610b28565b15611309575060016104ea565b6001600160a01b038084166000908152600b602090815260408083209386168352929052205460ff16610b21565b6005546001600160a01b031633146113915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f7565b6001600160a01b0381166113f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f7565b6113ff81611ada565b50565b60006001600160e01b031982166380ac58cd60e01b148061143357506001600160e01b03198216635b5e139f60e01b145b806104ea57506301ffc9a760e01b6001600160e01b03198316146104ea565b6000818152600a6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061148782610c1e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60408051602081018690529081018490526bffffffffffffffffffffffff19606084811b8216818401526074830184905241901b1660948201524460a88201523a60c882015260009060e8016040516020818303038152906040528051906020012090505b949350505050565b611547828260405180602001604052806000815250611e56565b5050565b604080516001808252818301909252600091816020015b604080518082019091526000808252602082015281526020019060019003908161156257905050905081816000815181106115ad57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001906001600160601b031690816001600160601b03168152505082816000815181106115f357634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b039091169052610edc8482611e89565b6000818152600860205260408120546001600160a01b031661168e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105f7565b600061169983610c1e565b9050806001600160a01b0316846001600160a01b031614806116d45750836001600160a01b03166116c984610582565b6001600160a01b0316145b80611525575061152581856112f0565b826001600160a01b03166116f782610c1e565b6001600160a01b03161461175f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105f7565b6001600160a01b0382166117c15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105f7565b6117cc600082611452565b6001600160a01b03831660009081526009602052604081208054600192906117f590849061398c565b90915550506001600160a01b0382166000908152600960205260408120805460019290611823908490613851565b909155505060008181526008602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61188c612e67565b6000828152600860205260409020546001600160a01b03166118ff5760405162461bcd60e51b815260206004820152602660248201527f67657450616c6574746520717565727920666f72206e6f6e6578697374656e74604482015265103a37b5b2b760d11b60648201526084016105f7565b60008281526014602090815260408083208054825181850281018501909352808352919290919083018282801561195557602002820191906000526020600020905b815481526020019060010190808311611941575b50505050509050611964612e67565b60005b82518110156119da576119a383828151811061199357634e487b7160e01b600052603260045260246000fd5b602002602001015160001c611b2c565b8282600581106119c357634e487b7160e01b600052603260045260246000fd5b6020020152806119d281613a21565b915050611967565b509392505050565b6060610168841115611a275760405162461bcd60e51b815260206004820152600e60248201526d04d617820687565206973203336360941b60448201526064016105f7565b6064831115611a705760405162461bcd60e51b815260206004820152601560248201527404d61782073617475726174696f6e2069732031303605c1b60448201526064016105f7565b6064821115611ab95760405162461bcd60e51b815260206004820152601560248201527404d6178206272696768746e6573732069732031303605c1b60448201526064016105f7565b6000611ac6858585612037565b9050611ad1816122bf565b95945050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060006040518060400160405280848152602001600081525090506000611b5382612312565b90506000611b618383612321565b90506000611b708484846123de565b90506000611b7f848484612037565b9050611b8a816122bf565b979650505050505050565b611ba08484846116e4565b611bac84848484612480565b610edc5760405162461bcd60e51b81526004016105f790613726565b606081611bec5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c165780611c0081613a21565b9150611c0f9050600a83613897565b9150611bf0565b60008167ffffffffffffffff811115611c3f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c69576020820181803683370190505b5090505b841561152557611c7e60018361398c565b9150611c8b600a86613a3c565b611c96906030613851565b60f81b818381518110611cb957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611cdb600a86613897565b9450611c6d565b805160609080611d02575050604080516020810190915260008152919050565b60006003611d11836002613851565b611d1b9190613897565b611d2690600461392e565b90506000611d35826020613851565b67ffffffffffffffff811115611d5b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d85576020820181803683370190505b5090506000604051806060016040528060408152602001613abe604091399050600181016020830160005b86811015611e11576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611db0565b506003860660018114611e2b5760028114611e3c57611e48565b613d3d60f01b600119830152611e48565b603d60f81b6000198301525b505050918152949350505050565b611e60838361258a565b611e6d6000848484612480565b61072d5760405162461bcd60e51b81526004016105f790613726565b60005b815181101561202c5760006001600160a01b0316828281518110611ec057634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b03161415611f235760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e74000000000060448201526064016105f7565b818181518110611f4357634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b031660001415611fa85760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f73697469766560448201526064016105f7565b6000838152600e602052604090208251839083908110611fd857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b03909116179101558061202481613a21565b915050611e8c565b5061154782826126cc565b61203f612ea9565b8361204957600193505b8361016814156120595761016793505b612710600061016861206b838861392e565b6120759190613897565b905060006064612085848861392e565b61208f9190613897565b90506000606461209f858861392e565b6120a99190613897565b905060006120b884600661392e565b905060006120c68683613a3c565b9050600086856120d782600161392e565b6120e1919061398c565b6120eb908661392e565b6120f59190613897565b905060008780612105888661392e565b61210f9190613897565b61211a8a600161392e565b612124919061398c565b61212e908761392e565b6121389190613897565b905060008880888661214b83600161392e565b612155919061398c565b61215f919061392e565b6121699190613897565b6121748b600161392e565b61217e919061398c565b612188908861392e565b6121929190613897565b905061010080806121a48c600161392e565b8810156121b857508791508290508461224f565b6121c38c600261392e565b8810156121d757508391508790508461224f565b6121e28c600361392e565b8810156121f657508491508790508261224f565b6122018c600461392e565b88101561221557508491508390508761224f565b6122208c600561392e565b88101561223457508291508490508761224f565b61223f8c600661392e565b88101561224f5750879150849050835b60405180606001604052808d8560ff612268919061392e565b6122729190613897565b81526020018d6122838560ff61392e565b61228d9190613897565b81526020018d61229e8460ff61392e565b6122a89190613897565b90529c505050505050505050505050509392505050565b606060006122d383825b6020020151612709565b6122de8460016122c9565b6122e98560026122c9565b6040516020016122fb939291906133ed565b60408051601f198184030181529190529392505050565b60006104ea828261016861275b565b60008061232d83612863565b6040805180820190915260098152681b9bdd17d99bdd5b9960ba1b6020918201528151908201209091507f93685a635465af0d6895e0063c3fea2eef97ef5dd7fbe38a6b1bfaf10cf9c6be14156123965760405162461bcd60e51b81526004016105f790613778565b60006002826040516123a891906131fc565b908152604080516020928190038301812081830190925281548082526001909201549281018390529250611ad19187919061275b565b6000806123ea84612863565b6040805180820190915260098152681b9bdd17d99bdd5b9960ba1b6020918201528151908201209091507f93685a635465af0d6895e0063c3fea2eef97ef5dd7fbe38a6b1bfaf10cf9c6be14156124535760405162461bcd60e51b81526004016105f790613778565b600061245f8585612a08565b905060648082141561247557509150610b219050565b611b8a87838361275b565b60006001600160a01b0384163b1561258257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124c4903390899088908890600401613676565b602060405180830381600087803b1580156124de57600080fd5b505af192505050801561250e575060408051601f3d908101601f1916820190925261250b918101906130c1565b60015b612568573d80801561253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b5080516125605760405162461bcd60e51b81526004016105f790613726565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611525565b506001611525565b6001600160a01b0382166125e05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105f7565b6000818152600860205260409020546001600160a01b0316156126455760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105f7565b6001600160a01b038216600090815260096020526040812080546001929061266e908490613851565b909155505060008181526008602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516126fd9291906137f7565b60405180910390a15050565b60608161272e575050604080518082019091526002815261030360f41b602082015290565b8160005b8115612751578061274281613a21565b915050600882901c9150612732565b6115258482612cb5565b82516020840151600091908290612773906003613851565b90506004600f620fffff86111561279257506018905062ffffff6127e8565b61ffff8611156127aa575060149050620fffff6127e8565b610fff8611156127c157506010905061ffff6127e8565b60ff8611156127d75750600c9050610fff6127e8565b600f8611156127e857506008905060ff5b6127f48261010061398c565b83111561282757604080516020810186905260009450016040516020818303038152906040528051906020012060001c93505b83831c818116612837898961398c565b6128419082613a3c565b61284b908a613851565b958a5250505050602090950194909452509192915050565b606061014e821015801561287957506101688211155b1561288357600091505b60008054905b818110156129e057600081815481106128b257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016001015484101580156129055750600081815481106128ef57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600201548411155b156129ce576000818154811061292b57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016000018054612947906139e6565b80601f0160208091040260200160405190810160405280929190818152602001828054612973906139e6565b80156129c05780601f10612995576101008083540402835291602001916129c0565b820191906000526020600020905b8154815290600101906020018083116129a357829003601f168201915b505050505092505050919050565b806129d881613a21565b915050612889565b50506040805180820190915260098152681b9bdd17d99bdd5b9960ba1b602082015292915050565b600080612a1484612863565b6040805180820190915260098152681b9bdd17d99bdd5b9960ba1b6020918201528151908201209091507f93685a635465af0d6895e0063c3fea2eef97ef5dd7fbe38a6b1bfaf10cf9c6be1415612a7d5760405162461bcd60e51b81526004016105f790613778565b6000600182604051612a8f91906131fc565b9081526020016040518091039020805480602002602001604051908101604052809291908181526020016000905b82821015612b0357838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190612abd565b5050825192935060009150505b612b1b60018361398c565b811015612ca8576000838281518110612b4457634e487b7160e01b600052603260045260246000fd5b60200260200101516000015190506000848381518110612b7457634e487b7160e01b600052603260045260246000fd5b6020026020010151602001519050600085846001612b929190613851565b81518110612bb057634e487b7160e01b600052603260045260246000fd5b6020026020010151600001519050600086856001612bce9190613851565b81518110612bec57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001519050838a10158015612c0a5750818a11155b15612c91576000612c1b858461398c565b612c25858461394d565b612c3090600a6138ab565b612c3a9190613869565b90506000612c4886836138ab565b612c5386600a61392e565b612c5d919061394d565b9050600a81612c6c8e856138ab565b612c769190613810565b612c809190613869565b9a50505050505050505050506104ea565b505050508080612ca090613a21565b915050612b10565b5060009695505050505050565b60606000612cc483600261392e565b67ffffffffffffffff811115612cea57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612d14576020820181803683370190505b5090506000612d2484600261392e565b612d2f906001613851565b90505b6001811115612dcd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612d7157634e487b7160e01b600052603260045260246000fd5b1a60f81b82612d8160028461398c565b81518110612d9f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612dc6816139cf565b9050612d32565b508315610b215760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105f7565b828054828255906000526020600020908101928215612e57579160200282015b82811115612e57578251825591602001919060010190612e3c565b50612e63929150612ec7565b5090565b6040518060a001604052806005905b6060815260200190600190039081612e765790505090565b60408051610100810190915260608152600760208201612e76565b60405180606001604052806003906020820280368337509192915050565b5b80821115612e635760008155600101612ec8565b600060208284031215612eed578081fd5b8135610b2181613a92565b60008060408385031215612f0a578081fd5b8235612f1581613a92565b91506020830135612f2581613a92565b809150509250929050565b600080600060608486031215612f44578081fd5b8335612f4f81613a92565b92506020840135612f5f81613a92565b929592945050506040919091013590565b60008060008060808587031215612f85578081fd5b8435612f9081613a92565b93506020850135612fa081613a92565b925060408501359150606085013567ffffffffffffffff80821115612fc3578283fd5b818701915087601f830112612fd6578283fd5b813581811115612fe857612fe8613a7c565b604051601f8201601f19908116603f0116810190838211818310171561301057613010613a7c565b816040528281528a6020848701011115613028578586fd5b82602086016020830137918201602001949094529598949750929550505050565b6000806040838503121561305b578182fd5b823561306681613a92565b915060208301358015158114612f25578182fd5b6000806040838503121561308c578182fd5b823561309781613a92565b946020939093013593505050565b6000602082840312156130b6578081fd5b8135610b2181613aa7565b6000602082840312156130d2578081fd5b8151610b2181613aa7565b6000602082840312156130ee578081fd5b8151610b2181613a92565b60006020828403121561310a578081fd5b5035919050565b60008060408385031215613123578182fd5b50508035926020909101359150565b600080600060608486031215613146578283fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b838110156131a957815180516001600160a01b031688528301516001600160601b03168388015260409096019590820190600101613170565b509495945050505050565b600081518084526131cc8160208601602086016139a3565b601f01601f19169290920160200192915050565b600081516131f28185602086016139a3565b9290920192915050565b6000825161320e8184602087016139a3565b9190910192915050565b6000855161322a818460208a016139a3565b85519083019061323e818360208a016139a3565b85519101906132518183602089016139a3565b84519101906132648183602088016139a3565b019695505050505050565b60008651613281818460208b016139a3565b865190830190613295818360208b016139a3565b86519101906132a8818360208a016139a3565b85519101906132bb8183602089016139a3565b84519101906132ce8183602088016139a3565b01979650505050505050565b743d913a3930b4ba2fba3cb832911d101121b7b637b960591b8152835160009061330b8160158501602089016139a3565b6c111610113b30b63ab2911d101160991b60159184019182015284516133388160228401602089016139a3565b61227d60f01b60229290910191820152835161335b8160248401602088016139a3565b0160240195945050505050565b6e1e3932b1ba103c1e911811103c9e9160891b8152825160009061339381600f8501602088016139a3565b7f222077696474683d22313022206865696768743d2232222066696c6c3d220000600f9184019182015283516133d081602d8401602088016139a3565b631110179f60e11b602d9290910191820152603101949350505050565b602360f81b8152600084516134098160018501602089016139a3565b8451908301906134208160018401602089016139a3565b84519101906134368160018401602088016139a3565b0160010195945050505050565b727b226e616d65223a202250616c65747465202360681b815283516000906134728160138501602089016139a3565b7f222c20226465736372697074696f6e223a202250616c657474654f6e436861696013918401918201527f6e2069732072616e646f6d6c792067656e65726174656420636f6c6f7220706160338201527f6c6574746520616e642073746f726564206f6e20636861696e2e20546869732060538201527f70616c657474652063616e2062652075736564206173206120636f6c6f72206260738201527f617365206279206f746865727320746f20637265617465206e657720636f6c6c60938201527f65637461626c65206172742e222c2022696d616765223a2022646174613a696d60b3820152721859d94bdcdd99cade1b5b0ed8985cd94d8d0b606a1b60d382015284516135898160e68401602089016139a3565b611b8a6135bc6135b660e68486010171222c202261747472696275746573223a205b60701b815260120190565b876131e0565b7f5d2c20226c6963656e7365223a207b202274797065223a2022434330222c202281527f75726c223a202268747470733a2f2f6372656174697665636f6d6d6f6e732e6f60208201527f72672f7075626c6963646f6d61696e2f7a65726f2f312e302f22207d7d0000006040820152605d0190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161366981601d8501602087016139a3565b91909101601d0192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136a9908301846131b4565b9695505050505050565b602080825260009060c0830183820185845b60058110156136f457601f198785030183526136e28483516131b4565b935091840191908401906001016136c5565b50919695505050505050565b602081526000610b21602083018461315d565b602081526000610b2160208301846131b4565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526014908201527310dbdb1bdc881b985b59481b9bdd08199bdd5b9960621b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b828152604060208201526000610b1e604083018461315d565b600080821280156001600160ff1b038490038513161561383257613832613a50565b600160ff1b839003841281161561384b5761384b613a50565b50500190565b6000821982111561386457613864613a50565b500190565b60008261387857613878613a66565b600160ff1b82146000198414161561389257613892613a50565b500590565b6000826138a6576138a6613a66565b500490565b60006001600160ff1b03818413828413808216868404861116156138d1576138d1613a50565b600160ff1b848712828116878305891216156138ef576138ef613a50565b85871292508782058712848416161561390a5761390a613a50565b8785058712818416161561392057613920613a50565b505050929093029392505050565b600081600019048311821515161561394857613948613a50565b500290565b60008083128015600160ff1b85018412161561396b5761396b613a50565b6001600160ff1b038401831381161561398657613986613a50565b50500390565b60008282101561399e5761399e613a50565b500390565b60005b838110156139be5781810151838201526020016139a6565b83811115610edc5750506000910152565b6000816139de576139de613a50565b506000190190565b600181811c908216806139fa57607f821691505b60208210811415613a1b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613a3557613a35613a50565b5060010190565b600082613a4b57613a4b613a66565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113ff57600080fd5b6001600160e01b0319811681146113ff57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222077696474683d2238303022206865696768743d22383030222076696577426f783d22302030203130203130223e3c67207472616e73666f726d3d22726f74617465282d39302035203529223ea26469706673582212205a90618e406861e6d112e5409fdaeb185e44f8d9b85c3c11f34db3a53434900764736f6c63430008040033290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56300000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000100000000000000000000000001ec8dda63735ceb20b7449c44cefdabccc66a49000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063715018a61161010f578063b50cbd9f116100a2578063da0239a611610071578063da0239a614610467578063e8a3d4851461046f578063e985e9c514610477578063f2fde38b1461048a57600080fd5b8063b50cbd9f14610410578063b88d4fde14610421578063c87b56dd14610434578063cad96cca1461044757600080fd5b80638c8ff3d4116100de5780638c8ff3d4146103d15780638da5cb5b146103e457806395d89b41146103f5578063a22cb465146103fd57600080fd5b8063715018a61461035257806373f931ae1461035a5780638704a208146103675780638924af741461039757600080fd5b80632a55205a1161018757806357c796911161015657806357c79691146103065780636102de98146103195780636352211e1461032c57806370a082311461033f57600080fd5b80632a55205a1461029857806332cb6b0c146102ca57806342842e0e146102d3578063505e570a146102e657600080fd5b8063095ea7b3116101c3578063095ea7b3146102525780631249c58b1461026757806318160ddd1461026f57806323b872dd1461028557600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f83660046130a5565b61049d565b60405190151581526020015b60405180910390f35b61021a6104f0565b6040516102099190613713565b61023a6102353660046130f9565b610582565b6040516001600160a01b039091168152602001610209565b61026561026036600461307a565b61061c565b005b610265610732565b610277610982565b604051908152602001610209565b610265610293366004612f30565b610992565b6102ab6102a6366004613111565b6109c3565b604080516001600160a01b039093168352602083019190915201610209565b610277600f5481565b6102656102e1366004612f30565b610ae5565b6102f96102f43660046130f9565b610b00565b60405161020991906136b3565b61021a610314366004613132565b610b11565b6101fd610327366004612ef8565b610b28565b61023a61033a3660046130f9565b610c1e565b61027761034d366004612edc565b610c95565b610265610d1c565b6010546101fd9060ff1681565b60105461037f9061010090046001600160601b031681565b6040516001600160601b039091168152602001610209565b6103aa6103a5366004613111565b610d82565b604080516001600160a01b0390931683526001600160601b03909116602083015201610209565b61021a6103df3660046130f9565b610dcb565b6005546001600160a01b031661023a565b61021a610dd6565b61026561040b366004613049565b610de5565b600d546001600160a01b031661023a565b61026561042f366004612f70565b610eaa565b61021a6104423660046130f9565b610ee2565b61045a6104553660046130f9565b61123a565b6040516102099190613700565b6102776112c9565b61021a6112e1565b6101fd610485366004612ef8565b6112f0565b610265610498366004612edc565b611337565b60006001600160e01b03198216631131d2f360e21b14156104c057506001919050565b6001600160e01b0319821663152a902d60e11b14156104e157506001919050565b6104ea82611402565b92915050565b6060600680546104ff906139e6565b80601f016020809104026020016040519081016040528092919081815260200182805461052b906139e6565b80156105785780601f1061054d57610100808354040283529160200191610578565b820191906000526020600020905b81548152906001019060200180831161055b57829003601f168201915b5050505050905090565b6000818152600860205260408120546001600160a01b03166106005760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600a60205260409020546001600160a01b031690565b600061062782610c1e565b9050806001600160a01b0316836001600160a01b031614156106955760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105f7565b336001600160a01b03821614806106b157506106b181336112f0565b6107235760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105f7565b61072d8383611452565b505050565b600260045414156107855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105f7565b6002600455600f54601154106107dd5760405162461bcd60e51b815260206004820152601c60248201527f4d696e7420776f756c6420657863656564206d617820737570706c790000000060448201526064016105f7565b601054339060ff1615610844576001600160a01b03811660009081526012602052604090205460ff16156108445760405162461bcd60e51b815260206004820152600e60248201526d4d696e74206f6e6c79206f6e636560901b60448201526064016105f7565b6001600160a01b0381166000908152601260205260408120805460ff191660019081179091556013549190610879904361398c565b60408051600580825260c08201909252914092504291600090826020820160a08036833701905050905060005b828110156108fa576108ba868589886114c0565b9550858282815181106108dd57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806108f281613a21565b9150506108a6565b50601385905561090e601180546001019055565b600061091960115490565b6000818152601460209081526040909120845192935061093d929091850190612e1c565b50610948878261152d565b6109748161095e6005546001600160a01b031690565b60105461010090046001600160601b031661154b565b505060016004555050505050565b600061098d60115490565b905090565b61099c3382611615565b6109b85760405162461bcd60e51b81526004016105f7906137a6565b61072d8383836116e4565b6000828152600e60209081526040808320805482518185028101850190935280835284938493929190849084015b82821015610a4057600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b0316818301528252600190920191016109f1565b505050509050600081511115610ad55780600081518110610a7157634e487b7160e01b600052603260045260246000fd5b60200260200101516000015161271082600081518110610aa157634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b031686610ac1919061392e565b610acb9190613897565b9250925050610ade565b60008092509250505b9250929050565b61072d83838360405180602001604052806000815250610eaa565b610b08612e67565b6104ea82611884565b6060610b1e8484846119e2565b90505b9392505050565b600d546000906001600160a01b03168015610c14574660011480610b4c5750466004145b15610be15760405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b158015610b9757600080fd5b505afa158015610bab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcf91906130dd565b6001600160a01b0316149150506104ea565b4660891480610bf257504662013881145b15610c1457826001600160a01b0316816001600160a01b0316149150506104ea565b5060009392505050565b6000818152600860205260408120546001600160a01b0316806104ea5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105f7565b60006001600160a01b038216610d005760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105f7565b506001600160a01b031660009081526009602052604090205490565b6005546001600160a01b03163314610d765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f7565b610d806000611ada565b565b600e6020528160005260406000208181548110610d9e57600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b60606104ea82611b2c565b6060600780546104ff906139e6565b6001600160a01b038216331415610e3e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105f7565b336000818152600b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610eb43383611615565b610ed05760405162461bcd60e51b81526004016105f7906137a6565b610edc84848484611b95565b50505050565b6000818152600860205260409020546060906001600160a01b0316610f615760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105f7565b6000610f6c83611884565b9050610f76612e8e565b610f7e612e67565b6040518060c0016040528060988152602001613afe60989139825260005b60058110156110fb57610fb8610fb382600261392e565b611bc8565b848260058110610fd857634e487b7160e01b600052603260045260246000fd5b6020020151604051602001610fee929190613368565b60408051601f198184030181529190528361100a836001613851565b6008811061102857634e487b7160e01b600052603260045260246000fd5b602002015261103b610fb3826001613851565b84826005811061105b57634e487b7160e01b600052603260045260246000fd5b6020020151600561106d846001613851565b146110925760405180604001604052806002815260200161016160f51b8152506110a3565b604051806020016040528060008152505b6040516020016110b5939291906132da565b6040516020818303038152906040528282600581106110e457634e487b7160e01b600052603260045260246000fd5b6020020152806110f381613a21565b915050610f9c565b50604080518082018252600a8152691e17b39f1e17b9bb339f60b11b60208083019190915260e08501919091528351848201518584015160608701516080880151955160009661114d9690910161326f565b60408051808303601f190181529082905260a085015160c086015160e087015192945061117f93859390602001613218565b60408051808303601f19018152828252845160208087015193870151606088015160808901519497506000966111bc96949592939192910161326f565b6040516020818303038152906040529050600061120b6111db89611bc8565b6111e485611ce2565b846040516020016111f793929190613443565b604051602081830303815290604052611ce2565b90508060405160200161121e9190613631565b60408051601f1981840301815291905298975050505050505050565b6060600e6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156112be57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b03168183015282526001909201910161126f565b505050509050919050565b60006112d460115490565b600f5461098d919061398c565b6060600c80546104ff906139e6565b60006112fc8383610b28565b15611309575060016104ea565b6001600160a01b038084166000908152600b602090815260408083209386168352929052205460ff16610b21565b6005546001600160a01b031633146113915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f7565b6001600160a01b0381166113f65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f7565b6113ff81611ada565b50565b60006001600160e01b031982166380ac58cd60e01b148061143357506001600160e01b03198216635b5e139f60e01b145b806104ea57506301ffc9a760e01b6001600160e01b03198316146104ea565b6000818152600a6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061148782610c1e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60408051602081018690529081018490526bffffffffffffffffffffffff19606084811b8216818401526074830184905241901b1660948201524460a88201523a60c882015260009060e8016040516020818303038152906040528051906020012090505b949350505050565b611547828260405180602001604052806000815250611e56565b5050565b604080516001808252818301909252600091816020015b604080518082019091526000808252602082015281526020019060019003908161156257905050905081816000815181106115ad57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001906001600160601b031690816001600160601b03168152505082816000815181106115f357634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b039091169052610edc8482611e89565b6000818152600860205260408120546001600160a01b031661168e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105f7565b600061169983610c1e565b9050806001600160a01b0316846001600160a01b031614806116d45750836001600160a01b03166116c984610582565b6001600160a01b0316145b80611525575061152581856112f0565b826001600160a01b03166116f782610c1e565b6001600160a01b03161461175f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105f7565b6001600160a01b0382166117c15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105f7565b6117cc600082611452565b6001600160a01b03831660009081526009602052604081208054600192906117f590849061398c565b90915550506001600160a01b0382166000908152600960205260408120805460019290611823908490613851565b909155505060008181526008602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61188c612e67565b6000828152600860205260409020546001600160a01b03166118ff5760405162461bcd60e51b815260206004820152602660248201527f67657450616c6574746520717565727920666f72206e6f6e6578697374656e74604482015265103a37b5b2b760d11b60648201526084016105f7565b60008281526014602090815260408083208054825181850281018501909352808352919290919083018282801561195557602002820191906000526020600020905b815481526020019060010190808311611941575b50505050509050611964612e67565b60005b82518110156119da576119a383828151811061199357634e487b7160e01b600052603260045260246000fd5b602002602001015160001c611b2c565b8282600581106119c357634e487b7160e01b600052603260045260246000fd5b6020020152806119d281613a21565b915050611967565b509392505050565b6060610168841115611a275760405162461bcd60e51b815260206004820152600e60248201526d04d617820687565206973203336360941b60448201526064016105f7565b6064831115611a705760405162461bcd60e51b815260206004820152601560248201527404d61782073617475726174696f6e2069732031303605c1b60448201526064016105f7565b6064821115611ab95760405162461bcd60e51b815260206004820152601560248201527404d6178206272696768746e6573732069732031303605c1b60448201526064016105f7565b6000611ac6858585612037565b9050611ad1816122bf565b95945050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060006040518060400160405280848152602001600081525090506000611b5382612312565b90506000611b618383612321565b90506000611b708484846123de565b90506000611b7f848484612037565b9050611b8a816122bf565b979650505050505050565b611ba08484846116e4565b611bac84848484612480565b610edc5760405162461bcd60e51b81526004016105f790613726565b606081611bec5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c165780611c0081613a21565b9150611c0f9050600a83613897565b9150611bf0565b60008167ffffffffffffffff811115611c3f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c69576020820181803683370190505b5090505b841561152557611c7e60018361398c565b9150611c8b600a86613a3c565b611c96906030613851565b60f81b818381518110611cb957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611cdb600a86613897565b9450611c6d565b805160609080611d02575050604080516020810190915260008152919050565b60006003611d11836002613851565b611d1b9190613897565b611d2690600461392e565b90506000611d35826020613851565b67ffffffffffffffff811115611d5b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d85576020820181803683370190505b5090506000604051806060016040528060408152602001613abe604091399050600181016020830160005b86811015611e11576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611db0565b506003860660018114611e2b5760028114611e3c57611e48565b613d3d60f01b600119830152611e48565b603d60f81b6000198301525b505050918152949350505050565b611e60838361258a565b611e6d6000848484612480565b61072d5760405162461bcd60e51b81526004016105f790613726565b60005b815181101561202c5760006001600160a01b0316828281518110611ec057634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b03161415611f235760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e74000000000060448201526064016105f7565b818181518110611f4357634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516001600160601b031660001415611fa85760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f73697469766560448201526064016105f7565b6000838152600e602052604090208251839083908110611fd857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b03909116179101558061202481613a21565b915050611e8c565b5061154782826126cc565b61203f612ea9565b8361204957600193505b8361016814156120595761016793505b612710600061016861206b838861392e565b6120759190613897565b905060006064612085848861392e565b61208f9190613897565b90506000606461209f858861392e565b6120a99190613897565b905060006120b884600661392e565b905060006120c68683613a3c565b9050600086856120d782600161392e565b6120e1919061398c565b6120eb908661392e565b6120f59190613897565b905060008780612105888661392e565b61210f9190613897565b61211a8a600161392e565b612124919061398c565b61212e908761392e565b6121389190613897565b905060008880888661214b83600161392e565b612155919061398c565b61215f919061392e565b6121699190613897565b6121748b600161392e565b61217e919061398c565b612188908861392e565b6121929190613897565b905061010080806121a48c600161392e565b8810156121b857508791508290508461224f565b6121c38c600261392e565b8810156121d757508391508790508461224f565b6121e28c600361392e565b8810156121f657508491508790508261224f565b6122018c600461392e565b88101561221557508491508390508761224f565b6122208c600561392e565b88101561223457508291508490508761224f565b61223f8c600661392e565b88101561224f5750879150849050835b60405180606001604052808d8560ff612268919061392e565b6122729190613897565b81526020018d6122838560ff61392e565b61228d9190613897565b81526020018d61229e8460ff61392e565b6122a89190613897565b90529c505050505050505050505050509392505050565b606060006122d383825b6020020151612709565b6122de8460016122c9565b6122e98560026122c9565b6040516020016122fb939291906133ed565b60408051601f198184030181529190529392505050565b60006104ea828261016861275b565b60008061232d83612863565b6040805180820190915260098152681b9bdd17d99bdd5b9960ba1b6020918201528151908201209091507f93685a635465af0d6895e0063c3fea2eef97ef5dd7fbe38a6b1bfaf10cf9c6be14156123965760405162461bcd60e51b81526004016105f790613778565b60006002826040516123a891906131fc565b908152604080516020928190038301812081830190925281548082526001909201549281018390529250611ad19187919061275b565b6000806123ea84612863565b6040805180820190915260098152681b9bdd17d99bdd5b9960ba1b6020918201528151908201209091507f93685a635465af0d6895e0063c3fea2eef97ef5dd7fbe38a6b1bfaf10cf9c6be14156124535760405162461bcd60e51b81526004016105f790613778565b600061245f8585612a08565b905060648082141561247557509150610b219050565b611b8a87838361275b565b60006001600160a01b0384163b1561258257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124c4903390899088908890600401613676565b602060405180830381600087803b1580156124de57600080fd5b505af192505050801561250e575060408051601f3d908101601f1916820190925261250b918101906130c1565b60015b612568573d80801561253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b5080516125605760405162461bcd60e51b81526004016105f790613726565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611525565b506001611525565b6001600160a01b0382166125e05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105f7565b6000818152600860205260409020546001600160a01b0316156126455760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105f7565b6001600160a01b038216600090815260096020526040812080546001929061266e908490613851565b909155505060008181526008602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516126fd9291906137f7565b60405180910390a15050565b60608161272e575050604080518082019091526002815261030360f41b602082015290565b8160005b8115612751578061274281613a21565b915050600882901c9150612732565b6115258482612cb5565b82516020840151600091908290612773906003613851565b90506004600f620fffff86111561279257506018905062ffffff6127e8565b61ffff8611156127aa575060149050620fffff6127e8565b610fff8611156127c157506010905061ffff6127e8565b60ff8611156127d75750600c9050610fff6127e8565b600f8611156127e857506008905060ff5b6127f48261010061398c565b83111561282757604080516020810186905260009450016040516020818303038152906040528051906020012060001c93505b83831c818116612837898961398c565b6128419082613a3c565b61284b908a613851565b958a5250505050602090950194909452509192915050565b606061014e821015801561287957506101688211155b1561288357600091505b60008054905b818110156129e057600081815481106128b257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016001015484101580156129055750600081815481106128ef57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600201548411155b156129ce576000818154811061292b57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016000018054612947906139e6565b80601f0160208091040260200160405190810160405280929190818152602001828054612973906139e6565b80156129c05780601f10612995576101008083540402835291602001916129c0565b820191906000526020600020905b8154815290600101906020018083116129a357829003601f168201915b505050505092505050919050565b806129d881613a21565b915050612889565b50506040805180820190915260098152681b9bdd17d99bdd5b9960ba1b602082015292915050565b600080612a1484612863565b6040805180820190915260098152681b9bdd17d99bdd5b9960ba1b6020918201528151908201209091507f93685a635465af0d6895e0063c3fea2eef97ef5dd7fbe38a6b1bfaf10cf9c6be1415612a7d5760405162461bcd60e51b81526004016105f790613778565b6000600182604051612a8f91906131fc565b9081526020016040518091039020805480602002602001604051908101604052809291908181526020016000905b82821015612b0357838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190612abd565b5050825192935060009150505b612b1b60018361398c565b811015612ca8576000838281518110612b4457634e487b7160e01b600052603260045260246000fd5b60200260200101516000015190506000848381518110612b7457634e487b7160e01b600052603260045260246000fd5b6020026020010151602001519050600085846001612b929190613851565b81518110612bb057634e487b7160e01b600052603260045260246000fd5b6020026020010151600001519050600086856001612bce9190613851565b81518110612bec57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001519050838a10158015612c0a5750818a11155b15612c91576000612c1b858461398c565b612c25858461394d565b612c3090600a6138ab565b612c3a9190613869565b90506000612c4886836138ab565b612c5386600a61392e565b612c5d919061394d565b9050600a81612c6c8e856138ab565b612c769190613810565b612c809190613869565b9a50505050505050505050506104ea565b505050508080612ca090613a21565b915050612b10565b5060009695505050505050565b60606000612cc483600261392e565b67ffffffffffffffff811115612cea57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612d14576020820181803683370190505b5090506000612d2484600261392e565b612d2f906001613851565b90505b6001811115612dcd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612d7157634e487b7160e01b600052603260045260246000fd5b1a60f81b82612d8160028461398c565b81518110612d9f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612dc6816139cf565b9050612d32565b508315610b215760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105f7565b828054828255906000526020600020908101928215612e57579160200282015b82811115612e57578251825591602001919060010190612e3c565b50612e63929150612ec7565b5090565b6040518060a001604052806005905b6060815260200190600190039081612e765790505090565b60408051610100810190915260608152600760208201612e76565b60405180606001604052806003906020820280368337509192915050565b5b80821115612e635760008155600101612ec8565b600060208284031215612eed578081fd5b8135610b2181613a92565b60008060408385031215612f0a578081fd5b8235612f1581613a92565b91506020830135612f2581613a92565b809150509250929050565b600080600060608486031215612f44578081fd5b8335612f4f81613a92565b92506020840135612f5f81613a92565b929592945050506040919091013590565b60008060008060808587031215612f85578081fd5b8435612f9081613a92565b93506020850135612fa081613a92565b925060408501359150606085013567ffffffffffffffff80821115612fc3578283fd5b818701915087601f830112612fd6578283fd5b813581811115612fe857612fe8613a7c565b604051601f8201601f19908116603f0116810190838211818310171561301057613010613a7c565b816040528281528a6020848701011115613028578586fd5b82602086016020830137918201602001949094529598949750929550505050565b6000806040838503121561305b578182fd5b823561306681613a92565b915060208301358015158114612f25578182fd5b6000806040838503121561308c578182fd5b823561309781613a92565b946020939093013593505050565b6000602082840312156130b6578081fd5b8135610b2181613aa7565b6000602082840312156130d2578081fd5b8151610b2181613aa7565b6000602082840312156130ee578081fd5b8151610b2181613a92565b60006020828403121561310a578081fd5b5035919050565b60008060408385031215613123578182fd5b50508035926020909101359150565b600080600060608486031215613146578283fd5b505081359360208301359350604090920135919050565b6000815180845260208085019450808401835b838110156131a957815180516001600160a01b031688528301516001600160601b03168388015260409096019590820190600101613170565b509495945050505050565b600081518084526131cc8160208601602086016139a3565b601f01601f19169290920160200192915050565b600081516131f28185602086016139a3565b9290920192915050565b6000825161320e8184602087016139a3565b9190910192915050565b6000855161322a818460208a016139a3565b85519083019061323e818360208a016139a3565b85519101906132518183602089016139a3565b84519101906132648183602088016139a3565b019695505050505050565b60008651613281818460208b016139a3565b865190830190613295818360208b016139a3565b86519101906132a8818360208a016139a3565b85519101906132bb8183602089016139a3565b84519101906132ce8183602088016139a3565b01979650505050505050565b743d913a3930b4ba2fba3cb832911d101121b7b637b960591b8152835160009061330b8160158501602089016139a3565b6c111610113b30b63ab2911d101160991b60159184019182015284516133388160228401602089016139a3565b61227d60f01b60229290910191820152835161335b8160248401602088016139a3565b0160240195945050505050565b6e1e3932b1ba103c1e911811103c9e9160891b8152825160009061339381600f8501602088016139a3565b7f222077696474683d22313022206865696768743d2232222066696c6c3d220000600f9184019182015283516133d081602d8401602088016139a3565b631110179f60e11b602d9290910191820152603101949350505050565b602360f81b8152600084516134098160018501602089016139a3565b8451908301906134208160018401602089016139a3565b84519101906134368160018401602088016139a3565b0160010195945050505050565b727b226e616d65223a202250616c65747465202360681b815283516000906134728160138501602089016139a3565b7f222c20226465736372697074696f6e223a202250616c657474654f6e436861696013918401918201527f6e2069732072616e646f6d6c792067656e65726174656420636f6c6f7220706160338201527f6c6574746520616e642073746f726564206f6e20636861696e2e20546869732060538201527f70616c657474652063616e2062652075736564206173206120636f6c6f72206260738201527f617365206279206f746865727320746f20637265617465206e657720636f6c6c60938201527f65637461626c65206172742e222c2022696d616765223a2022646174613a696d60b3820152721859d94bdcdd99cade1b5b0ed8985cd94d8d0b606a1b60d382015284516135898160e68401602089016139a3565b611b8a6135bc6135b660e68486010171222c202261747472696275746573223a205b60701b815260120190565b876131e0565b7f5d2c20226c6963656e7365223a207b202274797065223a2022434330222c202281527f75726c223a202268747470733a2f2f6372656174697665636f6d6d6f6e732e6f60208201527f72672f7075626c6963646f6d61696e2f7a65726f2f312e302f22207d7d0000006040820152605d0190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161366981601d8501602087016139a3565b91909101601d0192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136a9908301846131b4565b9695505050505050565b602080825260009060c0830183820185845b60058110156136f457601f198785030183526136e28483516131b4565b935091840191908401906001016136c5565b50919695505050505050565b602081526000610b21602083018461315d565b602081526000610b2160208301846131b4565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526014908201527310dbdb1bdc881b985b59481b9bdd08199bdd5b9960621b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b828152604060208201526000610b1e604083018461315d565b600080821280156001600160ff1b038490038513161561383257613832613a50565b600160ff1b839003841281161561384b5761384b613a50565b50500190565b6000821982111561386457613864613a50565b500190565b60008261387857613878613a66565b600160ff1b82146000198414161561389257613892613a50565b500590565b6000826138a6576138a6613a66565b500490565b60006001600160ff1b03818413828413808216868404861116156138d1576138d1613a50565b600160ff1b848712828116878305891216156138ef576138ef613a50565b85871292508782058712848416161561390a5761390a613a50565b8785058712818416161561392057613920613a50565b505050929093029392505050565b600081600019048311821515161561394857613948613a50565b500290565b60008083128015600160ff1b85018412161561396b5761396b613a50565b6001600160ff1b038401831381161561398657613986613a50565b50500390565b60008282101561399e5761399e613a50565b500390565b60005b838110156139be5781810151838201526020016139a6565b83811115610edc5750506000910152565b6000816139de576139de613a50565b506000190190565b600181811c908216806139fa57607f821691505b60208210811415613a1b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613a3557613a35613a50565b5060010190565b600082613a4b57613a4b613a66565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113ff57600080fd5b6001600160e01b0319811681146113ff57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222077696474683d2238303022206865696768743d22383030222076696577426f783d22302030203130203130223e3c67207472616e73666f726d3d22726f74617465282d39302035203529223ea26469706673582212205a90618e406861e6d112e5409fdaeb185e44f8d9b85c3c11f34db3a53434900764736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000100000000000000000000000001ec8dda63735ceb20b7449c44cefdabccc66a49000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : maxSupply (uint256): 1000
Arg [1] : fairMint (bool): True
Arg [2] : owner (address): 0x01Ec8Dda63735cEb20b7449C44CefDAbCcC66A49
Arg [3] : openSeaProxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 00000000000000000000000001ec8dda63735ceb20b7449c44cefdabccc66a49
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.