ERC-20
Overview
Max Total Supply
1,841,238.8739915092592528 BANANITE
Holders
995
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
596.272444328703703701 BANANITEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Bananite
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./StakingERC20.sol"; import "./Rng.sol"; import "./ChainScoutMetadata.sol"; contract Bananite is StakingERC20 { using RngLibrary for Rng; mapping(address => uint256) public scoutCounts; constructor() ERC20("Bananite", "BANANITE") {} function extensionKey() public pure override returns (string memory) { return "token"; } function calculateTokenRewardsOverTime( Rng memory rn, uint256 tokenId, uint256 secs ) public view override returns (uint256) { ChainScoutMetadata memory sm = chainScouts.getChainScoutMetadata(tokenId); BackAccessory c = sm.backaccessory; secs *= 1 ether; if (c == BackAccessory.SCOUT) { uint256 scoutNumerator = scoutCounts[tokenIdOwners[tokenId]] >= 5 ? 8 : 7; secs = secs * scoutNumerator / 2; } else if (c == BackAccessory.MERCENARY) { uint256 r = rn.generate(1, 10); if (r <= 2) { secs = (secs * 119) / 40; } else if (r >= 9) { secs = (secs * 21) / 5; } else { secs = (secs * 7) / 2; } } else if (c == BackAccessory.VANGUARD) { uint256 n = rn.generate(140, 210); secs = (secs * n) / 50; } else if (c == BackAccessory.RONIN) { uint256 r = rn.generate(1, 20); if (r == 1) { secs = secs * 3; } else { secs = secs * 6; } } else if (c == BackAccessory.MINER) { uint256 r = rn.generate(1, 10); if (r == 1) { secs = secs * 15; } else { secs = (secs * 15) / 2; } } else if (c == BackAccessory.PATHFINDER) { uint256 r = rn.generate(390, 975); secs = (secs * r) / 100; } else if (c == BackAccessory.ENCHANTER) { uint256 r = rn.generate(90, 140); secs = (secs * r) / 20; } else { uint256 r = rn.generate(1, 10); if (r == 1) { secs = secs * 2; } else { secs = secs * 10; } } return secs / 1 days; } function stake(uint256[] calldata tokenIds) public override { for (uint256 i = 0; i < tokenIds.length; ++i) { ChainScoutMetadata memory md = chainScouts.getChainScoutMetadata( tokenIds[i] ); if (md.backaccessory == BackAccessory.SCOUT) { scoutCounts[chainScouts.ownerOf(tokenIds[i])]++; } } super.stake(tokenIds); } function unstake(uint256[] calldata tokenIds) public override { super.unstake(tokenIds); for (uint256 i = 0; i < tokenIds.length; ++i) { ChainScoutMetadata memory md = chainScouts.getChainScoutMetadata( tokenIds[i] ); if (md.backaccessory == BackAccessory.SCOUT) { scoutCounts[chainScouts.ownerOf(tokenIds[i])]--; } } } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ChainScoutsExtension.sol"; import "./IUtilityERC20.sol"; import "./ChainScoutMetadata.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "./Rng.sol"; abstract contract StakingERC20 is ChainScoutsExtension, IUtilityERC20, ERC20Burnable { Rng internal rng = RngLibrary.newRng(); mapping(uint256 => uint256) public lastClaimTime; mapping(uint256 => address) public tokenIdOwners; mapping(address => mapping(uint256 => uint256)) public ownerTokenIds; mapping(address => uint256) public numberTokensStaked; function adminMint(address owner, uint256 amountWei) external override onlyAdmin { super._mint(owner, amountWei); } function adminSetTokenTimestamp(uint256 tokenId, uint256 timestamp) external override onlyAdmin { lastClaimTime[tokenId] = timestamp; } function burn(address owner, uint256 amountWei) external override { require( chainScouts.isAdmin(msg.sender) || msg.sender == owner, "must be admin or owner" ); super._burn(owner, amountWei); } function calculateTokenRewards(Rng memory rn, uint256 tokenId) public view returns (uint256 rewards) { rewards = calculateTokenRewardsOverTime( rn, tokenId, block.timestamp > lastClaimTime[tokenId] && lastClaimTime[tokenId] > 0 ? block.timestamp - lastClaimTime[tokenId] : 0 ); } function calculateTokenRewardsOverTime( Rng memory, uint256, uint256 secondsElapsedSinceLastClaim ) public view virtual returns (uint256) { return (secondsElapsedSinceLastClaim * 1 ether) / 1 days; } function claimRewards() external virtual override whenEnabled { Rng memory rn = rng; uint count = 0; for (uint256 i = 0; i < numberTokensStaked[msg.sender]; ++i) { uint256 tid = ownerTokenIds[msg.sender][i]; count += calculateTokenRewards(rn, tid); lastClaimTime[tid] = block.timestamp; } if (count > 0) { super._mint(msg.sender, count); } rng = rn; } function stake(uint256[] calldata tokenIds) public virtual override whenEnabled { for (uint256 i = 0; i < tokenIds.length; ++i) { uint256 tokenId = tokenIds[i]; require( chainScouts.canAccessToken(msg.sender, tokenId), "ChainScoutsExtension: you don't own the token" ); require( tokenIdOwners[tokenId] == address(0), "StakingERC20: This token is already staked" ); address owner = chainScouts.ownerOf(tokenId); lastClaimTime[tokenId] = block.timestamp; tokenIdOwners[tokenId] = owner; ownerTokenIds[owner][numberTokensStaked[owner]] = tokenId; numberTokensStaked[owner]++; chainScouts.adminTransfer(owner, address(this), tokenId); } } function unstake(uint256[] calldata tokenIds) public virtual whenEnabled { Rng memory rn = rng; for (uint256 i = 0; i < tokenIds.length; ++i) { uint tokenId = tokenIds[i]; require( tokenIdOwners[tokenId] == msg.sender, "StakingERC20: You don't own this token" ); uint256 rewards = calculateTokenRewards(rn, tokenId); if (rewards > 0) { super._mint(msg.sender, rewards); } tokenIdOwners[tokenId] = address(0); for (uint256 j = 0; j < numberTokensStaked[msg.sender]; ++j) { if (ownerTokenIds[msg.sender][j] == tokenId) { uint256 lastIndex = numberTokensStaked[msg.sender] - 1; ownerTokenIds[msg.sender][j] = ownerTokenIds[msg.sender][ lastIndex ]; delete ownerTokenIds[msg.sender][lastIndex]; break; } } numberTokensStaked[msg.sender]--; chainScouts.adminTransfer(address(this), msg.sender, tokenId); } rng = rn; } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title A pseudo random number generator * * @dev This is not a true random number generator because smart contracts must be deterministic (every node a transaction goes to must produce the same result). * True randomness requires an oracle which is both expensive in terms of gas and would take a critical part of the project off the chain. */ struct Rng { bytes32 state; } /** * @title A library for working with the Rng struct. * * @dev Rng cannot be a contract because then anyone could manipulate it by generating random numbers. */ library RngLibrary { /** * Creates a new Rng. */ function newRng() internal view returns (Rng memory) { return Rng(getEntropy()); } /** * Creates a pseudo-random value from the current block miner's address and sender. */ function getEntropy() internal view returns (bytes32) { return keccak256(abi.encodePacked(block.coinbase, msg.sender)); } /** * Generates a random uint256. */ function generate(Rng memory self) internal view returns (uint256) { self.state = keccak256(abi.encodePacked(getEntropy(), self.state)); return uint256(self.state); } /** * Generates a random uint256 from min to max inclusive. * * @dev This function is not subject to modulo bias. * The chance that this function has to reroll is astronomically unlikely, but it can theoretically reroll forever. */ function generate(Rng memory self, uint min, uint max) internal view returns (uint256) { require(min <= max, "min > max"); uint delta = max - min; if (delta == 0) { return min; } return generate(self) % (delta + 1) + min; } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Enums.sol"; struct KeyValuePair { string key; string value; } struct ChainScoutMetadata { Accessory accessory; BackAccessory backaccessory; Background background; Clothing clothing; Eyes eyes; Fur fur; Head head; Mouth mouth; uint24 attack; uint24 defense; uint24 luck; uint24 speed; uint24 strength; uint24 intelligence; uint16 level; }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IChainScouts.sol"; abstract contract ChainScoutsExtension { IChainScouts internal chainScouts; bool public enabled = true; modifier canAccessToken(uint tokenId) { require(chainScouts.canAccessToken(msg.sender, tokenId), "ChainScoutsExtension: you don't own the token"); _; } modifier onlyAdmin() { require(chainScouts.isAdmin(msg.sender), "ChainScoutsExtension: admins only"); _; } modifier whenEnabled() { require(enabled, "ChainScoutsExtension: currently disabled"); _; } function adminSetEnabled(bool e) external onlyAdmin { enabled = e; } function extensionKey() public virtual view returns (string memory); function setChainScouts(IChainScouts _contract) external { require(address(0) == address(chainScouts) || chainScouts.isAdmin(msg.sender), "ChainScoutsExtension: The Chain Scouts contract must not be set or you must be an admin"); chainScouts = _contract; chainScouts.adminSetExtension(extensionKey(), this); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IUtilityERC20 is IERC20 { function adminMint(address owner, uint amountWei) external; function adminSetTokenTimestamp(uint tokenId, uint timestamp) external; function burn(address owner, uint amountWei) external; function claimRewards() external; function stake(uint[] calldata tokenId) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IExtensibleERC721Enumerable.sol"; import "./ChainScoutsExtension.sol"; import "./ChainScoutMetadata.sol"; interface IChainScouts is IExtensibleERC721Enumerable { function adminCreateChainScout( ChainScoutMetadata calldata tbd, address owner ) external; function adminRemoveExtension(string calldata key) external; function adminSetExtension( string calldata key, ChainScoutsExtension extension ) external; function adminSetChainScoutMetadata( uint256 tokenId, ChainScoutMetadata calldata tbd ) external; function getChainScoutMetadata(uint256 tokenId) external view returns (ChainScoutMetadata memory); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface IExtensibleERC721Enumerable is IERC721Enumerable { function isAdmin(address addr) external view returns (bool); function addAdmin(address addr) external; function removeAdmin(address addr) external; function canAccessToken(address addr, uint tokenId) external view returns (bool); function adminBurn(uint tokenId) external; function adminTransfer(address from, address to, uint tokenId) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; enum Accessory { GOLD_EARRINGS, SCARS, GOLDEN_CHAIN, AMULET, CUBAN_LINK_GOLD_CHAIN, FANNY_PACK, NONE } enum BackAccessory { NETRUNNER, MERCENARY, RONIN, ENCHANTER, VANGUARD, MINER, PATHFINDER, SCOUT } enum Background { STARRY_PINK, STARRY_YELLOW, STARRY_PURPLE, STARRY_GREEN, NEBULA, STARRY_RED, STARRY_BLUE, SUNSET, MORNING, INDIGO, CITY__PURPLE, CONTROL_ROOM, LAB, GREEN, ORANGE, PURPLE, CITY__GREEN, CITY__RED, STATION, BOUNTY, BLUE_SKY, RED_SKY, GREEN_SKY } enum Clothing { MARTIAL_SUIT, AMETHYST_ARMOR, SHIRT_AND_TIE, THUNDERDOME_ARMOR, FLEET_UNIFORM__BLUE, BANANITE_SHIRT, EXPLORER, COSMIC_GHILLIE_SUIT__BLUE, COSMIC_GHILLIE_SUIT__GOLD, CYBER_JUMPSUIT, ENCHANTER_ROBES, HOODIE, SPACESUIT, MECHA_ARMOR, LAB_COAT, FLEET_UNIFORM__RED, GOLD_ARMOR, ENERGY_ARMOR__BLUE, ENERGY_ARMOR__RED, MISSION_SUIT__BLACK, MISSION_SUIT__PURPLE, COWBOY, GLITCH_ARMOR, NONE } enum Eyes { SPACE_VISOR, ADORABLE, VETERAN, SUNGLASSES, WHITE_SUNGLASSES, RED_EYES, WINK, CASUAL, CLOSED, DOWNCAST, HAPPY, BLUE_EYES, HUD_GLASSES, DARK_SUNGLASSES, NIGHT_VISION_GOGGLES, BIONIC, HIVE_GOGGLES, MATRIX_GLASSES, GREEN_GLOW, ORANGE_GLOW, RED_GLOW, PURPLE_GLOW, BLUE_GLOW, SKY_GLOW, RED_LASER, BLUE_LASER, GOLDEN_SHADES, HIPSTER_GLASSES, PINCENEZ, BLUE_SHADES, BLIT_GLASSES, NOUNS_GLASSES } enum Fur { MAGENTA, BLUE, GREEN, RED, BLACK, BROWN, SILVER, PURPLE, PINK, SEANCE, TURQUOISE, CRIMSON, GREENYELLOW, GOLD, DIAMOND, METALLIC } enum Head { HALO, ENERGY_FIELD, BLUE_TOP_HAT, RED_TOP_HAT, ENERGY_CRYSTAL, CROWN, BANDANA, BUCKET_HAT, HOMBURG_HAT, PROPELLER_HAT, HEADBAND, DORAG, PURPLE_COWBOY_HAT, SPACESUIT_HELMET, PARTY_HAT, CAP, LEATHER_COWBOY_HAT, CYBER_HELMET__BLUE, CYBER_HELMET__RED, SAMURAI_HAT, NONE } enum Mouth { SMIRK, SURPRISED, SMILE, PIPE, OPEN_SMILE, NEUTRAL, MASK, TONGUE_OUT, GOLD_GRILL, DIAMOND_GRILL, NAVY_RESPIRATOR, RED_RESPIRATOR, MAGENTA_RESPIRATOR, GREEN_RESPIRATOR, MEMPO, VAPE, PILOT_OXYGEN_MASK, CIGAR, BANANA, CHROME_RESPIRATOR, STOIC } library Enums { function toString(Accessory v) external pure returns (string memory) { if (v == Accessory.GOLD_EARRINGS) { return "Gold Earrings"; } if (v == Accessory.SCARS) { return "Scars"; } if (v == Accessory.GOLDEN_CHAIN) { return "Golden Chain"; } if (v == Accessory.AMULET) { return "Amulet"; } if (v == Accessory.CUBAN_LINK_GOLD_CHAIN) { return "Cuban Link Gold Chain"; } if (v == Accessory.FANNY_PACK) { return "Fanny Pack"; } if (v == Accessory.NONE) { return "None"; } revert("invalid accessory"); } function toString(BackAccessory v) external pure returns (string memory) { if (v == BackAccessory.NETRUNNER) { return "Netrunner"; } if (v == BackAccessory.MERCENARY) { return "Mercenary"; } if (v == BackAccessory.RONIN) { return "Ronin"; } if (v == BackAccessory.ENCHANTER) { return "Enchanter"; } if (v == BackAccessory.VANGUARD) { return "Vanguard"; } if (v == BackAccessory.MINER) { return "Miner"; } if (v == BackAccessory.PATHFINDER) { return "Pathfinder"; } if (v == BackAccessory.SCOUT) { return "Scout"; } revert("invalid back accessory"); } function toString(Background v) external pure returns (string memory) { if (v == Background.STARRY_PINK) { return "Starry Pink"; } if (v == Background.STARRY_YELLOW) { return "Starry Yellow"; } if (v == Background.STARRY_PURPLE) { return "Starry Purple"; } if (v == Background.STARRY_GREEN) { return "Starry Green"; } if (v == Background.NEBULA) { return "Nebula"; } if (v == Background.STARRY_RED) { return "Starry Red"; } if (v == Background.STARRY_BLUE) { return "Starry Blue"; } if (v == Background.SUNSET) { return "Sunset"; } if (v == Background.MORNING) { return "Morning"; } if (v == Background.INDIGO) { return "Indigo"; } if (v == Background.CITY__PURPLE) { return "City - Purple"; } if (v == Background.CONTROL_ROOM) { return "Control Room"; } if (v == Background.LAB) { return "Lab"; } if (v == Background.GREEN) { return "Green"; } if (v == Background.ORANGE) { return "Orange"; } if (v == Background.PURPLE) { return "Purple"; } if (v == Background.CITY__GREEN) { return "City - Green"; } if (v == Background.CITY__RED) { return "City - Red"; } if (v == Background.STATION) { return "Station"; } if (v == Background.BOUNTY) { return "Bounty"; } if (v == Background.BLUE_SKY) { return "Blue Sky"; } if (v == Background.RED_SKY) { return "Red Sky"; } if (v == Background.GREEN_SKY) { return "Green Sky"; } revert("invalid background"); } function toString(Clothing v) external pure returns (string memory) { if (v == Clothing.MARTIAL_SUIT) { return "Martial Suit"; } if (v == Clothing.AMETHYST_ARMOR) { return "Amethyst Armor"; } if (v == Clothing.SHIRT_AND_TIE) { return "Shirt and Tie"; } if (v == Clothing.THUNDERDOME_ARMOR) { return "Thunderdome Armor"; } if (v == Clothing.FLEET_UNIFORM__BLUE) { return "Fleet Uniform - Blue"; } if (v == Clothing.BANANITE_SHIRT) { return "Bananite Shirt"; } if (v == Clothing.EXPLORER) { return "Explorer"; } if (v == Clothing.COSMIC_GHILLIE_SUIT__BLUE) { return "Cosmic Ghillie Suit - Blue"; } if (v == Clothing.COSMIC_GHILLIE_SUIT__GOLD) { return "Cosmic Ghillie Suit - Gold"; } if (v == Clothing.CYBER_JUMPSUIT) { return "Cyber Jumpsuit"; } if (v == Clothing.ENCHANTER_ROBES) { return "Enchanter Robes"; } if (v == Clothing.HOODIE) { return "Hoodie"; } if (v == Clothing.SPACESUIT) { return "Spacesuit"; } if (v == Clothing.MECHA_ARMOR) { return "Mecha Armor"; } if (v == Clothing.LAB_COAT) { return "Lab Coat"; } if (v == Clothing.FLEET_UNIFORM__RED) { return "Fleet Uniform - Red"; } if (v == Clothing.GOLD_ARMOR) { return "Gold Armor"; } if (v == Clothing.ENERGY_ARMOR__BLUE) { return "Energy Armor - Blue"; } if (v == Clothing.ENERGY_ARMOR__RED) { return "Energy Armor - Red"; } if (v == Clothing.MISSION_SUIT__BLACK) { return "Mission Suit - Black"; } if (v == Clothing.MISSION_SUIT__PURPLE) { return "Mission Suit - Purple"; } if (v == Clothing.COWBOY) { return "Cowboy"; } if (v == Clothing.GLITCH_ARMOR) { return "Glitch Armor"; } if (v == Clothing.NONE) { return "None"; } revert("invalid clothing"); } function toString(Eyes v) external pure returns (string memory) { if (v == Eyes.SPACE_VISOR) { return "Space Visor"; } if (v == Eyes.ADORABLE) { return "Adorable"; } if (v == Eyes.VETERAN) { return "Veteran"; } if (v == Eyes.SUNGLASSES) { return "Sunglasses"; } if (v == Eyes.WHITE_SUNGLASSES) { return "White Sunglasses"; } if (v == Eyes.RED_EYES) { return "Red Eyes"; } if (v == Eyes.WINK) { return "Wink"; } if (v == Eyes.CASUAL) { return "Casual"; } if (v == Eyes.CLOSED) { return "Closed"; } if (v == Eyes.DOWNCAST) { return "Downcast"; } if (v == Eyes.HAPPY) { return "Happy"; } if (v == Eyes.BLUE_EYES) { return "Blue Eyes"; } if (v == Eyes.HUD_GLASSES) { return "HUD Glasses"; } if (v == Eyes.DARK_SUNGLASSES) { return "Dark Sunglasses"; } if (v == Eyes.NIGHT_VISION_GOGGLES) { return "Night Vision Goggles"; } if (v == Eyes.BIONIC) { return "Bionic"; } if (v == Eyes.HIVE_GOGGLES) { return "Hive Goggles"; } if (v == Eyes.MATRIX_GLASSES) { return "Matrix Glasses"; } if (v == Eyes.GREEN_GLOW) { return "Green Glow"; } if (v == Eyes.ORANGE_GLOW) { return "Orange Glow"; } if (v == Eyes.RED_GLOW) { return "Red Glow"; } if (v == Eyes.PURPLE_GLOW) { return "Purple Glow"; } if (v == Eyes.BLUE_GLOW) { return "Blue Glow"; } if (v == Eyes.SKY_GLOW) { return "Sky Glow"; } if (v == Eyes.RED_LASER) { return "Red Laser"; } if (v == Eyes.BLUE_LASER) { return "Blue Laser"; } if (v == Eyes.GOLDEN_SHADES) { return "Golden Shades"; } if (v == Eyes.HIPSTER_GLASSES) { return "Hipster Glasses"; } if (v == Eyes.PINCENEZ) { return "Pince-nez"; } if (v == Eyes.BLUE_SHADES) { return "Blue Shades"; } if (v == Eyes.BLIT_GLASSES) { return "Blit GLasses"; } if (v == Eyes.NOUNS_GLASSES) { return "Nouns Glasses"; } revert("invalid eyes"); } function toString(Fur v) external pure returns (string memory) { if (v == Fur.MAGENTA) { return "Magenta"; } if (v == Fur.BLUE) { return "Blue"; } if (v == Fur.GREEN) { return "Green"; } if (v == Fur.RED) { return "Red"; } if (v == Fur.BLACK) { return "Black"; } if (v == Fur.BROWN) { return "Brown"; } if (v == Fur.SILVER) { return "Silver"; } if (v == Fur.PURPLE) { return "Purple"; } if (v == Fur.PINK) { return "Pink"; } if (v == Fur.SEANCE) { return "Seance"; } if (v == Fur.TURQUOISE) { return "Turquoise"; } if (v == Fur.CRIMSON) { return "Crimson"; } if (v == Fur.GREENYELLOW) { return "Green-Yellow"; } if (v == Fur.GOLD) { return "Gold"; } if (v == Fur.DIAMOND) { return "Diamond"; } if (v == Fur.METALLIC) { return "Metallic"; } revert("invalid fur"); } function toString(Head v) external pure returns (string memory) { if (v == Head.HALO) { return "Halo"; } if (v == Head.ENERGY_FIELD) { return "Energy Field"; } if (v == Head.BLUE_TOP_HAT) { return "Blue Top Hat"; } if (v == Head.RED_TOP_HAT) { return "Red Top Hat"; } if (v == Head.ENERGY_CRYSTAL) { return "Energy Crystal"; } if (v == Head.CROWN) { return "Crown"; } if (v == Head.BANDANA) { return "Bandana"; } if (v == Head.BUCKET_HAT) { return "Bucket Hat"; } if (v == Head.HOMBURG_HAT) { return "Homburg Hat"; } if (v == Head.PROPELLER_HAT) { return "Propeller Hat"; } if (v == Head.HEADBAND) { return "Headband"; } if (v == Head.DORAG) { return "Do-rag"; } if (v == Head.PURPLE_COWBOY_HAT) { return "Purple Cowboy Hat"; } if (v == Head.SPACESUIT_HELMET) { return "Spacesuit Helmet"; } if (v == Head.PARTY_HAT) { return "Party Hat"; } if (v == Head.CAP) { return "Cap"; } if (v == Head.LEATHER_COWBOY_HAT) { return "Leather Cowboy Hat"; } if (v == Head.CYBER_HELMET__BLUE) { return "Cyber Helmet - Blue"; } if (v == Head.CYBER_HELMET__RED) { return "Cyber Helmet - Red"; } if (v == Head.SAMURAI_HAT) { return "Samurai Hat"; } if (v == Head.NONE) { return "None"; } revert("invalid head"); } function toString(Mouth v) external pure returns (string memory) { if (v == Mouth.SMIRK) { return "Smirk"; } if (v == Mouth.SURPRISED) { return "Surprised"; } if (v == Mouth.SMILE) { return "Smile"; } if (v == Mouth.PIPE) { return "Pipe"; } if (v == Mouth.OPEN_SMILE) { return "Open Smile"; } if (v == Mouth.NEUTRAL) { return "Neutral"; } if (v == Mouth.MASK) { return "Mask"; } if (v == Mouth.TONGUE_OUT) { return "Tongue Out"; } if (v == Mouth.GOLD_GRILL) { return "Gold Grill"; } if (v == Mouth.DIAMOND_GRILL) { return "Diamond Grill"; } if (v == Mouth.NAVY_RESPIRATOR) { return "Navy Respirator"; } if (v == Mouth.RED_RESPIRATOR) { return "Red Respirator"; } if (v == Mouth.MAGENTA_RESPIRATOR) { return "Magenta Respirator"; } if (v == Mouth.GREEN_RESPIRATOR) { return "Green Respirator"; } if (v == Mouth.MEMPO) { return "Mempo"; } if (v == Mouth.VAPE) { return "Vape"; } if (v == Mouth.PILOT_OXYGEN_MASK) { return "Pilot Oxygen Mask"; } if (v == Mouth.CIGAR) { return "Cigar"; } if (v == Mouth.BANANA) { return "Banana"; } if (v == Mouth.CHROME_RESPIRATOR) { return "Chrome Respirator"; } if (v == Mouth.STOIC) { return "Stoic"; } revert("invalid mouth"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amountWei","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"e","type":"bool"}],"name":"adminSetEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"adminSetTokenTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amountWei","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"state","type":"bytes32"}],"internalType":"struct Rng","name":"rn","type":"tuple"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"calculateTokenRewards","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"state","type":"bytes32"}],"internalType":"struct Rng","name":"rn","type":"tuple"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"secs","type":"uint256"}],"name":"calculateTokenRewardsOverTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extensionKey","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastClaimTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberTokensStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerTokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"scoutCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IChainScouts","name":"_contract","type":"address"}],"name":"setChainScouts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260008054600160a01b60ff60a01b199091161790556200002f620000ba602090811b620013c917901c565b516006553480156200004057600080fd5b506040518060400160405280600881526020016742616e616e69746560c01b8152506040518060400160405280600881526020016742414e414e49544560c01b81525081600490805190602001906200009b9291906200012e565b508051620000b19060059060208401906200012e565b50505062000211565b6040805160208101909152600081526040518060200160405280620000e4620000eb60201b60201c565b9052919050565b6040516001600160601b031941606090811b8216602084015233901b16603482015260009060480160405160208183030381529060405280519060200120905090565b8280546200013c90620001d4565b90600052602060002090601f016020900481019282620001605760008555620001ab565b82601f106200017b57805160ff1916838001178555620001ab565b82800160010185558215620001ab579182015b82811115620001ab5782518255916020019190600101906200018e565b50620001b9929150620001bd565b5090565b5b80821115620001b95760008155600101620001be565b600181811c90821680620001e957607f821691505b602082108114156200020b57634e487b7160e01b600052602260045260246000fd5b50919050565b61269580620002216000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063877dab7e11610104578063b4375dc9116100a2578063e449f34111610071578063e449f3411461047a578063e58306f91461048d578063f5b200ac146104a0578063ff1ff89c146104c057600080fd5b8063b4375dc9146103fb578063b90d5f551461040e578063dd62ed3e1461042e578063e1a5af151461046757600080fd5b80639dc29fac116100de5780639dc29fac146103a1578063a307cf90146103b4578063a457c2d7146103d5578063a9059cbb146103e857600080fd5b8063877dab7e146103665780638a2d41761461038657806395d89b411461039957600080fd5b806323b872dd1161017c57806342966c681161014b57806342966c68146102d65780634884254a146102e957806370a082311461032a57806379cc67901461035357600080fd5b806323b872dd14610299578063313ce567146102ac578063372500ab146102bb57806339509351146102c357600080fd5b80630fbf0a93116101b85780630fbf0a931461023557806318160ddd1461024857806322f108361461025a578063238dafe01461028557600080fd5b806306fdde03146101df578063095ea7b3146101fd5780630f7747e014610220575b600080fd5b6101e76104d3565b6040516101f49190611fe3565b60405180910390f35b61021061020b36600461200b565b610565565b60405190151581526020016101f4565b61023361022e366004612037565b61057b565b005b610233610243366004612059565b61062d565b6003545b6040519081526020016101f4565b61024c61026836600461200b565b600960209081526000928352604080842090915290825290205481565b60005461021090600160a01b900460ff1681565b6102106102a73660046120ce565b6107dc565b604051601281526020016101f4565b610233610888565b6102106102d136600461200b565b610947565b6102336102e436600461210f565b610983565b6103126102f736600461210f565b6008602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101f4565b61024c610338366004612128565b6001600160a01b031660009081526001602052604090205490565b61023361036136600461200b565b610990565b61024c61037436600461210f565b60076020526000908152604090205481565b61024c6103943660046121cd565b610a16565b6101e7610d2d565b6102336103af36600461200b565b610d3c565b6040805180820190915260058152643a37b5b2b760d91b60208201526101e7565b6102106103e336600461200b565b610e19565b6102106103f636600461200b565b610eb2565b61023361040936600461220f565b610ebf565b61024c61041c366004612128565b600b6020526000908152604090205481565b61024c61043c36600461222c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61024c610475366004612265565b610f74565b610233610488366004612059565b610fca565b61023361049b36600461200b565b611174565b61024c6104ae366004612128565b600a6020526000908152604090205481565b6102336104ce366004612128565b611215565b6060600480546104e290612282565b80601f016020809104026020016040519081016040528092919081815260200182805461050e90612282565b801561055b5780601f106105305761010080835404028352916020019161055b565b820191906000526020600020905b81548152906001019060200180831161053e57829003601f168201915b5050505050905090565b60006105723384846113f2565b50600192915050565b600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b1580156105be57600080fd5b505afa1580156105d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f691906122bd565b61061b5760405162461bcd60e51b8152600401610612906122da565b60405180910390fd5b60009182526007602052604090912055565b60005b818110156107cd57600080546001600160a01b031663a9d1401985858581811061065c5761065c61231b565b905060200201356040518263ffffffff1660e01b815260040161068191815260200190565b6101e06040518083038186803b15801561069a57600080fd5b505afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d291906123c4565b90506007816020015160078111156106ec576106ec6124e6565b14156107bc5760008054600b91906001600160a01b0316636352211e87878781811061071a5761071a61231b565b905060200201356040518263ffffffff1660e01b815260040161073f91815260200190565b60206040518083038186803b15801561075757600080fd5b505afa15801561076b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078f91906124fc565b6001600160a01b03168152602081019190915260400160009081208054916107b68361252f565b91905055505b506107c68161252f565b9050610630565b506107d88282611516565b5050565b60006107e9848484611833565b6001600160a01b03841660009081526002602090815260408083203384529091529020548281101561086e5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610612565b61087b85338584036113f2565b60019150505b9392505050565b600054600160a01b900460ff166108b15760405162461bcd60e51b81526004016106129061254a565b604080516020810190915260065481526000805b336000908152600a602052604090205481101561092f573360009081526009602090815260408083208484529091529020546109018482610f74565b61090b9084612592565b60009182526007602052604090912042905591506109288161252f565b90506108c5565b508015610940576109403382611a02565b5051600655565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161057291859061097e908690612592565b6113f2565b61098d3382611ae1565b50565b600061099c833361043c565b9050818110156109fa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610612565b610a0783338484036113f2565b610a118383611ae1565b505050565b6000805460405163a9d1401960e01b81526004810185905282916001600160a01b03169063a9d14019906024016101e06040518083038186803b158015610a5c57600080fd5b505afa158015610a70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9491906123c4565b6020810151909150610aae670de0b6b3a7640000856125aa565b93506007816007811115610ac457610ac46124e6565b1415610b24576000858152600860209081526040808320546001600160a01b03168352600b90915281205460051115610afe576007610b01565b60085b60ff1690506002610b1282876125aa565b610b1c91906125df565b945050610d16565b6001816007811115610b3857610b386124e6565b1415610b9d576000610b4d876001600a611c2f565b905060028111610b75576028610b648660776125aa565b610b6e91906125df565b9450610b97565b60098110610b8a576005610b648660156125aa565b6002610b128660076125aa565b50610d16565b6004816007811115610bb157610bb16124e6565b1415610bd4576000610bc687608c60d2611c2f565b90506032610b1282876125aa565b6002816007811115610be857610be86124e6565b1415610c1e576000610bfd8760016014611c2f565b90508060011415610c1357610b6e8560036125aa565b610b1c8560066125aa565b6005816007811115610c3257610c326124e6565b1415610c6a576000610c47876001600a611c2f565b90508060011415610c5d57610b6e85600f6125aa565b6002610b1286600f6125aa565b6006816007811115610c7e57610c7e6124e6565b1415610ca3576000610c95876101866103cf611c2f565b90506064610b1282876125aa565b6003816007811115610cb757610cb76124e6565b1415610cda576000610ccc87605a608c611c2f565b90506014610b1282876125aa565b6000610ce9876001600a611c2f565b90508060011415610d0657610cff8560026125aa565b9450610d14565b610d1185600a6125aa565b94505b505b610d2362015180856125df565b9695505050505050565b6060600580546104e290612282565b600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b158015610d7f57600080fd5b505afa158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db791906122bd565b80610dca5750336001600160a01b038316145b610e0f5760405162461bcd60e51b815260206004820152601660248201527536bab9ba1031329030b236b4b71037b91037bbb732b960511b6044820152606401610612565b6107d88282611ae1565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610e9b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610612565b610ea833858584036113f2565b5060019392505050565b6000610572338484611833565b600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b158015610f0257600080fd5b505afa158015610f16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3a91906122bd565b610f565760405162461bcd60e51b8152600401610612906122da565b60008054911515600160a01b0260ff60a01b19909216919091179055565b600081815260076020526040812054610881908490849042118015610fa6575060008581526007602052604090205415155b610fb1576000610a16565b60008581526007602052604090205461039490426125f3565b610fd48282611cbb565b60005b81811015610a1157600080546001600160a01b031663a9d140198585858181106110035761100361231b565b905060200201356040518263ffffffff1660e01b815260040161102891815260200190565b6101e06040518083038186803b15801561104157600080fd5b505afa158015611055573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107991906123c4565b9050600781602001516007811115611093576110936124e6565b14156111635760008054600b91906001600160a01b0316636352211e8787878181106110c1576110c161231b565b905060200201356040518263ffffffff1660e01b81526004016110e691815260200190565b60206040518083038186803b1580156110fe57600080fd5b505afa158015611112573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113691906124fc565b6001600160a01b031681526020810191909152604001600090812080549161115d8361260a565b91905055505b5061116d8161252f565b9050610fd7565b600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b1580156111b757600080fd5b505afa1580156111cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ef91906122bd565b61120b5760405162461bcd60e51b8152600401610612906122da565b6107d88282611a02565b6000546001600160a01b031615806112a35750600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b15801561126b57600080fd5b505afa15801561127f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a391906122bd565b61133b5760405162461bcd60e51b815260206004820152605760248201527f436861696e53636f757473457874656e73696f6e3a2054686520436861696e2060448201527f53636f75747320636f6e7472616374206d757374206e6f74206265207365742060648201527f6f7220796f75206d75737420626520616e2061646d696e000000000000000000608482015260a401610612565b600080546001600160a01b0319166001600160a01b03831690811790915560408051808201825260058152643a37b5b2b760d91b602082015290516307e9c7c760e11b8152630fd38f8e91611394913090600401612621565b600060405180830381600087803b1580156113ae57600080fd5b505af11580156113c2573d6000803e3d6000fd5b5050505050565b60408051602081019091526000815260405180602001604052806113eb611f10565b9052919050565b6001600160a01b0383166114545760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610612565b6001600160a01b0382166114b55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610612565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600054600160a01b900460ff1661153f5760405162461bcd60e51b81526004016106129061254a565b60005b81811015610a1157600083838381811061155e5761155e61231b565b60005460405163081b14a360e01b815233600482015260209290920293909301356024820181905293506001600160a01b039092169163081b14a3915060440160206040518083038186803b1580156115b657600080fd5b505afa1580156115ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ee91906122bd565b6116505760405162461bcd60e51b815260206004820152602d60248201527f436861696e53636f757473457874656e73696f6e3a20796f7520646f6e27742060448201526c37bbb7103a3432903a37b5b2b760991b6064820152608401610612565b6000818152600860205260409020546001600160a01b0316156116c85760405162461bcd60e51b815260206004820152602a60248201527f5374616b696e6745524332303a205468697320746f6b656e20697320616c726560448201526918591e481cdd185ad95960b21b6064820152608401610612565b600080546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561170d57600080fd5b505afa158015611721573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174591906124fc565b60008381526007602090815260408083204290556008825280832080546001600160a01b0319166001600160a01b03861690811790915580845260098352818420600a8085528386208054875291855292852088905590845291528054929350906117af8361252f565b9091555050600054604051631b4e583d60e31b81526001600160a01b038381166004830152306024830152604482018590529091169063da72c1e890606401600060405180830381600087803b15801561180857600080fd5b505af115801561181c573d6000803e3d6000fd5b5050505050508061182c9061252f565b9050611542565b6001600160a01b0383166118975760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610612565b6001600160a01b0382166118f95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610612565b6001600160a01b038316600090815260016020526040902054818110156119715760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610612565b6001600160a01b038085166000908152600160205260408082208585039055918516815290812080548492906119a8908490612592565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516119f491815260200190565b60405180910390a350505050565b6001600160a01b038216611a585760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610612565b8060036000828254611a6a9190612592565b90915550506001600160a01b03821660009081526001602052604081208054839290611a97908490612592565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216611b415760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610612565b6001600160a01b03821660009081526001602052604090205481811015611bb55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610612565b6001600160a01b0383166000908152600160205260408120838303905560038054849290611be49084906125f3565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600081831115611c6d5760405162461bcd60e51b81526020600482015260096024820152680dad2dc407c40dac2f60bb1b6044820152606401610612565b6000611c7984846125f3565b905080611c895783915050610881565b83611c95826001612592565b611c9e87611f58565b611ca8919061264b565b611cb29190612592565b95945050505050565b600054600160a01b900460ff16611ce45760405162461bcd60e51b81526004016106129061254a565b6040805160208101909152600654815260005b82811015611f07576000848483818110611d1357611d1361231b565b6020908102929092013560008181526008909352604090922054919250506001600160a01b03163314611d975760405162461bcd60e51b815260206004820152602660248201527f5374616b696e6745524332303a20596f7520646f6e2774206f776e2074686973604482015265103a37b5b2b760d11b6064820152608401610612565b6000611da38483610f74565b90508015611db557611db53382611a02565b600082815260086020526040812080546001600160a01b03191690555b336000908152600a6020526040902054811015611e6957336000908152600960209081526040808320848452909152902054831415611e5957336000908152600a6020526040812054611e27906001906125f3565b336000908152600960209081526040808320848452909152808220805486845291832091909155918152905550611e69565b611e628161252f565b9050611dd2565b50336000908152600a60205260408120805491611e858361260a565b9091555050600054604051631b4e583d60e31b8152306004820152336024820152604481018490526001600160a01b039091169063da72c1e890606401600060405180830381600087803b158015611edc57600080fd5b505af1158015611ef0573d6000803e3d6000fd5b50505050505080611f009061252f565b9050611cf7565b50516006555050565b6040516bffffffffffffffffffffffff1941606090811b8216602084015233901b16603482015260009060480160405160208183030381529060405280519060200120905090565b6000611f62611f10565b825160408051602081019390935282015260600160408051601f198184030181529190528051602090910120918290525090565b6000815180845260005b81811015611fbc57602081850181015186830182015201611fa0565b81811115611fce576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006108816020830184611f96565b6001600160a01b038116811461098d57600080fd5b6000806040838503121561201e57600080fd5b823561202981611ff6565b946020939093013593505050565b6000806040838503121561204a57600080fd5b50508035926020909101359150565b6000806020838503121561206c57600080fd5b823567ffffffffffffffff8082111561208457600080fd5b818501915085601f83011261209857600080fd5b8135818111156120a757600080fd5b8660208260051b85010111156120bc57600080fd5b60209290920196919550909350505050565b6000806000606084860312156120e357600080fd5b83356120ee81611ff6565b925060208401356120fe81611ff6565b929592945050506040919091013590565b60006020828403121561212157600080fd5b5035919050565b60006020828403121561213a57600080fd5b813561088181611ff6565b6040516101e0810167ffffffffffffffff8111828210171561217757634e487b7160e01b600052604160045260246000fd5b60405290565b60006020828403121561218f57600080fd5b6040516020810181811067ffffffffffffffff821117156121c057634e487b7160e01b600052604160045260246000fd5b6040529135825250919050565b6000806000606084860312156121e257600080fd5b6121ec858561217d565b95602085013595506040909401359392505050565b801515811461098d57600080fd5b60006020828403121561222157600080fd5b813561088181612201565b6000806040838503121561223f57600080fd5b823561224a81611ff6565b9150602083013561225a81611ff6565b809150509250929050565b6000806040838503121561227857600080fd5b612029848461217d565b600181811c9082168061229657607f821691505b602082108114156122b757634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156122cf57600080fd5b815161088181612201565b60208082526021908201527f436861696e53636f757473457874656e73696f6e3a2061646d696e73206f6e6c6040820152607960f81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b80516007811061234057600080fd5b919050565b80516008811061234057600080fd5b80516017811061234057600080fd5b80516018811061234057600080fd5b80516020811061234057600080fd5b80516010811061234057600080fd5b80516015811061234057600080fd5b805162ffffff8116811461234057600080fd5b805161ffff8116811461234057600080fd5b60006101e082840312156123d757600080fd5b6123df612145565b6123e883612331565b81526123f660208401612345565b602082015261240760408401612354565b604082015261241860608401612363565b606082015261242960808401612372565b608082015261243a60a08401612381565b60a082015261244b60c08401612390565b60c082015261245c60e08401612390565b60e082015261010061246f81850161239f565b9082015261012061248184820161239f565b9082015261014061249384820161239f565b908201526101606124a584820161239f565b908201526101806124b784820161239f565b908201526101a06124c984820161239f565b908201526101c06124db8482016123b2565b908201529392505050565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561250e57600080fd5b815161088181611ff6565b634e487b7160e01b600052601160045260246000fd5b600060001982141561254357612543612519565b5060010190565b60208082526028908201527f436861696e53636f757473457874656e73696f6e3a2063757272656e746c7920604082015267191a5cd8589b195960c21b606082015260800190565b600082198211156125a5576125a5612519565b500190565b60008160001904831182151516156125c4576125c4612519565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826125ee576125ee6125c9565b500490565b60008282101561260557612605612519565b500390565b60008161261957612619612519565b506000190190565b6040815260006126346040830185611f96565b905060018060a01b03831660208301529392505050565b60008261265a5761265a6125c9565b50069056fea2646970667358221220d3d16e46095b9706bb47a8b8bfd0e7b0ab1df7e8b7f195a218bd2b2cc151f6db64736f6c63430008090033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c8063877dab7e11610104578063b4375dc9116100a2578063e449f34111610071578063e449f3411461047a578063e58306f91461048d578063f5b200ac146104a0578063ff1ff89c146104c057600080fd5b8063b4375dc9146103fb578063b90d5f551461040e578063dd62ed3e1461042e578063e1a5af151461046757600080fd5b80639dc29fac116100de5780639dc29fac146103a1578063a307cf90146103b4578063a457c2d7146103d5578063a9059cbb146103e857600080fd5b8063877dab7e146103665780638a2d41761461038657806395d89b411461039957600080fd5b806323b872dd1161017c57806342966c681161014b57806342966c68146102d65780634884254a146102e957806370a082311461032a57806379cc67901461035357600080fd5b806323b872dd14610299578063313ce567146102ac578063372500ab146102bb57806339509351146102c357600080fd5b80630fbf0a93116101b85780630fbf0a931461023557806318160ddd1461024857806322f108361461025a578063238dafe01461028557600080fd5b806306fdde03146101df578063095ea7b3146101fd5780630f7747e014610220575b600080fd5b6101e76104d3565b6040516101f49190611fe3565b60405180910390f35b61021061020b36600461200b565b610565565b60405190151581526020016101f4565b61023361022e366004612037565b61057b565b005b610233610243366004612059565b61062d565b6003545b6040519081526020016101f4565b61024c61026836600461200b565b600960209081526000928352604080842090915290825290205481565b60005461021090600160a01b900460ff1681565b6102106102a73660046120ce565b6107dc565b604051601281526020016101f4565b610233610888565b6102106102d136600461200b565b610947565b6102336102e436600461210f565b610983565b6103126102f736600461210f565b6008602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101f4565b61024c610338366004612128565b6001600160a01b031660009081526001602052604090205490565b61023361036136600461200b565b610990565b61024c61037436600461210f565b60076020526000908152604090205481565b61024c6103943660046121cd565b610a16565b6101e7610d2d565b6102336103af36600461200b565b610d3c565b6040805180820190915260058152643a37b5b2b760d91b60208201526101e7565b6102106103e336600461200b565b610e19565b6102106103f636600461200b565b610eb2565b61023361040936600461220f565b610ebf565b61024c61041c366004612128565b600b6020526000908152604090205481565b61024c61043c36600461222c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b61024c610475366004612265565b610f74565b610233610488366004612059565b610fca565b61023361049b36600461200b565b611174565b61024c6104ae366004612128565b600a6020526000908152604090205481565b6102336104ce366004612128565b611215565b6060600480546104e290612282565b80601f016020809104026020016040519081016040528092919081815260200182805461050e90612282565b801561055b5780601f106105305761010080835404028352916020019161055b565b820191906000526020600020905b81548152906001019060200180831161053e57829003601f168201915b5050505050905090565b60006105723384846113f2565b50600192915050565b600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b1580156105be57600080fd5b505afa1580156105d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f691906122bd565b61061b5760405162461bcd60e51b8152600401610612906122da565b60405180910390fd5b60009182526007602052604090912055565b60005b818110156107cd57600080546001600160a01b031663a9d1401985858581811061065c5761065c61231b565b905060200201356040518263ffffffff1660e01b815260040161068191815260200190565b6101e06040518083038186803b15801561069a57600080fd5b505afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d291906123c4565b90506007816020015160078111156106ec576106ec6124e6565b14156107bc5760008054600b91906001600160a01b0316636352211e87878781811061071a5761071a61231b565b905060200201356040518263ffffffff1660e01b815260040161073f91815260200190565b60206040518083038186803b15801561075757600080fd5b505afa15801561076b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078f91906124fc565b6001600160a01b03168152602081019190915260400160009081208054916107b68361252f565b91905055505b506107c68161252f565b9050610630565b506107d88282611516565b5050565b60006107e9848484611833565b6001600160a01b03841660009081526002602090815260408083203384529091529020548281101561086e5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610612565b61087b85338584036113f2565b60019150505b9392505050565b600054600160a01b900460ff166108b15760405162461bcd60e51b81526004016106129061254a565b604080516020810190915260065481526000805b336000908152600a602052604090205481101561092f573360009081526009602090815260408083208484529091529020546109018482610f74565b61090b9084612592565b60009182526007602052604090912042905591506109288161252f565b90506108c5565b508015610940576109403382611a02565b5051600655565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161057291859061097e908690612592565b6113f2565b61098d3382611ae1565b50565b600061099c833361043c565b9050818110156109fa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610612565b610a0783338484036113f2565b610a118383611ae1565b505050565b6000805460405163a9d1401960e01b81526004810185905282916001600160a01b03169063a9d14019906024016101e06040518083038186803b158015610a5c57600080fd5b505afa158015610a70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a9491906123c4565b6020810151909150610aae670de0b6b3a7640000856125aa565b93506007816007811115610ac457610ac46124e6565b1415610b24576000858152600860209081526040808320546001600160a01b03168352600b90915281205460051115610afe576007610b01565b60085b60ff1690506002610b1282876125aa565b610b1c91906125df565b945050610d16565b6001816007811115610b3857610b386124e6565b1415610b9d576000610b4d876001600a611c2f565b905060028111610b75576028610b648660776125aa565b610b6e91906125df565b9450610b97565b60098110610b8a576005610b648660156125aa565b6002610b128660076125aa565b50610d16565b6004816007811115610bb157610bb16124e6565b1415610bd4576000610bc687608c60d2611c2f565b90506032610b1282876125aa565b6002816007811115610be857610be86124e6565b1415610c1e576000610bfd8760016014611c2f565b90508060011415610c1357610b6e8560036125aa565b610b1c8560066125aa565b6005816007811115610c3257610c326124e6565b1415610c6a576000610c47876001600a611c2f565b90508060011415610c5d57610b6e85600f6125aa565b6002610b1286600f6125aa565b6006816007811115610c7e57610c7e6124e6565b1415610ca3576000610c95876101866103cf611c2f565b90506064610b1282876125aa565b6003816007811115610cb757610cb76124e6565b1415610cda576000610ccc87605a608c611c2f565b90506014610b1282876125aa565b6000610ce9876001600a611c2f565b90508060011415610d0657610cff8560026125aa565b9450610d14565b610d1185600a6125aa565b94505b505b610d2362015180856125df565b9695505050505050565b6060600580546104e290612282565b600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b158015610d7f57600080fd5b505afa158015610d93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db791906122bd565b80610dca5750336001600160a01b038316145b610e0f5760405162461bcd60e51b815260206004820152601660248201527536bab9ba1031329030b236b4b71037b91037bbb732b960511b6044820152606401610612565b6107d88282611ae1565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610e9b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610612565b610ea833858584036113f2565b5060019392505050565b6000610572338484611833565b600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b158015610f0257600080fd5b505afa158015610f16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3a91906122bd565b610f565760405162461bcd60e51b8152600401610612906122da565b60008054911515600160a01b0260ff60a01b19909216919091179055565b600081815260076020526040812054610881908490849042118015610fa6575060008581526007602052604090205415155b610fb1576000610a16565b60008581526007602052604090205461039490426125f3565b610fd48282611cbb565b60005b81811015610a1157600080546001600160a01b031663a9d140198585858181106110035761100361231b565b905060200201356040518263ffffffff1660e01b815260040161102891815260200190565b6101e06040518083038186803b15801561104157600080fd5b505afa158015611055573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107991906123c4565b9050600781602001516007811115611093576110936124e6565b14156111635760008054600b91906001600160a01b0316636352211e8787878181106110c1576110c161231b565b905060200201356040518263ffffffff1660e01b81526004016110e691815260200190565b60206040518083038186803b1580156110fe57600080fd5b505afa158015611112573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113691906124fc565b6001600160a01b031681526020810191909152604001600090812080549161115d8361260a565b91905055505b5061116d8161252f565b9050610fd7565b600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b1580156111b757600080fd5b505afa1580156111cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ef91906122bd565b61120b5760405162461bcd60e51b8152600401610612906122da565b6107d88282611a02565b6000546001600160a01b031615806112a35750600054604051630935e01b60e21b81523360048201526001600160a01b03909116906324d7806c9060240160206040518083038186803b15801561126b57600080fd5b505afa15801561127f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a391906122bd565b61133b5760405162461bcd60e51b815260206004820152605760248201527f436861696e53636f757473457874656e73696f6e3a2054686520436861696e2060448201527f53636f75747320636f6e7472616374206d757374206e6f74206265207365742060648201527f6f7220796f75206d75737420626520616e2061646d696e000000000000000000608482015260a401610612565b600080546001600160a01b0319166001600160a01b03831690811790915560408051808201825260058152643a37b5b2b760d91b602082015290516307e9c7c760e11b8152630fd38f8e91611394913090600401612621565b600060405180830381600087803b1580156113ae57600080fd5b505af11580156113c2573d6000803e3d6000fd5b5050505050565b60408051602081019091526000815260405180602001604052806113eb611f10565b9052919050565b6001600160a01b0383166114545760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610612565b6001600160a01b0382166114b55760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610612565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600054600160a01b900460ff1661153f5760405162461bcd60e51b81526004016106129061254a565b60005b81811015610a1157600083838381811061155e5761155e61231b565b60005460405163081b14a360e01b815233600482015260209290920293909301356024820181905293506001600160a01b039092169163081b14a3915060440160206040518083038186803b1580156115b657600080fd5b505afa1580156115ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ee91906122bd565b6116505760405162461bcd60e51b815260206004820152602d60248201527f436861696e53636f757473457874656e73696f6e3a20796f7520646f6e27742060448201526c37bbb7103a3432903a37b5b2b760991b6064820152608401610612565b6000818152600860205260409020546001600160a01b0316156116c85760405162461bcd60e51b815260206004820152602a60248201527f5374616b696e6745524332303a205468697320746f6b656e20697320616c726560448201526918591e481cdd185ad95960b21b6064820152608401610612565b600080546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561170d57600080fd5b505afa158015611721573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174591906124fc565b60008381526007602090815260408083204290556008825280832080546001600160a01b0319166001600160a01b03861690811790915580845260098352818420600a8085528386208054875291855292852088905590845291528054929350906117af8361252f565b9091555050600054604051631b4e583d60e31b81526001600160a01b038381166004830152306024830152604482018590529091169063da72c1e890606401600060405180830381600087803b15801561180857600080fd5b505af115801561181c573d6000803e3d6000fd5b5050505050508061182c9061252f565b9050611542565b6001600160a01b0383166118975760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610612565b6001600160a01b0382166118f95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610612565b6001600160a01b038316600090815260016020526040902054818110156119715760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610612565b6001600160a01b038085166000908152600160205260408082208585039055918516815290812080548492906119a8908490612592565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516119f491815260200190565b60405180910390a350505050565b6001600160a01b038216611a585760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610612565b8060036000828254611a6a9190612592565b90915550506001600160a01b03821660009081526001602052604081208054839290611a97908490612592565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216611b415760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610612565b6001600160a01b03821660009081526001602052604090205481811015611bb55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610612565b6001600160a01b0383166000908152600160205260408120838303905560038054849290611be49084906125f3565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600081831115611c6d5760405162461bcd60e51b81526020600482015260096024820152680dad2dc407c40dac2f60bb1b6044820152606401610612565b6000611c7984846125f3565b905080611c895783915050610881565b83611c95826001612592565b611c9e87611f58565b611ca8919061264b565b611cb29190612592565b95945050505050565b600054600160a01b900460ff16611ce45760405162461bcd60e51b81526004016106129061254a565b6040805160208101909152600654815260005b82811015611f07576000848483818110611d1357611d1361231b565b6020908102929092013560008181526008909352604090922054919250506001600160a01b03163314611d975760405162461bcd60e51b815260206004820152602660248201527f5374616b696e6745524332303a20596f7520646f6e2774206f776e2074686973604482015265103a37b5b2b760d11b6064820152608401610612565b6000611da38483610f74565b90508015611db557611db53382611a02565b600082815260086020526040812080546001600160a01b03191690555b336000908152600a6020526040902054811015611e6957336000908152600960209081526040808320848452909152902054831415611e5957336000908152600a6020526040812054611e27906001906125f3565b336000908152600960209081526040808320848452909152808220805486845291832091909155918152905550611e69565b611e628161252f565b9050611dd2565b50336000908152600a60205260408120805491611e858361260a565b9091555050600054604051631b4e583d60e31b8152306004820152336024820152604481018490526001600160a01b039091169063da72c1e890606401600060405180830381600087803b158015611edc57600080fd5b505af1158015611ef0573d6000803e3d6000fd5b50505050505080611f009061252f565b9050611cf7565b50516006555050565b6040516bffffffffffffffffffffffff1941606090811b8216602084015233901b16603482015260009060480160405160208183030381529060405280519060200120905090565b6000611f62611f10565b825160408051602081019390935282015260600160408051601f198184030181529190528051602090910120918290525090565b6000815180845260005b81811015611fbc57602081850181015186830182015201611fa0565b81811115611fce576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006108816020830184611f96565b6001600160a01b038116811461098d57600080fd5b6000806040838503121561201e57600080fd5b823561202981611ff6565b946020939093013593505050565b6000806040838503121561204a57600080fd5b50508035926020909101359150565b6000806020838503121561206c57600080fd5b823567ffffffffffffffff8082111561208457600080fd5b818501915085601f83011261209857600080fd5b8135818111156120a757600080fd5b8660208260051b85010111156120bc57600080fd5b60209290920196919550909350505050565b6000806000606084860312156120e357600080fd5b83356120ee81611ff6565b925060208401356120fe81611ff6565b929592945050506040919091013590565b60006020828403121561212157600080fd5b5035919050565b60006020828403121561213a57600080fd5b813561088181611ff6565b6040516101e0810167ffffffffffffffff8111828210171561217757634e487b7160e01b600052604160045260246000fd5b60405290565b60006020828403121561218f57600080fd5b6040516020810181811067ffffffffffffffff821117156121c057634e487b7160e01b600052604160045260246000fd5b6040529135825250919050565b6000806000606084860312156121e257600080fd5b6121ec858561217d565b95602085013595506040909401359392505050565b801515811461098d57600080fd5b60006020828403121561222157600080fd5b813561088181612201565b6000806040838503121561223f57600080fd5b823561224a81611ff6565b9150602083013561225a81611ff6565b809150509250929050565b6000806040838503121561227857600080fd5b612029848461217d565b600181811c9082168061229657607f821691505b602082108114156122b757634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156122cf57600080fd5b815161088181612201565b60208082526021908201527f436861696e53636f757473457874656e73696f6e3a2061646d696e73206f6e6c6040820152607960f81b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b80516007811061234057600080fd5b919050565b80516008811061234057600080fd5b80516017811061234057600080fd5b80516018811061234057600080fd5b80516020811061234057600080fd5b80516010811061234057600080fd5b80516015811061234057600080fd5b805162ffffff8116811461234057600080fd5b805161ffff8116811461234057600080fd5b60006101e082840312156123d757600080fd5b6123df612145565b6123e883612331565b81526123f660208401612345565b602082015261240760408401612354565b604082015261241860608401612363565b606082015261242960808401612372565b608082015261243a60a08401612381565b60a082015261244b60c08401612390565b60c082015261245c60e08401612390565b60e082015261010061246f81850161239f565b9082015261012061248184820161239f565b9082015261014061249384820161239f565b908201526101606124a584820161239f565b908201526101806124b784820161239f565b908201526101a06124c984820161239f565b908201526101c06124db8482016123b2565b908201529392505050565b634e487b7160e01b600052602160045260246000fd5b60006020828403121561250e57600080fd5b815161088181611ff6565b634e487b7160e01b600052601160045260246000fd5b600060001982141561254357612543612519565b5060010190565b60208082526028908201527f436861696e53636f757473457874656e73696f6e3a2063757272656e746c7920604082015267191a5cd8589b195960c21b606082015260800190565b600082198211156125a5576125a5612519565b500190565b60008160001904831182151516156125c4576125c4612519565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826125ee576125ee6125c9565b500490565b60008282101561260557612605612519565b500390565b60008161261957612619612519565b506000190190565b6040815260006126346040830185611f96565b905060018060a01b03831660208301529392505050565b60008261265a5761265a6125c9565b50069056fea2646970667358221220d3d16e46095b9706bb47a8b8bfd0e7b0ab1df7e8b7f195a218bd2b2cc151f6db64736f6c63430008090033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.