Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,653 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy Nft | 13578093 | 1146 days ago | IN | 3.5 ETH | 0.00416179 | ||||
Buy Nft | 13578075 | 1146 days ago | IN | 3.5 ETH | 0.0337844 | ||||
Buy Nft | 13578067 | 1146 days ago | IN | 3.5 ETH | 0.0247963 | ||||
Buy Nft | 13578009 | 1146 days ago | IN | 3.5 ETH | 0.01843939 | ||||
Buy Nft | 13577993 | 1146 days ago | IN | 3.5 ETH | 0.01963596 | ||||
Buy Nft | 13577993 | 1146 days ago | IN | 3.5 ETH | 0.01963596 | ||||
Buy Nft | 13577973 | 1146 days ago | IN | 3.5 ETH | 0.02017332 | ||||
Buy Nft | 13577884 | 1146 days ago | IN | 3.5 ETH | 0.02315922 | ||||
Buy Nft | 13577824 | 1146 days ago | IN | 3.5 ETH | 0.01850374 | ||||
Buy Nft | 13577617 | 1146 days ago | IN | 3.5 ETH | 0.02628895 | ||||
Buy Nft | 13577468 | 1146 days ago | IN | 3.5 ETH | 0.02370464 | ||||
Buy Nft | 13577029 | 1146 days ago | IN | 3.5 ETH | 0.02664468 | ||||
Buy Nft | 13576681 | 1146 days ago | IN | 3.5 ETH | 0.01931773 | ||||
Buy Nft | 13576623 | 1146 days ago | IN | 3.5 ETH | 0.02200666 | ||||
Buy Nft | 13576578 | 1146 days ago | IN | 3.5 ETH | 0.01603417 | ||||
Buy Nft | 13576520 | 1146 days ago | IN | 3.5 ETH | 0.02156317 | ||||
Buy Nft | 13576508 | 1146 days ago | IN | 3.5 ETH | 0.02081002 | ||||
Buy Nft | 13576379 | 1146 days ago | IN | 3.5 ETH | 0.02138264 | ||||
Buy Nft | 13576372 | 1146 days ago | IN | 3.5 ETH | 0.02147353 | ||||
Buy Nft | 13575793 | 1146 days ago | IN | 3.5 ETH | 0.01308912 | ||||
Buy Nft | 13575465 | 1146 days ago | IN | 3.5 ETH | 0.01544155 | ||||
Buy Nft | 13575418 | 1146 days ago | IN | 3.5 ETH | 0.01425561 | ||||
Buy Nft | 13575313 | 1146 days ago | IN | 3.5 ETH | 0.01401039 | ||||
Buy Nft | 13574988 | 1146 days ago | IN | 3.5 ETH | 0.01288966 | ||||
Buy Nft | 13574771 | 1146 days ago | IN | 3.5 ETH | 0.01338612 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
13578075 | 1146 days ago | 3.5 ETH | ||||
13578067 | 1146 days ago | 3.5 ETH | ||||
13578009 | 1146 days ago | 3.5 ETH | ||||
13577993 | 1146 days ago | 3.5 ETH | ||||
13577993 | 1146 days ago | 3.5 ETH | ||||
13577973 | 1146 days ago | 3.5 ETH | ||||
13577884 | 1146 days ago | 3.5 ETH | ||||
13577824 | 1146 days ago | 3.5 ETH | ||||
13577617 | 1146 days ago | 3.5 ETH | ||||
13577468 | 1146 days ago | 3.5 ETH | ||||
13577029 | 1146 days ago | 3.5 ETH | ||||
13576681 | 1146 days ago | 3.5 ETH | ||||
13576623 | 1146 days ago | 3.5 ETH | ||||
13576578 | 1146 days ago | 3.5 ETH | ||||
13576520 | 1146 days ago | 3.5 ETH | ||||
13576508 | 1146 days ago | 3.5 ETH | ||||
13576379 | 1146 days ago | 3.5 ETH | ||||
13576372 | 1146 days ago | 3.5 ETH | ||||
13575793 | 1146 days ago | 3.5 ETH | ||||
13575465 | 1146 days ago | 3.5 ETH | ||||
13575418 | 1146 days ago | 3.5 ETH | ||||
13575313 | 1146 days ago | 3.5 ETH | ||||
13574988 | 1146 days ago | 3.5 ETH | ||||
13574771 | 1146 days ago | 3.5 ETH | ||||
13574656 | 1147 days ago | 3.5 ETH |
Loading...
Loading
Contract Name:
StrongNFTSeller
Compiler Version
v0.6.12+commit.27d51765
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.6.12; pragma experimental ABIEncoderV2; import "./interfaces/IERC1155Preset.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/GSN/Context.sol"; contract StrongNFTSeller is Context { using SafeMath for uint256; IERC1155Preset public nftToken; IERC20 public strongToken; bool public initDone; address public serviceAdmin; address public superAdmin; address payable public feeCollector; string[] public nftNames; mapping(string => uint256) public nftLowerBound; mapping(string => uint256) public nftUpperBound; mapping(string => uint256) public nftEthValue; mapping(string => uint256) public nftStrongValue; mapping(string => uint256) public nftIdCounter; event Sold(address to, string name, uint256 nftId); function init(address _nftTokenContract, address _strongTokenContract, address _serviceAdminAddress, address _superAdminAddress, address payable _feeCollectorAddress) public { require(initDone == false, "init done"); nftToken = IERC1155Preset(_nftTokenContract); strongToken = IERC20(_strongTokenContract); serviceAdmin = _serviceAdminAddress; superAdmin = _superAdminAddress; feeCollector = _feeCollectorAddress; initDone = true; } function getCurrentNftId(string memory _name) public view returns (uint256) { return nftIdCounter[_name] > 0 ? nftIdCounter[_name] : nftLowerBound[_name]; } function getNftNames() public view returns (string[] memory) { return nftNames; } function buyNft(string memory _name) public payable { uint256 mintNftId = getCurrentNftId(_name); require(nftEthValue[_name] > 0, "invalid name"); require(mintNftId >= nftLowerBound[_name], "invalid id"); require(mintNftId <= nftUpperBound[_name], "sold out"); require(msg.value >= nftEthValue[_name], "invalid fee"); require(strongToken.balanceOf(_msgSender()) >= nftStrongValue[_name], "insufficient balance"); nftToken.mint(_msgSender(), mintNftId, 1, ""); nftIdCounter[_name] = mintNftId + 1; feeCollector.transfer(msg.value); strongToken.transferFrom(_msgSender(), feeCollector, nftStrongValue[_name]); emit Sold(_msgSender(), _name, mintNftId); } // Admin function updateNFT(string memory _name, uint256 _lowerBound, uint256 _upperBound, uint256 _ethValue, uint256 _strongValue) public { require(_msgSender() == serviceAdmin || _msgSender() == superAdmin, "not admin"); bool alreadyExists = false; for (uint8 i = 0; i < nftNames.length; i++) { if (keccak256(abi.encode(nftNames[i])) == keccak256(abi.encode(_name))) { alreadyExists = true; } } if (!alreadyExists) { nftNames.push(_name); } nftLowerBound[_name] = _lowerBound; nftUpperBound[_name] = _upperBound; nftEthValue[_name] = _ethValue; nftStrongValue[_name] = _strongValue; } function updatePrice(string memory _name, uint256 _ethValue, uint256 _strongValue) public { require(_msgSender() == serviceAdmin || _msgSender() == superAdmin, "not admin"); nftEthValue[_name] = _ethValue; nftStrongValue[_name] = _strongValue; } function updateServiceAdmin(address _newServiceAdmin) public { require(_msgSender() == superAdmin, "not admin"); serviceAdmin = _newServiceAdmin; } function updateFeeCollector(address payable _newFeeCollector) public { require(_newFeeCollector != address(0)); require(_msgSender() == superAdmin); feeCollector = _newFeeCollector; } function updateCounterValue(string memory _name, uint256 _counterValue) public { require(_msgSender() == serviceAdmin || _msgSender() == superAdmin, "not admin"); nftIdCounter[_name] = _counterValue; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.2; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155Preset { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external; /** * @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); /** * @dev Creates `amount` new tokens for `to`, of token type `id`. * * See {ERC1155-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint(address to, uint256 id, uint256 amount, bytes memory data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}. */ function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) external; function getOwnerIdByIndex(address owner, uint256 index) external view returns (uint256); function getOwnerIdIndex(address owner, uint256 id) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol";
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"nftId","type":"uint256"}],"name":"Sold","type":"event"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"buyNft","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"getCurrentNftId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNftNames","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftTokenContract","type":"address"},{"internalType":"address","name":"_strongTokenContract","type":"address"},{"internalType":"address","name":"_serviceAdminAddress","type":"address"},{"internalType":"address","name":"_superAdminAddress","type":"address"},{"internalType":"address payable","name":"_feeCollectorAddress","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initDone","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"nftEthValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"nftIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"nftLowerBound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"nftStrongValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftToken","outputs":[{"internalType":"contract IERC1155Preset","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"nftUpperBound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"serviceAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strongToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"superAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_counterValue","type":"uint256"}],"name":"updateCounterValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newFeeCollector","type":"address"}],"name":"updateFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_lowerBound","type":"uint256"},{"internalType":"uint256","name":"_upperBound","type":"uint256"},{"internalType":"uint256","name":"_ethValue","type":"uint256"},{"internalType":"uint256","name":"_strongValue","type":"uint256"}],"name":"updateNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_ethValue","type":"uint256"},{"internalType":"uint256","name":"_strongValue","type":"uint256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newServiceAdmin","type":"address"}],"name":"updateServiceAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061151a806100206000396000f3fe60806040526004361061012a5760003560e01c8063b08923fb116100ab578063d5efffaf1161006f578063d5efffaf14610317578063d6f499411461032a578063da998dca1461034a578063f58014181461035f578063f59ab9a71461037f578063fed0a20e1461039f5761012a565b8063b08923fb1461028d578063c415b95c146102ad578063c4ee1f37146102c2578063d06fcba8146102e2578063d2c35ce8146102f75761012a565b806385e5fc6b116100f257806385e5fc6b146101eb57806391a199f6146102185780639460e31714610238578063965d61b914610258578063ad553eef1461026d5761012a565b80631d9ce8e11461012f57806329575f6a14610165578063359ef75b1461018757806339d3ff20146101a95780637e1f9b2c146101c9575b600080fd5b34801561013b57600080fd5b5061014f61014a366004611041565b6103c1565b60405161015c9190611487565b60405180910390f35b34801561017157600080fd5b5061017a6103de565b60405161015c91906111de565b34801561019357600080fd5b506101a76101a2366004610fb1565b6103ed565b005b3480156101b557600080fd5b506101a76101c436600461110b565b61048e565b3480156101d557600080fd5b506101de610655565b60405161015c919061127a565b3480156101f757600080fd5b5061020b610206366004611166565b61072d565b60405161015c91906112e5565b34801561022457600080fd5b5061014f610233366004611041565b6107d3565b34801561024457600080fd5b506101a761025336600461107c565b610844565b34801561026457600080fd5b5061017a6108c8565b34801561027957600080fd5b506101a7610288366004610f8e565b6108d7565b34801561029957600080fd5b506101a76102a83660046110bf565b610933565b3480156102b957600080fd5b5061017a6109db565b3480156102ce57600080fd5b5061014f6102dd366004611041565b6109ea565b3480156102ee57600080fd5b5061017a610a07565b34801561030357600080fd5b506101a7610312366004610f8e565b610a16565b6101a7610325366004611041565b610a72565b34801561033657600080fd5b5061014f610345366004611041565b610e03565b34801561035657600080fd5b5061017a610e20565b34801561036b57600080fd5b5061014f61037a366004611041565b610e2f565b34801561038b57600080fd5b5061014f61039a366004611041565b610e4c565b3480156103ab57600080fd5b506103b4610e69565b60405161015c91906112da565b805160208183018101805160088252928201919093012091525481565b6003546001600160a01b031681565b600154600160a01b900460ff16156104205760405162461bcd60e51b8152600401610417906113a6565b60405180910390fd5b600080546001600160a01b03199081166001600160a01b039788161790915560018054600280548416968916969096179095556003805483169488169490941790935560048054821692871692909217909155600160a01b9216929093169190911760ff60a01b1916179055565b6002546001600160a01b03166104a2610e79565b6001600160a01b031614806104d157506003546001600160a01b03166104c6610e79565b6001600160a01b0316145b6104ed5760405162461bcd60e51b81526004016104179061143e565b6000805b60055460ff82161015610578578660405160200161050f91906112e5565b6040516020818303038152906040528051906020012060058260ff168154811061053557fe5b9060005260206000200160405160200161054f91906112f8565b60405160208183030381529060405280519060200120141561057057600191505b6001016104f1565b50806105c3576005805460018101825560009190915286516105c1917f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001906020890190610e7d565b505b846006876040516105d491906111c2565b908152602001604051809103902081905550836007876040516105f791906111c2565b9081526020016040518091039020819055508260088760405161061a91906111c2565b9081526020016040518091039020819055508160098760405161063d91906111c2565b90815260405190819003602001902055505050505050565b60606005805480602002602001604051908101604052809291908181526020016000905b828210156107245760008481526020908190208301805460408051601f60026000196101006001871615020190941693909304928301859004850281018501909152818152928301828280156107105780601f106106e557610100808354040283529160200191610710565b820191906000526020600020905b8154815290600101906020018083116106f357829003601f168201915b505050505081526020019060010190610679565b50505050905090565b6005818154811061073a57fe5b600091825260209182902001805460408051601f60026000196101006001871615020190941693909304928301859004850281018501909152818152935090918301828280156107cb5780601f106107a0576101008083540402835291602001916107cb565b820191906000526020600020905b8154815290600101906020018083116107ae57829003601f168201915b505050505081565b600080600a836040516107e691906111c2565b9081526020016040518091039020541161081e5760068260405161080a91906111c2565b90815260200160405180910390205461083e565b600a8260405161082e91906111c2565b9081526020016040518091039020545b92915050565b6002546001600160a01b0316610858610e79565b6001600160a01b0316148061088757506003546001600160a01b031661087c610e79565b6001600160a01b0316145b6108a35760405162461bcd60e51b81526004016104179061143e565b80600a836040516108b491906111c2565b908152604051908190036020019020555050565b6001546001600160a01b031681565b6003546001600160a01b03166108eb610e79565b6001600160a01b0316146109115760405162461bcd60e51b81526004016104179061143e565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b0316610947610e79565b6001600160a01b0316148061097657506003546001600160a01b031661096b610e79565b6001600160a01b0316145b6109925760405162461bcd60e51b81526004016104179061143e565b816008846040516109a391906111c2565b908152602001604051809103902081905550806009846040516109c691906111c2565b90815260405190819003602001902055505050565b6004546001600160a01b031681565b805160208183018101805160078252928201919093012091525481565b6000546001600160a01b031681565b6001600160a01b038116610a2957600080fd5b6003546001600160a01b0316610a3d610e79565b6001600160a01b031614610a5057600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a7d826107d3565b90506000600883604051610a9191906111c2565b90815260200160405180910390205411610abd5760405162461bcd60e51b815260040161041790611461565b600682604051610acd91906111c2565b908152602001604051809103902054811015610afb5760405162461bcd60e51b815260040161041790611382565b600782604051610b0b91906111c2565b908152602001604051809103902054811115610b395760405162461bcd60e51b8152600401610417906113c9565b600882604051610b4991906111c2565b908152602001604051809103902054341015610b775760405162461bcd60e51b8152600401610417906113eb565b600982604051610b8791906111c2565b908152604051908190036020019020546001546001600160a01b03166370a08231610bb0610e79565b6040518263ffffffff1660e01b8152600401610bcc91906111de565b60206040518083038186803b158015610be457600080fd5b505afa158015610bf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1c919061117e565b1015610c3a5760405162461bcd60e51b815260040161041790611410565b6000546001600160a01b031663731133e9610c53610e79565b8360016040518463ffffffff1660e01b8152600401610c749392919061124a565b600060405180830381600087803b158015610c8e57600080fd5b505af1158015610ca2573d6000803e3d6000fd5b5050505080600101600a83604051610cba91906111c2565b908152604051908190036020018120919091556004546001600160a01b0316903480156108fc02916000818181858888f19350505050158015610d01573d6000803e3d6000fd5b506001546001600160a01b03166323b872dd610d1b610e79565b6004546040516001600160a01b0390911690600990610d3b9088906111c2565b908152604051908190036020018120546001600160e01b031960e086901b168252610d6a9392916004016111f2565b602060405180830381600087803b158015610d8457600080fd5b505af1158015610d98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbc9190611021565b507fed2414142d59d04ed91abd73c984728a72e7835021366ac82c7c86e84019a96f610de6610e79565b8383604051610df793929190611216565b60405180910390a15050565b805160208183018101805160098252928201919093012091525481565b6002546001600160a01b031681565b805160208183018101805160068252928201919093012091525481565b8051602081830181018051600a8252928201919093012091525481565b600154600160a01b900460ff1681565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610ebe57805160ff1916838001178555610eeb565b82800160010185558215610eeb579182015b82811115610eeb578251825591602001919060010190610ed0565b50610ef7929150610efb565b5090565b5b80821115610ef75760008155600101610efc565b600082601f830112610f20578081fd5b813567ffffffffffffffff80821115610f37578283fd5b604051601f8301601f191681016020018281118282101715610f57578485fd5b604052828152925082848301602001861015610f7257600080fd5b8260208601602083013760006020848301015250505092915050565b600060208284031215610f9f578081fd5b8135610faa816114cc565b9392505050565b600080600080600060a08688031215610fc8578081fd5b8535610fd3816114cc565b94506020860135610fe3816114cc565b93506040860135610ff3816114cc565b92506060860135611003816114cc565b91506080860135611013816114cc565b809150509295509295909350565b600060208284031215611032578081fd5b81518015158114610faa578182fd5b600060208284031215611052578081fd5b813567ffffffffffffffff811115611068578182fd5b61107484828501610f10565b949350505050565b6000806040838503121561108e578182fd5b823567ffffffffffffffff8111156110a4578283fd5b6110b085828601610f10565b95602094909401359450505050565b6000806000606084860312156110d3578283fd5b833567ffffffffffffffff8111156110e9578384fd5b6110f586828701610f10565b9660208601359650604090950135949350505050565b600080600080600060a08688031215611122578081fd5b853567ffffffffffffffff811115611138578182fd5b61114488828901610f10565b9860208801359850604088013597606081013597506080013595509350505050565b600060208284031215611177578081fd5b5035919050565b60006020828403121561118f578081fd5b5051919050565b600081518084526111ae81602086016020860161149c565b601f01601f19169290920160200192915050565b600082516111d481846020870161149c565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b038416815260606020820181905260009061123a90830185611196565b9050826040830152949350505050565b6001600160a01b039390931683526020830191909152604082015260806060820181905260009082015260a00190565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156112cd57603f198886030184526112bb858351611196565b9450928501929085019060010161129f565b5092979650505050505050565b901515815260200190565b600060208252610faa6020830184611196565b6000602080830181845282855460018082166000811461131f576001811461133d57611375565b60028304607f16855260ff1983166040890152606088019350611375565b6002830480865261134d8a611490565b885b8281101561136b5781548b82016040015290840190880161134f565b8a01604001955050505b5091979650505050505050565b6020808252600a90820152691a5b9d985b1a59081a5960b21b604082015260600190565b602080825260099082015268696e697420646f6e6560b81b604082015260600190565b6020808252600890820152671cdbdb19081bdd5d60c21b604082015260600190565b6020808252600b908201526a696e76616c69642066656560a81b604082015260600190565b602080825260149082015273696e73756666696369656e742062616c616e636560601b604082015260600190565b6020808252600990820152683737ba1030b236b4b760b91b604082015260600190565b6020808252600c908201526b696e76616c6964206e616d6560a01b604082015260600190565b90815260200190565b60009081526020902090565b60005b838110156114b757818101518382015260200161149f565b838111156114c6576000848401525b50505050565b6001600160a01b03811681146114e157600080fd5b5056fea264697066735822122027aaf36dd8f0b1ae4d7ecf839509445a2a3020f5e3545f808ee35479030eec5064736f6c634300060c0033
Deployed Bytecode
0x60806040526004361061012a5760003560e01c8063b08923fb116100ab578063d5efffaf1161006f578063d5efffaf14610317578063d6f499411461032a578063da998dca1461034a578063f58014181461035f578063f59ab9a71461037f578063fed0a20e1461039f5761012a565b8063b08923fb1461028d578063c415b95c146102ad578063c4ee1f37146102c2578063d06fcba8146102e2578063d2c35ce8146102f75761012a565b806385e5fc6b116100f257806385e5fc6b146101eb57806391a199f6146102185780639460e31714610238578063965d61b914610258578063ad553eef1461026d5761012a565b80631d9ce8e11461012f57806329575f6a14610165578063359ef75b1461018757806339d3ff20146101a95780637e1f9b2c146101c9575b600080fd5b34801561013b57600080fd5b5061014f61014a366004611041565b6103c1565b60405161015c9190611487565b60405180910390f35b34801561017157600080fd5b5061017a6103de565b60405161015c91906111de565b34801561019357600080fd5b506101a76101a2366004610fb1565b6103ed565b005b3480156101b557600080fd5b506101a76101c436600461110b565b61048e565b3480156101d557600080fd5b506101de610655565b60405161015c919061127a565b3480156101f757600080fd5b5061020b610206366004611166565b61072d565b60405161015c91906112e5565b34801561022457600080fd5b5061014f610233366004611041565b6107d3565b34801561024457600080fd5b506101a761025336600461107c565b610844565b34801561026457600080fd5b5061017a6108c8565b34801561027957600080fd5b506101a7610288366004610f8e565b6108d7565b34801561029957600080fd5b506101a76102a83660046110bf565b610933565b3480156102b957600080fd5b5061017a6109db565b3480156102ce57600080fd5b5061014f6102dd366004611041565b6109ea565b3480156102ee57600080fd5b5061017a610a07565b34801561030357600080fd5b506101a7610312366004610f8e565b610a16565b6101a7610325366004611041565b610a72565b34801561033657600080fd5b5061014f610345366004611041565b610e03565b34801561035657600080fd5b5061017a610e20565b34801561036b57600080fd5b5061014f61037a366004611041565b610e2f565b34801561038b57600080fd5b5061014f61039a366004611041565b610e4c565b3480156103ab57600080fd5b506103b4610e69565b60405161015c91906112da565b805160208183018101805160088252928201919093012091525481565b6003546001600160a01b031681565b600154600160a01b900460ff16156104205760405162461bcd60e51b8152600401610417906113a6565b60405180910390fd5b600080546001600160a01b03199081166001600160a01b039788161790915560018054600280548416968916969096179095556003805483169488169490941790935560048054821692871692909217909155600160a01b9216929093169190911760ff60a01b1916179055565b6002546001600160a01b03166104a2610e79565b6001600160a01b031614806104d157506003546001600160a01b03166104c6610e79565b6001600160a01b0316145b6104ed5760405162461bcd60e51b81526004016104179061143e565b6000805b60055460ff82161015610578578660405160200161050f91906112e5565b6040516020818303038152906040528051906020012060058260ff168154811061053557fe5b9060005260206000200160405160200161054f91906112f8565b60405160208183030381529060405280519060200120141561057057600191505b6001016104f1565b50806105c3576005805460018101825560009190915286516105c1917f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db001906020890190610e7d565b505b846006876040516105d491906111c2565b908152602001604051809103902081905550836007876040516105f791906111c2565b9081526020016040518091039020819055508260088760405161061a91906111c2565b9081526020016040518091039020819055508160098760405161063d91906111c2565b90815260405190819003602001902055505050505050565b60606005805480602002602001604051908101604052809291908181526020016000905b828210156107245760008481526020908190208301805460408051601f60026000196101006001871615020190941693909304928301859004850281018501909152818152928301828280156107105780601f106106e557610100808354040283529160200191610710565b820191906000526020600020905b8154815290600101906020018083116106f357829003601f168201915b505050505081526020019060010190610679565b50505050905090565b6005818154811061073a57fe5b600091825260209182902001805460408051601f60026000196101006001871615020190941693909304928301859004850281018501909152818152935090918301828280156107cb5780601f106107a0576101008083540402835291602001916107cb565b820191906000526020600020905b8154815290600101906020018083116107ae57829003601f168201915b505050505081565b600080600a836040516107e691906111c2565b9081526020016040518091039020541161081e5760068260405161080a91906111c2565b90815260200160405180910390205461083e565b600a8260405161082e91906111c2565b9081526020016040518091039020545b92915050565b6002546001600160a01b0316610858610e79565b6001600160a01b0316148061088757506003546001600160a01b031661087c610e79565b6001600160a01b0316145b6108a35760405162461bcd60e51b81526004016104179061143e565b80600a836040516108b491906111c2565b908152604051908190036020019020555050565b6001546001600160a01b031681565b6003546001600160a01b03166108eb610e79565b6001600160a01b0316146109115760405162461bcd60e51b81526004016104179061143e565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b0316610947610e79565b6001600160a01b0316148061097657506003546001600160a01b031661096b610e79565b6001600160a01b0316145b6109925760405162461bcd60e51b81526004016104179061143e565b816008846040516109a391906111c2565b908152602001604051809103902081905550806009846040516109c691906111c2565b90815260405190819003602001902055505050565b6004546001600160a01b031681565b805160208183018101805160078252928201919093012091525481565b6000546001600160a01b031681565b6001600160a01b038116610a2957600080fd5b6003546001600160a01b0316610a3d610e79565b6001600160a01b031614610a5057600080fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000610a7d826107d3565b90506000600883604051610a9191906111c2565b90815260200160405180910390205411610abd5760405162461bcd60e51b815260040161041790611461565b600682604051610acd91906111c2565b908152602001604051809103902054811015610afb5760405162461bcd60e51b815260040161041790611382565b600782604051610b0b91906111c2565b908152602001604051809103902054811115610b395760405162461bcd60e51b8152600401610417906113c9565b600882604051610b4991906111c2565b908152602001604051809103902054341015610b775760405162461bcd60e51b8152600401610417906113eb565b600982604051610b8791906111c2565b908152604051908190036020019020546001546001600160a01b03166370a08231610bb0610e79565b6040518263ffffffff1660e01b8152600401610bcc91906111de565b60206040518083038186803b158015610be457600080fd5b505afa158015610bf8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1c919061117e565b1015610c3a5760405162461bcd60e51b815260040161041790611410565b6000546001600160a01b031663731133e9610c53610e79565b8360016040518463ffffffff1660e01b8152600401610c749392919061124a565b600060405180830381600087803b158015610c8e57600080fd5b505af1158015610ca2573d6000803e3d6000fd5b5050505080600101600a83604051610cba91906111c2565b908152604051908190036020018120919091556004546001600160a01b0316903480156108fc02916000818181858888f19350505050158015610d01573d6000803e3d6000fd5b506001546001600160a01b03166323b872dd610d1b610e79565b6004546040516001600160a01b0390911690600990610d3b9088906111c2565b908152604051908190036020018120546001600160e01b031960e086901b168252610d6a9392916004016111f2565b602060405180830381600087803b158015610d8457600080fd5b505af1158015610d98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbc9190611021565b507fed2414142d59d04ed91abd73c984728a72e7835021366ac82c7c86e84019a96f610de6610e79565b8383604051610df793929190611216565b60405180910390a15050565b805160208183018101805160098252928201919093012091525481565b6002546001600160a01b031681565b805160208183018101805160068252928201919093012091525481565b8051602081830181018051600a8252928201919093012091525481565b600154600160a01b900460ff1681565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610ebe57805160ff1916838001178555610eeb565b82800160010185558215610eeb579182015b82811115610eeb578251825591602001919060010190610ed0565b50610ef7929150610efb565b5090565b5b80821115610ef75760008155600101610efc565b600082601f830112610f20578081fd5b813567ffffffffffffffff80821115610f37578283fd5b604051601f8301601f191681016020018281118282101715610f57578485fd5b604052828152925082848301602001861015610f7257600080fd5b8260208601602083013760006020848301015250505092915050565b600060208284031215610f9f578081fd5b8135610faa816114cc565b9392505050565b600080600080600060a08688031215610fc8578081fd5b8535610fd3816114cc565b94506020860135610fe3816114cc565b93506040860135610ff3816114cc565b92506060860135611003816114cc565b91506080860135611013816114cc565b809150509295509295909350565b600060208284031215611032578081fd5b81518015158114610faa578182fd5b600060208284031215611052578081fd5b813567ffffffffffffffff811115611068578182fd5b61107484828501610f10565b949350505050565b6000806040838503121561108e578182fd5b823567ffffffffffffffff8111156110a4578283fd5b6110b085828601610f10565b95602094909401359450505050565b6000806000606084860312156110d3578283fd5b833567ffffffffffffffff8111156110e9578384fd5b6110f586828701610f10565b9660208601359650604090950135949350505050565b600080600080600060a08688031215611122578081fd5b853567ffffffffffffffff811115611138578182fd5b61114488828901610f10565b9860208801359850604088013597606081013597506080013595509350505050565b600060208284031215611177578081fd5b5035919050565b60006020828403121561118f578081fd5b5051919050565b600081518084526111ae81602086016020860161149c565b601f01601f19169290920160200192915050565b600082516111d481846020870161149c565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b038416815260606020820181905260009061123a90830185611196565b9050826040830152949350505050565b6001600160a01b039390931683526020830191909152604082015260806060820181905260009082015260a00190565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156112cd57603f198886030184526112bb858351611196565b9450928501929085019060010161129f565b5092979650505050505050565b901515815260200190565b600060208252610faa6020830184611196565b6000602080830181845282855460018082166000811461131f576001811461133d57611375565b60028304607f16855260ff1983166040890152606088019350611375565b6002830480865261134d8a611490565b885b8281101561136b5781548b82016040015290840190880161134f565b8a01604001955050505b5091979650505050505050565b6020808252600a90820152691a5b9d985b1a59081a5960b21b604082015260600190565b602080825260099082015268696e697420646f6e6560b81b604082015260600190565b6020808252600890820152671cdbdb19081bdd5d60c21b604082015260600190565b6020808252600b908201526a696e76616c69642066656560a81b604082015260600190565b602080825260149082015273696e73756666696369656e742062616c616e636560601b604082015260600190565b6020808252600990820152683737ba1030b236b4b760b91b604082015260600190565b6020808252600c908201526b696e76616c6964206e616d6560a01b604082015260600190565b90815260200190565b60009081526020902090565b60005b838110156114b757818101518382015260200161149f565b838111156114c6576000848401525b50505050565b6001600160a01b03811681146114e157600080fd5b5056fea264697066735822122027aaf36dd8f0b1ae4d7ecf839509445a2a3020f5e3545f808ee35479030eec5064736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.