Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
KingFrogsV5
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
petersburg EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0;
/**
* @title KingFrog contract
* @dev Extends ERC721Enumerable Non-Fungible Token Standard basic implementation
*/
/**
* SPDX-License-Identifier: UNLICENSED
*/
/**
(')-=-(')
__( " )__
/ _/'-----'\_ \
___\\ \\ // //___
>____)/_\---/_\(____<
ribbit motherclucker
*/
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
interface IDucksV5 {
function getTraits(uint tokenId) external view returns (uint8, uint8, uint8, uint8, uint8, uint8);
function ownerOf(uint tokenId) external view returns (address);
}
interface ISupShopV5 {
function burnItem(address burnTokenAddress, uint256 typeId, uint256 amount) external;
}
contract KingFrogsV5 is ERC721EnumerableUpgradeable, OwnableUpgradeable {
uint256 public constant MAX_FROGS_PUBLIC = 10000;
uint256 public constant MAX_FROGS_CLAIMED = 10001;
uint256 public constant NUM_SUPERS = 10;
uint256 public constant NUM_TRAITS = 6;
bool public saleIsActive;
bool public claimIsActive;
uint16[][NUM_TRAITS] internal traitProbs;
uint8[][NUM_TRAITS] internal traitAliases;
uint8[NUM_TRAITS][MAX_FROGS_PUBLIC + MAX_FROGS_CLAIMED] internal frogTraits;
uint8[NUM_TRAITS] internal PUBLIC_TRAIT_OFFETS;
uint16[NUM_SUPERS + 1] internal superStock;
IDucksV5 public SupDucks;
string internal baseURI;
uint256 internal nonce;
uint256 public START;
uint256 public numPublicMinted;
uint256 public deployedBlock;
address internal splitterAddress;
struct Duck {
uint8 background;
uint8 skin;
uint8 clothes;
uint8 hat;
uint8 mouth;
uint8 eyes;
}
/**
* Public mint !
*/
function mintFrog(uint numberOfTokens) external payable {
require(saleIsActive, "Sale must be active to mint Frog");
require(numberOfTokens <= 20, "Can only mint 20 tokens at a time");
require(numPublicMinted + numberOfTokens <= MAX_FROGS_PUBLIC, "Purchase would exceed max supply of Frogs");
require(getCurrentPrice() * numberOfTokens <= msg.value, "Ether value sent is not correct");
for(uint i = 0; i < numberOfTokens; i++) {
uint seed = uint(keccak256(abi.encodePacked(nonce, block.difficulty, block.timestamp, msg.sender)));
addTraits(seed, numPublicMinted);
_safeMint(msg.sender, numPublicMinted);
numPublicMinted++;
}
}
function determineTrait(uint8 traitType, uint seed) internal view returns (uint8){
uint8 i = uint8(uint(keccak256(abi.encodePacked(nonce, seed++))) % traitProbs[traitType].length);
return uint(keccak256(abi.encodePacked(nonce, seed))) % 10000 <= uint(traitProbs[traitType][i]) ? i : traitAliases[traitType][i];
}
function addTraits(uint seed, uint tokenId) internal {
for(uint8 i = 0; i < NUM_TRAITS - 1; i++){
nonce++;
frogTraits[tokenId][i] = determineTrait(i, seed) + PUBLIC_TRAIT_OFFETS[i];
}
frogTraits[tokenId][5] = uint8(uint(keccak256(abi.encodePacked(tokenId, seed))) % 24);
uint16 roll = uint16(seed % (MAX_FROGS_PUBLIC - numPublicMinted));
for(uint8 i = 0; i < NUM_SUPERS + 1; i++){
if(roll < superStock[i]){
superStock[i]--;
if(i > 0){
for(uint8 j = 0; j < NUM_TRAITS; j++){
frogTraits[tokenId][j] = uint8(110 + i);
}
}
return;
}
roll -= superStock[i];
}
revert('lilypad');
}
function claimFrogs(uint[] memory duckTokenIds) external {
require(claimIsActive, "Claim must be active to claim Frog");
require(duckTokenIds.length <= 20, "Limit 20 tokenIds");
for(uint i = 0; i < duckTokenIds.length; i++){
uint claimedIndex = duckTokenIds[i] / 256;
uint claimedBitShift = duckTokenIds[i] % 256;
require((claimed[claimedIndex] >> claimedBitShift) & uint256(1) == 0, "frog already claimed");
require(msg.sender == SupDucks.ownerOf(duckTokenIds[i]), "You don't own this duck");
_safeMint(msg.sender, duckTokenIds[i] + 10000);
claimed[claimedIndex] = claimed[claimedIndex] | (uint256(1) << claimedBitShift);
}
}
/**
* Scoop hand from sky
*/
function grabTadpoles(uint numberOfTokens) external onlyOwner payable{
for(uint i = 0; i < numberOfTokens; i++) {
uint seed = uint(keccak256(abi.encodePacked(nonce, block.difficulty, block.timestamp, msg.sender)));
addTraits(seed, numPublicMinted);
_safeMint(msg.sender, numPublicMinted);
numPublicMinted++;
}
}
function pauseSale() external onlyOwner {
require(saleIsActive == true, "sale is already paused");
saleIsActive = false;
}
function startSale() external onlyOwner {
require(saleIsActive == false, "sale is already started");
START = block.timestamp;
saleIsActive = true;
}
function flipClaimState() external onlyOwner {
claimIsActive = !claimIsActive;
}
function withdraw() external onlyOwner {
uint balance = address(this).balance;
payable(splitterAddress).transfer(balance);
}
function setBaseURI(string memory newBaseURI) public onlyOwner {
baseURI = newBaseURI;
}
function setSupDucks(address supAddy) external onlyOwner {
SupDucks = IDucksV5(supAddy);
}
function setSplitterAddress(address splitter) external onlyOwner {
splitterAddress = splitter;
}
function getTraits(uint tokenId) public view returns (uint, uint, uint, uint, uint, uint){
require(_exists(tokenId), "ERC721Metadata: trait query for nonexistent token");
if(tokenId >= MAX_FROGS_PUBLIC){
Duck memory duck;
(duck.background, duck.skin, duck.clothes, duck.hat, duck.mouth, duck.eyes) = SupDucks.getTraits(tokenId - 10000);
return(
duck.background,
duck.skin,
duck.hat,
determineTrait(3, uint8(uint(keccak256(abi.encodePacked(tokenId, deployedBlock))))),
duck.eyes,
uint8(uint(keccak256(abi.encodePacked(tokenId, deployedBlock))) % 24)
);
}else{
return (
frogTraits[tokenId][0],
frogTraits[tokenId][1],
frogTraits[tokenId][2],
frogTraits[tokenId][3],
frogTraits[tokenId][4],
frogTraits[tokenId][5]
);
}
}
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
function getCurrentPrice() view public returns (uint){
if((block.timestamp - START) >= 6 hours){
return 0.01 ether;
}else{
return (6 hours - (block.timestamp - START)) * 0.99 ether / 6 hours + .01 ether;
}
}
function exists(uint tokenId) view external returns (bool){
return _exists(tokenId);
}
function getClaimIsActive() view external returns (bool){
return claimIsActive;
}
function initialize(
uint16[] memory background_p, uint8[] memory background_a,
uint16[] memory skin_p, uint8[] memory skin_a,
uint16[] memory hats_p, uint8[] memory hats_a,
uint16[] memory mouth_p, uint8[] memory mouth_a,
uint16[] memory eyes_p, uint8[] memory eyes_a) initializer public {
__ERC721_init("KingFrogs", "KF");
__ERC721Enumerable_init();
__Ownable_init();
/**
* Some frog gene magic
*/
traitProbs[0] = background_p;
traitProbs[1] = skin_p;
traitProbs[2] = hats_p;
traitProbs[3] = mouth_p;
traitProbs[4] = eyes_p;
traitAliases[0] = background_a;
traitAliases[1] = skin_a;
traitAliases[2] = hats_a;
traitAliases[3] = mouth_a;
traitAliases[4] = eyes_a;
saleIsActive = false;
claimIsActive = false;
nonce = 42;
PUBLIC_TRAIT_OFFETS = [
16,
18,
38,
0,
27,
0
];
superStock = [uint16(MAX_FROGS_PUBLIC - NUM_SUPERS), 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
splitterAddress = 0xD28DBD19B93b6CC55D85dEbe9d93644097Fed773;
deployedBlock = block.number;
setBaseURI("https://api.supducks.com/metadata/");
}
uint8[20000] public anim;
ISupShopV5 public SupShop;
bool public canAnimate;
function animateFrog(uint tokenId, uint8 animId) external {
require(ownerOf(tokenId) == msg.sender, "not your frog bud");
require(canAnimate, "animations closed");
require(anim[tokenId] == 0, "frog is already animated");
(uint256 trait, , , , , ) = getTraits(tokenId);
require(trait < 100, "no supers");
SupShop.burnItem(msg.sender, animId, 1);
anim[tokenId] = animId + 1;
}
function flipAnimateState() external onlyOwner{
canAnimate = !canAnimate;
}
function setSupShop(address SupAddy) external onlyOwner{
SupShop = ISupShopV5(SupAddy);
}
address public Toad;
function burnForToads(uint tokenId) external {
require(msg.sender == Toad, "Unauthorized");
_burn(tokenId);
}
function setToad(address ToadAddy) external onlyOwner{
Toad = ToadAddy;
}
function getTrait(uint frogTokenId, uint traitType) external view returns (uint8){
require(_exists(frogTokenId), "ERC721Metadata: trait query for nonexistent token");
if(frogTokenId >= MAX_FROGS_PUBLIC){
uint8[6] memory traitsOfFrog;
(traitsOfFrog[0], traitsOfFrog[1], , traitsOfFrog[2], , traitsOfFrog[4]) = SupDucks.getTraits(frogTokenId - 10000);
traitsOfFrog[3] = determineTrait(3, uint8(uint(keccak256(abi.encodePacked(frogTokenId, deployedBlock)))));
return traitsOfFrog[traitType];
}else{
return frogTraits[frogTokenId][traitType];
}
}
uint256[40] public claimed; // bitfields
function setClaimed(uint256[40] calldata newClaimedBitfields) external onlyOwner {
claimed = newClaimedBitfields;
}
function isClaimed(uint256 duckTokenId) public view returns (bool){
uint claimedIndex = duckTokenId / 256;
uint claimedBitShift = duckTokenId % 256;
return (claimed[claimedIndex] >> claimedBitShift) & uint256(1) == 1;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 initializer {
__ERC165_init_unchained();
}
function __ERC165_init_unchained() internal initializer {
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165Upgradeable).interfaceId;
}
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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.0 (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 initializer {
__Context_init_unchained();
}
function __Context_init_unchained() internal initializer {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @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
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev 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.0 (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 v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../IERC721Upgradeable.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721EnumerableUpgradeable is IERC721Upgradeable {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../ERC721Upgradeable.sol";
import "./IERC721EnumerableUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
function __ERC721Enumerable_init() internal initializer {
__Context_init_unchained();
__ERC165_init_unchained();
__ERC721Enumerable_init_unchained();
}
function __ERC721Enumerable_init_unchained() internal initializer {
}
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165Upgradeable, ERC721Upgradeable) returns (bool) {
return interfaceId == type(IERC721EnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Upgradeable.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721EnumerableUpgradeable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721Upgradeable.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721Upgradeable.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
uint256[46] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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.0 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface 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.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 initializer {
__Context_init_unchained();
__ERC165_init_unchained();
__ERC721_init_unchained(name_, symbol_);
}
function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer {
_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);
}
/**
* @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);
}
/**
* @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 of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(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 {}
uint256[44] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol)
pragma solidity ^0.8.0;
/**
* @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 a proxied contract can't have 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() {
require(_initializing || !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 initializer {
__Context_init_unchained();
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal initializer {
_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);
}
uint256[49] private __gap;
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "petersburg",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_FROGS_CLAIMED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FROGS_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_SUPERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_TRAITS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SupDucks","outputs":[{"internalType":"contract IDucksV5","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SupShop","outputs":[{"internalType":"contract ISupShopV5","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Toad","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"anim","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"animId","type":"uint8"}],"name":"animateFrog","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnForToads","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canAnimate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"duckTokenIds","type":"uint256[]"}],"name":"claimFrogs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deployedBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipAnimateState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipClaimState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"frogTokenId","type":"uint256"},{"internalType":"uint256","name":"traitType","type":"uint256"}],"name":"getTrait","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTraits","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"grabTadpoles","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"background_p","type":"uint16[]"},{"internalType":"uint8[]","name":"background_a","type":"uint8[]"},{"internalType":"uint16[]","name":"skin_p","type":"uint16[]"},{"internalType":"uint8[]","name":"skin_a","type":"uint8[]"},{"internalType":"uint16[]","name":"hats_p","type":"uint16[]"},{"internalType":"uint8[]","name":"hats_a","type":"uint8[]"},{"internalType":"uint16[]","name":"mouth_p","type":"uint16[]"},{"internalType":"uint8[]","name":"mouth_a","type":"uint8[]"},{"internalType":"uint16[]","name":"eyes_p","type":"uint16[]"},{"internalType":"uint8[]","name":"eyes_a","type":"uint8[]"}],"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":[{"internalType":"uint256","name":"duckTokenId","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintFrog","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numPublicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[40]","name":"newClaimedBitfields","type":"uint256[40]"}],"name":"setClaimed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"splitter","type":"address"}],"name":"setSplitterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"supAddy","type":"address"}],"name":"setSupDucks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"SupAddy","type":"address"}],"name":"setSupShop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"ToadAddy","type":"address"}],"name":"setToad","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50614613806100206000396000f3fe6080604052600436106103765760003560e01c80635d74727e116101d1578063a22cb46511610102578063c87b56dd116100a0578063e985e9c51161006f578063e985e9c5146109e1578063eb8d244414610a2a578063eb91d37e14610a44578063f2fde38b14610a5957600080fd5b8063c87b56dd1461093d578063d133a9b81461095d578063dbe7e3bd14610974578063e1dc07611461099457600080fd5b8063b66a0e5d116100dc578063b66a0e5d146108d1578063b88d4fde146108e6578063ba9a061a14610906578063bb08d1cd1461091d57600080fd5b8063a22cb4651461085f578063acd2dd1e1461087f578063ae2ab4341461089f57600080fd5b806388e512571161016f57806395d89b411161014957806395d89b41146107e95780639e34070f146107fe5780639ea38e011461081e578063a0b074c11461083e57600080fd5b806388e5125714610796578063895ccf53146107ab5780638da5cb5b146107cb57600080fd5b806370a08231116101ab57806370a0823114610729578063715018a614610749578063767f9e851461075e57806382ea7bfe1461077f57600080fd5b80635d74727e146106de5780636352211e146106f45780636d60e6c11461071457600080fd5b80632f745c59116102ab5780634f6ccce7116102495780635412c231116102235780635412c2311461068357806355367ba91461069657806355f804b3146106ab5780635aabb855146106cb57600080fd5b80634f6ccce7146106245780635303f68c146106445780635397435a1461066357600080fd5b806342842e0e1161028557806342842e0e146105ad5780634537d2bb146105cd578063454836ad146105ef5780634f558e791461060457600080fd5b80632f745c59146105585780633ccfd60b1461057857806340dbdd211461058d57600080fd5b8063105f9ecf1161031857806318160ddd116102f257806318160ddd146104ed57806319bee87f146105025780631a371a051461052357806323b872dd1461053857600080fd5b8063105f9ecf1461048c578063134925ab146104b057806316257b52146104cd57600080fd5b8063081812fc11610354578063081812fc146103f4578063095ea7b31461042c578063097711151461044c5780630e19a1411461046c57600080fd5b806301ffc9a71461037b57806304d25fb9146103b057806306fdde03146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004613fb4565b610a79565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103d06103cb366004613f1c565b610aa4565b005b3480156103de57600080fd5b506103e7610d8d565b6040516103a791906141b6565b34801561040057600080fd5b5061041461040f366004614037565b610e1f565b6040516001600160a01b0390911681526020016103a7565b34801561043857600080fd5b506103d0610447366004613d3a565b610ea7565b34801561045857600080fd5b506103d0610467366004614072565b610fbd565b34801561047857600080fd5b506103d0610487366004613bd3565b6111da565b34801561049857600080fd5b506104a261271181565b6040519081526020016103a7565b3480156104bc57600080fd5b5060fb54610100900460ff1661039b565b3480156104d957600080fd5b506103d06104e8366004613bd3565b611227565b3480156104f957600080fd5b506099546104a2565b34801561050e57600080fd5b506151a454610414906001600160a01b031681565b34801561052f57600080fd5b506104a2600a81565b34801561054457600080fd5b506103d0610553366004613c46565b611274565b34801561056457600080fd5b506104a2610573366004613d3a565b6112a5565b34801561058457600080fd5b506103d061133b565b34801561059957600080fd5b506103d06105a8366004613bd3565b6113a1565b3480156105b957600080fd5b506103d06105c8366004613c46565b6113ee565b3480156105d957600080fd5b506151a35461039b90600160a01b900460ff1681565b3480156105fb57600080fd5b506104a2600681565b34801561061057600080fd5b5061039b61061f366004614037565b611409565b34801561063057600080fd5b506104a261063f366004614037565b611414565b34801561065057600080fd5b5060fb5461039b90610100900460ff1681565b34801561066f57600080fd5b506103d061067e366004613d66565b6114a7565b6103d0610691366004614037565b61175d565b3480156106a257600080fd5b506103d0611826565b3480156106b757600080fd5b506103d06106c6366004613fee565b6118ac565b6103d06106d9366004614037565b6118ea565b3480156106ea57600080fd5b506104a261271081565b34801561070057600080fd5b5061041461070f366004614037565b611b0a565b34801561072057600080fd5b506103d0611b81565b34801561073557600080fd5b506104a2610744366004613bd3565b611bc8565b34801561075557600080fd5b506103d0611c4f565b34801561076a57600080fd5b506151a354610414906001600160a01b031681565b34801561078b57600080fd5b506104a2614f305481565b3480156107a257600080fd5b506103d0611c85565b3480156107b757600080fd5b506103d06107c6366004613bd3565b611cd1565b3480156107d757600080fd5b5060c9546001600160a01b0316610414565b3480156107f557600080fd5b506103e7611d1e565b34801561080a57600080fd5b5061039b610819366004614037565b611d2d565b34801561082a57600080fd5b506103d0610839366004613ef1565b611d76565b34801561084a57600080fd5b50614f2b54610414906001600160a01b031681565b34801561086b57600080fd5b506103d061087a366004613d07565b611dae565b34801561088b57600080fd5b506103d061089a366004614037565b611db9565b3480156108ab57600080fd5b506108bf6108ba366004614037565b611e0f565b60405160ff90911681526020016103a7565b3480156108dd57600080fd5b506103d0611e3b565b3480156108f257600080fd5b506103d0610901366004613c87565b611ecc565b34801561091257600080fd5b506104a2614f2e5481565b34801561092957600080fd5b506108bf610938366004614050565b611f04565b34801561094957600080fd5b506103e7610958366004614037565b612099565b34801561096957600080fd5b506104a2614f2f5481565b34801561098057600080fd5b506104a261098f366004614037565b612164565b3480156109a057600080fd5b506109b46109af366004614037565b61217c565b604080519687526020870195909552938501929092526060840152608083015260a082015260c0016103a7565b3480156109ed57600080fd5b5061039b6109fc366004613c0d565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b348015610a3657600080fd5b5060fb5461039b9060ff1681565b348015610a5057600080fd5b506104a261241f565b348015610a6557600080fd5b506103d0610a74366004613bd3565b612494565b60006001600160e01b0319821663780e9d6360e01b1480610a9e5750610a9e8261252c565b92915050565b60fb54610100900460ff16610b0b5760405162461bcd60e51b815260206004820152602260248201527f436c61696d206d7573742062652061637469766520746f20636c61696d2046726044820152616f6760f01b60648201526084015b60405180910390fd5b601481511115610b515760405162461bcd60e51b81526020600482015260116024820152704c696d697420323020746f6b656e49647360781b6044820152606401610b02565b60005b8151811015610d89576000610100838381518110610b7457610b74614555565b6020026020010151610b8691906143d2565b90506000610100848481518110610b9f57610b9f614555565b6020026020010151610bb191906144ff565b90506001816151a58460288110610bca57610bca614555565b0154901c1615610c135760405162461bcd60e51b8152602060048201526014602482015273199c9bd9c8185b1c9958591e4818db185a5b595960621b6044820152606401610b02565b614f2b5484516001600160a01b0390911690636352211e90869086908110610c3d57610c3d614555565b60200260200101516040518263ffffffff1660e01b8152600401610c6391815260200190565b60206040518083038186803b158015610c7b57600080fd5b505afa158015610c8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb39190613bf0565b6001600160a01b0316336001600160a01b031614610d135760405162461bcd60e51b815260206004820152601760248201527f596f7520646f6e2774206f776e2074686973206475636b0000000000000000006044820152606401610b02565b610d4333858581518110610d2957610d29614555565b6020026020010151612710610d3e9190614395565b61257c565b6001811b6151a58360288110610d5b57610d5b614555565b0154176151a58360288110610d7257610d72614555565b015550819050610d81816144c4565b915050610b54565b5050565b606060658054610d9c90614489565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc890614489565b8015610e155780601f10610dea57610100808354040283529160200191610e15565b820191906000526020600020905b815481529060010190602001808311610df857829003601f168201915b5050505050905090565b6000610e2a82612596565b610e8b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b02565b506000908152606960205260409020546001600160a01b031690565b6000610eb282611b0a565b9050806001600160a01b0316836001600160a01b03161415610f205760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b02565b336001600160a01b0382161480610f3c5750610f3c81336109fc565b610fae5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b02565b610fb883836125b3565b505050565b33610fc783611b0a565b6001600160a01b0316146110115760405162461bcd60e51b81526020600482015260116024820152701b9bdd081e5bdd5c88199c9bd9c8189d59607a1b6044820152606401610b02565b6151a354600160a01b900460ff1661105f5760405162461bcd60e51b8152602060048201526011602482015270185b9a5b585d1a5bdb9cc818db1bdcd959607a1b6044820152606401610b02565b614f3282614e20811061107457611074614555565b602081049091015460ff601f9092166101000a900416156110d75760405162461bcd60e51b815260206004820152601860248201527f66726f6720697320616c726561647920616e696d6174656400000000000000006044820152606401610b02565b60006110e28361217c565b50505050509050606481106111255760405162461bcd60e51b81526020600482015260096024820152686e6f2073757065727360b81b6044820152606401610b02565b6151a35460405163d258153560e01b815233600482015260ff84166024820152600160448201526001600160a01b039091169063d258153590606401600060405180830381600087803b15801561117b57600080fd5b505af115801561118f573d6000803e3d6000fd5b505050508160016111a091906143ad565b614f3284614e2081106111b5576111b5614555565b602091828204019190066101000a81548160ff021916908360ff160217905550505050565b60c9546001600160a01b031633146112045760405162461bcd60e51b8152600401610b02906142ba565b614f2b80546001600160a01b0319166001600160a01b0392909216919091179055565b60c9546001600160a01b031633146112515760405162461bcd60e51b8152600401610b02906142ba565b6151a380546001600160a01b0319166001600160a01b0392909216919091179055565b61127e3382612621565b61129a5760405162461bcd60e51b8152600401610b02906142ef565b610fb883838361270b565b60006112b083611bc8565b82106113125760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b02565b506001600160a01b03919091166000908152609760209081526040808320938352929052205490565b60c9546001600160a01b031633146113655760405162461bcd60e51b8152600401610b02906142ba565b614f31546040513031916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610d89573d6000803e3d6000fd5b60c9546001600160a01b031633146113cb5760405162461bcd60e51b8152600401610b02906142ba565b614f3180546001600160a01b0319166001600160a01b0392909216919091179055565b610fb883838360405180602001604052806000815250611ecc565b6000610a9e82612596565b600061141f60995490565b82106114825760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b02565b6099828154811061149557611495614555565b90600052602060002001549050919050565b600054610100900460ff16806114c0575060005460ff16155b6114dc5760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff161580156114fe576000805461ffff19166101011790555b611543604051806040016040528060098152602001684b696e6746726f677360b81b8152506040518060400160405280600281526020016125a360f11b8152506128b6565b61154b61293d565b6115536129c0565b8a516115669060fc9060208e01906137c8565b50885161157a9060fd9060208c01906137c8565b50865161158e9060fe9060208a01906137c8565b5084516115a29060ff9060208801906137c8565b5082516115b7906101009060208601906137c8565b5089516115cc906101029060208d0190613871565b5087516115e1906101039060208b0190613871565b5085516115f690610104906020890190613871565b50835161160b90610105906020870190613871565b50815161162090610106906020850190613871565b5060fb805461ffff19169055602a614f2d556040805160c0810182526010815260126020820152602691810191909152600060608201819052601b608083015260a082015261167490614f29906006613905565b50604051806101600160405280600a6127106116909190614428565b61ffff16815260016020820181905260408201819052606082018190526080820181905260a0820181905260c0820181905260e0820181905261010082018190526101208201819052610140909101526116ef90614f2a90600b613958565b50614f3180546001600160a01b03191673d28dbd19b93b6cc55d85debe9d93644097fed77317905543614f30556040805160608101909152602280825261173e91906145bc60208301396118ac565b8015611750576000805461ff00191690555b5050505050505050505050565b60c9546001600160a01b031633146117875760405162461bcd60e51b8152600401610b02906142ba565b60005b81811015610d8957614f2d546040805160208082019390935244818301524260608083019190915233901b6bffffffffffffffffffffffff191660808201528151808203607401815260949091019091528051910120614f2f546117ef908290612a27565b6117fc33614f2f5461257c565b614f2f805490600061180d836144c4565b919050555050808061181e906144c4565b91505061178a565b60c9546001600160a01b031633146118505760405162461bcd60e51b8152600401610b02906142ba565b60fb5460ff1615156001146118a05760405162461bcd60e51b81526020600482015260166024820152751cd85b19481a5cc8185b1c9958591e481c185d5cd95960521b6044820152606401610b02565b60fb805460ff19169055565b60c9546001600160a01b031633146118d65760405162461bcd60e51b8152600401610b02906142ba565b8051610d8990614f2c9060208401906139ad565b60fb5460ff1661193c5760405162461bcd60e51b815260206004820181905260248201527f53616c65206d7573742062652061637469766520746f206d696e742046726f676044820152606401610b02565b60148111156119975760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323020746f6b656e7320617420612074696d6044820152606560f81b6064820152608401610b02565b61271081614f2f546119a99190614395565b1115611a095760405162461bcd60e51b815260206004820152602960248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015268206f662046726f677360b81b6064820152608401610b02565b3481611a1361241f565b611a1d91906143e6565b1115611a6b5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b02565b60005b81811015610d8957614f2d546040805160208082019390935244818301524260608083019190915233901b6bffffffffffffffffffffffff191660808201528151808203607401815260949091019091528051910120614f2f54611ad3908290612a27565b611ae033614f2f5461257c565b614f2f8054906000611af1836144c4565b9190505550508080611b02906144c4565b915050611a6e565b6000818152606760205260408120546001600160a01b031680610a9e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b02565b60c9546001600160a01b03163314611bab5760405162461bcd60e51b8152600401610b02906142ba565b60fb805461ff001981166101009182900460ff1615909102179055565b60006001600160a01b038216611c335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b02565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b03163314611c795760405162461bcd60e51b8152600401610b02906142ba565b611c836000612d40565b565b60c9546001600160a01b03163314611caf5760405162461bcd60e51b8152600401610b02906142ba565b6151a3805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60c9546001600160a01b03163314611cfb5760405162461bcd60e51b8152600401610b02906142ba565b6151a480546001600160a01b0319166001600160a01b0392909216919091179055565b606060668054610d9c90614489565b600080611d3c610100846143d2565b90506000611d4c610100856144ff565b90506001816151a58460288110611d6557611d65614555565b0154901c1660011492505050919050565b60c9546001600160a01b03163314611da05760405162461bcd60e51b8152600401610b02906142ba565b610d896151a5826028613a21565b610d89338383612d92565b6151a4546001600160a01b03163314611e035760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b6044820152606401610b02565b611e0c81612e61565b50565b614f3281614e208110611e2157600080fd5b60209182820401919006915054906101000a900460ff1681565b60c9546001600160a01b03163314611e655760405162461bcd60e51b8152600401610b02906142ba565b60fb5460ff1615611eb85760405162461bcd60e51b815260206004820152601760248201527f73616c6520697320616c726561647920737461727465640000000000000000006044820152606401610b02565b42614f2e5560fb805460ff19166001179055565b611ed63383612621565b611ef25760405162461bcd60e51b8152600401610b02906142ef565b611efe84848484612f08565b50505050565b6000611f0f83612596565b611f2b5760405162461bcd60e51b8152600401610b029061421b565b612710831061205557611f3c613a4f565b614f2b546001600160a01b031663e1dc0761611f5a61271087614428565b6040518263ffffffff1660e01b8152600401611f7891815260200190565b60c06040518083038186803b158015611f9057600080fd5b505afa158015611fa4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc89190614097565b60ff90811660808801529182166040808801919091529382166020808801919091529490911685525050614f305481519283018790529082015261202e906003906060015b6040516020818303038152906040528051906020012060001c60ff16612f3b565b60ff16606082015280836006811061204857612048614555565b6020020151915050610a9e565b61010883614e21811061206a5761206a614555565b01826006811061207c5761207c614555565b602081049091015460ff601f9092166101000a9004169050610a9e565b60606120a482612596565b6121085760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b02565b6000612112613094565b90506000815111612132576040518060200160405280600081525061215d565b8061213c846130a4565b60405160200161214d92919061414a565b6040516020818303038152906040525b9392505050565b6151a5816028811061217557600080fd5b0154905081565b60008060008060008061218e87612596565b6121aa5760405162461bcd60e51b8152600401610b029061421b565b612710871061233d576040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152614f2b546001600160a01b031663e1dc07616122036127108b614428565b6040518263ffffffff1660e01b815260040161222191815260200190565b60c06040518083038186803b15801561223957600080fd5b505afa15801561224d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122719190614097565b60ff90811660a088015290811660808701529081166060808701829052928216604080880191909152938216602080880182905295909216808752614f305485519687018f90529486019490945292939092916122d1916003910161200d565b8460a0015160188d614f30546040516020016122f7929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c61231a91906144ff565b60ff9586169c509385169a50918416985083169650821694501691506124169050565b61010887614e21811061235257612352614555565b015460ff1661010888614e21811061236c5761236c614555565b0154610100900460ff1661010889614e21811061238b5761238b614555565b015462010000900460ff166101088a614e2181106123ab576123ab614555565b01546301000000900460ff166101088b614e2181106123cc576123cc614555565b0154640100000000900460ff166101088c614e2181106123ee576123ee614555565b015460ff9586169b509385169950918416975083169550821693506501000000000090041690505b91939550919395565b6000615460614f2e54426124339190614428565b106124445750662386f26fc1000090565b615460614f2e54426124569190614428565b61246290615460614428565b61247490670dbd2fc137a300006143e6565b61247e91906143d2565b61248f90662386f26fc10000614395565b905090565b60c9546001600160a01b031633146124be5760405162461bcd60e51b8152600401610b02906142ba565b6001600160a01b0381166125235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b02565b611e0c81612d40565b60006001600160e01b031982166380ac58cd60e01b148061255d57506001600160e01b03198216635b5e139f60e01b145b80610a9e57506301ffc9a760e01b6001600160e01b0319831614610a9e565b610d898282604051806020016040528060008152506131a2565b6000908152606760205260409020546001600160a01b0316151590565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125e882611b0a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061262c82612596565b61268d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b02565b600061269883611b0a565b9050806001600160a01b0316846001600160a01b031614806126d35750836001600160a01b03166126c884610e1f565b6001600160a01b0316145b8061270357506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661271e82611b0a565b6001600160a01b0316146127865760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b02565b6001600160a01b0382166127e85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b02565b6127f38383836131d5565b6127fe6000826125b3565b6001600160a01b0383166000908152606860205260408120805460019290612827908490614428565b90915550506001600160a01b0382166000908152606860205260408120805460019290612855908490614395565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600054610100900460ff16806128cf575060005460ff16155b6128eb5760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff1615801561290d576000805461ffff19166101011790555b61291561328d565b61291d61328d565b61292783836132f7565b8015610fb8576000805461ff0019169055505050565b600054610100900460ff1680612956575060005460ff16155b6129725760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff16158015612994576000805461ffff19166101011790555b61299c61328d565b6129a461328d565b6129ac61328d565b8015611e0c576000805461ff001916905550565b600054610100900460ff16806129d9575060005460ff16155b6129f55760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff16158015612a17576000805461ffff19166101011790555b612a1f61328d565b6129ac61338c565b60005b612a3660016006614428565b8160ff161015612af457614f2d8054906000612a51836144c4565b9190505550614f298160ff1660068110612a6d57612a6d614555565b602081049091015460ff601f9092166101000a900416612a8d8285612f3b565b612a9791906143ad565b61010883614e218110612aac57612aac614555565b018260ff1660068110612ac157612ac1614555565b602091828204019190066101000a81548160ff021916908360ff1602179055508080612aec906144df565b915050612a2a565b5060408051602080820184905281830185905282518083038401815260609092019092528051910120612b29906018906144ff565b61010882614e218110612b3e57612b3e614555565b01805460ff92909216650100000000000265ff000000000019909216919091179055614f2f54600090612b7390612710614428565b612b7d90846144ff565b905060005b612b8e600a6001614395565b8160ff161015612d0d57614f2a8160ff16600b8110612baf57612baf614555565b601091828204019190066002029054906101000a900461ffff1661ffff168261ffff161015612cbd57614f2a8160ff16600b8110612bef57612bef614555565b6010918282040191900660020281819054906101000a900461ffff1680929190612c189061446b565b91906101000a81548161ffff021916908361ffff1602179055505060008160ff161115611efe5760005b60068160ff161015612cb657612c5982606e6143ad565b61010885614e218110612c6e57612c6e614555565b018260ff1660068110612c8357612c83614555565b602091828204019190066101000a81548160ff021916908360ff1602179055508080612cae906144df565b915050612c42565b5050505050565b614f2a8160ff16600b8110612cd457612cd4614555565b601091828204019190066002029054906101000a900461ffff1682612cf99190614405565b915080612d05816144df565b915050612b82565b5060405162461bcd60e51b81526020600482015260076024820152661b1a5b1e5c185960ca1b6044820152606401610b02565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612df45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b02565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000612e6c82611b0a565b9050612e7a816000846131d5565b612e856000836125b3565b6001600160a01b0381166000908152606860205260408120805460019290612eae908490614428565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b612f1384848461270b565b612f1f848484846133ec565b611efe5760405162461bcd60e51b8152600401610b02906141c9565b60008060fc8460ff1660068110612f5457612f54614555565b0154614f2d5484612f64816144c4565b9550604051602001612f80929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c612fa391906144ff565b905060fc8460ff1660068110612fbb57612fbb614555565b018160ff1681548110612fd057612fd0614555565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16612710614f2d548560405160200161301a929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c61303d91906144ff565b111561215d576101028460ff166006811061305a5761305a614555565b018160ff168154811061306f5761306f614555565b90600052602060002090602091828204019190069054906101000a900460ff16612703565b6060614f2c8054610d9c90614489565b6060816130c85750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130f257806130dc816144c4565b91506130eb9050600a836143d2565b91506130cc565b60008167ffffffffffffffff81111561310d5761310d61456b565b6040519080825280601f01601f191660200182016040528015613137576020820181803683370190505b5090505b84156127035761314c600183614428565b9150613159600a866144ff565b613164906030614395565b60f81b81838151811061317957613179614555565b60200101906001600160f81b031916908160001a90535061319b600a866143d2565b945061313b565b6131ac83836134f9565b6131b960008484846133ec565b610fb85760405162461bcd60e51b8152600401610b02906141c9565b6001600160a01b0383166132305761322b81609980546000838152609a60205260408120829055600182018355919091527f72a152ddfb8e864297c917af52ea6c1c68aead0fee1a62673fcc7e0c94979d000155565b613253565b816001600160a01b0316836001600160a01b031614613253576132538382613638565b6001600160a01b03821661326a57610fb8816136d5565b826001600160a01b0316826001600160a01b031614610fb857610fb88282613784565b600054610100900460ff16806132a6575060005460ff16155b6132c25760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff161580156129ac576000805461ffff19166101011790558015611e0c576000805461ff001916905550565b600054610100900460ff1680613310575060005460ff16155b61332c5760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff1615801561334e576000805461ffff19166101011790555b82516133619060659060208601906139ad565b5081516133759060669060208501906139ad565b508015610fb8576000805461ff0019169055505050565b600054610100900460ff16806133a5575060005460ff16155b6133c15760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff161580156133e3576000805461ffff19166101011790555b6129ac33612d40565b60006001600160a01b0384163b156134ee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613430903390899088908890600401614179565b602060405180830381600087803b15801561344a57600080fd5b505af192505050801561347a575060408051601f3d908101601f1916820190925261347791810190613fd1565b60015b6134d4573d8080156134a8576040519150601f19603f3d011682016040523d82523d6000602084013e6134ad565b606091505b5080516134cc5760405162461bcd60e51b8152600401610b02906141c9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612703565b506001949350505050565b6001600160a01b03821661354f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b02565b61355881612596565b156135a55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b02565b6135b1600083836131d5565b6001600160a01b03821660009081526068602052604081208054600192906135da908490614395565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161364584611bc8565b61364f9190614428565b6000838152609860205260409020549091508082146136a2576001600160a01b03841660009081526097602090815260408083208584528252808320548484528184208190558352609890915290208190555b5060009182526098602090815260408084208490556001600160a01b039094168352609781528383209183525290812055565b6099546000906136e790600190614428565b6000838152609a60205260408120546099805493945090928490811061370f5761370f614555565b90600052602060002001549050806099838154811061373057613730614555565b6000918252602080832090910192909255828152609a909152604080822084905585825281205560998054806137685761376861453f565b6001900381819060005260206000200160009055905550505050565b600061378f83611bc8565b6001600160a01b039093166000908152609760209081526040808320868452825280832085905593825260989052919091209190915550565b82805482825590600052602060002090600f016010900481019282156138615791602002820160005b8382111561383157835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026137f1565b801561385f5782816101000a81549061ffff0219169055600201602081600101049283019260010302613831565b505b5061386d929150613a6d565b5090565b82805482825590600052602060002090601f016020900481019282156138615791602002820160005b838211156138d857835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030261389a565b801561385f5782816101000a81549060ff02191690556001016020816000010492830192600103026138d8565b600183019183908215613861579160200282016000838211156138d857835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030261389a565b6001830191839082156138615791602002820160008382111561383157835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026137f1565b8280546139b990614489565b90600052602060002090601f0160209004810192826139db5760008555613861565b82601f106139f457805160ff1916838001178555613861565b82800160010185558215613861579182015b82811115613861578251825591602001919060010190613a06565b8260288101928215613861579160200282015b82811115613861578235825591602001919060010190613a34565b6040518060c001604052806006906020820280368337509192915050565b5b8082111561386d5760008155600101613a6e565b600067ffffffffffffffff831115613a9c57613a9c61456b565b613aaf601f8401601f1916602001614340565b9050828152838383011115613ac357600080fd5b828260208301376000602084830101529392505050565b600082601f830112613aeb57600080fd5b81356020613b00613afb83614371565b614340565b80838252828201915082860187848660051b8901011115613b2057600080fd5b6000805b86811015613b4f57823561ffff81168114613b3d578283fd5b85529385019391850191600101613b24565b509198975050505050505050565b600082601f830112613b6e57600080fd5b81356020613b7e613afb83614371565b80838252828201915082860187848660051b8901011115613b9e57600080fd5b60005b85811015613bc6578135613bb4816145ac565b84529284019290840190600101613ba1565b5090979650505050505050565b600060208284031215613be557600080fd5b813561215d81614581565b600060208284031215613c0257600080fd5b815161215d81614581565b60008060408385031215613c2057600080fd5b8235613c2b81614581565b91506020830135613c3b81614581565b809150509250929050565b600080600060608486031215613c5b57600080fd5b8335613c6681614581565b92506020840135613c7681614581565b929592945050506040919091013590565b60008060008060808587031215613c9d57600080fd5b8435613ca881614581565b93506020850135613cb881614581565b925060408501359150606085013567ffffffffffffffff811115613cdb57600080fd5b8501601f81018713613cec57600080fd5b613cfb87823560208401613a82565b91505092959194509250565b60008060408385031215613d1a57600080fd5b8235613d2581614581565b915060208301358015158114613c3b57600080fd5b60008060408385031215613d4d57600080fd5b8235613d5881614581565b946020939093013593505050565b6000806000806000806000806000806101408b8d031215613d8657600080fd5b8a3567ffffffffffffffff80821115613d9e57600080fd5b613daa8e838f01613ada565b9b5060208d0135915080821115613dc057600080fd5b613dcc8e838f01613b5d565b9a5060408d0135915080821115613de257600080fd5b613dee8e838f01613ada565b995060608d0135915080821115613e0457600080fd5b613e108e838f01613b5d565b985060808d0135915080821115613e2657600080fd5b613e328e838f01613ada565b975060a08d0135915080821115613e4857600080fd5b613e548e838f01613b5d565b965060c08d0135915080821115613e6a57600080fd5b613e768e838f01613ada565b955060e08d0135915080821115613e8c57600080fd5b613e988e838f01613b5d565b94506101008d0135915080821115613eaf57600080fd5b613ebb8e838f01613ada565b93506101208d0135915080821115613ed257600080fd5b50613edf8d828e01613b5d565b9150509295989b9194979a5092959850565b6000610500808385031215613f0557600080fd5b838184011115613f1457600080fd5b509092915050565b60006020808385031215613f2f57600080fd5b823567ffffffffffffffff811115613f4657600080fd5b8301601f81018513613f5757600080fd5b8035613f65613afb82614371565b80828252848201915084840188868560051b8701011115613f8557600080fd5b600094505b83851015613fa8578035835260019490940193918501918501613f8a565b50979650505050505050565b600060208284031215613fc657600080fd5b813561215d81614596565b600060208284031215613fe357600080fd5b815161215d81614596565b60006020828403121561400057600080fd5b813567ffffffffffffffff81111561401757600080fd5b8201601f8101841361402857600080fd5b61270384823560208401613a82565b60006020828403121561404957600080fd5b5035919050565b6000806040838503121561406357600080fd5b50508035926020909101359150565b6000806040838503121561408557600080fd5b823591506020830135613c3b816145ac565b60008060008060008060c087890312156140b057600080fd5b86516140bb816145ac565b60208801519096506140cc816145ac565b60408801519095506140dd816145ac565b60608801519094506140ee816145ac565b60808801519093506140ff816145ac565b60a0880151909250614110816145ac565b809150509295509295509295565b6000815180845261413681602086016020860161443f565b601f01601f19169290920160200192915050565b6000835161415c81846020880161443f565b83519083019061417081836020880161443f565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906141ac9083018461411e565b9695505050505050565b60208152600061215d602083018461411e565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732314d657461646174613a20747261697420717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156143695761436961456b565b604052919050565b600067ffffffffffffffff82111561438b5761438b61456b565b5060051b60200190565b600082198211156143a8576143a8614513565b500190565b600060ff821660ff84168060ff038211156143ca576143ca614513565b019392505050565b6000826143e1576143e1614529565b500490565b600081600019048311821515161561440057614400614513565b500290565b600061ffff8381169083168181101561442057614420614513565b039392505050565b60008282101561443a5761443a614513565b500390565b60005b8381101561445a578181015183820152602001614442565b83811115611efe5750506000910152565b600061ffff82168061447f5761447f614513565b6000190192915050565b600181811c9082168061449d57607f821691505b602082108114156144be57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156144d8576144d8614513565b5060010190565b600060ff821660ff8114156144f6576144f6614513565b60010192915050565b60008261450e5761450e614529565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611e0c57600080fd5b6001600160e01b031981168114611e0c57600080fd5b60ff81168114611e0c57600080fdfe68747470733a2f2f6170692e7375706475636b732e636f6d2f6d657461646174612fa264697066735822122022bf03f8847188d4bdaeb8c41e6cd18916318debaa0a27bbdca9a66470a68f6f64736f6c63430008060033
Deployed Bytecode
0x6080604052600436106103765760003560e01c80635d74727e116101d1578063a22cb46511610102578063c87b56dd116100a0578063e985e9c51161006f578063e985e9c5146109e1578063eb8d244414610a2a578063eb91d37e14610a44578063f2fde38b14610a5957600080fd5b8063c87b56dd1461093d578063d133a9b81461095d578063dbe7e3bd14610974578063e1dc07611461099457600080fd5b8063b66a0e5d116100dc578063b66a0e5d146108d1578063b88d4fde146108e6578063ba9a061a14610906578063bb08d1cd1461091d57600080fd5b8063a22cb4651461085f578063acd2dd1e1461087f578063ae2ab4341461089f57600080fd5b806388e512571161016f57806395d89b411161014957806395d89b41146107e95780639e34070f146107fe5780639ea38e011461081e578063a0b074c11461083e57600080fd5b806388e5125714610796578063895ccf53146107ab5780638da5cb5b146107cb57600080fd5b806370a08231116101ab57806370a0823114610729578063715018a614610749578063767f9e851461075e57806382ea7bfe1461077f57600080fd5b80635d74727e146106de5780636352211e146106f45780636d60e6c11461071457600080fd5b80632f745c59116102ab5780634f6ccce7116102495780635412c231116102235780635412c2311461068357806355367ba91461069657806355f804b3146106ab5780635aabb855146106cb57600080fd5b80634f6ccce7146106245780635303f68c146106445780635397435a1461066357600080fd5b806342842e0e1161028557806342842e0e146105ad5780634537d2bb146105cd578063454836ad146105ef5780634f558e791461060457600080fd5b80632f745c59146105585780633ccfd60b1461057857806340dbdd211461058d57600080fd5b8063105f9ecf1161031857806318160ddd116102f257806318160ddd146104ed57806319bee87f146105025780631a371a051461052357806323b872dd1461053857600080fd5b8063105f9ecf1461048c578063134925ab146104b057806316257b52146104cd57600080fd5b8063081812fc11610354578063081812fc146103f4578063095ea7b31461042c578063097711151461044c5780630e19a1411461046c57600080fd5b806301ffc9a71461037b57806304d25fb9146103b057806306fdde03146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004613fb4565b610a79565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103d06103cb366004613f1c565b610aa4565b005b3480156103de57600080fd5b506103e7610d8d565b6040516103a791906141b6565b34801561040057600080fd5b5061041461040f366004614037565b610e1f565b6040516001600160a01b0390911681526020016103a7565b34801561043857600080fd5b506103d0610447366004613d3a565b610ea7565b34801561045857600080fd5b506103d0610467366004614072565b610fbd565b34801561047857600080fd5b506103d0610487366004613bd3565b6111da565b34801561049857600080fd5b506104a261271181565b6040519081526020016103a7565b3480156104bc57600080fd5b5060fb54610100900460ff1661039b565b3480156104d957600080fd5b506103d06104e8366004613bd3565b611227565b3480156104f957600080fd5b506099546104a2565b34801561050e57600080fd5b506151a454610414906001600160a01b031681565b34801561052f57600080fd5b506104a2600a81565b34801561054457600080fd5b506103d0610553366004613c46565b611274565b34801561056457600080fd5b506104a2610573366004613d3a565b6112a5565b34801561058457600080fd5b506103d061133b565b34801561059957600080fd5b506103d06105a8366004613bd3565b6113a1565b3480156105b957600080fd5b506103d06105c8366004613c46565b6113ee565b3480156105d957600080fd5b506151a35461039b90600160a01b900460ff1681565b3480156105fb57600080fd5b506104a2600681565b34801561061057600080fd5b5061039b61061f366004614037565b611409565b34801561063057600080fd5b506104a261063f366004614037565b611414565b34801561065057600080fd5b5060fb5461039b90610100900460ff1681565b34801561066f57600080fd5b506103d061067e366004613d66565b6114a7565b6103d0610691366004614037565b61175d565b3480156106a257600080fd5b506103d0611826565b3480156106b757600080fd5b506103d06106c6366004613fee565b6118ac565b6103d06106d9366004614037565b6118ea565b3480156106ea57600080fd5b506104a261271081565b34801561070057600080fd5b5061041461070f366004614037565b611b0a565b34801561072057600080fd5b506103d0611b81565b34801561073557600080fd5b506104a2610744366004613bd3565b611bc8565b34801561075557600080fd5b506103d0611c4f565b34801561076a57600080fd5b506151a354610414906001600160a01b031681565b34801561078b57600080fd5b506104a2614f305481565b3480156107a257600080fd5b506103d0611c85565b3480156107b757600080fd5b506103d06107c6366004613bd3565b611cd1565b3480156107d757600080fd5b5060c9546001600160a01b0316610414565b3480156107f557600080fd5b506103e7611d1e565b34801561080a57600080fd5b5061039b610819366004614037565b611d2d565b34801561082a57600080fd5b506103d0610839366004613ef1565b611d76565b34801561084a57600080fd5b50614f2b54610414906001600160a01b031681565b34801561086b57600080fd5b506103d061087a366004613d07565b611dae565b34801561088b57600080fd5b506103d061089a366004614037565b611db9565b3480156108ab57600080fd5b506108bf6108ba366004614037565b611e0f565b60405160ff90911681526020016103a7565b3480156108dd57600080fd5b506103d0611e3b565b3480156108f257600080fd5b506103d0610901366004613c87565b611ecc565b34801561091257600080fd5b506104a2614f2e5481565b34801561092957600080fd5b506108bf610938366004614050565b611f04565b34801561094957600080fd5b506103e7610958366004614037565b612099565b34801561096957600080fd5b506104a2614f2f5481565b34801561098057600080fd5b506104a261098f366004614037565b612164565b3480156109a057600080fd5b506109b46109af366004614037565b61217c565b604080519687526020870195909552938501929092526060840152608083015260a082015260c0016103a7565b3480156109ed57600080fd5b5061039b6109fc366004613c0d565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b348015610a3657600080fd5b5060fb5461039b9060ff1681565b348015610a5057600080fd5b506104a261241f565b348015610a6557600080fd5b506103d0610a74366004613bd3565b612494565b60006001600160e01b0319821663780e9d6360e01b1480610a9e5750610a9e8261252c565b92915050565b60fb54610100900460ff16610b0b5760405162461bcd60e51b815260206004820152602260248201527f436c61696d206d7573742062652061637469766520746f20636c61696d2046726044820152616f6760f01b60648201526084015b60405180910390fd5b601481511115610b515760405162461bcd60e51b81526020600482015260116024820152704c696d697420323020746f6b656e49647360781b6044820152606401610b02565b60005b8151811015610d89576000610100838381518110610b7457610b74614555565b6020026020010151610b8691906143d2565b90506000610100848481518110610b9f57610b9f614555565b6020026020010151610bb191906144ff565b90506001816151a58460288110610bca57610bca614555565b0154901c1615610c135760405162461bcd60e51b8152602060048201526014602482015273199c9bd9c8185b1c9958591e4818db185a5b595960621b6044820152606401610b02565b614f2b5484516001600160a01b0390911690636352211e90869086908110610c3d57610c3d614555565b60200260200101516040518263ffffffff1660e01b8152600401610c6391815260200190565b60206040518083038186803b158015610c7b57600080fd5b505afa158015610c8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb39190613bf0565b6001600160a01b0316336001600160a01b031614610d135760405162461bcd60e51b815260206004820152601760248201527f596f7520646f6e2774206f776e2074686973206475636b0000000000000000006044820152606401610b02565b610d4333858581518110610d2957610d29614555565b6020026020010151612710610d3e9190614395565b61257c565b6001811b6151a58360288110610d5b57610d5b614555565b0154176151a58360288110610d7257610d72614555565b015550819050610d81816144c4565b915050610b54565b5050565b606060658054610d9c90614489565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc890614489565b8015610e155780601f10610dea57610100808354040283529160200191610e15565b820191906000526020600020905b815481529060010190602001808311610df857829003601f168201915b5050505050905090565b6000610e2a82612596565b610e8b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b02565b506000908152606960205260409020546001600160a01b031690565b6000610eb282611b0a565b9050806001600160a01b0316836001600160a01b03161415610f205760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b02565b336001600160a01b0382161480610f3c5750610f3c81336109fc565b610fae5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b02565b610fb883836125b3565b505050565b33610fc783611b0a565b6001600160a01b0316146110115760405162461bcd60e51b81526020600482015260116024820152701b9bdd081e5bdd5c88199c9bd9c8189d59607a1b6044820152606401610b02565b6151a354600160a01b900460ff1661105f5760405162461bcd60e51b8152602060048201526011602482015270185b9a5b585d1a5bdb9cc818db1bdcd959607a1b6044820152606401610b02565b614f3282614e20811061107457611074614555565b602081049091015460ff601f9092166101000a900416156110d75760405162461bcd60e51b815260206004820152601860248201527f66726f6720697320616c726561647920616e696d6174656400000000000000006044820152606401610b02565b60006110e28361217c565b50505050509050606481106111255760405162461bcd60e51b81526020600482015260096024820152686e6f2073757065727360b81b6044820152606401610b02565b6151a35460405163d258153560e01b815233600482015260ff84166024820152600160448201526001600160a01b039091169063d258153590606401600060405180830381600087803b15801561117b57600080fd5b505af115801561118f573d6000803e3d6000fd5b505050508160016111a091906143ad565b614f3284614e2081106111b5576111b5614555565b602091828204019190066101000a81548160ff021916908360ff160217905550505050565b60c9546001600160a01b031633146112045760405162461bcd60e51b8152600401610b02906142ba565b614f2b80546001600160a01b0319166001600160a01b0392909216919091179055565b60c9546001600160a01b031633146112515760405162461bcd60e51b8152600401610b02906142ba565b6151a380546001600160a01b0319166001600160a01b0392909216919091179055565b61127e3382612621565b61129a5760405162461bcd60e51b8152600401610b02906142ef565b610fb883838361270b565b60006112b083611bc8565b82106113125760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b02565b506001600160a01b03919091166000908152609760209081526040808320938352929052205490565b60c9546001600160a01b031633146113655760405162461bcd60e51b8152600401610b02906142ba565b614f31546040513031916001600160a01b03169082156108fc029083906000818181858888f19350505050158015610d89573d6000803e3d6000fd5b60c9546001600160a01b031633146113cb5760405162461bcd60e51b8152600401610b02906142ba565b614f3180546001600160a01b0319166001600160a01b0392909216919091179055565b610fb883838360405180602001604052806000815250611ecc565b6000610a9e82612596565b600061141f60995490565b82106114825760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b02565b6099828154811061149557611495614555565b90600052602060002001549050919050565b600054610100900460ff16806114c0575060005460ff16155b6114dc5760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff161580156114fe576000805461ffff19166101011790555b611543604051806040016040528060098152602001684b696e6746726f677360b81b8152506040518060400160405280600281526020016125a360f11b8152506128b6565b61154b61293d565b6115536129c0565b8a516115669060fc9060208e01906137c8565b50885161157a9060fd9060208c01906137c8565b50865161158e9060fe9060208a01906137c8565b5084516115a29060ff9060208801906137c8565b5082516115b7906101009060208601906137c8565b5089516115cc906101029060208d0190613871565b5087516115e1906101039060208b0190613871565b5085516115f690610104906020890190613871565b50835161160b90610105906020870190613871565b50815161162090610106906020850190613871565b5060fb805461ffff19169055602a614f2d556040805160c0810182526010815260126020820152602691810191909152600060608201819052601b608083015260a082015261167490614f29906006613905565b50604051806101600160405280600a6127106116909190614428565b61ffff16815260016020820181905260408201819052606082018190526080820181905260a0820181905260c0820181905260e0820181905261010082018190526101208201819052610140909101526116ef90614f2a90600b613958565b50614f3180546001600160a01b03191673d28dbd19b93b6cc55d85debe9d93644097fed77317905543614f30556040805160608101909152602280825261173e91906145bc60208301396118ac565b8015611750576000805461ff00191690555b5050505050505050505050565b60c9546001600160a01b031633146117875760405162461bcd60e51b8152600401610b02906142ba565b60005b81811015610d8957614f2d546040805160208082019390935244818301524260608083019190915233901b6bffffffffffffffffffffffff191660808201528151808203607401815260949091019091528051910120614f2f546117ef908290612a27565b6117fc33614f2f5461257c565b614f2f805490600061180d836144c4565b919050555050808061181e906144c4565b91505061178a565b60c9546001600160a01b031633146118505760405162461bcd60e51b8152600401610b02906142ba565b60fb5460ff1615156001146118a05760405162461bcd60e51b81526020600482015260166024820152751cd85b19481a5cc8185b1c9958591e481c185d5cd95960521b6044820152606401610b02565b60fb805460ff19169055565b60c9546001600160a01b031633146118d65760405162461bcd60e51b8152600401610b02906142ba565b8051610d8990614f2c9060208401906139ad565b60fb5460ff1661193c5760405162461bcd60e51b815260206004820181905260248201527f53616c65206d7573742062652061637469766520746f206d696e742046726f676044820152606401610b02565b60148111156119975760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323020746f6b656e7320617420612074696d6044820152606560f81b6064820152608401610b02565b61271081614f2f546119a99190614395565b1115611a095760405162461bcd60e51b815260206004820152602960248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015268206f662046726f677360b81b6064820152608401610b02565b3481611a1361241f565b611a1d91906143e6565b1115611a6b5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b02565b60005b81811015610d8957614f2d546040805160208082019390935244818301524260608083019190915233901b6bffffffffffffffffffffffff191660808201528151808203607401815260949091019091528051910120614f2f54611ad3908290612a27565b611ae033614f2f5461257c565b614f2f8054906000611af1836144c4565b9190505550508080611b02906144c4565b915050611a6e565b6000818152606760205260408120546001600160a01b031680610a9e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b02565b60c9546001600160a01b03163314611bab5760405162461bcd60e51b8152600401610b02906142ba565b60fb805461ff001981166101009182900460ff1615909102179055565b60006001600160a01b038216611c335760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b02565b506001600160a01b031660009081526068602052604090205490565b60c9546001600160a01b03163314611c795760405162461bcd60e51b8152600401610b02906142ba565b611c836000612d40565b565b60c9546001600160a01b03163314611caf5760405162461bcd60e51b8152600401610b02906142ba565b6151a3805460ff60a01b198116600160a01b9182900460ff1615909102179055565b60c9546001600160a01b03163314611cfb5760405162461bcd60e51b8152600401610b02906142ba565b6151a480546001600160a01b0319166001600160a01b0392909216919091179055565b606060668054610d9c90614489565b600080611d3c610100846143d2565b90506000611d4c610100856144ff565b90506001816151a58460288110611d6557611d65614555565b0154901c1660011492505050919050565b60c9546001600160a01b03163314611da05760405162461bcd60e51b8152600401610b02906142ba565b610d896151a5826028613a21565b610d89338383612d92565b6151a4546001600160a01b03163314611e035760405162461bcd60e51b815260206004820152600c60248201526b155b985d5d1a1bdc9a5e995960a21b6044820152606401610b02565b611e0c81612e61565b50565b614f3281614e208110611e2157600080fd5b60209182820401919006915054906101000a900460ff1681565b60c9546001600160a01b03163314611e655760405162461bcd60e51b8152600401610b02906142ba565b60fb5460ff1615611eb85760405162461bcd60e51b815260206004820152601760248201527f73616c6520697320616c726561647920737461727465640000000000000000006044820152606401610b02565b42614f2e5560fb805460ff19166001179055565b611ed63383612621565b611ef25760405162461bcd60e51b8152600401610b02906142ef565b611efe84848484612f08565b50505050565b6000611f0f83612596565b611f2b5760405162461bcd60e51b8152600401610b029061421b565b612710831061205557611f3c613a4f565b614f2b546001600160a01b031663e1dc0761611f5a61271087614428565b6040518263ffffffff1660e01b8152600401611f7891815260200190565b60c06040518083038186803b158015611f9057600080fd5b505afa158015611fa4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc89190614097565b60ff90811660808801529182166040808801919091529382166020808801919091529490911685525050614f305481519283018790529082015261202e906003906060015b6040516020818303038152906040528051906020012060001c60ff16612f3b565b60ff16606082015280836006811061204857612048614555565b6020020151915050610a9e565b61010883614e21811061206a5761206a614555565b01826006811061207c5761207c614555565b602081049091015460ff601f9092166101000a9004169050610a9e565b60606120a482612596565b6121085760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b02565b6000612112613094565b90506000815111612132576040518060200160405280600081525061215d565b8061213c846130a4565b60405160200161214d92919061414a565b6040516020818303038152906040525b9392505050565b6151a5816028811061217557600080fd5b0154905081565b60008060008060008061218e87612596565b6121aa5760405162461bcd60e51b8152600401610b029061421b565b612710871061233d576040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152614f2b546001600160a01b031663e1dc07616122036127108b614428565b6040518263ffffffff1660e01b815260040161222191815260200190565b60c06040518083038186803b15801561223957600080fd5b505afa15801561224d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122719190614097565b60ff90811660a088015290811660808701529081166060808701829052928216604080880191909152938216602080880182905295909216808752614f305485519687018f90529486019490945292939092916122d1916003910161200d565b8460a0015160188d614f30546040516020016122f7929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c61231a91906144ff565b60ff9586169c509385169a50918416985083169650821694501691506124169050565b61010887614e21811061235257612352614555565b015460ff1661010888614e21811061236c5761236c614555565b0154610100900460ff1661010889614e21811061238b5761238b614555565b015462010000900460ff166101088a614e2181106123ab576123ab614555565b01546301000000900460ff166101088b614e2181106123cc576123cc614555565b0154640100000000900460ff166101088c614e2181106123ee576123ee614555565b015460ff9586169b509385169950918416975083169550821693506501000000000090041690505b91939550919395565b6000615460614f2e54426124339190614428565b106124445750662386f26fc1000090565b615460614f2e54426124569190614428565b61246290615460614428565b61247490670dbd2fc137a300006143e6565b61247e91906143d2565b61248f90662386f26fc10000614395565b905090565b60c9546001600160a01b031633146124be5760405162461bcd60e51b8152600401610b02906142ba565b6001600160a01b0381166125235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b02565b611e0c81612d40565b60006001600160e01b031982166380ac58cd60e01b148061255d57506001600160e01b03198216635b5e139f60e01b145b80610a9e57506301ffc9a760e01b6001600160e01b0319831614610a9e565b610d898282604051806020016040528060008152506131a2565b6000908152606760205260409020546001600160a01b0316151590565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125e882611b0a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061262c82612596565b61268d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b02565b600061269883611b0a565b9050806001600160a01b0316846001600160a01b031614806126d35750836001600160a01b03166126c884610e1f565b6001600160a01b0316145b8061270357506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661271e82611b0a565b6001600160a01b0316146127865760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b02565b6001600160a01b0382166127e85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b02565b6127f38383836131d5565b6127fe6000826125b3565b6001600160a01b0383166000908152606860205260408120805460019290612827908490614428565b90915550506001600160a01b0382166000908152606860205260408120805460019290612855908490614395565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600054610100900460ff16806128cf575060005460ff16155b6128eb5760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff1615801561290d576000805461ffff19166101011790555b61291561328d565b61291d61328d565b61292783836132f7565b8015610fb8576000805461ff0019169055505050565b600054610100900460ff1680612956575060005460ff16155b6129725760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff16158015612994576000805461ffff19166101011790555b61299c61328d565b6129a461328d565b6129ac61328d565b8015611e0c576000805461ff001916905550565b600054610100900460ff16806129d9575060005460ff16155b6129f55760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff16158015612a17576000805461ffff19166101011790555b612a1f61328d565b6129ac61338c565b60005b612a3660016006614428565b8160ff161015612af457614f2d8054906000612a51836144c4565b9190505550614f298160ff1660068110612a6d57612a6d614555565b602081049091015460ff601f9092166101000a900416612a8d8285612f3b565b612a9791906143ad565b61010883614e218110612aac57612aac614555565b018260ff1660068110612ac157612ac1614555565b602091828204019190066101000a81548160ff021916908360ff1602179055508080612aec906144df565b915050612a2a565b5060408051602080820184905281830185905282518083038401815260609092019092528051910120612b29906018906144ff565b61010882614e218110612b3e57612b3e614555565b01805460ff92909216650100000000000265ff000000000019909216919091179055614f2f54600090612b7390612710614428565b612b7d90846144ff565b905060005b612b8e600a6001614395565b8160ff161015612d0d57614f2a8160ff16600b8110612baf57612baf614555565b601091828204019190066002029054906101000a900461ffff1661ffff168261ffff161015612cbd57614f2a8160ff16600b8110612bef57612bef614555565b6010918282040191900660020281819054906101000a900461ffff1680929190612c189061446b565b91906101000a81548161ffff021916908361ffff1602179055505060008160ff161115611efe5760005b60068160ff161015612cb657612c5982606e6143ad565b61010885614e218110612c6e57612c6e614555565b018260ff1660068110612c8357612c83614555565b602091828204019190066101000a81548160ff021916908360ff1602179055508080612cae906144df565b915050612c42565b5050505050565b614f2a8160ff16600b8110612cd457612cd4614555565b601091828204019190066002029054906101000a900461ffff1682612cf99190614405565b915080612d05816144df565b915050612b82565b5060405162461bcd60e51b81526020600482015260076024820152661b1a5b1e5c185960ca1b6044820152606401610b02565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415612df45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b02565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000612e6c82611b0a565b9050612e7a816000846131d5565b612e856000836125b3565b6001600160a01b0381166000908152606860205260408120805460019290612eae908490614428565b909155505060008281526067602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b612f1384848461270b565b612f1f848484846133ec565b611efe5760405162461bcd60e51b8152600401610b02906141c9565b60008060fc8460ff1660068110612f5457612f54614555565b0154614f2d5484612f64816144c4565b9550604051602001612f80929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c612fa391906144ff565b905060fc8460ff1660068110612fbb57612fbb614555565b018160ff1681548110612fd057612fd0614555565b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16612710614f2d548560405160200161301a929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c61303d91906144ff565b111561215d576101028460ff166006811061305a5761305a614555565b018160ff168154811061306f5761306f614555565b90600052602060002090602091828204019190069054906101000a900460ff16612703565b6060614f2c8054610d9c90614489565b6060816130c85750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130f257806130dc816144c4565b91506130eb9050600a836143d2565b91506130cc565b60008167ffffffffffffffff81111561310d5761310d61456b565b6040519080825280601f01601f191660200182016040528015613137576020820181803683370190505b5090505b84156127035761314c600183614428565b9150613159600a866144ff565b613164906030614395565b60f81b81838151811061317957613179614555565b60200101906001600160f81b031916908160001a90535061319b600a866143d2565b945061313b565b6131ac83836134f9565b6131b960008484846133ec565b610fb85760405162461bcd60e51b8152600401610b02906141c9565b6001600160a01b0383166132305761322b81609980546000838152609a60205260408120829055600182018355919091527f72a152ddfb8e864297c917af52ea6c1c68aead0fee1a62673fcc7e0c94979d000155565b613253565b816001600160a01b0316836001600160a01b031614613253576132538382613638565b6001600160a01b03821661326a57610fb8816136d5565b826001600160a01b0316826001600160a01b031614610fb857610fb88282613784565b600054610100900460ff16806132a6575060005460ff16155b6132c25760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff161580156129ac576000805461ffff19166101011790558015611e0c576000805461ff001916905550565b600054610100900460ff1680613310575060005460ff16155b61332c5760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff1615801561334e576000805461ffff19166101011790555b82516133619060659060208601906139ad565b5081516133759060669060208501906139ad565b508015610fb8576000805461ff0019169055505050565b600054610100900460ff16806133a5575060005460ff16155b6133c15760405162461bcd60e51b8152600401610b029061426c565b600054610100900460ff161580156133e3576000805461ffff19166101011790555b6129ac33612d40565b60006001600160a01b0384163b156134ee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613430903390899088908890600401614179565b602060405180830381600087803b15801561344a57600080fd5b505af192505050801561347a575060408051601f3d908101601f1916820190925261347791810190613fd1565b60015b6134d4573d8080156134a8576040519150601f19603f3d011682016040523d82523d6000602084013e6134ad565b606091505b5080516134cc5760405162461bcd60e51b8152600401610b02906141c9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612703565b506001949350505050565b6001600160a01b03821661354f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b02565b61355881612596565b156135a55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b02565b6135b1600083836131d5565b6001600160a01b03821660009081526068602052604081208054600192906135da908490614395565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161364584611bc8565b61364f9190614428565b6000838152609860205260409020549091508082146136a2576001600160a01b03841660009081526097602090815260408083208584528252808320548484528184208190558352609890915290208190555b5060009182526098602090815260408084208490556001600160a01b039094168352609781528383209183525290812055565b6099546000906136e790600190614428565b6000838152609a60205260408120546099805493945090928490811061370f5761370f614555565b90600052602060002001549050806099838154811061373057613730614555565b6000918252602080832090910192909255828152609a909152604080822084905585825281205560998054806137685761376861453f565b6001900381819060005260206000200160009055905550505050565b600061378f83611bc8565b6001600160a01b039093166000908152609760209081526040808320868452825280832085905593825260989052919091209190915550565b82805482825590600052602060002090600f016010900481019282156138615791602002820160005b8382111561383157835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026137f1565b801561385f5782816101000a81549061ffff0219169055600201602081600101049283019260010302613831565b505b5061386d929150613a6d565b5090565b82805482825590600052602060002090601f016020900481019282156138615791602002820160005b838211156138d857835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030261389a565b801561385f5782816101000a81549060ff02191690556001016020816000010492830192600103026138d8565b600183019183908215613861579160200282016000838211156138d857835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030261389a565b6001830191839082156138615791602002820160008382111561383157835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026137f1565b8280546139b990614489565b90600052602060002090601f0160209004810192826139db5760008555613861565b82601f106139f457805160ff1916838001178555613861565b82800160010185558215613861579182015b82811115613861578251825591602001919060010190613a06565b8260288101928215613861579160200282015b82811115613861578235825591602001919060010190613a34565b6040518060c001604052806006906020820280368337509192915050565b5b8082111561386d5760008155600101613a6e565b600067ffffffffffffffff831115613a9c57613a9c61456b565b613aaf601f8401601f1916602001614340565b9050828152838383011115613ac357600080fd5b828260208301376000602084830101529392505050565b600082601f830112613aeb57600080fd5b81356020613b00613afb83614371565b614340565b80838252828201915082860187848660051b8901011115613b2057600080fd5b6000805b86811015613b4f57823561ffff81168114613b3d578283fd5b85529385019391850191600101613b24565b509198975050505050505050565b600082601f830112613b6e57600080fd5b81356020613b7e613afb83614371565b80838252828201915082860187848660051b8901011115613b9e57600080fd5b60005b85811015613bc6578135613bb4816145ac565b84529284019290840190600101613ba1565b5090979650505050505050565b600060208284031215613be557600080fd5b813561215d81614581565b600060208284031215613c0257600080fd5b815161215d81614581565b60008060408385031215613c2057600080fd5b8235613c2b81614581565b91506020830135613c3b81614581565b809150509250929050565b600080600060608486031215613c5b57600080fd5b8335613c6681614581565b92506020840135613c7681614581565b929592945050506040919091013590565b60008060008060808587031215613c9d57600080fd5b8435613ca881614581565b93506020850135613cb881614581565b925060408501359150606085013567ffffffffffffffff811115613cdb57600080fd5b8501601f81018713613cec57600080fd5b613cfb87823560208401613a82565b91505092959194509250565b60008060408385031215613d1a57600080fd5b8235613d2581614581565b915060208301358015158114613c3b57600080fd5b60008060408385031215613d4d57600080fd5b8235613d5881614581565b946020939093013593505050565b6000806000806000806000806000806101408b8d031215613d8657600080fd5b8a3567ffffffffffffffff80821115613d9e57600080fd5b613daa8e838f01613ada565b9b5060208d0135915080821115613dc057600080fd5b613dcc8e838f01613b5d565b9a5060408d0135915080821115613de257600080fd5b613dee8e838f01613ada565b995060608d0135915080821115613e0457600080fd5b613e108e838f01613b5d565b985060808d0135915080821115613e2657600080fd5b613e328e838f01613ada565b975060a08d0135915080821115613e4857600080fd5b613e548e838f01613b5d565b965060c08d0135915080821115613e6a57600080fd5b613e768e838f01613ada565b955060e08d0135915080821115613e8c57600080fd5b613e988e838f01613b5d565b94506101008d0135915080821115613eaf57600080fd5b613ebb8e838f01613ada565b93506101208d0135915080821115613ed257600080fd5b50613edf8d828e01613b5d565b9150509295989b9194979a5092959850565b6000610500808385031215613f0557600080fd5b838184011115613f1457600080fd5b509092915050565b60006020808385031215613f2f57600080fd5b823567ffffffffffffffff811115613f4657600080fd5b8301601f81018513613f5757600080fd5b8035613f65613afb82614371565b80828252848201915084840188868560051b8701011115613f8557600080fd5b600094505b83851015613fa8578035835260019490940193918501918501613f8a565b50979650505050505050565b600060208284031215613fc657600080fd5b813561215d81614596565b600060208284031215613fe357600080fd5b815161215d81614596565b60006020828403121561400057600080fd5b813567ffffffffffffffff81111561401757600080fd5b8201601f8101841361402857600080fd5b61270384823560208401613a82565b60006020828403121561404957600080fd5b5035919050565b6000806040838503121561406357600080fd5b50508035926020909101359150565b6000806040838503121561408557600080fd5b823591506020830135613c3b816145ac565b60008060008060008060c087890312156140b057600080fd5b86516140bb816145ac565b60208801519096506140cc816145ac565b60408801519095506140dd816145ac565b60608801519094506140ee816145ac565b60808801519093506140ff816145ac565b60a0880151909250614110816145ac565b809150509295509295509295565b6000815180845261413681602086016020860161443f565b601f01601f19169290920160200192915050565b6000835161415c81846020880161443f565b83519083019061417081836020880161443f565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906141ac9083018461411e565b9695505050505050565b60208152600061215d602083018461411e565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732314d657461646174613a20747261697420717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156143695761436961456b565b604052919050565b600067ffffffffffffffff82111561438b5761438b61456b565b5060051b60200190565b600082198211156143a8576143a8614513565b500190565b600060ff821660ff84168060ff038211156143ca576143ca614513565b019392505050565b6000826143e1576143e1614529565b500490565b600081600019048311821515161561440057614400614513565b500290565b600061ffff8381169083168181101561442057614420614513565b039392505050565b60008282101561443a5761443a614513565b500390565b60005b8381101561445a578181015183820152602001614442565b83811115611efe5750506000910152565b600061ffff82168061447f5761447f614513565b6000190192915050565b600181811c9082168061449d57607f821691505b602082108114156144be57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156144d8576144d8614513565b5060010190565b600060ff821660ff8114156144f6576144f6614513565b60010192915050565b60008261450e5761450e614529565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611e0c57600080fd5b6001600160e01b031981168114611e0c57600080fd5b60ff81168114611e0c57600080fdfe68747470733a2f2f6170692e7375706475636b732e636f6d2f6d657461646174612fa264697066735822122022bf03f8847188d4bdaeb8c41e6cd18916318debaa0a27bbdca9a66470a68f6f64736f6c63430008060033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 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.