Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Quantum
Compiler Version
v0.8.2+commit.661d1103
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "./SignatureVerifier.sol";
import "./Strings.sol";
library OpenSeaGasFreeListing {
/**
@notice Returns whether the operator is an OpenSea proxy for the owner, thus
allowing it to list without the token owner paying gas.
@dev ERC{721,1155}.isApprovedForAll should be overriden to also check if
this function returns true.
*/
function isApprovedForAll(address owner, address operator)
internal
view
returns (bool)
{
ProxyRegistry registry;
assembly {
switch chainid()
case 1 {
// mainnet
registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1
}
case 4 {
// rinkeby
registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317
}
}
return
address(registry) != address(0) &&
address(registry.proxies(owner)) == operator;
}
}
contract OwnableDelegateProxy {}
contract ProxyRegistry {
mapping(address => OwnableDelegateProxy) public proxies;
}
contract Quantum is
ERC721Upgradeable,
OwnableUpgradeable,
ReentrancyGuardUpgradeable,
PausableUpgradeable,
SignatureVerifier
{
using Strings for uint256;
uint16 public publicSupply;
uint16 public privateSupply;
uint16 public publicSupplyLimit;
uint16 public privateSupplyLimit;
bool public publicMintActive;
bool public isRevealed;
bool public privateMintActive;
address public regularSigner;
address public privateSigner;
string public baseURI;
string public notRevealedUri;
string public baseExtension;
mapping(address => bool) public mintingLedger;
address[3000] public tokenLedger; // reserved storage in case of a pivotal expansion.
event tokenMinted(address, uint256);
string public whaleURI;
string public normalURI;
address proxyRegistryAddress;
function initialize() external initializer {
__Ownable_init();
__Pausable_init();
__ReentrancyGuard_init();
__ERC721_init("Quantum", "QUANTUM");
publicMintActive = false;
isRevealed = true;
normalURI = "ipfs://QmYpKcCC4e7JLXwbMwPCfQJMf86LmxCZyMQkHw3xRa7Ffc";
whaleURI = "ipfs://QmT4WWqgsiyERPkb9txCQgCzgaPwZob8UNaK7Q8V5A8iM8";
privateMintActive = false;
regularSigner = 0xB3BA692696A60271b2f2D2917c20E14c32cA74d7;
privateSigner = 0xc9c3B4587fcD88E463Cd3c86B4C6594709f22c12;
baseExtension = ".json";
proxyRegistryAddress = 0xe850eB266384A133844976aC66B98A44eDBFCb0d;
/* we are keeping track of two different counters.
* privateSupply, which is limited by the privateSupplyLimit.
* and publicSupply, which is limited by the privateSupplyLimit.
* publicSupply is incremented in the mint function, and it starts from 0 up to limit.
* privateSupply is incremented in the privateMint funciton, and starts from 2000 up to limit.
* the totalSupply function returns ( publicSupply + ( privateSupply - 2000),
* effectivly giving us the total minted supply.
* both limits can be modified in their respective functions.
*/
privateSupply = 2000;
publicSupply = 0;
publicSupplyLimit = 2000;
privateSupplyLimit = 2100;
}
function mint(bytes calldata sig)
external
payable
nonReentrant
whenNotPaused
mintingChecks(sig, publicMintActive, regularSigner, false)
{
_safeMint(msg.sender, ++publicSupply);
emit tokenMinted(msg.sender, publicSupply);
}
function privateMint(bytes calldata sig)
external
payable
nonReentrant
whenNotPaused
mintingChecks(sig, privateMintActive, privateSigner, true)
{
_safeMint(msg.sender, ++privateSupply);
emit tokenMinted(msg.sender, privateSupply);
}
function ownerMint(address _reciever, uint256[] memory tokenIds)
external
onlyOwner
{
for (uint256 i = 0; i < tokenIds.length; i++) {
_safeMint(_reciever, tokenIds[i]);
if (tokenIds[i] <= 2000) ++publicSupply;
else {
require(
privateSupply + 1 <= privateSupplyLimit,
"private supply reached"
);
++privateSupply;
}
emit tokenMinted(_reciever, publicSupply);
}
}
/*
* @param sig, the signature to verify
* @param mintActive, the mint access control paramter
* @param signer, the public key to verify the signature against
* @param privateSector, if it is true, that means the private mint functions
* is being called. otherwise it is the public mint functions being called.
* @notice the modifier checks if the publicSupply counter is below 2000 if privateSector is false
* it verifies that we are still within the public mint limits
* if the privateSector paramter is true, it checks if the privateSupply is <= 2100
* privateSupply starts at 2000. This way, the privateMint function ALWAYS mint
* between 2000 (exclusive) and 2100 (inclusive).
*/
modifier mintingChecks(
bytes calldata sig,
bool mintActive,
address signer,
bool privateSector
) {
require(mintActive, "minting not active");
require(!mintingLedger[msg.sender], "already minted");
require(tx.origin == msg.sender, "only accounts");
bool verification = verify(msg.sender, sig, signer);
require(verification, "you are not whitlisted");
if (privateSector)
require(
privateSupply + 1 <= privateSupplyLimit,
"no more private supply"
);
else
require(
publicSupply + 1 <= publicSupplyLimit,
"no more public supply"
);
mintingLedger[msg.sender] = true;
_;
}
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
require(_exists(tokenId));
if (isRevealed == true) {
if (tokenId <= 2000) return normalURI;
else return whaleURI;
} else return notRevealedUri;
}
function isApprovedForAll(address owner, address operator)
public
view
override
returns (bool)
{
ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
return
(OpenSeaGasFreeListing.isApprovedForAll(owner, operator) ||
address(proxyRegistry.proxies(owner)) == operator) ||
super.isApprovedForAll(owner, operator);
}
// @notice, tokenLedger is updated after minting and tokenTransfers
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._afterTokenTransfer(from, to, tokenId);
tokenLedger[tokenId] = to;
}
function toggleMint() external onlyOwner {
privateMintActive = !privateMintActive;
publicMintActive = !publicMintActive;
}
function setIsRevealed(bool _state) external onlyOwner {
isRevealed = _state;
}
function setNotRevealedURI(string memory _notRevealedURI)
external
onlyOwner
{
notRevealedUri = _notRevealedURI;
}
function setBaseURI(string memory _newBaseURI) external onlyOwner {
baseURI = _newBaseURI;
}
function setBaseExtension(string memory _base) external onlyOwner {
baseExtension = _base;
}
function setPublicSupplyLimit(uint16 _newLimit) external onlyOwner {
publicSupplyLimit = _newLimit;
}
function setPrivateSupplyLimit(uint16 _newLimit) external onlyOwner {
privateSupplyLimit = _newLimit;
}
function setPublicMintActive(bool _state) external onlyOwner {
publicMintActive = _state;
}
function setRegularSigner(address _signer) external onlyOwner {
regularSigner = _signer;
}
function setPrivateSigner(address _signer) external onlyOwner {
privateSigner = _signer;
}
function setPrivateMintActive(bool _state) external onlyOwner {
privateMintActive = _state;
}
function totalSupply() public view returns (uint256) {
return publicSupply + (privateSupply - 2000);
}
function getTokenLedger() external view returns (address[3000] memory) {
return tokenLedger;
}
function _baseURI() internal view override returns (string memory) {
return baseURI;
}
function setNormalURI(string memory _uri) external onlyOwner {
normalURI = _uri;
}
function setWhaleURI(string memory _uri) external onlyOwner {
whaleURI = _uri;
}
function withdraw(address[] memory _payees, uint256[] memory _shares)
public
onlyOwner
{
require(address(this).balance > 0, "No balance to withdraw");
require(_shares.length == _payees.length);
uint256 totalShares;
for (uint256 i; i < _shares.length; i++) totalShares += _shares[i];
require(totalShares == 1000, "invalid shares");
delete totalShares;
uint256 contractBalance = address(this).balance;
for (uint256 i; i < _shares.length; i++)
_withdraw(_payees[i], (contractBalance * _shares[i]) / 1000);
}
function _withdraw(address _address, uint256 _amount) internal {
(bool success, ) = _address.call{value: _amount}("");
require(success, "Transfer failed.");
}
receive() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
using AddressUpgradeable for address;
using StringsUpgradeable 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.
*/
function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
__ERC721_init_unchained(name_, symbol_);
}
function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) {
return
interfaceId == type(IERC721Upgradeable).interfaceId ||
interfaceId == type(IERC721MetadataUpgradeable).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 = ERC721Upgradeable.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721Upgradeable.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);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721Upgradeable.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[44] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
function __Pausable_init() internal onlyInitializing {
__Pausable_init_unchained();
}
function __Pausable_init_unchained() internal onlyInitializing {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @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 ReentrancyGuardUpgradeable is Initializable {
// 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;
function __ReentrancyGuard_init() internal onlyInitializing {
__ReentrancyGuard_init_unchained();
}
function __ReentrancyGuard_init_unchained() internal onlyInitializing {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}//SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;
contract SignatureVerifier {
function getMessageHash(address _addr)
internal
pure
returns (bytes32)
{
return keccak256(abi.encodePacked(_addr));
}
function getEthSignedMessageHash(bytes32 _messageHash)
internal
pure
returns (bytes32)
{
return
keccak256(
abi.encodePacked(
"\x19Ethereum Signed Message:\n32",
_messageHash
)
);
}
function verify(
address _addr,
bytes memory signature,
address signer
) public pure returns (bool) {
bytes32 messageHash = getMessageHash(_addr);
bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash);
return recoverSigner(ethSignedMessageHash, signature) == signer;
}
function recoverSigner(
bytes32 _ethSignedMessageHash,
bytes memory _signature
) public pure returns (address) {
(bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature);
return ecrecover(_ethSignedMessageHash, v, r, s);
}
function splitSignature(bytes memory sig)
internal
pure
returns (
bytes32 r,
bytes32 s,
uint8 v
)
{
require(sig.length == 65, "invalid signature length");
assembly {
r := mload(add(sig, 32))
s := mload(add(sig, 64))
v := byte(0, mload(add(sig, 96)))
}
}
}//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
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165Upgradeable.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721Upgradeable is IERC165Upgradeable {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721ReceiverUpgradeable {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721Upgradeable.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @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 ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library StringsUpgradeable {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
function __ERC165_init() internal onlyInitializing {
}
function __ERC165_init_unchained() internal onlyInitializing {
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165Upgradeable).interfaceId;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.0;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
* initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() initializer {}
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Modifier to protect an initializer function from being invoked twice.
*/
modifier initializer() {
// If the contract is initializing we ignore whether _initialized is set in order to support multiple
// inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
// contract may have been reentered.
require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
}
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} modifier, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
function _isConstructor() private view returns (bool) {
return !AddressUpgradeable.isContract(address(this));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165Upgradeable {
/**
* @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);
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMinted","type":"event"},{"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":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","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":[],"name":"getTokenLedger","outputs":[{"internalType":"address[3000]","name":"","type":"address[3000]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintingLedger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"normalURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","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":"address","name":"_reciever","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privateMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSupplyLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSupplyLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_ethSignedMessageHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"regularSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_base","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setNormalURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPrivateMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setPrivateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newLimit","type":"uint16"}],"name":"setPrivateSupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newLimit","type":"uint16"}],"name":"setPublicSupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setRegularSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setWhaleURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenLedger","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"signer","type":"address"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"whaleURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561001057600080fd5b50614106806100206000396000f3fe6080604052600436106103645760003560e01c80637264854f116101c6578063b2267b94116100f7578063d97d28d211610095578063e985e9c51161006f578063e985e9c5146109d2578063f2c4ce1e146109f2578063f2fde38b14610a12578063f6ebf9a414610a325761036b565b8063d97d28d214610971578063da3ef23f14610992578063de6d6d96146109b25761036b565b8063c6682862116100d1578063c668286214610907578063c87b56dd1461091c578063d3dd5fe01461093c578063d62e82a9146109515761036b565b8063b2267b94146108ab578063b67c25a3146108c0578063b88d4fde146108e75761036b565b80638da5cb5b116101645780639bd6c3381161013e5780639bd6c33814610825578063a22cb4651461084b578063a3488b001461086b578063b01a79bc1461088b5761036b565b80638da5cb5b146107d257806395d89b41146107f057806397aba7f9146108055761036b565b80638129fc1c116101a05780638129fc1c1461075d5780638585e59014610772578063867d9dce1461079257806387c575e7146107b25761036b565b80637264854f146106fa57806377bfed701461071a5780637ba0e2e71461074a5761036b565b80633740cc94116102a057806357b734f41161023e5780636352211e116102185780636352211e146106905780636c0360eb146106b057806370a08231146106c5578063715018a6146106e55761036b565b806357b734f4146106335780635c975abb1461065c5780635e84d723146106745761036b565b806349a5980a1161027a57806349a5980a146105a957806354214f69146105c957806355f804b3146105f157806356bd182d146106115761036b565b80633740cc941461053257806342842e0e146105695780634511dcfb146105895761036b565b806318160ddd1161030d57806323b872dd116102e757806323b872dd146104b25780632b707c71146104d257806332ec6b50146104f257806336fbe78f146105125761036b565b806318160ddd146104675780631b2bcba71461048a5780631f32ca101461049d5761036b565b8063081812fc1161033e578063081812fc146103f8578063081c8c4414610430578063095ea7b3146104455761036b565b806301ffc9a71461037057806305092707146103a557806306fdde03146103d65761036b565b3661036b57005b600080fd5b34801561037c57600080fd5b5061039061038b366004613c53565b610a54565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103906103c036600461393b565b6101326020526000908152604090205460ff1681565b3480156103e257600080fd5b506103eb610af3565b60405161039c9190613e58565b34801561040457600080fd5b50610418610413366004613d7c565b610b85565b6040516001600160a01b03909116815260200161039c565b34801561043c57600080fd5b506103eb610c1f565b34801561045157600080fd5b50610465610460366004613b1d565b610cae565b005b34801561047357600080fd5b5061047c610de0565b60405190815260200161039c565b610465610498366004613c8b565b610e19565b3480156104a957600080fd5b506103eb611217565b3480156104be57600080fd5b506104656104cd36600461398f565b611225565b3480156104de57600080fd5b506104656104ed366004613bfe565b6112ac565b3480156104fe57600080fd5b5061046561050d366004613d14565b61131d565b34801561051e57600080fd5b5061041861052d366004613d7c565b61137d565b34801561053e57600080fd5b5061012d5461055690640100000000900461ffff1681565b60405161ffff909116815260200161039c565b34801561057557600080fd5b5061046561058436600461398f565b61139f565b34801561059557600080fd5b506104656105a4366004613bfe565b6113ba565b3480156105b557600080fd5b506104656105c4366004613bfe565b61142f565b3480156105d557600080fd5b5061012d54610390906901000000000000000000900460ff1681565b3480156105fd57600080fd5b5061046561060c366004613d14565b6114a2565b34801561061d57600080fd5b5061012d546105569062010000900461ffff1681565b34801561063f57600080fd5b5061012d54610390906a0100000000000000000000900460ff1681565b34801561066857600080fd5b5060fb5460ff16610390565b34801561068057600080fd5b5061012d546105569061ffff1681565b34801561069c57600080fd5b506104186106ab366004613d7c565b6114fe565b3480156106bc57600080fd5b506103eb611589565b3480156106d157600080fd5b5061047c6106e036600461393b565b611597565b3480156106f157600080fd5b50610465611631565b34801561070657600080fd5b50610465610715366004613d5a565b611685565b34801561072657600080fd5b5061012d54610418906b01000000000000000000000090046001600160a01b031681565b610465610758366004613c8b565b6116f2565b34801561076957600080fd5b50610465611ab4565b34801561077e57600080fd5b5061039061078d366004613abb565b611daa565b34801561079e57600080fd5b506104656107ad36600461393b565b611ded565b3480156107be57600080fd5b506104656107cd36600461393b565b611e7f565b3480156107de57600080fd5b506097546001600160a01b0316610418565b3480156107fc57600080fd5b506103eb611eea565b34801561081157600080fd5b50610418610820366004613c18565b611ef9565b34801561083157600080fd5b5061012d54610556906601000000000000900461ffff1681565b34801561085757600080fd5b50610465610866366004613a87565b611f78565b34801561087757600080fd5b50610465610886366004613a39565b611f83565b34801561089757600080fd5b506104656108a6366004613d14565b612177565b3480156108b757600080fd5b506103eb6121d3565b3480156108cc57600080fd5b5061012d546103909068010000000000000000900460ff1681565b3480156108f357600080fd5b506104656109023660046139cf565b6121e1565b34801561091357600080fd5b506103eb61226f565b34801561092857600080fd5b506103eb610937366004613d7c565b61227d565b34801561094857600080fd5b50610465612377565b34801561095d57600080fd5b5061046561096c366004613d5a565b612412565b34801561097d57600080fd5b5061012e54610418906001600160a01b031681565b34801561099e57600080fd5b506104656109ad366004613d14565b612483565b3480156109be57600080fd5b506104656109cd366004613b48565b6124df565b3480156109de57600080fd5b506103906109ed366004613957565b6126c3565b3480156109fe57600080fd5b50610465610a0d366004613d14565b6127a4565b348015610a1e57600080fd5b50610465610a2d36600461393b565b612800565b348015610a3e57600080fd5b50610a476128cd565b60405161039c9190613e1b565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610ab757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610aeb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b90505b919050565b606060658054610b0290613f77565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2e90613f77565b8015610b7b5780601f10610b5057610100808354040283529160200191610b7b565b820191906000526020600020905b815481529060010190602001808311610b5e57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610c035760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b6101308054610c2d90613f77565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5990613f77565b8015610ca65780601f10610c7b57610100808354040283529160200191610ca6565b820191906000526020600020905b815481529060010190602001808311610c8957829003601f168201915b505050505081565b6000610cb9826114fe565b9050806001600160a01b0316836001600160a01b03161415610d435760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610bfa565b336001600160a01b0382161480610d5f5750610d5f81336109ed565b610dd15760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bfa565b610ddb8383612916565b505050565b61012d54600090610dfe906107d09062010000900461ffff16613f3d565b61012d54610e10919061ffff16613ec0565b61ffff16905090565b600260c9541415610e6c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bfa565b600260c95560fb5460ff1615610ec45760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610bfa565b61012d5461012e54839183916a010000000000000000000090910460ff16906001600160a01b0316600182610f3b5760405162461bcd60e51b815260206004820152601260248201527f6d696e74696e67206e6f742061637469766500000000000000000000000000006044820152606401610bfa565b336000908152610132602052604090205460ff1615610f9c5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610bfa565b323314610fdb5760405162461bcd60e51b815260206004820152600d60248201526c6f6e6c79206163636f756e747360981b6044820152606401610bfa565b600061101f3387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250611daa915050565b90508061106e5760405162461bcd60e51b815260206004820152601660248201527f796f7520617265206e6f7420776869746c6973746564000000000000000000006044820152606401610bfa565b81156110f25761012d5461ffff6601000000000000820481169161109b9162010000909104166001613ec0565b61ffff1611156110ed5760405162461bcd60e51b815260206004820152601660248201527f6e6f206d6f7265207072697661746520737570706c79000000000000000000006044820152606401610bfa565b611162565b61012d5461ffff640100000000820481169161111091166001613ec0565b61ffff1611156111625760405162461bcd60e51b815260206004820152601560248201527f6e6f206d6f7265207075626c696320737570706c7900000000000000000000006044820152606401610bfa565b33600081815261013260205260409020805460ff1916600117905561012d80546111c192919060029061119f9061ffff6201000090910416613fb2565b91906101000a81548161ffff021916908361ffff160217905561ffff16612984565b61012d54604080513381526201000090920461ffff1660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f091015b60405180910390a15050600160c955505050505050565b610ceb8054610c2d90613f77565b61122f338261299e565b6112a15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bfa565b610ddb838383612a6d565b6097546001600160a01b031633146112f45760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d8054911515680100000000000000000268ff000000000000000019909216919091179055565b6097546001600160a01b031633146113655760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b805161137990610cec906020840190613787565b5050565b61013381610bb8811061138f57600080fd5b01546001600160a01b0316905081565b610ddb838383604051806020016040528060008152506121e1565b6097546001600160a01b031633146114025760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d80549115156a0100000000000000000000026aff0000000000000000000019909216919091179055565b6097546001600160a01b031633146114775760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d805491151569010000000000000000000269ff00000000000000000019909216919091179055565b6097546001600160a01b031633146114ea5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b80516113799061012f906020840190613787565b6000818152606760205260408120546001600160a01b031680610aeb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610bfa565b61012f8054610c2d90613f77565b60006001600160a01b0382166116155760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610bfa565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146116795760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b6116836000612c40565b565b6097546001600160a01b031633146116cd5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d805461ffff9092166401000000000265ffff0000000019909216919091179055565b600260c95414156117455760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bfa565b600260c95560fb5460ff161561179d5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610bfa565b61012d548290829068010000000000000000810460ff16906b01000000000000000000000090046001600160a01b031660008261181c5760405162461bcd60e51b815260206004820152601260248201527f6d696e74696e67206e6f742061637469766500000000000000000000000000006044820152606401610bfa565b336000908152610132602052604090205460ff161561187d5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610bfa565b3233146118bc5760405162461bcd60e51b815260206004820152600d60248201526c6f6e6c79206163636f756e747360981b6044820152606401610bfa565b60006119003387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250611daa915050565b90508061194f5760405162461bcd60e51b815260206004820152601660248201527f796f7520617265206e6f7420776869746c6973746564000000000000000000006044820152606401610bfa565b81156119d35761012d5461ffff6601000000000000820481169161197c9162010000909104166001613ec0565b61ffff1611156119ce5760405162461bcd60e51b815260206004820152601660248201527f6e6f206d6f7265207072697661746520737570706c79000000000000000000006044820152606401610bfa565b611a43565b61012d5461ffff64010000000082048116916119f191166001613ec0565b61ffff161115611a435760405162461bcd60e51b815260206004820152601560248201527f6e6f206d6f7265207075626c696320737570706c7900000000000000000000006044820152606401610bfa565b33600081815261013260205260408120805460ff1916600117905561012d8054611a7693929061119f9061ffff16613fb2565b61012d546040805133815261ffff90921660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f09101611200565b600054610100900460ff16611acf5760005460ff1615611ad3565b303b155b611b455760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610bfa565b600054610100900460ff16158015611b70576000805460ff1961ff0019909116610100171660011790555b611b78612c92565b611b80612d05565b611b88612d78565b611bfc6040518060400160405280600781526020017f5175616e74756d000000000000000000000000000000000000000000000000008152506040518060400160405280600781526020017f5155414e54554d00000000000000000000000000000000000000000000000000815250612deb565b61012d805469ffff0000000000000000191669010000000000000000001790556040805160608101909152603580825261407c60208301398051611c4991610cec91602090910190613787565b50604051806060016040528060358152602001614047603591398051611c7891610ceb91602090910190613787565b5061012d80547eb3ba692696a60271b2f2d2917c20e14c32ca74d700000000000000000000007fff000000000000000000000000000000000000000000ffffffffffffffffffff90911617905561012e80546001600160a01b03191673c9c3b4587fcd88e463cd3c86b4c6594709f22c121790556040805180820190915260058082527f2e6a736f6e0000000000000000000000000000000000000000000000000000006020909201918252611d319161013191613787565b50610ced805473e850eb266384a133844976ac66b98a44edbfcb0d6001600160a01b031990911617905561012d805463ffff000019166307d000001765ffff0000ffff19166507d0000000001767ffff00000000000019166708340000000000001790558015611da7576000805461ff00191690555b50565b600080611db685612e60565b90506000611dc382612ea0565b9050836001600160a01b0316611dd98287611ef9565b6001600160a01b0316149695505050505050565b6097546001600160a01b03163314611e355760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d80546001600160a01b039092166b010000000000000000000000027fff0000000000000000000000000000000000000000ffffffffffffffffffffff909216919091179055565b6097546001600160a01b03163314611ec75760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b606060668054610b0290613f77565b600080600080611f0885612edb565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015611f63573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b611379338383612f4f565b6097546001600160a01b03163314611fcb5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b60005b8151811015610ddb5761200883838381518110611ffb57634e487b7160e01b600052603260045260246000fd5b6020026020010151612984565b6107d082828151811061202b57634e487b7160e01b600052603260045260246000fd5b60200260200101511161206c5761012d805460009061204d9061ffff16613fb2565b91906101000a81548161ffff021916908361ffff16021790555061211b565b61012d5461ffff660100000000000082048116916120939162010000909104166001613ec0565b61ffff1611156120e55760405162461bcd60e51b815260206004820152601660248201527f7072697661746520737570706c792072656163686564000000000000000000006044820152606401610bfa565b61012d80546002906121009062010000900461ffff16613fb2565b91906101000a81548161ffff021916908361ffff1602179055505b61012d54604080516001600160a01b038616815261ffff90921660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f0910160405180910390a18061216f81613fd4565b915050611fce565b6097546001600160a01b031633146121bf5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b805161137990610ceb906020840190613787565b610cec8054610c2d90613f77565b6121eb338361299e565b61225d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bfa565b6122698484848461301e565b50505050565b6101318054610c2d90613f77565b6000818152606760205260409020546060906001600160a01b03166122a157600080fd5b61012d546901000000000000000000900460ff16151560011415612369576107d0821161235b57610cec80546122d690613f77565b80601f016020809104026020016040519081016040528092919081815260200182805461230290613f77565b801561234f5780601f106123245761010080835404028352916020019161234f565b820191906000526020600020905b81548152906001019060200180831161233257829003601f168201915b50505050509050610aee565b610ceb80546122d690613f77565b61013080546122d690613f77565b6097546001600160a01b031633146123bf5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d80546801000000000000000060ff6a0100000000000000000000808404821615026aff000000000000000000001990931692909217818104909216150268ff000000000000000019909116179055565b6097546001600160a01b0316331461245a5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d805461ffff90921666010000000000000267ffff00000000000019909216919091179055565b6097546001600160a01b031633146124cb5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b805161137990610131906020840190613787565b6097546001600160a01b031633146125275760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b600047116125775760405162461bcd60e51b815260206004820152601660248201527f4e6f2062616c616e636520746f207769746864726177000000000000000000006044820152606401610bfa565b815181511461258557600080fd5b6000805b82518110156125d9578281815181106125b257634e487b7160e01b600052603260045260246000fd5b6020026020010151826125c59190613ee6565b9150806125d181613fd4565b915050612589565b50806103e81461262b5760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207368617265730000000000000000000000000000000000006044820152606401610bfa565b50600047815b83518110156126bc576126aa85828151811061265d57634e487b7160e01b600052603260045260246000fd5b60200260200101516103e886848151811061268857634e487b7160e01b600052603260045260246000fd5b60200260200101518561269b9190613f1e565b6126a59190613efe565b61309c565b806126b481613fd4565b915050612631565b5050505050565b610ced546000906001600160a01b03166126dd848461313f565b8061276c575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561272957600080fd5b505afa15801561273d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127619190613cf8565b6001600160a01b0316145b8061279c57506001600160a01b038085166000908152606a602090815260408083209387168352929052205460ff165b949350505050565b6097546001600160a01b031633146127ec5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b805161137990610130906020840190613787565b6097546001600160a01b031633146128485760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b6001600160a01b0381166128c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bfa565b611da781612c40565b6128d561380b565b60408051620177008101918290529061013390610bb89082845b81546001600160a01b031681526001909101906020018083116128ef575050505050905090565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061294b826114fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611379828260405180602001604052806000815250613230565b6000818152606760205260408120546001600160a01b0316612a175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bfa565b6000612a22836114fe565b9050806001600160a01b0316846001600160a01b03161480612a5d5750836001600160a01b0316612a5284610b85565b6001600160a01b0316145b8061279c575061279c81856126c3565b826001600160a01b0316612a80826114fe565b6001600160a01b031614612afc5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610bfa565b6001600160a01b038216612b775760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610bfa565b612b82600082612916565b6001600160a01b0383166000908152606860205260408120805460019290612bab908490613f60565b90915550506001600160a01b0382166000908152606860205260408120805460019290612bd9908490613ee6565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610ddb8383836132ae565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612cfd5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b6116836132f6565b600054610100900460ff16612d705760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b61168361336a565b600054610100900460ff16612de35760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b6116836133e1565b600054610100900460ff16612e565760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b6113798282613453565b6040516bffffffffffffffffffffffff19606083901b1660208201526000906034015b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01612e83565b60008060008351604114612f315760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610bfa565b50505060208101516040820151606090920151909260009190911a90565b816001600160a01b0316836001600160a01b03161415612fb15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bfa565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613029848484612a6d565b613035848484846134e5565b6122695760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bfa565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146130e9576040519150601f19603f3d011682016040523d82523d6000602084013e6130ee565b606091505b5050905080610ddb5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610bfa565b600080466001811461315857600481146131745761318c565b73a5409ec958c83c3f309868babaca7c86dcb077c1915061318c565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b0381161580159061279c575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b1580156131e657600080fd5b505afa1580156131fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061321e9190613cf8565b6001600160a01b031614949350505050565b61323a838361363d565b61324760008484846134e5565b610ddb5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bfa565b8161013382610bb881106132d257634e487b7160e01b600052603260045260246000fd5b0180546001600160a01b0319166001600160a01b0392909216919091179055505050565b600054610100900460ff166133615760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b61168333612c40565b600054610100900460ff166133d55760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b60fb805460ff19169055565b600054610100900460ff1661344c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b600160c955565b600054610100900460ff166134be5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b81516134d1906065906020850190613787565b508051610ddb906066906020840190613787565b60006001600160a01b0384163b1561363257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613529903390899088908890600401613ddf565b602060405180830381600087803b15801561354357600080fd5b505af1925050508015613573575060408051601f3d908101601f1916820190925261357091810190613c6f565b60015b613618573d8080156135a1576040519150601f19603f3d011682016040523d82523d6000602084013e6135a6565b606091505b5080516136105760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bfa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061279c565b506001949350505050565b6001600160a01b0382166136935760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bfa565b6000818152606760205260409020546001600160a01b0316156136f85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bfa565b6001600160a01b0382166000908152606860205260408120805460019290613721908490613ee6565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611379600083836132ae565b82805461379390613f77565b90600052602060002090601f0160209004810192826137b557600085556137fb565b82601f106137ce57805160ff19168380011785556137fb565b828001600101855582156137fb579182015b828111156137fb5782518255916020019190600101906137e0565b5061380792915061382c565b5090565b60405180620177000160405280610bb8906020820280368337509192915050565b5b80821115613807576000815560010161382d565b600067ffffffffffffffff83111561385b5761385b614005565b61386e601f8401601f1916602001613e6b565b905082815283838301111561388257600080fd5b828260208301376000602084830101529392505050565b600082601f8301126138a9578081fd5b813560206138be6138b983613e9c565b613e6b565b82815281810190858301838502870184018810156138da578586fd5b855b858110156138f8578135845292840192908401906001016138dc565b5090979650505050505050565b80358015158114610aee57600080fd5b600082601f830112613925578081fd5b61393483833560208501613841565b9392505050565b60006020828403121561394c578081fd5b81356139348161401b565b60008060408385031215613969578081fd5b82356139748161401b565b915060208301356139848161401b565b809150509250929050565b6000806000606084860312156139a3578081fd5b83356139ae8161401b565b925060208401356139be8161401b565b929592945050506040919091013590565b600080600080608085870312156139e4578081fd5b84356139ef8161401b565b935060208501356139ff8161401b565b925060408501359150606085013567ffffffffffffffff811115613a21578182fd5b613a2d87828801613915565b91505092959194509250565b60008060408385031215613a4b578182fd5b8235613a568161401b565b9150602083013567ffffffffffffffff811115613a71578182fd5b613a7d85828601613899565b9150509250929050565b60008060408385031215613a99578182fd5b8235613aa48161401b565b9150613ab260208401613905565b90509250929050565b600080600060608486031215613acf578283fd5b8335613ada8161401b565b9250602084013567ffffffffffffffff811115613af5578283fd5b613b0186828701613915565b9250506040840135613b128161401b565b809150509250925092565b60008060408385031215613b2f578182fd5b8235613b3a8161401b565b946020939093013593505050565b60008060408385031215613b5a578182fd5b823567ffffffffffffffff80821115613b71578384fd5b818501915085601f830112613b84578384fd5b81356020613b946138b983613e9c565b82815281810190858301838502870184018b1015613bb0578889fd5b8896505b84871015613bdb578035613bc78161401b565b835260019690960195918301918301613bb4565b5096505086013592505080821115613bf1578283fd5b50613a7d85828601613899565b600060208284031215613c0f578081fd5b61393482613905565b60008060408385031215613c2a578182fd5b82359150602083013567ffffffffffffffff811115613c47578182fd5b613a7d85828601613915565b600060208284031215613c64578081fd5b813561393481614030565b600060208284031215613c80578081fd5b815161393481614030565b60008060208385031215613c9d578182fd5b823567ffffffffffffffff80821115613cb4578384fd5b818501915085601f830112613cc7578384fd5b813581811115613cd5578485fd5b866020828501011115613ce6578485fd5b60209290920196919550909350505050565b600060208284031215613d09578081fd5b81516139348161401b565b600060208284031215613d25578081fd5b813567ffffffffffffffff811115613d3b578182fd5b8201601f81018413613d4b578182fd5b61279c84823560208401613841565b600060208284031215613d6b578081fd5b813561ffff81168114613934578182fd5b600060208284031215613d8d578081fd5b5035919050565b60008151808452815b81811015613db957602081850181015186830182015201613d9d565b81811115613dca5782602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e116080830184613d94565b9695505050505050565b620177008101818360005b610bb8811015613e4f5781516001600160a01b0316835260209283019290910190600101613e26565b50505092915050565b6000602082526139346020830184613d94565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e9457613e94614005565b604052919050565b600067ffffffffffffffff821115613eb657613eb6614005565b5060209081020190565b600061ffff808316818516808303821115613edd57613edd613fef565b01949350505050565b60008219821115613ef957613ef9613fef565b500190565b600082613f1957634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613f3857613f38613fef565b500290565b600061ffff83811690831681811015613f5857613f58613fef565b039392505050565b600082821015613f7257613f72613fef565b500390565b600281046001821680613f8b57607f821691505b60208210811415613fac57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613fca57613fca613fef565b6001019392505050565b6000600019821415613fe857613fe8613fef565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611da757600080fd5b6001600160e01b031981168114611da757600080fdfe697066733a2f2f516d5434575771677369794552506b62397478435167437a676150775a6f6238554e614b37513856354138694d38697066733a2f2f516d59704b6343433465374a4c5877624d77504366514a4d6638364c6d78435a794d516b487733785261374666634f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212203967aabfd33d4c9fea03daaa6a1ac7ea935452bb9f9d340f6fe3ad7d26becbd764736f6c63430008020033
Deployed Bytecode
0x6080604052600436106103645760003560e01c80637264854f116101c6578063b2267b94116100f7578063d97d28d211610095578063e985e9c51161006f578063e985e9c5146109d2578063f2c4ce1e146109f2578063f2fde38b14610a12578063f6ebf9a414610a325761036b565b8063d97d28d214610971578063da3ef23f14610992578063de6d6d96146109b25761036b565b8063c6682862116100d1578063c668286214610907578063c87b56dd1461091c578063d3dd5fe01461093c578063d62e82a9146109515761036b565b8063b2267b94146108ab578063b67c25a3146108c0578063b88d4fde146108e75761036b565b80638da5cb5b116101645780639bd6c3381161013e5780639bd6c33814610825578063a22cb4651461084b578063a3488b001461086b578063b01a79bc1461088b5761036b565b80638da5cb5b146107d257806395d89b41146107f057806397aba7f9146108055761036b565b80638129fc1c116101a05780638129fc1c1461075d5780638585e59014610772578063867d9dce1461079257806387c575e7146107b25761036b565b80637264854f146106fa57806377bfed701461071a5780637ba0e2e71461074a5761036b565b80633740cc94116102a057806357b734f41161023e5780636352211e116102185780636352211e146106905780636c0360eb146106b057806370a08231146106c5578063715018a6146106e55761036b565b806357b734f4146106335780635c975abb1461065c5780635e84d723146106745761036b565b806349a5980a1161027a57806349a5980a146105a957806354214f69146105c957806355f804b3146105f157806356bd182d146106115761036b565b80633740cc941461053257806342842e0e146105695780634511dcfb146105895761036b565b806318160ddd1161030d57806323b872dd116102e757806323b872dd146104b25780632b707c71146104d257806332ec6b50146104f257806336fbe78f146105125761036b565b806318160ddd146104675780631b2bcba71461048a5780631f32ca101461049d5761036b565b8063081812fc1161033e578063081812fc146103f8578063081c8c4414610430578063095ea7b3146104455761036b565b806301ffc9a71461037057806305092707146103a557806306fdde03146103d65761036b565b3661036b57005b600080fd5b34801561037c57600080fd5b5061039061038b366004613c53565b610a54565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103906103c036600461393b565b6101326020526000908152604090205460ff1681565b3480156103e257600080fd5b506103eb610af3565b60405161039c9190613e58565b34801561040457600080fd5b50610418610413366004613d7c565b610b85565b6040516001600160a01b03909116815260200161039c565b34801561043c57600080fd5b506103eb610c1f565b34801561045157600080fd5b50610465610460366004613b1d565b610cae565b005b34801561047357600080fd5b5061047c610de0565b60405190815260200161039c565b610465610498366004613c8b565b610e19565b3480156104a957600080fd5b506103eb611217565b3480156104be57600080fd5b506104656104cd36600461398f565b611225565b3480156104de57600080fd5b506104656104ed366004613bfe565b6112ac565b3480156104fe57600080fd5b5061046561050d366004613d14565b61131d565b34801561051e57600080fd5b5061041861052d366004613d7c565b61137d565b34801561053e57600080fd5b5061012d5461055690640100000000900461ffff1681565b60405161ffff909116815260200161039c565b34801561057557600080fd5b5061046561058436600461398f565b61139f565b34801561059557600080fd5b506104656105a4366004613bfe565b6113ba565b3480156105b557600080fd5b506104656105c4366004613bfe565b61142f565b3480156105d557600080fd5b5061012d54610390906901000000000000000000900460ff1681565b3480156105fd57600080fd5b5061046561060c366004613d14565b6114a2565b34801561061d57600080fd5b5061012d546105569062010000900461ffff1681565b34801561063f57600080fd5b5061012d54610390906a0100000000000000000000900460ff1681565b34801561066857600080fd5b5060fb5460ff16610390565b34801561068057600080fd5b5061012d546105569061ffff1681565b34801561069c57600080fd5b506104186106ab366004613d7c565b6114fe565b3480156106bc57600080fd5b506103eb611589565b3480156106d157600080fd5b5061047c6106e036600461393b565b611597565b3480156106f157600080fd5b50610465611631565b34801561070657600080fd5b50610465610715366004613d5a565b611685565b34801561072657600080fd5b5061012d54610418906b01000000000000000000000090046001600160a01b031681565b610465610758366004613c8b565b6116f2565b34801561076957600080fd5b50610465611ab4565b34801561077e57600080fd5b5061039061078d366004613abb565b611daa565b34801561079e57600080fd5b506104656107ad36600461393b565b611ded565b3480156107be57600080fd5b506104656107cd36600461393b565b611e7f565b3480156107de57600080fd5b506097546001600160a01b0316610418565b3480156107fc57600080fd5b506103eb611eea565b34801561081157600080fd5b50610418610820366004613c18565b611ef9565b34801561083157600080fd5b5061012d54610556906601000000000000900461ffff1681565b34801561085757600080fd5b50610465610866366004613a87565b611f78565b34801561087757600080fd5b50610465610886366004613a39565b611f83565b34801561089757600080fd5b506104656108a6366004613d14565b612177565b3480156108b757600080fd5b506103eb6121d3565b3480156108cc57600080fd5b5061012d546103909068010000000000000000900460ff1681565b3480156108f357600080fd5b506104656109023660046139cf565b6121e1565b34801561091357600080fd5b506103eb61226f565b34801561092857600080fd5b506103eb610937366004613d7c565b61227d565b34801561094857600080fd5b50610465612377565b34801561095d57600080fd5b5061046561096c366004613d5a565b612412565b34801561097d57600080fd5b5061012e54610418906001600160a01b031681565b34801561099e57600080fd5b506104656109ad366004613d14565b612483565b3480156109be57600080fd5b506104656109cd366004613b48565b6124df565b3480156109de57600080fd5b506103906109ed366004613957565b6126c3565b3480156109fe57600080fd5b50610465610a0d366004613d14565b6127a4565b348015610a1e57600080fd5b50610465610a2d36600461393b565b612800565b348015610a3e57600080fd5b50610a476128cd565b60405161039c9190613e1b565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610ab757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610aeb57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b90505b919050565b606060658054610b0290613f77565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2e90613f77565b8015610b7b5780601f10610b5057610100808354040283529160200191610b7b565b820191906000526020600020905b815481529060010190602001808311610b5e57829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610c035760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152606960205260409020546001600160a01b031690565b6101308054610c2d90613f77565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5990613f77565b8015610ca65780601f10610c7b57610100808354040283529160200191610ca6565b820191906000526020600020905b815481529060010190602001808311610c8957829003601f168201915b505050505081565b6000610cb9826114fe565b9050806001600160a01b0316836001600160a01b03161415610d435760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610bfa565b336001600160a01b0382161480610d5f5750610d5f81336109ed565b610dd15760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bfa565b610ddb8383612916565b505050565b61012d54600090610dfe906107d09062010000900461ffff16613f3d565b61012d54610e10919061ffff16613ec0565b61ffff16905090565b600260c9541415610e6c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bfa565b600260c95560fb5460ff1615610ec45760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610bfa565b61012d5461012e54839183916a010000000000000000000090910460ff16906001600160a01b0316600182610f3b5760405162461bcd60e51b815260206004820152601260248201527f6d696e74696e67206e6f742061637469766500000000000000000000000000006044820152606401610bfa565b336000908152610132602052604090205460ff1615610f9c5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610bfa565b323314610fdb5760405162461bcd60e51b815260206004820152600d60248201526c6f6e6c79206163636f756e747360981b6044820152606401610bfa565b600061101f3387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250611daa915050565b90508061106e5760405162461bcd60e51b815260206004820152601660248201527f796f7520617265206e6f7420776869746c6973746564000000000000000000006044820152606401610bfa565b81156110f25761012d5461ffff6601000000000000820481169161109b9162010000909104166001613ec0565b61ffff1611156110ed5760405162461bcd60e51b815260206004820152601660248201527f6e6f206d6f7265207072697661746520737570706c79000000000000000000006044820152606401610bfa565b611162565b61012d5461ffff640100000000820481169161111091166001613ec0565b61ffff1611156111625760405162461bcd60e51b815260206004820152601560248201527f6e6f206d6f7265207075626c696320737570706c7900000000000000000000006044820152606401610bfa565b33600081815261013260205260409020805460ff1916600117905561012d80546111c192919060029061119f9061ffff6201000090910416613fb2565b91906101000a81548161ffff021916908361ffff160217905561ffff16612984565b61012d54604080513381526201000090920461ffff1660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f091015b60405180910390a15050600160c955505050505050565b610ceb8054610c2d90613f77565b61122f338261299e565b6112a15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bfa565b610ddb838383612a6d565b6097546001600160a01b031633146112f45760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d8054911515680100000000000000000268ff000000000000000019909216919091179055565b6097546001600160a01b031633146113655760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b805161137990610cec906020840190613787565b5050565b61013381610bb8811061138f57600080fd5b01546001600160a01b0316905081565b610ddb838383604051806020016040528060008152506121e1565b6097546001600160a01b031633146114025760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d80549115156a0100000000000000000000026aff0000000000000000000019909216919091179055565b6097546001600160a01b031633146114775760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d805491151569010000000000000000000269ff00000000000000000019909216919091179055565b6097546001600160a01b031633146114ea5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b80516113799061012f906020840190613787565b6000818152606760205260408120546001600160a01b031680610aeb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610bfa565b61012f8054610c2d90613f77565b60006001600160a01b0382166116155760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610bfa565b506001600160a01b031660009081526068602052604090205490565b6097546001600160a01b031633146116795760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b6116836000612c40565b565b6097546001600160a01b031633146116cd5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d805461ffff9092166401000000000265ffff0000000019909216919091179055565b600260c95414156117455760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bfa565b600260c95560fb5460ff161561179d5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610bfa565b61012d548290829068010000000000000000810460ff16906b01000000000000000000000090046001600160a01b031660008261181c5760405162461bcd60e51b815260206004820152601260248201527f6d696e74696e67206e6f742061637469766500000000000000000000000000006044820152606401610bfa565b336000908152610132602052604090205460ff161561187d5760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610bfa565b3233146118bc5760405162461bcd60e51b815260206004820152600d60248201526c6f6e6c79206163636f756e747360981b6044820152606401610bfa565b60006119003387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250889250611daa915050565b90508061194f5760405162461bcd60e51b815260206004820152601660248201527f796f7520617265206e6f7420776869746c6973746564000000000000000000006044820152606401610bfa565b81156119d35761012d5461ffff6601000000000000820481169161197c9162010000909104166001613ec0565b61ffff1611156119ce5760405162461bcd60e51b815260206004820152601660248201527f6e6f206d6f7265207072697661746520737570706c79000000000000000000006044820152606401610bfa565b611a43565b61012d5461ffff64010000000082048116916119f191166001613ec0565b61ffff161115611a435760405162461bcd60e51b815260206004820152601560248201527f6e6f206d6f7265207075626c696320737570706c7900000000000000000000006044820152606401610bfa565b33600081815261013260205260408120805460ff1916600117905561012d8054611a7693929061119f9061ffff16613fb2565b61012d546040805133815261ffff90921660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f09101611200565b600054610100900460ff16611acf5760005460ff1615611ad3565b303b155b611b455760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610bfa565b600054610100900460ff16158015611b70576000805460ff1961ff0019909116610100171660011790555b611b78612c92565b611b80612d05565b611b88612d78565b611bfc6040518060400160405280600781526020017f5175616e74756d000000000000000000000000000000000000000000000000008152506040518060400160405280600781526020017f5155414e54554d00000000000000000000000000000000000000000000000000815250612deb565b61012d805469ffff0000000000000000191669010000000000000000001790556040805160608101909152603580825261407c60208301398051611c4991610cec91602090910190613787565b50604051806060016040528060358152602001614047603591398051611c7891610ceb91602090910190613787565b5061012d80547eb3ba692696a60271b2f2d2917c20e14c32ca74d700000000000000000000007fff000000000000000000000000000000000000000000ffffffffffffffffffff90911617905561012e80546001600160a01b03191673c9c3b4587fcd88e463cd3c86b4c6594709f22c121790556040805180820190915260058082527f2e6a736f6e0000000000000000000000000000000000000000000000000000006020909201918252611d319161013191613787565b50610ced805473e850eb266384a133844976ac66b98a44edbfcb0d6001600160a01b031990911617905561012d805463ffff000019166307d000001765ffff0000ffff19166507d0000000001767ffff00000000000019166708340000000000001790558015611da7576000805461ff00191690555b50565b600080611db685612e60565b90506000611dc382612ea0565b9050836001600160a01b0316611dd98287611ef9565b6001600160a01b0316149695505050505050565b6097546001600160a01b03163314611e355760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d80546001600160a01b039092166b010000000000000000000000027fff0000000000000000000000000000000000000000ffffffffffffffffffffff909216919091179055565b6097546001600160a01b03163314611ec75760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012e80546001600160a01b0319166001600160a01b0392909216919091179055565b606060668054610b0290613f77565b600080600080611f0885612edb565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015611f63573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b611379338383612f4f565b6097546001600160a01b03163314611fcb5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b60005b8151811015610ddb5761200883838381518110611ffb57634e487b7160e01b600052603260045260246000fd5b6020026020010151612984565b6107d082828151811061202b57634e487b7160e01b600052603260045260246000fd5b60200260200101511161206c5761012d805460009061204d9061ffff16613fb2565b91906101000a81548161ffff021916908361ffff16021790555061211b565b61012d5461ffff660100000000000082048116916120939162010000909104166001613ec0565b61ffff1611156120e55760405162461bcd60e51b815260206004820152601660248201527f7072697661746520737570706c792072656163686564000000000000000000006044820152606401610bfa565b61012d80546002906121009062010000900461ffff16613fb2565b91906101000a81548161ffff021916908361ffff1602179055505b61012d54604080516001600160a01b038616815261ffff90921660208301527f2d8eb9b9558d4b5ef1d238622692f6156d5822009340e26ab15fac05d64c12f0910160405180910390a18061216f81613fd4565b915050611fce565b6097546001600160a01b031633146121bf5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b805161137990610ceb906020840190613787565b610cec8054610c2d90613f77565b6121eb338361299e565b61225d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610bfa565b6122698484848461301e565b50505050565b6101318054610c2d90613f77565b6000818152606760205260409020546060906001600160a01b03166122a157600080fd5b61012d546901000000000000000000900460ff16151560011415612369576107d0821161235b57610cec80546122d690613f77565b80601f016020809104026020016040519081016040528092919081815260200182805461230290613f77565b801561234f5780601f106123245761010080835404028352916020019161234f565b820191906000526020600020905b81548152906001019060200180831161233257829003601f168201915b50505050509050610aee565b610ceb80546122d690613f77565b61013080546122d690613f77565b6097546001600160a01b031633146123bf5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d80546801000000000000000060ff6a0100000000000000000000808404821615026aff000000000000000000001990931692909217818104909216150268ff000000000000000019909116179055565b6097546001600160a01b0316331461245a5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b61012d805461ffff90921666010000000000000267ffff00000000000019909216919091179055565b6097546001600160a01b031633146124cb5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b805161137990610131906020840190613787565b6097546001600160a01b031633146125275760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b600047116125775760405162461bcd60e51b815260206004820152601660248201527f4e6f2062616c616e636520746f207769746864726177000000000000000000006044820152606401610bfa565b815181511461258557600080fd5b6000805b82518110156125d9578281815181106125b257634e487b7160e01b600052603260045260246000fd5b6020026020010151826125c59190613ee6565b9150806125d181613fd4565b915050612589565b50806103e81461262b5760405162461bcd60e51b815260206004820152600e60248201527f696e76616c6964207368617265730000000000000000000000000000000000006044820152606401610bfa565b50600047815b83518110156126bc576126aa85828151811061265d57634e487b7160e01b600052603260045260246000fd5b60200260200101516103e886848151811061268857634e487b7160e01b600052603260045260246000fd5b60200260200101518561269b9190613f1e565b6126a59190613efe565b61309c565b806126b481613fd4565b915050612631565b5050505050565b610ced546000906001600160a01b03166126dd848461313f565b8061276c575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b15801561272957600080fd5b505afa15801561273d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127619190613cf8565b6001600160a01b0316145b8061279c57506001600160a01b038085166000908152606a602090815260408083209387168352929052205460ff165b949350505050565b6097546001600160a01b031633146127ec5760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b805161137990610130906020840190613787565b6097546001600160a01b031633146128485760405162461bcd60e51b815260206004820181905260248201526000805160206140b18339815191526044820152606401610bfa565b6001600160a01b0381166128c45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bfa565b611da781612c40565b6128d561380b565b60408051620177008101918290529061013390610bb89082845b81546001600160a01b031681526001909101906020018083116128ef575050505050905090565b600081815260696020526040902080546001600160a01b0319166001600160a01b038416908117909155819061294b826114fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611379828260405180602001604052806000815250613230565b6000818152606760205260408120546001600160a01b0316612a175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bfa565b6000612a22836114fe565b9050806001600160a01b0316846001600160a01b03161480612a5d5750836001600160a01b0316612a5284610b85565b6001600160a01b0316145b8061279c575061279c81856126c3565b826001600160a01b0316612a80826114fe565b6001600160a01b031614612afc5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610bfa565b6001600160a01b038216612b775760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610bfa565b612b82600082612916565b6001600160a01b0383166000908152606860205260408120805460019290612bab908490613f60565b90915550506001600160a01b0382166000908152606860205260408120805460019290612bd9908490613ee6565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610ddb8383836132ae565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612cfd5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b6116836132f6565b600054610100900460ff16612d705760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b61168361336a565b600054610100900460ff16612de35760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b6116836133e1565b600054610100900460ff16612e565760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b6113798282613453565b6040516bffffffffffffffffffffffff19606083901b1660208201526000906034015b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01612e83565b60008060008351604114612f315760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610bfa565b50505060208101516040820151606090920151909260009190911a90565b816001600160a01b0316836001600160a01b03161415612fb15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bfa565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613029848484612a6d565b613035848484846134e5565b6122695760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bfa565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146130e9576040519150601f19603f3d011682016040523d82523d6000602084013e6130ee565b606091505b5050905080610ddb5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610bfa565b600080466001811461315857600481146131745761318c565b73a5409ec958c83c3f309868babaca7c86dcb077c1915061318c565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b506001600160a01b0381161580159061279c575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b1580156131e657600080fd5b505afa1580156131fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061321e9190613cf8565b6001600160a01b031614949350505050565b61323a838361363d565b61324760008484846134e5565b610ddb5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bfa565b8161013382610bb881106132d257634e487b7160e01b600052603260045260246000fd5b0180546001600160a01b0319166001600160a01b0392909216919091179055505050565b600054610100900460ff166133615760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b61168333612c40565b600054610100900460ff166133d55760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b60fb805460ff19169055565b600054610100900460ff1661344c5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b600160c955565b600054610100900460ff166134be5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610bfa565b81516134d1906065906020850190613787565b508051610ddb906066906020840190613787565b60006001600160a01b0384163b1561363257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613529903390899088908890600401613ddf565b602060405180830381600087803b15801561354357600080fd5b505af1925050508015613573575060408051601f3d908101601f1916820190925261357091810190613c6f565b60015b613618573d8080156135a1576040519150601f19603f3d011682016040523d82523d6000602084013e6135a6565b606091505b5080516136105760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610bfa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061279c565b506001949350505050565b6001600160a01b0382166136935760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bfa565b6000818152606760205260409020546001600160a01b0316156136f85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bfa565b6001600160a01b0382166000908152606860205260408120805460019290613721908490613ee6565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611379600083836132ae565b82805461379390613f77565b90600052602060002090601f0160209004810192826137b557600085556137fb565b82601f106137ce57805160ff19168380011785556137fb565b828001600101855582156137fb579182015b828111156137fb5782518255916020019190600101906137e0565b5061380792915061382c565b5090565b60405180620177000160405280610bb8906020820280368337509192915050565b5b80821115613807576000815560010161382d565b600067ffffffffffffffff83111561385b5761385b614005565b61386e601f8401601f1916602001613e6b565b905082815283838301111561388257600080fd5b828260208301376000602084830101529392505050565b600082601f8301126138a9578081fd5b813560206138be6138b983613e9c565b613e6b565b82815281810190858301838502870184018810156138da578586fd5b855b858110156138f8578135845292840192908401906001016138dc565b5090979650505050505050565b80358015158114610aee57600080fd5b600082601f830112613925578081fd5b61393483833560208501613841565b9392505050565b60006020828403121561394c578081fd5b81356139348161401b565b60008060408385031215613969578081fd5b82356139748161401b565b915060208301356139848161401b565b809150509250929050565b6000806000606084860312156139a3578081fd5b83356139ae8161401b565b925060208401356139be8161401b565b929592945050506040919091013590565b600080600080608085870312156139e4578081fd5b84356139ef8161401b565b935060208501356139ff8161401b565b925060408501359150606085013567ffffffffffffffff811115613a21578182fd5b613a2d87828801613915565b91505092959194509250565b60008060408385031215613a4b578182fd5b8235613a568161401b565b9150602083013567ffffffffffffffff811115613a71578182fd5b613a7d85828601613899565b9150509250929050565b60008060408385031215613a99578182fd5b8235613aa48161401b565b9150613ab260208401613905565b90509250929050565b600080600060608486031215613acf578283fd5b8335613ada8161401b565b9250602084013567ffffffffffffffff811115613af5578283fd5b613b0186828701613915565b9250506040840135613b128161401b565b809150509250925092565b60008060408385031215613b2f578182fd5b8235613b3a8161401b565b946020939093013593505050565b60008060408385031215613b5a578182fd5b823567ffffffffffffffff80821115613b71578384fd5b818501915085601f830112613b84578384fd5b81356020613b946138b983613e9c565b82815281810190858301838502870184018b1015613bb0578889fd5b8896505b84871015613bdb578035613bc78161401b565b835260019690960195918301918301613bb4565b5096505086013592505080821115613bf1578283fd5b50613a7d85828601613899565b600060208284031215613c0f578081fd5b61393482613905565b60008060408385031215613c2a578182fd5b82359150602083013567ffffffffffffffff811115613c47578182fd5b613a7d85828601613915565b600060208284031215613c64578081fd5b813561393481614030565b600060208284031215613c80578081fd5b815161393481614030565b60008060208385031215613c9d578182fd5b823567ffffffffffffffff80821115613cb4578384fd5b818501915085601f830112613cc7578384fd5b813581811115613cd5578485fd5b866020828501011115613ce6578485fd5b60209290920196919550909350505050565b600060208284031215613d09578081fd5b81516139348161401b565b600060208284031215613d25578081fd5b813567ffffffffffffffff811115613d3b578182fd5b8201601f81018413613d4b578182fd5b61279c84823560208401613841565b600060208284031215613d6b578081fd5b813561ffff81168114613934578182fd5b600060208284031215613d8d578081fd5b5035919050565b60008151808452815b81811015613db957602081850181015186830182015201613d9d565b81811115613dca5782602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e116080830184613d94565b9695505050505050565b620177008101818360005b610bb8811015613e4f5781516001600160a01b0316835260209283019290910190600101613e26565b50505092915050565b6000602082526139346020830184613d94565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e9457613e94614005565b604052919050565b600067ffffffffffffffff821115613eb657613eb6614005565b5060209081020190565b600061ffff808316818516808303821115613edd57613edd613fef565b01949350505050565b60008219821115613ef957613ef9613fef565b500190565b600082613f1957634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615613f3857613f38613fef565b500290565b600061ffff83811690831681811015613f5857613f58613fef565b039392505050565b600082821015613f7257613f72613fef565b500390565b600281046001821680613f8b57607f821691505b60208210811415613fac57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613fca57613fca613fef565b6001019392505050565b6000600019821415613fe857613fe8613fef565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611da757600080fd5b6001600160e01b031981168114611da757600080fdfe697066733a2f2f516d5434575771677369794552506b62397478435167437a676150775a6f6238554e614b37513856354138694d38697066733a2f2f516d59704b6343433465374a4c5877624d77504366514a4d6638364c6d78435a794d516b487733785261374666634f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212203967aabfd33d4c9fea03daaa6a1ac7ea935452bb9f9d340f6fe3ad7d26becbd764736f6c63430008020033
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
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.