ERC-721
NFT
Overview
Max Total Supply
569 MB
Holders
95
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MBLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BM
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "contracts/IBM.sol"; import "contracts/IHoney.sol"; import "contracts/IPriceStrategy.sol"; import "contracts/IBonusProgram.sol"; import "contracts/IBMSettings.sol"; import "contracts/CCLib.sol"; import "contracts/Validator.sol"; import "contracts/Killswitch.sol"; contract BM is ERC721, IBM, Validator, Killswitch { IHoney private _honey; IPriceStrategy private _priceStrategy; IBonusProgram private _bonusProgramm; IBMSettings private _settings; mapping(uint256 => uint256) private _tokenRank; mapping(address => uint256) private _ownerRank; mapping(address => uint256) private _honeyClaimedAt; uint256 private _tokenNum; uint256 private constant MAX_SUPPLY = 9568; uint256 private _godfatherId = 0; uint256 private _godfatherRank = 0; string private _baseUri; uint256 private _salesStartTimestamp = 0; modifier honey() { require(address(_honey) != address(0), "Missing honey"); _; } modifier sales() { // solhint-disable-next-line not-rely-on-time require(_salesStartTimestamp > 0 && block.timestamp >= _salesStartTimestamp, "sales not started"); _; } constructor(string memory name_, string memory symbol_ , address settingsAddress , address honeyAddress , address priceStrategy , address bonusProgramAddress ) ERC721(name_, symbol_) { setSettings(settingsAddress); setHoney(honeyAddress); setPriceStrategy(priceStrategy); setBonusProgram(bonusProgramAddress); } function _baseURI() internal view virtual override returns (string memory) { return _baseUri; } function setBaseUri(string memory baseUri) external override onlyOwner { _baseUri = baseUri; } function setSettings(address settingsAddress) public override onlyOwner { require(settingsAddress != address(0), "invalid settingsAddress"); _settings = IBMSettings(settingsAddress); } function setHoney(address honeyAddress) public override onlyOwner { require(honeyAddress != address(0), "invalid honeyAddress"); _honey = IHoney(honeyAddress); } function setPriceStrategy(address priceStrategyAddress) public override onlyOwner { require(priceStrategyAddress != address(0), "invalid priceStrategyAddress"); _priceStrategy = IPriceStrategy(priceStrategyAddress); } function setBonusProgram(address bonusProgramAddress) public override onlyOwner { _bonusProgramm = IBonusProgram(bonusProgramAddress); } function setSalesStartAt(uint256 timestamp) external override onlyOwner { _salesStartTimestamp = timestamp; } function totalSupply() public override view returns (uint256) { return _tokenNum; } function getPrice() public view override returns (uint256) { return _priceStrategy.getPrice(_tokenNum); } function getBearLevel(uint256 tokenId) external view override returns (uint256) { return _tokenRank[tokenId] + 1; } function getBearEfficiency(uint256 tokenId) external view override returns (uint256) { return _settings.getBaseEfficiency() + _settings.getEfficiencyPerLevel() * _tokenRank[tokenId]; } function getOwnerEfficiency(address owner) public view override returns (uint256) { return balanceOf(owner) * _settings.getBaseEfficiency() + _settings.getEfficiencyPerLevel() * _ownerRank[owner]; } function getHoneyAvailableForClaimAt(uint256 _ts) external view override returns (uint256) { return _getHoneyAvailableForClaimAt(msg.sender, _ts); } function getHoneyAvailableForClaimAt(address owner, uint256 _ts) external view override returns (uint256) { return _getHoneyAvailableForClaimAt(owner, _ts); } function claimHoney() external override { _claimHoneyFor(msg.sender); } function levelUp(uint256 tokenId, uint256 honeyValue) external override { _levelUp(msg.sender, tokenId, honeyValue); } function getLevelupPrice(uint256 currentRank) public view override returns (uint256) { return _settings.getLevelupPrice(currentRank); } function getSalesStartAt() external view override returns (uint256) { return _salesStartTimestamp; } function _getHoneyAvailableForClaimAt(address owner, uint256 _ts) internal view returns (uint256) { if (_honeyClaimedAt[owner] == 0 || _ts <= _honeyClaimedAt[owner]) { return 0; } uint256 elapsed = _ts - _honeyClaimedAt[owner]; return elapsed * getOwnerEfficiency(owner) * _settings.getGatherFactor(); } function _claimHoneyFor(address claimFor) internal honey { require(claimFor != address(0), "invalid claimFor"); // solhint-disable-next-line not-rely-on-time uint256 _now = block.timestamp; uint256 amount = _getHoneyAvailableForClaimAt(claimFor, _now); if (amount > 0) { _honey.mint(claimFor, amount); } if (_now > _honeyClaimedAt[claimFor]) { _honeyClaimedAt[claimFor] = _now; } } function _levelUp(address owner, uint256 tokenId, uint256 honeyValue) internal honey { require(owner != address(0), "invalid owner address"); require(owner == ownerOf(tokenId), "not an owner"); uint256 price = getLevelupPrice(_tokenRank[tokenId]); require(price == honeyValue, "price doesn't match"); _claimHoneyFor(owner); require(price <= _honey.balanceOf(owner), "not enough honey"); _honey.burn(owner, price); _tokenRank[tokenId]++; _ownerRank[owner]++; if (_tokenRank[tokenId] > _godfatherRank) { uint256 prevId = _godfatherId; _godfatherRank = _tokenRank[tokenId]; _godfatherId = tokenId; if (prevId != _godfatherId) { // solhint-disable-next-line not-rely-on-time emit NewGodFather(owner, tokenId, _godfatherRank, block.timestamp); } } } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { uint256 tokenRank = _tokenRank[tokenId]; if (from != address(0)) { _claimHoneyFor(from); _ownerRank[from] -= tokenRank; } if (to != address(0)) { _claimHoneyFor(to); _ownerRank[to] += tokenRank; } } function mint(uint256 amount) external override payable killswitch sales { require(msg.value == getPrice() * amount, "value doesn't match"); _mintImpl(msg.sender, amount); if (address(_bonusProgramm) != address(0)) { _bonusProgramm.onPurchase(msg.sender, amount); } } function _mintImpl(address for_, uint256 amount) private { require(amount > 0 && amount <= 20, "can't mint 0 or above 20 per tx"); require(_tokenNum + amount <= MAX_SUPPLY, "can't mint above MAX_SUPPLY"); uint256 _initial = _tokenNum + 1; for (uint256 i = 0; i < amount; ++i) { _safeMint(for_, _initial + i); } _tokenNum += amount; } function validatorMintOne(address mintFor) external override onlyValidator killswitch { _mintImpl(mintFor, 1); } function validatorMint(address mintFor, uint256 tokenId) external override onlyValidator killswitch { require(mintFor != address(0), "invalid mintFor"); require(tokenId <= _tokenNum, "not allowed: totalSupply"); _safeMint(mintFor, tokenId); } function validatorBurn(uint256 tokenId) external override onlyValidator killswitch { _burn(tokenId); } function withdraw() external override onlyOwner { address payable cbA = payable(_settings.getCashbackAddress()); if (cbA != address(0)) { uint256 cbP = _settings.getCashbackPercent(); uint256 cbValue = address(this).balance * cbP / 100; if (cbValue > 0) { cbA.transfer(cbValue); } } uint256 value = address(this).balance; if (value > 0) { address payable to = payable(owner()); to.transfer(value); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "contracts/IValidator.sol"; import "contracts/IKillswitch.sol"; interface IBM is IERC721, IERC721Metadata, IValidator, IKillswitch { event NewGodFather(address owner, uint256 tokenId, uint256 level, uint256 timestamp); function setBaseUri(string memory baseUri) external; function setSettings(address settingsAddress) external; function setHoney(address honeyAddress) external; function setPriceStrategy(address priceStrategyAddress) external; function setBonusProgram(address bonusProgramAddress) external; function setSalesStartAt(uint256 timestamp) external; function totalSupply() external view returns (uint256); function getPrice() external view returns (uint256); function getBearLevel(uint256 tokenId) external view returns (uint256); function getBearEfficiency(uint256 tokenId) external view returns (uint256); function getOwnerEfficiency(address owner) external view returns (uint256); function getHoneyAvailableForClaimAt(uint256 _ts) external view returns (uint256); function getHoneyAvailableForClaimAt(address owner, uint256 _ts) external view returns (uint256); function getLevelupPrice(uint256 currentRank) external view returns (uint256); function getSalesStartAt() external view returns (uint256); function mint(uint256 amount) external payable; function claimHoney() external; function levelUp(uint256 tokenId, uint256 honeyValue) external; function validatorMintOne(address mintFor) external; function validatorMint(address mintFor, uint256 tokenId) external; function validatorBurn(uint256 tokenId) external; function withdraw() external; }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "contracts/IValidator.sol"; interface IHoney is IERC20, IValidator { function mint(address for_, uint256 amount) external; function burn(address for_, uint256 amount) external; }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; interface IPriceStrategy { function getPrice(uint256 num) external view returns (uint256); function setPrice(uint256 initial, uint256 step) external; }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "contracts/IValidator.sol"; interface IBonusProgram is IValidator { function description() external pure returns (string memory); function bonusAmount(uint256 num) external pure returns (uint256); function onPurchase(address owner, uint256 num) external; }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; interface IBMSettings { function getBaseEfficiency() external view returns (uint256); function getEfficiencyPerLevel() external view returns (uint256); function getGatherFactor() external view returns (uint256); function getLevelupPrice(uint256 rank) external view returns (uint256); function getCashbackPercent() external view returns (uint256); function getCashbackAddress() external view returns (address); function setBaseEfficiency(uint256 efficiency) external; function setEfficiencyPerLevel(uint256 efficiency) external; function setGatherFactorBase(uint256 base) external; function setLevelupPriceBaseE18(uint256 base) external; function setLevelupPriceFactor(uint256 factor) external; function setCashbackPercent(uint256 percent) external; function setCashbackAddress(address address_) external; }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; library CCLib { function join2(string memory a, string memory b) internal pure returns (string memory) { return string(abi.encodePacked(a, b)); } function fmulE18(uint256 x, uint256 y) internal pure returns (uint256) { return x * y / 1e18; } function fpowerE18(uint256 x, uint256 power) internal pure returns (uint256) { if (power == 0) return 1e18; uint256 temp = fpowerE18(x, power / 2); if ((power % 2) == 0) return fmulE18(temp, temp); else return fmulE18(x, fmulE18(temp, temp)); } }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "contracts/IValidator.sol"; contract Validator is Ownable, IValidator { mapping (address => bool) private _validators; modifier onlyValidator() { require(_validators[msg.sender], "not a validator"); _; } function allowValidator(address validatorAddress) public override onlyOwner { require(!_validators[validatorAddress], "already a validator"); _validators[validatorAddress] = true; } function disallowValidator(address validatorAddress) public override onlyOwner { require(_validators[validatorAddress], "already not a validator"); _validators[validatorAddress] = false; } }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "contracts/IKillswitch.sol"; contract Killswitch is Ownable, IKillswitch { bool private _enabled = false; modifier killswitch() { require(!!_enabled, "contract disabled"); _; } function isEnabled() external view override returns (bool) { return _enabled; } function enableContract() public override onlyOwner { _enabled = true; } function disableContract() public override onlyOwner { _enabled = false; } }
// 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 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // 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 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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: Unlicense pragma solidity ^0.8.0; interface IValidator { function allowValidator(address validatorAddress) external; function disallowValidator(address validatorAddress) external; }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; interface IKillswitch { function isEnabled() external view returns (bool); function enableContract() external; function disableContract() external; }
// 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 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "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":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"settingsAddress","type":"address"},{"internalType":"address","name":"honeyAddress","type":"address"},{"internalType":"address","name":"priceStrategy","type":"address"},{"internalType":"address","name":"bonusProgramAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"level","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"NewGodFather","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":[{"internalType":"address","name":"validatorAddress","type":"address"}],"name":"allowValidator","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":[],"name":"claimHoney","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validatorAddress","type":"address"}],"name":"disallowValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableContract","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBearEfficiency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBearLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"getHoneyAvailableForClaimAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"_ts","type":"uint256"}],"name":"getHoneyAvailableForClaimAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"currentRank","type":"uint256"}],"name":"getLevelupPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getOwnerEfficiency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSalesStartAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"honeyValue","type":"uint256"}],"name":"levelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"bonusProgramAddress","type":"address"}],"name":"setBonusProgram","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"honeyAddress","type":"address"}],"name":"setHoney","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"priceStrategyAddress","type":"address"}],"name":"setPriceStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"setSalesStartAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"settingsAddress","type":"address"}],"name":"setSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"validatorBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintFor","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"validatorMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintFor","type":"address"}],"name":"validatorMintOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526008805460ff191690556000601081905560118190556013553480156200002a57600080fd5b506040516200382c3803806200382c8339810160408190526200004d9162000563565b85518690869062000066906000906020850190620003ed565b5080516200007c906001906020840190620003ed565b5050506200009962000093620000d160201b60201c565b620000d5565b620000a48462000127565b620000af83620001f0565b620000ba82620002bb565b620000c58162000380565b50505050505062000666565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620001765760405162461bcd60e51b815260206004820181905260248201526000805160206200380c83398151915260448201526064015b60405180910390fd5b6001600160a01b038116620001ce5760405162461bcd60e51b815260206004820152601760248201527f696e76616c69642073657474696e67734164647265737300000000000000000060448201526064016200016d565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146200023b5760405162461bcd60e51b815260206004820181905260248201526000805160206200380c83398151915260448201526064016200016d565b6001600160a01b038116620002935760405162461bcd60e51b815260206004820152601460248201527f696e76616c696420686f6e65794164647265737300000000000000000000000060448201526064016200016d565b600880546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6006546001600160a01b03163314620003065760405162461bcd60e51b815260206004820181905260248201526000805160206200380c83398151915260448201526064016200016d565b6001600160a01b0381166200035e5760405162461bcd60e51b815260206004820152601c60248201527f696e76616c69642070726963655374726174656779416464726573730000000060448201526064016200016d565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314620003cb5760405162461bcd60e51b815260206004820181905260248201526000805160206200380c83398151915260448201526064016200016d565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b828054620003fb9062000613565b90600052602060002090601f0160209004810192826200041f57600085556200046a565b82601f106200043a57805160ff19168380011785556200046a565b828001600101855582156200046a579182015b828111156200046a5782518255916020019190600101906200044d565b50620004789291506200047c565b5090565b5b808211156200047857600081556001016200047d565b80516001600160a01b0381168114620004ab57600080fd5b919050565b600082601f830112620004c1578081fd5b81516001600160401b0380821115620004de57620004de62000650565b604051601f8301601f19908116603f0116810190828211818310171562000509576200050962000650565b8160405283815260209250868385880101111562000525578485fd5b8491505b8382101562000548578582018301518183018401529082019062000529565b838211156200055957848385830101525b9695505050505050565b60008060008060008060c087890312156200057c578182fd5b86516001600160401b038082111562000593578384fd5b620005a18a838b01620004b0565b97506020890151915080821115620005b7578384fd5b50620005c689828a01620004b0565b955050620005d76040880162000493565b9350620005e76060880162000493565b9250620005f76080880162000493565b91506200060760a0880162000493565b90509295509295509295565b600181811c908216806200062857607f821691505b602082108114156200064a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61319680620006766000396000f3fe60806040526004361061025c5760003560e01c8063798c578d11610144578063a22cb465116100b6578063be76f89d1161007a578063be76f89d146106c6578063c87b56dd146106e6578063d058946d14610706578063e985e9c514610726578063f2fde38b14610746578063f8fb61611461076657600080fd5b8063a22cb46514610631578063a7dc2bd414610651578063af8cb76214610671578063b88d4fde14610691578063bda4e025146106b157600080fd5b806395d89b411161010857806395d89b41146105945780639733c230146105a957806398d5fdca146105c9578063a01d3c2c146105de578063a0712d68146105fe578063a0bcfc7f1461061157600080fd5b8063798c578d1461050c578063891d41341461052c578063894ba8331461054c5780638da5cb5b1461056157806390612b3c1461057f57600080fd5b80633ccfd60b116101dd5780635226dc93116101a15780635226dc931461045f57806356c4eab11461047f5780636352211e1461049f5780636aa633b6146104bf57806370a08231146104d7578063715018a6146104f757600080fd5b80633ccfd60b146103ca57806342842e0e146103df57806345349176146103ff5780634aea2f5f1461041f5780634b2acaed1461043f57600080fd5b806318160ddd1161022457806318160ddd1461034057806323b872dd146103555780632d81a047146103755780633120684a14610395578063367edd32146103b557600080fd5b806301ffc9a714610261578063027508581461029657806306fdde03146102c4578063081812fc146102e6578063095ea7b31461031e575b600080fd5b34801561026d57600080fd5b5061028161027c366004612d55565b610786565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102b66102b1366004612dd3565b6107d8565b60405190815260200161028d565b3480156102d057600080fd5b506102d9610854565b60405161028d9190612ebc565b3480156102f257600080fd5b50610306610301366004612dd3565b6108e6565b6040516001600160a01b03909116815260200161028d565b34801561032a57600080fd5b5061033e610339366004612d2a565b610980565b005b34801561034c57600080fd5b50600f546102b6565b34801561036157600080fd5b5061033e610370366004612c3c565b610a96565b34801561038157600080fd5b5061033e610390366004612dd3565b610ac7565b3480156103a157600080fd5b506102b66103b0366004612dd3565b610b24565b3480156103c157600080fd5b5061033e610b3e565b3480156103d657600080fd5b5061033e610b77565b3480156103eb57600080fd5b5061033e6103fa366004612c3c565b610d64565b34801561040b57600080fd5b5061033e61041a366004612bcc565b610d7f565b34801561042b57600080fd5b506102b661043a366004612dd3565b610e21565b34801561044b57600080fd5b5061033e61045a366004612dd3565b610f45565b34801561046b57600080fd5b5061033e61047a366004612e03565b610f74565b34801561048b57600080fd5b5061033e61049a366004612bcc565b610f7f565b3480156104ab57600080fd5b506103066104ba366004612dd3565b611032565b3480156104cb57600080fd5b5060085460ff16610281565b3480156104e357600080fd5b506102b66104f2366004612bcc565b6110a9565b34801561050357600080fd5b5061033e611130565b34801561051857600080fd5b5061033e610527366004612d2a565b611166565b34801561053857600080fd5b5061033e610547366004612bcc565b61125b565b34801561055857600080fd5b5061033e611308565b34801561056d57600080fd5b506006546001600160a01b0316610306565b34801561058b57600080fd5b506013546102b6565b3480156105a057600080fd5b506102d961133e565b3480156105b557600080fd5b5061033e6105c4366004612bcc565b61134d565b3480156105d557600080fd5b506102b6611399565b3480156105ea57600080fd5b5061033e6105f9366004612bcc565b61141f565b61033e61060c366004612dd3565b6114c1565b34801561061d57600080fd5b5061033e61062c366004612d8d565b611610565b34801561063d57600080fd5b5061033e61064c366004612cf9565b61164d565b34801561065d57600080fd5b506102b661066c366004612bcc565b611658565b34801561067d57600080fd5b5061033e61068c366004612bcc565b611789565b34801561069d57600080fd5b5061033e6106ac366004612c7c565b611828565b3480156106bd57600080fd5b5061033e61185a565b3480156106d257600080fd5b5061033e6106e1366004612bcc565b611863565b3480156106f257600080fd5b506102d9610701366004612dd3565b6118bf565b34801561071257600080fd5b506102b6610721366004612dd3565b61199a565b34801561073257600080fd5b50610281610741366004612c04565b6119a6565b34801561075257600080fd5b5061033e610761366004612bcc565b6119d4565b34801561077257600080fd5b506102b6610781366004612d2a565b611a6c565b60006001600160e01b031982166380ac58cd60e01b14806107b757506001600160e01b03198216635b5e139f60e01b145b806107d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b600b54604051624ea10b60e31b8152600481018390526000916001600160a01b03169063027508589060240160206040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d29190612deb565b60606000805461086390613089565b80601f016020809104026020016040519081016040528092919081815260200182805461088f90613089565b80156108dc5780601f106108b1576101008083540402835291602001916108dc565b820191906000526020600020905b8154815290600101906020018083116108bf57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061098b82611032565b9050806001600160a01b0316836001600160a01b031614156109f95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161095b565b336001600160a01b0382161480610a155750610a1581336119a6565b610a875760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161095b565b610a918383611a78565b505050565b610aa03382611ae6565b610abc5760405162461bcd60e51b815260040161095b90612f81565b610a91838383611bbd565b3360009081526007602052604090205460ff16610af65760405162461bcd60e51b815260040161095b90612fd2565b60085460ff16610b185760405162461bcd60e51b815260040161095b90612f21565b610b2181611d68565b50565b6000818152600c60205260408120546107d2906001612ffb565b6006546001600160a01b03163314610b685760405162461bcd60e51b815260040161095b90612f4c565b6008805460ff19166001179055565b6006546001600160a01b03163314610ba15760405162461bcd60e51b815260040161095b90612f4c565b600b5460408051635a27d16360e01b815290516000926001600160a01b031691635a27d163916004808301926020929190829003018186803b158015610be657600080fd5b505afa158015610bfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1e9190612be8565b90506001600160a01b03811615610d0957600b546040805163a9b73f8160e01b815290516000926001600160a01b03169163a9b73f81916004808301926020929190829003018186803b158015610c7457600080fd5b505afa158015610c88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cac9190612deb565b905060006064610cbc8347613027565b610cc69190613013565b90508015610d06576040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610d04573d6000803e3d6000fd5b505b50505b478015610d60576000610d246006546001600160a01b031690565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610d5d573d6000803e3d6000fd5b50505b5050565b610a9183838360405180602001604052806000815250611828565b6006546001600160a01b03163314610da95760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b038116610dff5760405162461bcd60e51b815260206004820152601c60248201527f696e76616c696420707269636553747261746567794164647265737300000000604482015260640161095b565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600c6020908152604080832054600b548251639341714960e01b8152925191936001600160a01b039091169263934171499260048083019392829003018186803b158015610e7357600080fd5b505afa158015610e87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eab9190612deb565b610eb59190613027565b600b60009054906101000a90046001600160a01b03166001600160a01b031663f2601ea16040518163ffffffff1660e01b815260040160206040518083038186803b158015610f0357600080fd5b505afa158015610f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3b9190612deb565b6107d29190612ffb565b6006546001600160a01b03163314610f6f5760405162461bcd60e51b815260040161095b90612f4c565b601355565b610d60338383611e0f565b6006546001600160a01b03163314610fa95760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b03811660009081526007602052604090205460ff166110115760405162461bcd60e51b815260206004820152601760248201527f616c7265616479206e6f7420612076616c696461746f72000000000000000000604482015260640161095b565b6001600160a01b03166000908152600760205260409020805460ff19169055565b6000818152600260205260408120546001600160a01b0316806107d25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161095b565b60006001600160a01b0382166111145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161095b565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461115a5760405162461bcd60e51b815260040161095b90612f4c565b6111646000612176565b565b3360009081526007602052604090205460ff166111955760405162461bcd60e51b815260040161095b90612fd2565b60085460ff166111b75760405162461bcd60e51b815260040161095b90612f21565b6001600160a01b0382166111ff5760405162461bcd60e51b815260206004820152600f60248201526e34b73b30b634b21036b4b73a2337b960891b604482015260640161095b565b600f548111156112515760405162461bcd60e51b815260206004820152601860248201527f6e6f7420616c6c6f7765643a20746f74616c537570706c790000000000000000604482015260640161095b565b610d6082826121c8565b6006546001600160a01b031633146112855760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b03811660009081526007602052604090205460ff16156112e45760405162461bcd60e51b815260206004820152601360248201527230b63932b0b23c9030903b30b634b230ba37b960691b604482015260640161095b565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6006546001600160a01b031633146113325760405162461bcd60e51b815260040161095b90612f4c565b6008805460ff19169055565b60606001805461086390613089565b6006546001600160a01b031633146113775760405162461bcd60e51b815260040161095b90612f4c565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600954600f54604051630e75722360e41b815260048101919091526000916001600160a01b03169063e75722309060240160206040518083038186803b1580156113e257600080fd5b505afa1580156113f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141a9190612deb565b905090565b6006546001600160a01b031633146114495760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b03811661149f5760405162461bcd60e51b815260206004820152601760248201527f696e76616c69642073657474696e677341646472657373000000000000000000604482015260640161095b565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60085460ff166114e35760405162461bcd60e51b815260040161095b90612f21565b60006013541180156114f757506013544210155b6115375760405162461bcd60e51b81526020600482015260116024820152701cd85b195cc81b9bdd081cdd185c9d1959607a1b604482015260640161095b565b80611540611399565b61154a9190613027565b341461158e5760405162461bcd60e51b81526020600482015260136024820152720ecc2d8eaca40c8decae6dc4ee840dac2e8c6d606b1b604482015260640161095b565b61159833826121e2565b600a546001600160a01b031615610b2157600a546040516339a0fa8160e01b8152336004820152602481018390526001600160a01b03909116906339a0fa8190604401600060405180830381600087803b1580156115f557600080fd5b505af1158015611609573d6000803e3d6000fd5b5050505050565b6006546001600160a01b0316331461163a5760405162461bcd60e51b815260040161095b90612f4c565b8051610d60906012906020840190612abd565b610d603383836122fc565b6001600160a01b038082166000908152600d6020908152604080832054600b548251639341714960e01b815292519495919491169263934171499260048082019391829003018186803b1580156116ae57600080fd5b505afa1580156116c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e69190612deb565b6116f09190613027565b600b60009054906101000a90046001600160a01b03166001600160a01b031663f2601ea16040518163ffffffff1660e01b815260040160206040518083038186803b15801561173e57600080fd5b505afa158015611752573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117769190612deb565b61177f846110a9565b610f3b9190613027565b6006546001600160a01b031633146117b35760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b0381166118005760405162461bcd60e51b8152602060048201526014602482015273696e76616c696420686f6e65794164647265737360601b604482015260640161095b565b600880546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6118323383611ae6565b61184e5760405162461bcd60e51b815260040161095b90612f81565b610d5d848484846123cb565b611164336123fe565b3360009081526007602052604090205460ff166118925760405162461bcd60e51b815260040161095b90612fd2565b60085460ff166118b45760405162461bcd60e51b815260040161095b90612f21565b610b218160016121e2565b6000818152600260205260409020546060906001600160a01b031661193e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161095b565b6000611948612554565b905060008151116119685760405180602001604052806000815250611993565b8061197284612563565b604051602001611983929190612e50565b6040516020818303038152906040525b9392505050565b60006107d2338361267d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146119fe5760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b038116611a635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161095b565b610b2181612176565b6000611993838361267d565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611aad82611032565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611b5f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161095b565b6000611b6a83611032565b9050806001600160a01b0316846001600160a01b03161480611ba55750836001600160a01b0316611b9a846108e6565b6001600160a01b0316145b80611bb55750611bb581856119a6565b949350505050565b826001600160a01b0316611bd082611032565b6001600160a01b031614611c385760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161095b565b6001600160a01b038216611c9a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161095b565b611ca583838361278f565b611cb0600082611a78565b6001600160a01b0383166000908152600360205260408120805460019290611cd9908490613046565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d07908490612ffb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611d7382611032565b9050611d818160008461278f565b611d8c600083611a78565b6001600160a01b0381166000908152600360205260408120805460019290611db5908490613046565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60085461010090046001600160a01b0316611e5c5760405162461bcd60e51b815260206004820152600d60248201526c4d697373696e6720686f6e657960981b604482015260640161095b565b6001600160a01b038316611eaa5760405162461bcd60e51b8152602060048201526015602482015274696e76616c6964206f776e6572206164647265737360581b604482015260640161095b565b611eb382611032565b6001600160a01b0316836001600160a01b031614611f025760405162461bcd60e51b815260206004820152600c60248201526b3737ba1030b71037bbb732b960a11b604482015260640161095b565b6000828152600c6020526040812054611f1a906107d8565b9050818114611f615760405162461bcd60e51b81526020600482015260136024820152720e0e4d2c6ca40c8decae6dc4ee840dac2e8c6d606b1b604482015260640161095b565b611f6a846123fe565b6008546040516370a0823160e01b81526001600160a01b038681166004830152610100909204909116906370a082319060240160206040518083038186803b158015611fb557600080fd5b505afa158015611fc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fed9190612deb565b81111561202f5760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f75676820686f6e657960801b604482015260640161095b565b600854604051632770a7eb60e21b81526001600160a01b0386811660048301526024820184905261010090920490911690639dc29fac90604401600060405180830381600087803b15801561208357600080fd5b505af1158015612097573d6000803e3d6000fd5b5050506000848152600c6020526040812080549250906120b6836130c4565b90915550506001600160a01b0384166000908152600d602052604081208054916120df836130c4565b90915550506011546000848152600c60205260409020541115610d5d57601080546000858152600c60205260409020546011559084905583811461160957601154604080516001600160a01b03881681526020810187905280820192909252426060830152517f4972f8f0e1bbdee18dfb13684924a3a8dd7f23e05138f654cfd95d981889fb979181900360800190a15050505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610d6082826040518060200160405280600081525061282f565b6000811180156121f3575060148111155b61223f5760405162461bcd60e51b815260206004820152601f60248201527f63616e2774206d696e742030206f722061626f76652032302070657220747800604482015260640161095b565b61256081600f546122509190612ffb565b111561229e5760405162461bcd60e51b815260206004820152601b60248201527f63616e2774206d696e742061626f7665204d41585f535550504c590000000000604482015260640161095b565b6000600f5460016122af9190612ffb565b905060005b828110156122df576122cf846122ca8385612ffb565b6121c8565b6122d8816130c4565b90506122b4565b5081600f60008282546122f29190612ffb565b9091555050505050565b816001600160a01b0316836001600160a01b0316141561235e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161095b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6123d6848484611bbd565b6123e284848484612862565b610d5d5760405162461bcd60e51b815260040161095b90612ecf565b60085461010090046001600160a01b031661244b5760405162461bcd60e51b815260206004820152600d60248201526c4d697373696e6720686f6e657960981b604482015260640161095b565b6001600160a01b0381166124945760405162461bcd60e51b815260206004820152601060248201526f34b73b30b634b21031b630b4b6a337b960811b604482015260640161095b565b4260006124a1838361267d565b90508015612516576008546040516340c10f1960e01b81526001600160a01b03858116600483015260248201849052610100909204909116906340c10f1990604401600060405180830381600087803b1580156124fd57600080fd5b505af1158015612511573d6000803e3d6000fd5b505050505b6001600160a01b0383166000908152600e6020526040902054821115610a9157506001600160a01b03919091166000908152600e6020526040902055565b60606012805461086390613089565b6060816125875750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125b1578061259b816130c4565b91506125aa9050600a83613013565b915061258b565b60008167ffffffffffffffff8111156125da57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612604576020820181803683370190505b5090505b8415611bb557612619600183613046565b9150612626600a866130df565b612631906030612ffb565b60f81b81838151811061265457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612676600a86613013565b9450612608565b6001600160a01b0382166000908152600e602052604081205415806126ba57506001600160a01b0383166000908152600e60205260409020548211155b156126c7575060006107d2565b6001600160a01b0383166000908152600e60205260408120546126ea9084613046565b9050600b60009054906101000a90046001600160a01b03166001600160a01b031663b05c4cd06040518163ffffffff1660e01b815260040160206040518083038186803b15801561273a57600080fd5b505afa15801561274e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127729190612deb565b61277b85611658565b6127859083613027565b611bb59190613027565b6000818152600c60205260409020546001600160a01b038416156127e4576127b6846123fe565b6001600160a01b0384166000908152600d6020526040812080548392906127de908490613046565b90915550505b6001600160a01b03831615610d5d576127fc836123fe565b6001600160a01b0383166000908152600d602052604081208054839290612824908490612ffb565b909155505050505050565b612839838361296f565b6128466000848484612862565b610a915760405162461bcd60e51b815260040161095b90612ecf565b60006001600160a01b0384163b1561296457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906128a6903390899088908890600401612e7f565b602060405180830381600087803b1580156128c057600080fd5b505af19250505080156128f0575060408051601f3d908101601f191682019092526128ed91810190612d71565b60015b61294a573d80801561291e576040519150601f19603f3d011682016040523d82523d6000602084013e612923565b606091505b5080516129425760405162461bcd60e51b815260040161095b90612ecf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bb5565b506001949350505050565b6001600160a01b0382166129c55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161095b565b6000818152600260205260409020546001600160a01b031615612a2a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161095b565b612a366000838361278f565b6001600160a01b0382166000908152600360205260408120805460019290612a5f908490612ffb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612ac990613089565b90600052602060002090601f016020900481019282612aeb5760008555612b31565b82601f10612b0457805160ff1916838001178555612b31565b82800160010185558215612b31579182015b82811115612b31578251825591602001919060010190612b16565b50612b3d929150612b41565b5090565b5b80821115612b3d5760008155600101612b42565b600067ffffffffffffffff80841115612b7157612b7161311f565b604051601f8501601f19908116603f01168101908282118183101715612b9957612b9961311f565b81604052809350858152868686011115612bb257600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612bdd578081fd5b813561199381613135565b600060208284031215612bf9578081fd5b815161199381613135565b60008060408385031215612c16578081fd5b8235612c2181613135565b91506020830135612c3181613135565b809150509250929050565b600080600060608486031215612c50578081fd5b8335612c5b81613135565b92506020840135612c6b81613135565b929592945050506040919091013590565b60008060008060808587031215612c91578081fd5b8435612c9c81613135565b93506020850135612cac81613135565b925060408501359150606085013567ffffffffffffffff811115612cce578182fd5b8501601f81018713612cde578182fd5b612ced87823560208401612b56565b91505092959194509250565b60008060408385031215612d0b578182fd5b8235612d1681613135565b915060208301358015158114612c31578182fd5b60008060408385031215612d3c578182fd5b8235612d4781613135565b946020939093013593505050565b600060208284031215612d66578081fd5b81356119938161314a565b600060208284031215612d82578081fd5b81516119938161314a565b600060208284031215612d9e578081fd5b813567ffffffffffffffff811115612db4578182fd5b8201601f81018413612dc4578182fd5b611bb584823560208401612b56565b600060208284031215612de4578081fd5b5035919050565b600060208284031215612dfc578081fd5b5051919050565b60008060408385031215612e15578182fd5b50508035926020909101359150565b60008151808452612e3c81602086016020860161305d565b601f01601f19169290920160200192915050565b60008351612e6281846020880161305d565b835190830190612e7681836020880161305d565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612eb290830184612e24565b9695505050505050565b6020815260006119936020830184612e24565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526011908201527018dbdb9d1c9858dd08191a5cd8589b1959607a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e3737ba1030903b30b634b230ba37b960891b604082015260600190565b6000821982111561300e5761300e6130f3565b500190565b60008261302257613022613109565b500490565b6000816000190483118215151615613041576130416130f3565b500290565b600082821015613058576130586130f3565b500390565b60005b83811015613078578181015183820152602001613060565b83811115610d5d5750506000910152565b600181811c9082168061309d57607f821691505b602082108114156130be57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130d8576130d86130f3565b5060010190565b6000826130ee576130ee613109565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b2157600080fd5b6001600160e01b031981168114610b2157600080fdfea26469706673582212206c0aabf1d2bb230a7c9611fe4f0be4e21f26a8c6dd86ea2bad399240f41e63cb64736f6c634300080400334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000003b845dba28b3922cea43ff85c35a34bf71929ebd000000000000000000000000d093f2634286afbc9d728c63ebc0d69f7d6cfc1a0000000000000000000000005604d3f5c78e5ce9762ad8acea254956f0c087d6000000000000000000000000f9b3bf8d6cd4703a038e03c559a2452fb1d38867000000000000000000000000000000000000000000000000000000000000000a4d6166696142656172730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d42000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061025c5760003560e01c8063798c578d11610144578063a22cb465116100b6578063be76f89d1161007a578063be76f89d146106c6578063c87b56dd146106e6578063d058946d14610706578063e985e9c514610726578063f2fde38b14610746578063f8fb61611461076657600080fd5b8063a22cb46514610631578063a7dc2bd414610651578063af8cb76214610671578063b88d4fde14610691578063bda4e025146106b157600080fd5b806395d89b411161010857806395d89b41146105945780639733c230146105a957806398d5fdca146105c9578063a01d3c2c146105de578063a0712d68146105fe578063a0bcfc7f1461061157600080fd5b8063798c578d1461050c578063891d41341461052c578063894ba8331461054c5780638da5cb5b1461056157806390612b3c1461057f57600080fd5b80633ccfd60b116101dd5780635226dc93116101a15780635226dc931461045f57806356c4eab11461047f5780636352211e1461049f5780636aa633b6146104bf57806370a08231146104d7578063715018a6146104f757600080fd5b80633ccfd60b146103ca57806342842e0e146103df57806345349176146103ff5780634aea2f5f1461041f5780634b2acaed1461043f57600080fd5b806318160ddd1161022457806318160ddd1461034057806323b872dd146103555780632d81a047146103755780633120684a14610395578063367edd32146103b557600080fd5b806301ffc9a714610261578063027508581461029657806306fdde03146102c4578063081812fc146102e6578063095ea7b31461031e575b600080fd5b34801561026d57600080fd5b5061028161027c366004612d55565b610786565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102b66102b1366004612dd3565b6107d8565b60405190815260200161028d565b3480156102d057600080fd5b506102d9610854565b60405161028d9190612ebc565b3480156102f257600080fd5b50610306610301366004612dd3565b6108e6565b6040516001600160a01b03909116815260200161028d565b34801561032a57600080fd5b5061033e610339366004612d2a565b610980565b005b34801561034c57600080fd5b50600f546102b6565b34801561036157600080fd5b5061033e610370366004612c3c565b610a96565b34801561038157600080fd5b5061033e610390366004612dd3565b610ac7565b3480156103a157600080fd5b506102b66103b0366004612dd3565b610b24565b3480156103c157600080fd5b5061033e610b3e565b3480156103d657600080fd5b5061033e610b77565b3480156103eb57600080fd5b5061033e6103fa366004612c3c565b610d64565b34801561040b57600080fd5b5061033e61041a366004612bcc565b610d7f565b34801561042b57600080fd5b506102b661043a366004612dd3565b610e21565b34801561044b57600080fd5b5061033e61045a366004612dd3565b610f45565b34801561046b57600080fd5b5061033e61047a366004612e03565b610f74565b34801561048b57600080fd5b5061033e61049a366004612bcc565b610f7f565b3480156104ab57600080fd5b506103066104ba366004612dd3565b611032565b3480156104cb57600080fd5b5060085460ff16610281565b3480156104e357600080fd5b506102b66104f2366004612bcc565b6110a9565b34801561050357600080fd5b5061033e611130565b34801561051857600080fd5b5061033e610527366004612d2a565b611166565b34801561053857600080fd5b5061033e610547366004612bcc565b61125b565b34801561055857600080fd5b5061033e611308565b34801561056d57600080fd5b506006546001600160a01b0316610306565b34801561058b57600080fd5b506013546102b6565b3480156105a057600080fd5b506102d961133e565b3480156105b557600080fd5b5061033e6105c4366004612bcc565b61134d565b3480156105d557600080fd5b506102b6611399565b3480156105ea57600080fd5b5061033e6105f9366004612bcc565b61141f565b61033e61060c366004612dd3565b6114c1565b34801561061d57600080fd5b5061033e61062c366004612d8d565b611610565b34801561063d57600080fd5b5061033e61064c366004612cf9565b61164d565b34801561065d57600080fd5b506102b661066c366004612bcc565b611658565b34801561067d57600080fd5b5061033e61068c366004612bcc565b611789565b34801561069d57600080fd5b5061033e6106ac366004612c7c565b611828565b3480156106bd57600080fd5b5061033e61185a565b3480156106d257600080fd5b5061033e6106e1366004612bcc565b611863565b3480156106f257600080fd5b506102d9610701366004612dd3565b6118bf565b34801561071257600080fd5b506102b6610721366004612dd3565b61199a565b34801561073257600080fd5b50610281610741366004612c04565b6119a6565b34801561075257600080fd5b5061033e610761366004612bcc565b6119d4565b34801561077257600080fd5b506102b6610781366004612d2a565b611a6c565b60006001600160e01b031982166380ac58cd60e01b14806107b757506001600160e01b03198216635b5e139f60e01b145b806107d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b600b54604051624ea10b60e31b8152600481018390526000916001600160a01b03169063027508589060240160206040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d29190612deb565b60606000805461086390613089565b80601f016020809104026020016040519081016040528092919081815260200182805461088f90613089565b80156108dc5780601f106108b1576101008083540402835291602001916108dc565b820191906000526020600020905b8154815290600101906020018083116108bf57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061098b82611032565b9050806001600160a01b0316836001600160a01b031614156109f95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161095b565b336001600160a01b0382161480610a155750610a1581336119a6565b610a875760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161095b565b610a918383611a78565b505050565b610aa03382611ae6565b610abc5760405162461bcd60e51b815260040161095b90612f81565b610a91838383611bbd565b3360009081526007602052604090205460ff16610af65760405162461bcd60e51b815260040161095b90612fd2565b60085460ff16610b185760405162461bcd60e51b815260040161095b90612f21565b610b2181611d68565b50565b6000818152600c60205260408120546107d2906001612ffb565b6006546001600160a01b03163314610b685760405162461bcd60e51b815260040161095b90612f4c565b6008805460ff19166001179055565b6006546001600160a01b03163314610ba15760405162461bcd60e51b815260040161095b90612f4c565b600b5460408051635a27d16360e01b815290516000926001600160a01b031691635a27d163916004808301926020929190829003018186803b158015610be657600080fd5b505afa158015610bfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1e9190612be8565b90506001600160a01b03811615610d0957600b546040805163a9b73f8160e01b815290516000926001600160a01b03169163a9b73f81916004808301926020929190829003018186803b158015610c7457600080fd5b505afa158015610c88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cac9190612deb565b905060006064610cbc8347613027565b610cc69190613013565b90508015610d06576040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610d04573d6000803e3d6000fd5b505b50505b478015610d60576000610d246006546001600160a01b031690565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f19350505050158015610d5d573d6000803e3d6000fd5b50505b5050565b610a9183838360405180602001604052806000815250611828565b6006546001600160a01b03163314610da95760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b038116610dff5760405162461bcd60e51b815260206004820152601c60248201527f696e76616c696420707269636553747261746567794164647265737300000000604482015260640161095b565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600c6020908152604080832054600b548251639341714960e01b8152925191936001600160a01b039091169263934171499260048083019392829003018186803b158015610e7357600080fd5b505afa158015610e87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eab9190612deb565b610eb59190613027565b600b60009054906101000a90046001600160a01b03166001600160a01b031663f2601ea16040518163ffffffff1660e01b815260040160206040518083038186803b158015610f0357600080fd5b505afa158015610f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3b9190612deb565b6107d29190612ffb565b6006546001600160a01b03163314610f6f5760405162461bcd60e51b815260040161095b90612f4c565b601355565b610d60338383611e0f565b6006546001600160a01b03163314610fa95760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b03811660009081526007602052604090205460ff166110115760405162461bcd60e51b815260206004820152601760248201527f616c7265616479206e6f7420612076616c696461746f72000000000000000000604482015260640161095b565b6001600160a01b03166000908152600760205260409020805460ff19169055565b6000818152600260205260408120546001600160a01b0316806107d25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161095b565b60006001600160a01b0382166111145760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161095b565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461115a5760405162461bcd60e51b815260040161095b90612f4c565b6111646000612176565b565b3360009081526007602052604090205460ff166111955760405162461bcd60e51b815260040161095b90612fd2565b60085460ff166111b75760405162461bcd60e51b815260040161095b90612f21565b6001600160a01b0382166111ff5760405162461bcd60e51b815260206004820152600f60248201526e34b73b30b634b21036b4b73a2337b960891b604482015260640161095b565b600f548111156112515760405162461bcd60e51b815260206004820152601860248201527f6e6f7420616c6c6f7765643a20746f74616c537570706c790000000000000000604482015260640161095b565b610d6082826121c8565b6006546001600160a01b031633146112855760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b03811660009081526007602052604090205460ff16156112e45760405162461bcd60e51b815260206004820152601360248201527230b63932b0b23c9030903b30b634b230ba37b960691b604482015260640161095b565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6006546001600160a01b031633146113325760405162461bcd60e51b815260040161095b90612f4c565b6008805460ff19169055565b60606001805461086390613089565b6006546001600160a01b031633146113775760405162461bcd60e51b815260040161095b90612f4c565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600954600f54604051630e75722360e41b815260048101919091526000916001600160a01b03169063e75722309060240160206040518083038186803b1580156113e257600080fd5b505afa1580156113f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061141a9190612deb565b905090565b6006546001600160a01b031633146114495760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b03811661149f5760405162461bcd60e51b815260206004820152601760248201527f696e76616c69642073657474696e677341646472657373000000000000000000604482015260640161095b565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60085460ff166114e35760405162461bcd60e51b815260040161095b90612f21565b60006013541180156114f757506013544210155b6115375760405162461bcd60e51b81526020600482015260116024820152701cd85b195cc81b9bdd081cdd185c9d1959607a1b604482015260640161095b565b80611540611399565b61154a9190613027565b341461158e5760405162461bcd60e51b81526020600482015260136024820152720ecc2d8eaca40c8decae6dc4ee840dac2e8c6d606b1b604482015260640161095b565b61159833826121e2565b600a546001600160a01b031615610b2157600a546040516339a0fa8160e01b8152336004820152602481018390526001600160a01b03909116906339a0fa8190604401600060405180830381600087803b1580156115f557600080fd5b505af1158015611609573d6000803e3d6000fd5b5050505050565b6006546001600160a01b0316331461163a5760405162461bcd60e51b815260040161095b90612f4c565b8051610d60906012906020840190612abd565b610d603383836122fc565b6001600160a01b038082166000908152600d6020908152604080832054600b548251639341714960e01b815292519495919491169263934171499260048082019391829003018186803b1580156116ae57600080fd5b505afa1580156116c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e69190612deb565b6116f09190613027565b600b60009054906101000a90046001600160a01b03166001600160a01b031663f2601ea16040518163ffffffff1660e01b815260040160206040518083038186803b15801561173e57600080fd5b505afa158015611752573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117769190612deb565b61177f846110a9565b610f3b9190613027565b6006546001600160a01b031633146117b35760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b0381166118005760405162461bcd60e51b8152602060048201526014602482015273696e76616c696420686f6e65794164647265737360601b604482015260640161095b565b600880546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6118323383611ae6565b61184e5760405162461bcd60e51b815260040161095b90612f81565b610d5d848484846123cb565b611164336123fe565b3360009081526007602052604090205460ff166118925760405162461bcd60e51b815260040161095b90612fd2565b60085460ff166118b45760405162461bcd60e51b815260040161095b90612f21565b610b218160016121e2565b6000818152600260205260409020546060906001600160a01b031661193e5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161095b565b6000611948612554565b905060008151116119685760405180602001604052806000815250611993565b8061197284612563565b604051602001611983929190612e50565b6040516020818303038152906040525b9392505050565b60006107d2338361267d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146119fe5760405162461bcd60e51b815260040161095b90612f4c565b6001600160a01b038116611a635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161095b565b610b2181612176565b6000611993838361267d565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611aad82611032565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611b5f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161095b565b6000611b6a83611032565b9050806001600160a01b0316846001600160a01b03161480611ba55750836001600160a01b0316611b9a846108e6565b6001600160a01b0316145b80611bb55750611bb581856119a6565b949350505050565b826001600160a01b0316611bd082611032565b6001600160a01b031614611c385760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161095b565b6001600160a01b038216611c9a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161095b565b611ca583838361278f565b611cb0600082611a78565b6001600160a01b0383166000908152600360205260408120805460019290611cd9908490613046565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d07908490612ffb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611d7382611032565b9050611d818160008461278f565b611d8c600083611a78565b6001600160a01b0381166000908152600360205260408120805460019290611db5908490613046565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60085461010090046001600160a01b0316611e5c5760405162461bcd60e51b815260206004820152600d60248201526c4d697373696e6720686f6e657960981b604482015260640161095b565b6001600160a01b038316611eaa5760405162461bcd60e51b8152602060048201526015602482015274696e76616c6964206f776e6572206164647265737360581b604482015260640161095b565b611eb382611032565b6001600160a01b0316836001600160a01b031614611f025760405162461bcd60e51b815260206004820152600c60248201526b3737ba1030b71037bbb732b960a11b604482015260640161095b565b6000828152600c6020526040812054611f1a906107d8565b9050818114611f615760405162461bcd60e51b81526020600482015260136024820152720e0e4d2c6ca40c8decae6dc4ee840dac2e8c6d606b1b604482015260640161095b565b611f6a846123fe565b6008546040516370a0823160e01b81526001600160a01b038681166004830152610100909204909116906370a082319060240160206040518083038186803b158015611fb557600080fd5b505afa158015611fc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fed9190612deb565b81111561202f5760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f75676820686f6e657960801b604482015260640161095b565b600854604051632770a7eb60e21b81526001600160a01b0386811660048301526024820184905261010090920490911690639dc29fac90604401600060405180830381600087803b15801561208357600080fd5b505af1158015612097573d6000803e3d6000fd5b5050506000848152600c6020526040812080549250906120b6836130c4565b90915550506001600160a01b0384166000908152600d602052604081208054916120df836130c4565b90915550506011546000848152600c60205260409020541115610d5d57601080546000858152600c60205260409020546011559084905583811461160957601154604080516001600160a01b03881681526020810187905280820192909252426060830152517f4972f8f0e1bbdee18dfb13684924a3a8dd7f23e05138f654cfd95d981889fb979181900360800190a15050505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610d6082826040518060200160405280600081525061282f565b6000811180156121f3575060148111155b61223f5760405162461bcd60e51b815260206004820152601f60248201527f63616e2774206d696e742030206f722061626f76652032302070657220747800604482015260640161095b565b61256081600f546122509190612ffb565b111561229e5760405162461bcd60e51b815260206004820152601b60248201527f63616e2774206d696e742061626f7665204d41585f535550504c590000000000604482015260640161095b565b6000600f5460016122af9190612ffb565b905060005b828110156122df576122cf846122ca8385612ffb565b6121c8565b6122d8816130c4565b90506122b4565b5081600f60008282546122f29190612ffb565b9091555050505050565b816001600160a01b0316836001600160a01b0316141561235e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161095b565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6123d6848484611bbd565b6123e284848484612862565b610d5d5760405162461bcd60e51b815260040161095b90612ecf565b60085461010090046001600160a01b031661244b5760405162461bcd60e51b815260206004820152600d60248201526c4d697373696e6720686f6e657960981b604482015260640161095b565b6001600160a01b0381166124945760405162461bcd60e51b815260206004820152601060248201526f34b73b30b634b21031b630b4b6a337b960811b604482015260640161095b565b4260006124a1838361267d565b90508015612516576008546040516340c10f1960e01b81526001600160a01b03858116600483015260248201849052610100909204909116906340c10f1990604401600060405180830381600087803b1580156124fd57600080fd5b505af1158015612511573d6000803e3d6000fd5b505050505b6001600160a01b0383166000908152600e6020526040902054821115610a9157506001600160a01b03919091166000908152600e6020526040902055565b60606012805461086390613089565b6060816125875750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125b1578061259b816130c4565b91506125aa9050600a83613013565b915061258b565b60008167ffffffffffffffff8111156125da57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612604576020820181803683370190505b5090505b8415611bb557612619600183613046565b9150612626600a866130df565b612631906030612ffb565b60f81b81838151811061265457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612676600a86613013565b9450612608565b6001600160a01b0382166000908152600e602052604081205415806126ba57506001600160a01b0383166000908152600e60205260409020548211155b156126c7575060006107d2565b6001600160a01b0383166000908152600e60205260408120546126ea9084613046565b9050600b60009054906101000a90046001600160a01b03166001600160a01b031663b05c4cd06040518163ffffffff1660e01b815260040160206040518083038186803b15801561273a57600080fd5b505afa15801561274e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127729190612deb565b61277b85611658565b6127859083613027565b611bb59190613027565b6000818152600c60205260409020546001600160a01b038416156127e4576127b6846123fe565b6001600160a01b0384166000908152600d6020526040812080548392906127de908490613046565b90915550505b6001600160a01b03831615610d5d576127fc836123fe565b6001600160a01b0383166000908152600d602052604081208054839290612824908490612ffb565b909155505050505050565b612839838361296f565b6128466000848484612862565b610a915760405162461bcd60e51b815260040161095b90612ecf565b60006001600160a01b0384163b1561296457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906128a6903390899088908890600401612e7f565b602060405180830381600087803b1580156128c057600080fd5b505af19250505080156128f0575060408051601f3d908101601f191682019092526128ed91810190612d71565b60015b61294a573d80801561291e576040519150601f19603f3d011682016040523d82523d6000602084013e612923565b606091505b5080516129425760405162461bcd60e51b815260040161095b90612ecf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611bb5565b506001949350505050565b6001600160a01b0382166129c55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161095b565b6000818152600260205260409020546001600160a01b031615612a2a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161095b565b612a366000838361278f565b6001600160a01b0382166000908152600360205260408120805460019290612a5f908490612ffb565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612ac990613089565b90600052602060002090601f016020900481019282612aeb5760008555612b31565b82601f10612b0457805160ff1916838001178555612b31565b82800160010185558215612b31579182015b82811115612b31578251825591602001919060010190612b16565b50612b3d929150612b41565b5090565b5b80821115612b3d5760008155600101612b42565b600067ffffffffffffffff80841115612b7157612b7161311f565b604051601f8501601f19908116603f01168101908282118183101715612b9957612b9961311f565b81604052809350858152868686011115612bb257600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612bdd578081fd5b813561199381613135565b600060208284031215612bf9578081fd5b815161199381613135565b60008060408385031215612c16578081fd5b8235612c2181613135565b91506020830135612c3181613135565b809150509250929050565b600080600060608486031215612c50578081fd5b8335612c5b81613135565b92506020840135612c6b81613135565b929592945050506040919091013590565b60008060008060808587031215612c91578081fd5b8435612c9c81613135565b93506020850135612cac81613135565b925060408501359150606085013567ffffffffffffffff811115612cce578182fd5b8501601f81018713612cde578182fd5b612ced87823560208401612b56565b91505092959194509250565b60008060408385031215612d0b578182fd5b8235612d1681613135565b915060208301358015158114612c31578182fd5b60008060408385031215612d3c578182fd5b8235612d4781613135565b946020939093013593505050565b600060208284031215612d66578081fd5b81356119938161314a565b600060208284031215612d82578081fd5b81516119938161314a565b600060208284031215612d9e578081fd5b813567ffffffffffffffff811115612db4578182fd5b8201601f81018413612dc4578182fd5b611bb584823560208401612b56565b600060208284031215612de4578081fd5b5035919050565b600060208284031215612dfc578081fd5b5051919050565b60008060408385031215612e15578182fd5b50508035926020909101359150565b60008151808452612e3c81602086016020860161305d565b601f01601f19169290920160200192915050565b60008351612e6281846020880161305d565b835190830190612e7681836020880161305d565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612eb290830184612e24565b9695505050505050565b6020815260006119936020830184612e24565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526011908201527018dbdb9d1c9858dd08191a5cd8589b1959607a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600f908201526e3737ba1030903b30b634b230ba37b960891b604082015260600190565b6000821982111561300e5761300e6130f3565b500190565b60008261302257613022613109565b500490565b6000816000190483118215151615613041576130416130f3565b500290565b600082821015613058576130586130f3565b500390565b60005b83811015613078578181015183820152602001613060565b83811115610d5d5750506000910152565b600181811c9082168061309d57607f821691505b602082108114156130be57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130d8576130d86130f3565b5060010190565b6000826130ee576130ee613109565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b2157600080fd5b6001600160e01b031981168114610b2157600080fdfea26469706673582212206c0aabf1d2bb230a7c9611fe4f0be4e21f26a8c6dd86ea2bad399240f41e63cb64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000003b845dba28b3922cea43ff85c35a34bf71929ebd000000000000000000000000d093f2634286afbc9d728c63ebc0d69f7d6cfc1a0000000000000000000000005604d3f5c78e5ce9762ad8acea254956f0c087d6000000000000000000000000f9b3bf8d6cd4703a038e03c559a2452fb1d38867000000000000000000000000000000000000000000000000000000000000000a4d6166696142656172730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d42000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): MafiaBears
Arg [1] : symbol_ (string): MB
Arg [2] : settingsAddress (address): 0x3B845DBa28b3922CEa43fF85c35A34Bf71929Ebd
Arg [3] : honeyAddress (address): 0xd093f2634286afbc9D728c63EbC0D69f7D6cfc1a
Arg [4] : priceStrategy (address): 0x5604D3F5c78e5ce9762aD8aceA254956f0c087D6
Arg [5] : bonusProgramAddress (address): 0xf9B3bf8D6CD4703A038e03C559A2452FB1d38867
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000003b845dba28b3922cea43ff85c35a34bf71929ebd
Arg [3] : 000000000000000000000000d093f2634286afbc9d728c63ebc0d69f7d6cfc1a
Arg [4] : 0000000000000000000000005604d3f5c78e5ce9762ad8acea254956f0c087d6
Arg [5] : 000000000000000000000000f9b3bf8d6cd4703a038e03c559a2452fb1d38867
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [7] : 4d61666961426561727300000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [9] : 4d42000000000000000000000000000000000000000000000000000000000000
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.