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 250 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Collect | 12815981 | 1329 days ago | IN | 0 ETH | 0.00149957 | ||||
Purchase NFT | 12688113 | 1349 days ago | IN | 0 ETH | 0.00271299 | ||||
Purchase NFT | 12688073 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688073 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688072 | 1349 days ago | IN | 0 ETH | 0.00459954 | ||||
Purchase NFT | 12688072 | 1349 days ago | IN | 0 ETH | 0.00459954 | ||||
Purchase NFT | 12688030 | 1349 days ago | IN | 0 ETH | 0.00337299 | ||||
Purchase NFT | 12688027 | 1349 days ago | IN | 0 ETH | 0.00295059 | ||||
Purchase NFT | 12688027 | 1349 days ago | IN | 0 ETH | 0.00337299 | ||||
Purchase NFT | 12688023 | 1349 days ago | IN | 0 ETH | 0.00337299 | ||||
Purchase NFT | 12688018 | 1349 days ago | IN | 0 ETH | 0.00337299 | ||||
Purchase NFT | 12688016 | 1349 days ago | IN | 0 ETH | 0.00367963 | ||||
Purchase NFT | 12688016 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688014 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688010 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688008 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688008 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688008 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688004 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688002 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12688002 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12687998 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12687996 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12687996 | 1349 days ago | IN | 0 ETH | 0.00398626 | ||||
Purchase NFT | 12687995 | 1349 days ago | IN | 0 ETH | 0.00398626 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BondlyLaunchPad
Compiler Version
v0.7.3+commit.9bfce1f6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.3; ///////////////////////////////////////////////// // ____ _ _ // // | __ ) ___ _ __ __| | | | _ _ // // | _ \ / _ \ | '_ \ / _` | | | | | | | // // | |_) | | (_) | | | | | | (_| | | | | |_| | // // |____/ \___/ |_| |_| \__,_| |_| \__, | // // |___/ // ///////////////////////////////////////////////// import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155MetadataURI.sol"; contract BondlyLaunchPad is Ownable { using Strings for string; using SafeMath for uint256; using Address for address; using SafeERC20 for ERC20; uint256 public _currentCardId = 0; address payable public _salesperson; uint256 public _limitPerWallet; bool public _saleStarted = false; struct Card { uint256 cardId; uint256 tokenId; uint256 totalAmount; uint256 currentAmount; uint256 basePrice; uint256[] times; uint8[] tiers; address contractAddress; address paymentToken; bool isFinished; } struct History { mapping(uint256 => mapping(address => uint8)) purchasedHistories; // tokenId -> wallet -> amount } // Events event CreateCard( address indexed _from, uint256 _cardId, address indexed _contractAddress, uint256 _tokenId, uint256 _totalAmount, uint256 _basePrice ); event PurchaseCard(address indexed _from, uint256 _cardId, uint256 _amount); event CardChanged(uint256 _cardId); bool public isPublicSale; address public limitTokenForPublicSale; uint256 public limitTokenAmountForPublicSale; mapping(uint256 => Card) public _cards; mapping(address => bool) public _blacklist; mapping(uint256 => mapping(address => uint8)) public _whitelist; // tokenId -> wallet -> whitelistLevel // whitelist level | Priority // 0: Not available | /\ // 1: selected winners | || // 2: bronze | || // 3: silver | || // 4: gold | || // 5: platinum | || mapping(address => History) private _history; constructor() { _salesperson = msg.sender; _limitPerWallet = 1; isPublicSale = false; limitTokenForPublicSale = 0xD2dDa223b2617cB616c1580db421e4cFAe6a8a85; limitTokenAmountForPublicSale = 10000 * 10**18; } function setLimitForPublicSale(uint256 limitAmount, address limitToken) external onlyOwner { limitTokenForPublicSale = limitToken; limitTokenAmountForPublicSale = limitAmount; } function setLimitPerWallet(uint256 limit) external onlyOwner { _limitPerWallet = limit; } function setSalesPerson(address payable newSalesPerson) external onlyOwner { _salesperson = newSalesPerson; } function startSale() external onlyOwner { _saleStarted = true; } function stopSale() external onlyOwner { _saleStarted = false; } function createCard( address _contractAddress, uint256 _tokenId, uint256 _totalAmount, address _paymentTokenAddress, uint256 _basePrice ) external onlyOwner { IERC1155 _contract = IERC1155(_contractAddress); require( _contract.balanceOf(_salesperson, _tokenId) >= _totalAmount, "Initial supply cannot be more than available supply" ); require( _contract.isApprovedForAll(_salesperson, address(this)) == true, "Contract must be whitelisted by owner" ); uint256 _id = _getNextCardID(); _incrementCardId(); Card memory _newCard; _newCard.cardId = _id; _newCard.contractAddress = _contractAddress; _newCard.tokenId = _tokenId; _newCard.totalAmount = _totalAmount; _newCard.currentAmount = _totalAmount; _newCard.basePrice = _basePrice; _newCard.paymentToken = _paymentTokenAddress; _newCard.isFinished = false; _cards[_id] = _newCard; emit CreateCard( msg.sender, _id, _contractAddress, _tokenId, _totalAmount, _basePrice ); } function isEligbleToBuy(uint256 _cardId) public view returns (uint256) { if (_blacklist[msg.sender] == true) return 0; if (_saleStarted == false) return 0; Card memory _currentCard = _cards[_cardId]; if (isPublicSale) { if ( ERC20(limitTokenForPublicSale).allowance( msg.sender, address(this) ) < limitTokenAmountForPublicSale ) return 0; History storage _currentHistory = _history[_currentCard.contractAddress]; uint256 _currentBoughtAmount = _currentHistory.purchasedHistories[_currentCard.tokenId][ msg.sender ]; if (_currentBoughtAmount >= _limitPerWallet) return 0; if ( _currentCard.currentAmount <= _limitPerWallet.sub(_currentBoughtAmount) ) return _currentCard.currentAmount; return _limitPerWallet.sub(_currentBoughtAmount); } if (_currentCard.times.length == 0) return 0; for (uint256 i = 0; i < _currentCard.times.length; i++) { if ( block.timestamp >= _currentCard.times[i] && _whitelist[_cardId][msg.sender] == _currentCard.tiers[i] ) { History storage _currentHistory = _history[_currentCard.contractAddress]; uint256 _currentBoughtAmount = _currentHistory.purchasedHistories[_currentCard.tokenId][ msg.sender ]; if (_currentBoughtAmount >= _limitPerWallet) return 0; if ( _currentCard.currentAmount <= _limitPerWallet.sub(_currentBoughtAmount) ) return _currentCard.currentAmount; return _limitPerWallet.sub(_currentBoughtAmount); } } return 0; } function purchaseNFT(uint256 _cardId, uint256 _amount) external payable { require(_blacklist[msg.sender] == false, "you are blocked"); require(_saleStarted == true, "Sale stopped"); Card memory _currentCard = _cards[_cardId]; require(_currentCard.isFinished == false, "Card is finished"); if (!isPublicSale) { uint8 currentTier = _whitelist[_cardId][msg.sender]; require(currentTier != 0, "you are not whitelisted"); uint256 startTime; for (uint256 i = 0; i < _currentCard.tiers.length; i++) { if (_currentCard.tiers[i] == currentTier) { startTime = _currentCard.times[i]; } } require( startTime != 0 && startTime <= block.timestamp, "wait for sale start" ); } else { require( ERC20(limitTokenForPublicSale).allowance( msg.sender, address(this) ) >= limitTokenAmountForPublicSale, "Need to hold required amout of tokens" ); } IERC1155 _nftContract = IERC1155(_currentCard.contractAddress); require( _currentCard.currentAmount >= _amount, "Order exceeds the max number of available NFTs" ); History storage _currentHistory = _history[_currentCard.contractAddress]; uint256 _currentBoughtAmount = _currentHistory.purchasedHistories[_currentCard.tokenId][ msg.sender ]; require( _currentBoughtAmount < _limitPerWallet, "Order exceeds the max limit of NFTs per wallet" ); uint256 availableAmount = _limitPerWallet.sub(_currentBoughtAmount); if (availableAmount > _amount) { availableAmount = _amount; } uint256 _price = _currentCard.basePrice.mul(availableAmount); require( _currentCard.paymentToken == address(0) || ERC20(_currentCard.paymentToken).allowance( msg.sender, address(this) ) >= _price, "Need to Approve payment" ); if (_currentCard.paymentToken == address(0)) { require(msg.value >= _price, "Not enough funds to purchase"); uint256 overPrice = msg.value - _price; _salesperson.transfer(_price); if (overPrice > 0) msg.sender.transfer(overPrice); } else { ERC20(_currentCard.paymentToken).transferFrom( msg.sender, _salesperson, _price ); } _nftContract.safeTransferFrom( _salesperson, msg.sender, _currentCard.tokenId, availableAmount, "" ); _cards[_cardId].currentAmount = _cards[_cardId].currentAmount.sub( availableAmount ); _currentHistory.purchasedHistories[_currentCard.tokenId][ msg.sender ] = uint8(_currentBoughtAmount.add(availableAmount)); emit PurchaseCard(msg.sender, _cardId, availableAmount); } function _getNextCardID() private view returns (uint256) { return _currentCardId.add(1); } function _incrementCardId() private { _currentCardId++; } function cancelCard(uint256 _cardId) external onlyOwner { _cards[_cardId].isFinished = true; emit CardChanged(_cardId); } function openPublicSale(bool _isOpen) external onlyOwner { isPublicSale = _isOpen; } function setTimes( uint256 _cardId, uint8 _tier, uint256 _finalTime ) external onlyOwner { Card storage _currentCard = _cards[_cardId]; for (uint256 i = 0; i < _currentCard.tiers.length; i++) { if (_currentCard.tiers[i] == _tier) { _currentCard.times[i] = _finalTime; emit CardChanged(_cardId); return; } } _currentCard.tiers.push(_tier); _currentCard.times.push(_finalTime); emit CardChanged(_cardId); } function resumeCard(uint256 _cardId) external onlyOwner { _cards[_cardId].isFinished = false; emit CardChanged(_cardId); } function setCardPrice(uint256 _cardId, uint256 _newPrice) external onlyOwner returns (bool) { _cards[_cardId].basePrice = _newPrice; emit CardChanged(_cardId); } function setCardPaymentToken(uint256 _cardId, address _newAddr) external onlyOwner returns (bool) { _cards[_cardId].paymentToken = _newAddr; emit CardChanged(_cardId); } function addBlackListAddress(address addr) external onlyOwner { _blacklist[addr] = true; } function batchAddBlackListAddress(address[] calldata addr) external onlyOwner { for (uint256 i = 0; i < addr.length; i++) { _blacklist[addr[i]] = true; } } function removeBlackListAddress(address addr) external onlyOwner { _blacklist[addr] = false; } function batchRemoveBlackListAddress(address[] calldata addr) external onlyOwner { for (uint256 i = 0; i < addr.length; i++) { _blacklist[addr[i]] = false; } } function addWhiteListAddress( uint256 _cardId, address _addr, uint8 _tier ) external onlyOwner { _whitelist[_cardId][_addr] = _tier; } function batchAddWhiteListAddress( uint256 _cardId, address[] calldata _addr, uint8 _tier ) external onlyOwner { for (uint256 i = 0; i < _addr.length; i++) { _whitelist[_cardId][_addr[i]] = _tier; } } function isPublicSaleOpened() public view returns (bool) { return isPublicSale; } function isCardCompleted(uint256 _cardId) public view returns (bool) { return _cards[_cardId].isFinished; } function isCardFree(uint256 _cardId) public view returns (bool) { return _cards[_cardId].basePrice == 0; } function getCardContract(uint256 _cardId) public view returns (address) { return _cards[_cardId].contractAddress; } function getCardPaymentContract(uint256 _cardId) public view returns (address) { return _cards[_cardId].paymentToken; } function getCardTokenId(uint256 _cardId) public view returns (uint256) { return _cards[_cardId].tokenId; } function getCardTime(uint256 _cardId) public view returns (uint256[] memory) { return _cards[_cardId].times; } function getCardTotalAmount(uint256 _cardId) public view returns (uint256) { return _cards[_cardId].totalAmount; } function getCardCurrentAmount(uint256 _cardId) public view returns (uint256) { return _cards[_cardId].currentAmount; } function getAllCardsPerContract(address _contractAddr) public view returns (uint256[] memory, uint256[] memory) { uint256 count; for (uint256 i = 1; i <= _currentCardId; i++) { if (_cards[i].contractAddress == _contractAddr) { count++; } } uint256[] memory cardIds = new uint256[](count); uint256[] memory tokenIds = new uint256[](count); count = 0; for (uint256 i = 1; i <= _currentCardId; i++) { if (_cards[i].contractAddress == _contractAddr) { cardIds[count] = i; tokenIds[count] = _cards[i].tokenId; count++; } } return (cardIds, tokenIds); } function getActiveCardsPerContract(address _contractAddr) public view returns (uint256[] memory, uint256[] memory) { uint256 count; for (uint256 i = 1; i <= _currentCardId; i++) { if ( _cards[i].contractAddress == _contractAddr && _cards[i].isFinished == false ) { count++; } } uint256[] memory cardIds = new uint256[](count); uint256[] memory tokenIds = new uint256[](count); count = 0; for (uint256 i = 1; i <= _currentCardId; i++) { if ( _cards[i].contractAddress == _contractAddr && _cards[i].isFinished == false ) { cardIds[count] = i; tokenIds[count] = _cards[i].tokenId; count++; } } return (cardIds, tokenIds); } function getClosedCardsPerContract(address _contractAddr) public view returns (uint256[] memory, uint256[] memory) { uint256 count; for (uint256 i = 1; i <= _currentCardId; i++) { if ( _cards[i].contractAddress == _contractAddr && _cards[i].isFinished ) { count++; } } uint256[] memory cardIds = new uint256[](count); uint256[] memory tokenIds = new uint256[](count); count = 0; for (uint256 i = 1; i <= _currentCardId; i++) { if ( _cards[i].contractAddress == _contractAddr && _cards[i].isFinished ) { cardIds[count] = i; tokenIds[count] = _cards[i].tokenId; count++; } } return (cardIds, tokenIds); } function getCardBasePrice(uint256 _cardId) public view returns (uint256) { return _cards[_cardId].basePrice; } function getCardURL(uint256 _cardId) public view returns (string memory) { return IERC1155MetadataURI(_cards[_cardId].contractAddress).uri( _cards[_cardId].tokenId ); } function collect(address _token) external onlyOwner { if (_token == address(0)) { msg.sender.transfer(address(this).balance); } else { uint256 amount = ERC20(_token).balanceOf(address(this)); ERC20(_token).transfer(msg.sender, amount); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev String operations. */ library Strings { /** * @dev Converts a `uint256` to its ASCII `string` 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); uint256 index = digits - 1; temp = value; while (temp != 0) { buffer[index--] = bytes1(uint8(48 + temp % 10)); temp /= 10; } return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "../../introspection/IERC165.sol"; /** * @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 IERC1155 is IERC165 { /** * @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; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "./IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// 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; } }
// 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 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"CardChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_cardId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_contractAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_totalAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_basePrice","type":"uint256"}],"name":"CreateCard","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":false,"internalType":"uint256","name":"_cardId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"PurchaseCard","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_cards","outputs":[{"internalType":"uint256","name":"cardId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"currentAmount","type":"uint256"},{"internalType":"uint256","name":"basePrice","type":"uint256"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"address","name":"paymentToken","type":"address"},{"internalType":"bool","name":"isFinished","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_currentCardId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_limitPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_salesperson","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"_whitelist","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addBlackListAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint8","name":"_tier","type":"uint8"}],"name":"addWhiteListAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addr","type":"address[]"}],"name":"batchAddBlackListAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"address[]","name":"_addr","type":"address[]"},{"internalType":"uint8","name":"_tier","type":"uint8"}],"name":"batchAddWhiteListAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addr","type":"address[]"}],"name":"batchRemoveBlackListAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"cancelCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_totalAmount","type":"uint256"},{"internalType":"address","name":"_paymentTokenAddress","type":"address"},{"internalType":"uint256","name":"_basePrice","type":"uint256"}],"name":"createCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddr","type":"address"}],"name":"getActiveCardsPerContract","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddr","type":"address"}],"name":"getAllCardsPerContract","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"getCardBasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"getCardContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"getCardCurrentAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"getCardPaymentContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"getCardTime","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"getCardTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"getCardTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"getCardURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddr","type":"address"}],"name":"getClosedCardsPerContract","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"isCardCompleted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"isCardFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"isEligbleToBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleOpened","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitTokenAmountForPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitTokenForPublicSale","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpen","type":"bool"}],"name":"openPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"purchaseNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeBlackListAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"}],"name":"resumeCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"address","name":"_newAddr","type":"address"}],"name":"setCardPaymentToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setCardPrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limitAmount","type":"uint256"},{"internalType":"address","name":"limitToken","type":"address"}],"name":"setLimitForPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"setLimitPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newSalesPerson","type":"address"}],"name":"setSalesPerson","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint8","name":"_tier","type":"uint8"},{"internalType":"uint256","name":"_finalTime","type":"uint256"}],"name":"setTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260006001556004805460ff191690553480156200002057600080fd5b5060006200002d620000cd565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600280546001600160a01b0319163317905560016003556004805475d2dda223b2617cb616c1580db421e4cfae6a8a850000610100600160b01b031990911617905569021e19e0c9bab2400000600555620000d1565b3390565b6137db80620000e16000396000f3fe6080604052600436106102935760003560e01c80638d627a7e1161015a578063b66a0e5d116100c1578063e36b0b371161007a578063e36b0b3714610c0d578063ed358f9214610c22578063f2fde38b14610c37578063f338228e14610c6a578063f3e74dff14610ce5578063f5214e0a14610d1857610293565b8063b66a0e5d14610b47578063b7335fa814610b5c578063ba87328614610b71578063c0a6011d14610b9b578063c36f715114610bc5578063d96e83d614610bda57610293565b8063a1d33a1111610113578063a1d33a1114610a46578063a20623ce14610a70578063a5a865dc14610aa3578063a8b2c23614610ab8578063ad4451a314610af1578063b18fc16714610b1457610293565b80638d627a7e146108715780638da5cb5b146108aa57806393315791146108bf57806395e00e201461098b57806396e63ce0146109b55780639f504e4c14610a0457610293565b806336ac9a15116101fe57806363c766b9116101b757806363c766b914610763578063649586781461078d5780636b7259ae14610808578063715018a61461081d5780637eb836991461083257806387c348bf1461085c57610293565b806336ac9a15146105d05780634837432f1461061f5780634a3f6ecd146106a45780634b88ac0b146106d45780634dc41b02146106fe5780635a05ae501461072a57610293565b80631e1fd2a4116102505780631e1fd2a41461047d5780632812920d146104925780632cbf6196146104c55780632ed2a1851461053e5780632f8a82cb1461057c5780633387ab1d146105a657610293565b806306ec16f8146102985780630ba6b6fd146102cd57806312e0136314610309578063148fdb571461034f57806316ad03331461036457806318b5412514610403575b600080fd5b3480156102a457600080fd5b506102cb600480360360208110156102bb57600080fd5b50356001600160a01b0316610d4b565b005b3480156102d957600080fd5b506102f7600480360360208110156102f057600080fd5b5035610eec565b60408051918252519081900360200190f35b34801561031557600080fd5b506103336004803603602081101561032c57600080fd5b5035610f04565b604080516001600160a01b039092168252519081900360200190f35b34801561035b57600080fd5b506102f7610f22565b34801561037057600080fd5b5061038e6004803603602081101561038757600080fd5b5035610f28565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103c85781810151838201526020016103b0565b50505050905090810190601f1680156103f55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561040f57600080fd5b5061042d6004803603602081101561042657600080fd5b503561107b565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610469578181015183820152602001610451565b505050509050019250505060405180910390f35b34801561048957600080fd5b506102f76110e0565b34801561049e57600080fd5b506102cb600480360360208110156104b557600080fd5b50356001600160a01b03166110e6565b3480156104d157600080fd5b506104ef600480360360208110156104e857600080fd5b503561116c565b60408051988952602089019790975287870195909552606087019390935260808601919091526001600160a01b0390811660a08601521660c0840152151560e083015251908190036101000190f35b34801561054a57600080fd5b506105686004803603602081101561056157600080fd5b50356111c2565b604080519115158252519081900360200190f35b34801561058857600080fd5b506102f76004803603602081101561059f57600080fd5b50356111e1565b3480156105b257600080fd5b50610568600480360360208110156105c957600080fd5b50356111f6565b3480156105dc57600080fd5b506102cb600480360360a08110156105f357600080fd5b506001600160a01b0381358116916020810135916040820135916060810135909116906080013561120c565b34801561062b57600080fd5b506102cb6004803603606081101561064257600080fd5b81359190810190604081016020820135600160201b81111561066357600080fd5b82018360208201111561067557600080fd5b803590602001918460208302840111600160201b8311171561069657600080fd5b91935091503560ff16611563565b3480156106b057600080fd5b50610568600480360360408110156106c757600080fd5b508035906020013561162f565b3480156106e057600080fd5b506102cb600480360360208110156106f757600080fd5b50356116d0565b34801561070a57600080fd5b506102cb6004803603602081101561072157600080fd5b5035151561177a565b34801561073657600080fd5b506105686004803603604081101561074d57600080fd5b50803590602001356001600160a01b03166117f6565b34801561076f57600080fd5b506102cb6004803603602081101561078657600080fd5b50356118ad565b34801561079957600080fd5b506102cb600480360360208110156107b057600080fd5b810190602081018135600160201b8111156107ca57600080fd5b8201836020820111156107dc57600080fd5b803590602001918460208302840111600160201b831117156107fd57600080fd5b509092509050611914565b34801561081457600080fd5b506105686119d1565b34801561082957600080fd5b506102cb6119df565b34801561083e57600080fd5b506103336004803603602081101561085557600080fd5b5035611a8b565b34801561086857600080fd5b50610568611aa9565b34801561087d57600080fd5b506102cb6004803603604081101561089457600080fd5b50803590602001356001600160a01b0316611ab2565b3480156108b657600080fd5b50610333611b41565b3480156108cb57600080fd5b506108f2600480360360208110156108e257600080fd5b50356001600160a01b0316611b50565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561093657818101518382015260200161091e565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561097557818101518382015260200161095d565b5050505090500194505050505060405180910390f35b34801561099757600080fd5b506102f7600480360360208110156109ae57600080fd5b5035611d03565b3480156109c157600080fd5b506109ee600480360360408110156109d857600080fd5b50803590602001356001600160a01b03166120e7565b6040805160ff9092168252519081900360200190f35b348015610a1057600080fd5b506102cb60048036036060811015610a2757600080fd5b5080359060208101356001600160a01b0316906040013560ff16612107565b348015610a5257600080fd5b506102cb60048036036020811015610a6957600080fd5b50356121a0565b348015610a7c57600080fd5b5061056860048036036020811015610a9357600080fd5b50356001600160a01b0316612244565b348015610aaf57600080fd5b50610568612259565b348015610ac457600080fd5b506102cb60048036036060811015610adb57600080fd5b5080359060ff6020820135169060400135612267565b6102cb60048036036040811015610b0757600080fd5b50803590602001356123e9565b348015610b2057600080fd5b506102cb60048036036020811015610b3757600080fd5b50356001600160a01b0316612ca5565b348015610b5357600080fd5b506102cb612d29565b348015610b6857600080fd5b50610333612d9a565b348015610b7d57600080fd5b506102f760048036036020811015610b9457600080fd5b5035612da9565b348015610ba757600080fd5b506102f760048036036020811015610bbe57600080fd5b5035612dbe565b348015610bd157600080fd5b50610333612dd3565b348015610be657600080fd5b506102cb60048036036020811015610bfd57600080fd5b50356001600160a01b0316612de8565b348015610c1957600080fd5b506102cb612e6b565b348015610c2e57600080fd5b506102f7612ed9565b348015610c4357600080fd5b506102cb60048036036020811015610c5a57600080fd5b50356001600160a01b0316612edf565b348015610c7657600080fd5b506102cb60048036036020811015610c8d57600080fd5b810190602081018135600160201b811115610ca757600080fd5b820183602082011115610cb957600080fd5b803590602001918460208302840111600160201b83111715610cda57600080fd5b509092509050612fe1565b348015610cf157600080fd5b506108f260048036036020811015610d0857600080fd5b50356001600160a01b0316613099565b348015610d2457600080fd5b506108f260048036036020811015610d3b57600080fd5b50356001600160a01b03166131f6565b610d5361339b565b6001600160a01b0316610d64611b41565b6001600160a01b031614610dad576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6001600160a01b038116610ded5760405133904780156108fc02916000818181858888f19350505050158015610de7573d6000803e3d6000fd5b50610ee9565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610e3c57600080fd5b505afa158015610e50573d6000803e3d6000fd5b505050506040513d6020811015610e6657600080fd5b50516040805163a9059cbb60e01b81523360048201526024810183905290519192506001600160a01b0384169163a9059cbb916044808201926020929091908290030181600087803b158015610ebb57600080fd5b505af1158015610ecf573d6000803e3d6000fd5b505050506040513d6020811015610ee557600080fd5b5050505b50565b6000818152600660205260409020600401545b919050565b6000908152600660205260409020600701546001600160a01b031690565b60055481565b600081815260066020526040808220600781015460019091015482516303a24d0760e21b8152600481019190915291516060936001600160a01b0390921692630e89341c926024808301939192829003018186803b158015610f8957600080fd5b505afa158015610f9d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610fc657600080fd5b8101908080516040519392919084600160201b821115610fe557600080fd5b908301906020820185811115610ffa57600080fd5b8251600160201b81118282018810171561101357600080fd5b82525081516020918201929091019080838360005b83811015611040578181015183820152602001611028565b50505050905090810190601f16801561106d5780820380516001836020036101000a031916815260200191505b506040525050509050919050565b6000818152600660209081526040918290206005018054835181840281018401909452808452606093928301828280156110d457602002820191906000526020600020905b8154815260200190600101908083116110c0575b50505050509050919050565b60015481565b6110ee61339b565b6001600160a01b03166110ff611b41565b6001600160a01b031614611148576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6006602052600090815260409020805460018201546002830154600384015460048501546007860154600890960154949593949293919290916001600160a01b039081169190811690600160a01b900460ff1688565b600090815260066020526040902060080154600160a01b900460ff1690565b60009081526006602052604090206001015490565b6000908152600660205260409020600401541590565b61121461339b565b6001600160a01b0316611225611b41565b6001600160a01b03161461126e576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60025460408051627eeac760e11b81526001600160a01b039283166004820152602481018790529051879286929084169162fdd58e91604480820192602092909190829003018186803b1580156112c457600080fd5b505afa1580156112d8573d6000803e3d6000fd5b505050506040513d60208110156112ee57600080fd5b5051101561132d5760405162461bcd60e51b81526004018080602001828103825260338152602001806137736033913960400191505060405180910390fd5b6002546040805163e985e9c560e01b81526001600160a01b03928316600482015230602482015290519183169163e985e9c591604480820192602092909190829003018186803b15801561138057600080fd5b505afa158015611394573d6000803e3d6000fd5b505050506040513d60208110156113aa57600080fd5b505115156001146113ec5760405162461bcd60e51b815260040180806020018281038252602581526020018061368c6025913960400191505060405180910390fd5b60006113f661339f565b90506114006133bb565b6114086134e1565b8181526001600160a01b0380891660e0830152602080830189815260408085018a8152606086018b8152608087018a8152958b1661010088015260006101208801819052888152600686529290922086518155925160018401555160028301555160038201559151600483015560a08301518051849392611490926005850192910190613548565b5060c082015180516114ac916006840191602090910190613593565b5060e08201516007820180546001600160a01b039283166001600160a01b03199182161790915561010084015160089093018054610120909501511515600160a01b0260ff60a01b199484169590921694909417929092169190911790915560408051848152602081018a9052808201899052606081018790529051918a169133917f1f3cf74526b4974a81a4330e64a325723bd20938f2c6a83538873acdd6eeca23919081900360800190a35050505050505050565b61156b61339b565b6001600160a01b031661157c611b41565b6001600160a01b0316146115c5576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60005b8281101561162857600085815260086020526040812083918686858181106115ec57fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff191660ff929092169190911790556001016115c8565b5050505050565b600061163961339b565b6001600160a01b031661164a611b41565b6001600160a01b031614611693576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600083815260066020908152604091829020600401849055815185815291516000805160206136468339815191529281900390910190a192915050565b6116d861339b565b6001600160a01b03166116e9611b41565b6001600160a01b031614611732576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600081815260066020908152604091829020600801805460ff60a01b1916600160a01b179055815183815291516000805160206136468339815191529281900390910190a150565b61178261339b565b6001600160a01b0316611793611b41565b6001600160a01b0316146117dc576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600480549115156101000261ff0019909216919091179055565b600061180061339b565b6001600160a01b0316611811611b41565b6001600160a01b03161461185a576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60008381526006602090815260409182902060080180546001600160a01b0319166001600160a01b038616179055815185815291516000805160206136468339815191529281900390910190a192915050565b6118b561339b565b6001600160a01b03166118c6611b41565b6001600160a01b03161461190f576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600355565b61191c61339b565b6001600160a01b031661192d611b41565b6001600160a01b031614611976576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60005b818110156119cc5760006007600085858581811061199357fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101611979565b505050565b600454610100900460ff1690565b6119e761339b565b6001600160a01b03166119f8611b41565b6001600160a01b031614611a41576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000908152600660205260409020600801546001600160a01b031690565b60045460ff1681565b611aba61339b565b6001600160a01b0316611acb611b41565b6001600160a01b031614611b14576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600480546001600160a01b03909216620100000262010000600160b01b0319909216919091179055600555565b6000546001600160a01b031690565b606080600060015b6001548111611bba576000818152600660205260409020600701546001600160a01b038681169116148015611ba65750600081815260066020526040902060080154600160a01b900460ff16155b15611bb2576001909101905b600101611b58565b5060608167ffffffffffffffff81118015611bd457600080fd5b50604051908082528060200260200182016040528015611bfe578160200160208202803683370190505b50905060608267ffffffffffffffff81118015611c1a57600080fd5b50604051908082528060200260200182016040528015611c44578160200160208202803683370190505b5060009350905060015b6001548111611cf7576000818152600660205260409020600701546001600160a01b038881169116148015611c9c5750600081815260066020526040902060080154600160a01b900460ff16155b15611cef5780838581518110611cae57fe5b6020026020010181815250506006600082815260200190815260200160002060010154828581518110611cdd57fe5b60209081029190910101526001909301925b600101611c4e565b50909350915050915091565b3360009081526007602052604081205460ff16151560011415611d2857506000610eff565b60045460ff16611d3a57506000610eff565b611d426134e1565b6000838152600660209081526040918290208251610140810184528154815260018201548184015260028201548185015260038201546060820152600482015460808201526005820180548551818602810186019096528086529194929360a08601939290830182828015611dd657602002820191906000526020600020905b815481526020019060010190808311611dc2575b5050505050815260200160068201805480602002602001604051908101604052809291908181526020018280548015611e4c57602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411611e1d5790505b505050918352505060078201546001600160a01b039081166020830152600890920154918216604082015260ff600160a01b909204821615156060909101526004549192506101009091041615611fbe576005546004805460408051636eb1769f60e11b8152339381019390935230602484015251620100009091046001600160a01b03169163dd62ed3e916044808301926020929190829003018186803b158015611ef757600080fd5b505afa158015611f0b573d6000803e3d6000fd5b505050506040513d6020811015611f2157600080fd5b50511015611f33576000915050610eff565b60e08101516001600160a01b031660009081526009602090815260408083208285015184528083528184203385529092529091205460035460ff909116908110611f835760009350505050610eff565b600354611f9090826133c5565b836060015111611fa7575050606001519050610eff565b600354611fb490826133c5565b9350505050610eff565b60a081015151611fd2576000915050610eff565b60005b8160a00151518110156120dd578160a001518181518110611ff257fe5b6020026020010151421015801561204257508160c00151818151811061201457fe5b6020908102919091018101516000868152600883526040808220338352909352919091205460ff9081169116145b156120d55760e08201516001600160a01b031660009081526009602090815260408083208286015184528083528184203385529092529091205460035460ff909116908110612098576000945050505050610eff565b6003546120a590826133c5565b8460600151116120bd57505050606001519050610eff565b6003546120ca90826133c5565b945050505050610eff565b600101611fd5565b5060009392505050565b600860209081526000928352604080842090915290825290205460ff1681565b61210f61339b565b6001600160a01b0316612120611b41565b6001600160a01b031614612169576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60009283526008602090815260408085206001600160a01b039490941685529290529120805460ff191660ff909216919091179055565b6121a861339b565b6001600160a01b03166121b9611b41565b6001600160a01b031614612202576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600081815260066020908152604091829020600801805460ff60a01b19169055815183815291516000805160206136468339815191529281900390910190a150565b60076020526000908152604090205460ff1681565b600454610100900460ff1681565b61226f61339b565b6001600160a01b0316612280611b41565b6001600160a01b0316146122c9576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6000838152600660205260408120905b6006820154811015612370578360ff168260060182815481106122f857fe5b60009182526020918290209181049091015460ff601f9092166101000a9004161415612368578282600501828154811061232e57fe5b9060005260206000200181905550600080516020613646833981519152856040518082815260200191505060405180910390a150506119cc565b6001016122d9565b50600681018054600181810183556000928352602080842081840401805460ff808a16601f9096166101000a95860295021916939093179092556005840180549182018155835291819020909101839055604080518681529051600080516020613646833981519152929181900390910190a150505050565b3360009081526007602052604090205460ff1615612440576040805162461bcd60e51b815260206004820152600f60248201526e1e5bdd48185c9948189b1bd8dad959608a1b604482015290519081900360640190fd5b60045460ff16151560011461248b576040805162461bcd60e51b815260206004820152600c60248201526b14d85b19481cdd1bdc1c195960a21b604482015290519081900360640190fd5b6124936134e1565b6000838152600660209081526040918290208251610140810184528154815260018201548184015260028201548185015260038201546060820152600482015460808201526005820180548551818602810186019096528086529194929360a0860193929083018282801561252757602002820191906000526020600020905b815481526020019060010190808311612513575b505050505081526020016006820180548060200260200160405190810160405280929190818152602001828054801561259d57602002820191906000526020600020906000905b825461010083900a900460ff1681526020600192830181810494850194909303909202910180841161256e5790505b505050918352505060078201546001600160a01b0390811660208301526008909201549182166040820152600160a01b90910460ff16151560609091015261012081015190915015612629576040805162461bcd60e51b815260206004820152601060248201526f10d85c99081a5cc8199a5b9a5cda195960821b604482015290519081900360640190fd5b600454610100900460ff1661275e57600083815260086020908152604080832033845290915290205460ff16806126a7576040805162461bcd60e51b815260206004820152601760248201527f796f7520617265206e6f742077686974656c6973746564000000000000000000604482015290519081900360640190fd5b6000805b8360c0015151811015612700578260ff168460c0015182815181106126cc57fe5b602002602001015160ff1614156126f8578360a0015181815181106126ed57fe5b602002602001015191505b6001016126ab565b5080158015906127105750428111155b612757576040805162461bcd60e51b81526020600482015260136024820152721dd85a5d08199bdc881cd85b19481cdd185c9d606a1b604482015290519081900360640190fd5b5050612821565b6005546004805460408051636eb1769f60e11b8152339381019390935230602484015251620100009091046001600160a01b03169163dd62ed3e916044808301926020929190829003018186803b1580156127b857600080fd5b505afa1580156127cc573d6000803e3d6000fd5b505050506040513d60208110156127e257600080fd5b505110156128215760405162461bcd60e51b81526004018080602001828103825260258152602001806136df6025913960400191505060405180910390fd5b60e081015160608201518311156128695760405162461bcd60e51b815260040180806020018281038252602e815260200180613725602e913960400191505060405180910390fd5b60e08201516001600160a01b031660009081526009602090815260408083208286015184528083528184203385529092529091205460035460ff9091169081106128e45760405162461bcd60e51b815260040180806020018281038252602e8152602001806136b1602e913960400191505060405180910390fd5b6003546000906128f490836133c5565b9050858111156129015750845b60808501516000906129139083613427565b6101008701519091506001600160a01b031615806129ae575061010086015160408051636eb1769f60e11b8152336004820152306024820152905183926001600160a01b03169163dd62ed3e916044808301926020929190829003018186803b15801561297f57600080fd5b505afa158015612993573d6000803e3d6000fd5b505050506040513d60208110156129a957600080fd5b505110155b6129ff576040805162461bcd60e51b815260206004820152601760248201527f4e65656420746f20417070726f7665207061796d656e74000000000000000000604482015290519081900360640190fd5b6101008601516001600160a01b0316612ae05780341015612a67576040805162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f7567682066756e647320746f20707572636861736500000000604482015290519081900360640190fd5b60025460405134839003916001600160a01b03169083156108fc029084906000818181858888f19350505050158015612aa4573d6000803e3d6000fd5b508015612ada57604051339082156108fc029083906000818181858888f19350505050158015612ad8573d6000803e3d6000fd5b505b50612b6f565b610100860151600254604080516323b872dd60e01b81523360048201526001600160a01b03928316602482015260448101859052905191909216916323b872dd9160648083019260209291908290030181600087803b158015612b4257600080fd5b505af1158015612b56573d6000803e3d6000fd5b505050506040513d6020811015612b6c57600080fd5b50505b600254602087015160408051637921219560e11b81526001600160a01b03938416600482015233602482015260448101929092526064820185905260a06084830152600060a4830181905290519288169263f242432a9260e480820193929182900301818387803b158015612be357600080fd5b505af1158015612bf7573d6000803e3d6000fd5b505050600089815260066020526040902060030154612c179150836133c5565b600089815260066020526040902060030155612c338383613487565b602087810151600090815286825260408082203380845290845291819020805460ff191660ff959095169490941790935582518b8152918201859052825190927fc54aab3546f0a86ae0fc33cdadcda77da8b3d056b1157a0cbc251b625c7bac73928290030190a25050505050505050565b612cad61339b565b6001600160a01b0316612cbe611b41565b6001600160a01b031614612d07576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b612d3161339b565b6001600160a01b0316612d42611b41565b6001600160a01b031614612d8b576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6004805460ff19166001179055565b6002546001600160a01b031681565b60009081526006602052604090206002015490565b60009081526006602052604090206003015490565b6004546201000090046001600160a01b031681565b612df061339b565b6001600160a01b0316612e01611b41565b6001600160a01b031614612e4a576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19169055565b612e7361339b565b6001600160a01b0316612e84611b41565b6001600160a01b031614612ecd576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6004805460ff19169055565b60035481565b612ee761339b565b6001600160a01b0316612ef8611b41565b6001600160a01b031614612f41576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6001600160a01b038116612f865760405162461bcd60e51b81526004018080602001828103825260268152602001806136666026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b612fe961339b565b6001600160a01b0316612ffa611b41565b6001600160a01b031614613043576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60005b818110156119cc5760016007600085858581811061306057fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101613046565b606080600060015b60015481116130de576000818152600660205260409020600701546001600160a01b03868116911614156130d6576001909101905b6001016130a1565b5060608167ffffffffffffffff811180156130f857600080fd5b50604051908082528060200260200182016040528015613122578160200160208202803683370190505b50905060608267ffffffffffffffff8111801561313e57600080fd5b50604051908082528060200260200182016040528015613168578160200160208202803683370190505b5060009350905060015b6001548111611cf7576000818152600660205260409020600701546001600160a01b03888116911614156131ee57808385815181106131ad57fe5b60200260200101818152505060066000828152602001908152602001600020600101548285815181106131dc57fe5b60209081029190910101526001909301925b600101613172565b606080600060015b600154811161325f576000818152600660205260409020600701546001600160a01b03868116911614801561324b5750600081815260066020526040902060080154600160a01b900460ff165b15613257576001909101905b6001016131fe565b5060608167ffffffffffffffff8111801561327957600080fd5b506040519080825280602002602001820160405280156132a3578160200160208202803683370190505b50905060608267ffffffffffffffff811180156132bf57600080fd5b506040519080825280602002602001820160405280156132e9578160200160208202803683370190505b5060009350905060015b6001548111611cf7576000818152600660205260409020600701546001600160a01b0388811691161480156133405750600081815260066020526040902060080154600160a01b900460ff165b15613393578083858151811061335257fe5b602002602001018181525050600660008281526020019081526020016000206001015482858151811061338157fe5b60209081029190910101526001909301925b6001016132f3565b3390565b60006133b66001805461348790919063ffffffff16565b905090565b6001805481019055565b60008282111561341c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008261343657506000613421565b8282028284828161344357fe5b04146134805760405162461bcd60e51b81526004018080602001828103825260218152602001806137046021913960400191505060405180910390fd5b9392505050565b600082820183811015613480576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040518061014001604052806000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160006001600160a01b0316815260200160006001600160a01b031681526020016000151581525090565b828054828255906000526020600020908101928215613583579160200282015b82811115613583578251825591602001919060010190613568565b5061358f929150613630565b5090565b82805482825590600052602060002090601f016020900481019282156135835791602002820160005b838211156135fa57835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026135bc565b80156136275782816101000a81549060ff02191690556001016020816000010492830192600103026135fa565b505061358f9291505b5b8082111561358f576000815560010161363156feed6db11026ebcc6aae64d66d0a08276ffed7c75ac478965350fd6ab360b8d2094f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373436f6e7472616374206d7573742062652077686974656c6973746564206279206f776e65724f72646572206578636565647320746865206d6178206c696d6974206f66204e465473207065722077616c6c65744e65656420746f20686f6c6420726571756972656420616d6f7574206f6620746f6b656e73536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f72646572206578636565647320746865206d6178206e756d626572206f6620617661696c61626c65204e4654734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572496e697469616c20737570706c792063616e6e6f74206265206d6f7265207468616e20617661696c61626c6520737570706c79a26469706673582212201422026f16488da67d8e7a9ac1d0eef58d1246f8683d20529dc4b9f5023bd89d64736f6c63430007030033
Deployed Bytecode
0x6080604052600436106102935760003560e01c80638d627a7e1161015a578063b66a0e5d116100c1578063e36b0b371161007a578063e36b0b3714610c0d578063ed358f9214610c22578063f2fde38b14610c37578063f338228e14610c6a578063f3e74dff14610ce5578063f5214e0a14610d1857610293565b8063b66a0e5d14610b47578063b7335fa814610b5c578063ba87328614610b71578063c0a6011d14610b9b578063c36f715114610bc5578063d96e83d614610bda57610293565b8063a1d33a1111610113578063a1d33a1114610a46578063a20623ce14610a70578063a5a865dc14610aa3578063a8b2c23614610ab8578063ad4451a314610af1578063b18fc16714610b1457610293565b80638d627a7e146108715780638da5cb5b146108aa57806393315791146108bf57806395e00e201461098b57806396e63ce0146109b55780639f504e4c14610a0457610293565b806336ac9a15116101fe57806363c766b9116101b757806363c766b914610763578063649586781461078d5780636b7259ae14610808578063715018a61461081d5780637eb836991461083257806387c348bf1461085c57610293565b806336ac9a15146105d05780634837432f1461061f5780634a3f6ecd146106a45780634b88ac0b146106d45780634dc41b02146106fe5780635a05ae501461072a57610293565b80631e1fd2a4116102505780631e1fd2a41461047d5780632812920d146104925780632cbf6196146104c55780632ed2a1851461053e5780632f8a82cb1461057c5780633387ab1d146105a657610293565b806306ec16f8146102985780630ba6b6fd146102cd57806312e0136314610309578063148fdb571461034f57806316ad03331461036457806318b5412514610403575b600080fd5b3480156102a457600080fd5b506102cb600480360360208110156102bb57600080fd5b50356001600160a01b0316610d4b565b005b3480156102d957600080fd5b506102f7600480360360208110156102f057600080fd5b5035610eec565b60408051918252519081900360200190f35b34801561031557600080fd5b506103336004803603602081101561032c57600080fd5b5035610f04565b604080516001600160a01b039092168252519081900360200190f35b34801561035b57600080fd5b506102f7610f22565b34801561037057600080fd5b5061038e6004803603602081101561038757600080fd5b5035610f28565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103c85781810151838201526020016103b0565b50505050905090810190601f1680156103f55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561040f57600080fd5b5061042d6004803603602081101561042657600080fd5b503561107b565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610469578181015183820152602001610451565b505050509050019250505060405180910390f35b34801561048957600080fd5b506102f76110e0565b34801561049e57600080fd5b506102cb600480360360208110156104b557600080fd5b50356001600160a01b03166110e6565b3480156104d157600080fd5b506104ef600480360360208110156104e857600080fd5b503561116c565b60408051988952602089019790975287870195909552606087019390935260808601919091526001600160a01b0390811660a08601521660c0840152151560e083015251908190036101000190f35b34801561054a57600080fd5b506105686004803603602081101561056157600080fd5b50356111c2565b604080519115158252519081900360200190f35b34801561058857600080fd5b506102f76004803603602081101561059f57600080fd5b50356111e1565b3480156105b257600080fd5b50610568600480360360208110156105c957600080fd5b50356111f6565b3480156105dc57600080fd5b506102cb600480360360a08110156105f357600080fd5b506001600160a01b0381358116916020810135916040820135916060810135909116906080013561120c565b34801561062b57600080fd5b506102cb6004803603606081101561064257600080fd5b81359190810190604081016020820135600160201b81111561066357600080fd5b82018360208201111561067557600080fd5b803590602001918460208302840111600160201b8311171561069657600080fd5b91935091503560ff16611563565b3480156106b057600080fd5b50610568600480360360408110156106c757600080fd5b508035906020013561162f565b3480156106e057600080fd5b506102cb600480360360208110156106f757600080fd5b50356116d0565b34801561070a57600080fd5b506102cb6004803603602081101561072157600080fd5b5035151561177a565b34801561073657600080fd5b506105686004803603604081101561074d57600080fd5b50803590602001356001600160a01b03166117f6565b34801561076f57600080fd5b506102cb6004803603602081101561078657600080fd5b50356118ad565b34801561079957600080fd5b506102cb600480360360208110156107b057600080fd5b810190602081018135600160201b8111156107ca57600080fd5b8201836020820111156107dc57600080fd5b803590602001918460208302840111600160201b831117156107fd57600080fd5b509092509050611914565b34801561081457600080fd5b506105686119d1565b34801561082957600080fd5b506102cb6119df565b34801561083e57600080fd5b506103336004803603602081101561085557600080fd5b5035611a8b565b34801561086857600080fd5b50610568611aa9565b34801561087d57600080fd5b506102cb6004803603604081101561089457600080fd5b50803590602001356001600160a01b0316611ab2565b3480156108b657600080fd5b50610333611b41565b3480156108cb57600080fd5b506108f2600480360360208110156108e257600080fd5b50356001600160a01b0316611b50565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561093657818101518382015260200161091e565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561097557818101518382015260200161095d565b5050505090500194505050505060405180910390f35b34801561099757600080fd5b506102f7600480360360208110156109ae57600080fd5b5035611d03565b3480156109c157600080fd5b506109ee600480360360408110156109d857600080fd5b50803590602001356001600160a01b03166120e7565b6040805160ff9092168252519081900360200190f35b348015610a1057600080fd5b506102cb60048036036060811015610a2757600080fd5b5080359060208101356001600160a01b0316906040013560ff16612107565b348015610a5257600080fd5b506102cb60048036036020811015610a6957600080fd5b50356121a0565b348015610a7c57600080fd5b5061056860048036036020811015610a9357600080fd5b50356001600160a01b0316612244565b348015610aaf57600080fd5b50610568612259565b348015610ac457600080fd5b506102cb60048036036060811015610adb57600080fd5b5080359060ff6020820135169060400135612267565b6102cb60048036036040811015610b0757600080fd5b50803590602001356123e9565b348015610b2057600080fd5b506102cb60048036036020811015610b3757600080fd5b50356001600160a01b0316612ca5565b348015610b5357600080fd5b506102cb612d29565b348015610b6857600080fd5b50610333612d9a565b348015610b7d57600080fd5b506102f760048036036020811015610b9457600080fd5b5035612da9565b348015610ba757600080fd5b506102f760048036036020811015610bbe57600080fd5b5035612dbe565b348015610bd157600080fd5b50610333612dd3565b348015610be657600080fd5b506102cb60048036036020811015610bfd57600080fd5b50356001600160a01b0316612de8565b348015610c1957600080fd5b506102cb612e6b565b348015610c2e57600080fd5b506102f7612ed9565b348015610c4357600080fd5b506102cb60048036036020811015610c5a57600080fd5b50356001600160a01b0316612edf565b348015610c7657600080fd5b506102cb60048036036020811015610c8d57600080fd5b810190602081018135600160201b811115610ca757600080fd5b820183602082011115610cb957600080fd5b803590602001918460208302840111600160201b83111715610cda57600080fd5b509092509050612fe1565b348015610cf157600080fd5b506108f260048036036020811015610d0857600080fd5b50356001600160a01b0316613099565b348015610d2457600080fd5b506108f260048036036020811015610d3b57600080fd5b50356001600160a01b03166131f6565b610d5361339b565b6001600160a01b0316610d64611b41565b6001600160a01b031614610dad576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6001600160a01b038116610ded5760405133904780156108fc02916000818181858888f19350505050158015610de7573d6000803e3d6000fd5b50610ee9565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610e3c57600080fd5b505afa158015610e50573d6000803e3d6000fd5b505050506040513d6020811015610e6657600080fd5b50516040805163a9059cbb60e01b81523360048201526024810183905290519192506001600160a01b0384169163a9059cbb916044808201926020929091908290030181600087803b158015610ebb57600080fd5b505af1158015610ecf573d6000803e3d6000fd5b505050506040513d6020811015610ee557600080fd5b5050505b50565b6000818152600660205260409020600401545b919050565b6000908152600660205260409020600701546001600160a01b031690565b60055481565b600081815260066020526040808220600781015460019091015482516303a24d0760e21b8152600481019190915291516060936001600160a01b0390921692630e89341c926024808301939192829003018186803b158015610f8957600080fd5b505afa158015610f9d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610fc657600080fd5b8101908080516040519392919084600160201b821115610fe557600080fd5b908301906020820185811115610ffa57600080fd5b8251600160201b81118282018810171561101357600080fd5b82525081516020918201929091019080838360005b83811015611040578181015183820152602001611028565b50505050905090810190601f16801561106d5780820380516001836020036101000a031916815260200191505b506040525050509050919050565b6000818152600660209081526040918290206005018054835181840281018401909452808452606093928301828280156110d457602002820191906000526020600020905b8154815260200190600101908083116110c0575b50505050509050919050565b60015481565b6110ee61339b565b6001600160a01b03166110ff611b41565b6001600160a01b031614611148576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6006602052600090815260409020805460018201546002830154600384015460048501546007860154600890960154949593949293919290916001600160a01b039081169190811690600160a01b900460ff1688565b600090815260066020526040902060080154600160a01b900460ff1690565b60009081526006602052604090206001015490565b6000908152600660205260409020600401541590565b61121461339b565b6001600160a01b0316611225611b41565b6001600160a01b03161461126e576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60025460408051627eeac760e11b81526001600160a01b039283166004820152602481018790529051879286929084169162fdd58e91604480820192602092909190829003018186803b1580156112c457600080fd5b505afa1580156112d8573d6000803e3d6000fd5b505050506040513d60208110156112ee57600080fd5b5051101561132d5760405162461bcd60e51b81526004018080602001828103825260338152602001806137736033913960400191505060405180910390fd5b6002546040805163e985e9c560e01b81526001600160a01b03928316600482015230602482015290519183169163e985e9c591604480820192602092909190829003018186803b15801561138057600080fd5b505afa158015611394573d6000803e3d6000fd5b505050506040513d60208110156113aa57600080fd5b505115156001146113ec5760405162461bcd60e51b815260040180806020018281038252602581526020018061368c6025913960400191505060405180910390fd5b60006113f661339f565b90506114006133bb565b6114086134e1565b8181526001600160a01b0380891660e0830152602080830189815260408085018a8152606086018b8152608087018a8152958b1661010088015260006101208801819052888152600686529290922086518155925160018401555160028301555160038201559151600483015560a08301518051849392611490926005850192910190613548565b5060c082015180516114ac916006840191602090910190613593565b5060e08201516007820180546001600160a01b039283166001600160a01b03199182161790915561010084015160089093018054610120909501511515600160a01b0260ff60a01b199484169590921694909417929092169190911790915560408051848152602081018a9052808201899052606081018790529051918a169133917f1f3cf74526b4974a81a4330e64a325723bd20938f2c6a83538873acdd6eeca23919081900360800190a35050505050505050565b61156b61339b565b6001600160a01b031661157c611b41565b6001600160a01b0316146115c5576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60005b8281101561162857600085815260086020526040812083918686858181106115ec57fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff191660ff929092169190911790556001016115c8565b5050505050565b600061163961339b565b6001600160a01b031661164a611b41565b6001600160a01b031614611693576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600083815260066020908152604091829020600401849055815185815291516000805160206136468339815191529281900390910190a192915050565b6116d861339b565b6001600160a01b03166116e9611b41565b6001600160a01b031614611732576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600081815260066020908152604091829020600801805460ff60a01b1916600160a01b179055815183815291516000805160206136468339815191529281900390910190a150565b61178261339b565b6001600160a01b0316611793611b41565b6001600160a01b0316146117dc576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600480549115156101000261ff0019909216919091179055565b600061180061339b565b6001600160a01b0316611811611b41565b6001600160a01b03161461185a576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60008381526006602090815260409182902060080180546001600160a01b0319166001600160a01b038616179055815185815291516000805160206136468339815191529281900390910190a192915050565b6118b561339b565b6001600160a01b03166118c6611b41565b6001600160a01b03161461190f576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600355565b61191c61339b565b6001600160a01b031661192d611b41565b6001600160a01b031614611976576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60005b818110156119cc5760006007600085858581811061199357fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101611979565b505050565b600454610100900460ff1690565b6119e761339b565b6001600160a01b03166119f8611b41565b6001600160a01b031614611a41576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000908152600660205260409020600801546001600160a01b031690565b60045460ff1681565b611aba61339b565b6001600160a01b0316611acb611b41565b6001600160a01b031614611b14576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600480546001600160a01b03909216620100000262010000600160b01b0319909216919091179055600555565b6000546001600160a01b031690565b606080600060015b6001548111611bba576000818152600660205260409020600701546001600160a01b038681169116148015611ba65750600081815260066020526040902060080154600160a01b900460ff16155b15611bb2576001909101905b600101611b58565b5060608167ffffffffffffffff81118015611bd457600080fd5b50604051908082528060200260200182016040528015611bfe578160200160208202803683370190505b50905060608267ffffffffffffffff81118015611c1a57600080fd5b50604051908082528060200260200182016040528015611c44578160200160208202803683370190505b5060009350905060015b6001548111611cf7576000818152600660205260409020600701546001600160a01b038881169116148015611c9c5750600081815260066020526040902060080154600160a01b900460ff16155b15611cef5780838581518110611cae57fe5b6020026020010181815250506006600082815260200190815260200160002060010154828581518110611cdd57fe5b60209081029190910101526001909301925b600101611c4e565b50909350915050915091565b3360009081526007602052604081205460ff16151560011415611d2857506000610eff565b60045460ff16611d3a57506000610eff565b611d426134e1565b6000838152600660209081526040918290208251610140810184528154815260018201548184015260028201548185015260038201546060820152600482015460808201526005820180548551818602810186019096528086529194929360a08601939290830182828015611dd657602002820191906000526020600020905b815481526020019060010190808311611dc2575b5050505050815260200160068201805480602002602001604051908101604052809291908181526020018280548015611e4c57602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411611e1d5790505b505050918352505060078201546001600160a01b039081166020830152600890920154918216604082015260ff600160a01b909204821615156060909101526004549192506101009091041615611fbe576005546004805460408051636eb1769f60e11b8152339381019390935230602484015251620100009091046001600160a01b03169163dd62ed3e916044808301926020929190829003018186803b158015611ef757600080fd5b505afa158015611f0b573d6000803e3d6000fd5b505050506040513d6020811015611f2157600080fd5b50511015611f33576000915050610eff565b60e08101516001600160a01b031660009081526009602090815260408083208285015184528083528184203385529092529091205460035460ff909116908110611f835760009350505050610eff565b600354611f9090826133c5565b836060015111611fa7575050606001519050610eff565b600354611fb490826133c5565b9350505050610eff565b60a081015151611fd2576000915050610eff565b60005b8160a00151518110156120dd578160a001518181518110611ff257fe5b6020026020010151421015801561204257508160c00151818151811061201457fe5b6020908102919091018101516000868152600883526040808220338352909352919091205460ff9081169116145b156120d55760e08201516001600160a01b031660009081526009602090815260408083208286015184528083528184203385529092529091205460035460ff909116908110612098576000945050505050610eff565b6003546120a590826133c5565b8460600151116120bd57505050606001519050610eff565b6003546120ca90826133c5565b945050505050610eff565b600101611fd5565b5060009392505050565b600860209081526000928352604080842090915290825290205460ff1681565b61210f61339b565b6001600160a01b0316612120611b41565b6001600160a01b031614612169576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60009283526008602090815260408085206001600160a01b039490941685529290529120805460ff191660ff909216919091179055565b6121a861339b565b6001600160a01b03166121b9611b41565b6001600160a01b031614612202576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600081815260066020908152604091829020600801805460ff60a01b19169055815183815291516000805160206136468339815191529281900390910190a150565b60076020526000908152604090205460ff1681565b600454610100900460ff1681565b61226f61339b565b6001600160a01b0316612280611b41565b6001600160a01b0316146122c9576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6000838152600660205260408120905b6006820154811015612370578360ff168260060182815481106122f857fe5b60009182526020918290209181049091015460ff601f9092166101000a9004161415612368578282600501828154811061232e57fe5b9060005260206000200181905550600080516020613646833981519152856040518082815260200191505060405180910390a150506119cc565b6001016122d9565b50600681018054600181810183556000928352602080842081840401805460ff808a16601f9096166101000a95860295021916939093179092556005840180549182018155835291819020909101839055604080518681529051600080516020613646833981519152929181900390910190a150505050565b3360009081526007602052604090205460ff1615612440576040805162461bcd60e51b815260206004820152600f60248201526e1e5bdd48185c9948189b1bd8dad959608a1b604482015290519081900360640190fd5b60045460ff16151560011461248b576040805162461bcd60e51b815260206004820152600c60248201526b14d85b19481cdd1bdc1c195960a21b604482015290519081900360640190fd5b6124936134e1565b6000838152600660209081526040918290208251610140810184528154815260018201548184015260028201548185015260038201546060820152600482015460808201526005820180548551818602810186019096528086529194929360a0860193929083018282801561252757602002820191906000526020600020905b815481526020019060010190808311612513575b505050505081526020016006820180548060200260200160405190810160405280929190818152602001828054801561259d57602002820191906000526020600020906000905b825461010083900a900460ff1681526020600192830181810494850194909303909202910180841161256e5790505b505050918352505060078201546001600160a01b0390811660208301526008909201549182166040820152600160a01b90910460ff16151560609091015261012081015190915015612629576040805162461bcd60e51b815260206004820152601060248201526f10d85c99081a5cc8199a5b9a5cda195960821b604482015290519081900360640190fd5b600454610100900460ff1661275e57600083815260086020908152604080832033845290915290205460ff16806126a7576040805162461bcd60e51b815260206004820152601760248201527f796f7520617265206e6f742077686974656c6973746564000000000000000000604482015290519081900360640190fd5b6000805b8360c0015151811015612700578260ff168460c0015182815181106126cc57fe5b602002602001015160ff1614156126f8578360a0015181815181106126ed57fe5b602002602001015191505b6001016126ab565b5080158015906127105750428111155b612757576040805162461bcd60e51b81526020600482015260136024820152721dd85a5d08199bdc881cd85b19481cdd185c9d606a1b604482015290519081900360640190fd5b5050612821565b6005546004805460408051636eb1769f60e11b8152339381019390935230602484015251620100009091046001600160a01b03169163dd62ed3e916044808301926020929190829003018186803b1580156127b857600080fd5b505afa1580156127cc573d6000803e3d6000fd5b505050506040513d60208110156127e257600080fd5b505110156128215760405162461bcd60e51b81526004018080602001828103825260258152602001806136df6025913960400191505060405180910390fd5b60e081015160608201518311156128695760405162461bcd60e51b815260040180806020018281038252602e815260200180613725602e913960400191505060405180910390fd5b60e08201516001600160a01b031660009081526009602090815260408083208286015184528083528184203385529092529091205460035460ff9091169081106128e45760405162461bcd60e51b815260040180806020018281038252602e8152602001806136b1602e913960400191505060405180910390fd5b6003546000906128f490836133c5565b9050858111156129015750845b60808501516000906129139083613427565b6101008701519091506001600160a01b031615806129ae575061010086015160408051636eb1769f60e11b8152336004820152306024820152905183926001600160a01b03169163dd62ed3e916044808301926020929190829003018186803b15801561297f57600080fd5b505afa158015612993573d6000803e3d6000fd5b505050506040513d60208110156129a957600080fd5b505110155b6129ff576040805162461bcd60e51b815260206004820152601760248201527f4e65656420746f20417070726f7665207061796d656e74000000000000000000604482015290519081900360640190fd5b6101008601516001600160a01b0316612ae05780341015612a67576040805162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f7567682066756e647320746f20707572636861736500000000604482015290519081900360640190fd5b60025460405134839003916001600160a01b03169083156108fc029084906000818181858888f19350505050158015612aa4573d6000803e3d6000fd5b508015612ada57604051339082156108fc029083906000818181858888f19350505050158015612ad8573d6000803e3d6000fd5b505b50612b6f565b610100860151600254604080516323b872dd60e01b81523360048201526001600160a01b03928316602482015260448101859052905191909216916323b872dd9160648083019260209291908290030181600087803b158015612b4257600080fd5b505af1158015612b56573d6000803e3d6000fd5b505050506040513d6020811015612b6c57600080fd5b50505b600254602087015160408051637921219560e11b81526001600160a01b03938416600482015233602482015260448101929092526064820185905260a06084830152600060a4830181905290519288169263f242432a9260e480820193929182900301818387803b158015612be357600080fd5b505af1158015612bf7573d6000803e3d6000fd5b505050600089815260066020526040902060030154612c179150836133c5565b600089815260066020526040902060030155612c338383613487565b602087810151600090815286825260408082203380845290845291819020805460ff191660ff959095169490941790935582518b8152918201859052825190927fc54aab3546f0a86ae0fc33cdadcda77da8b3d056b1157a0cbc251b625c7bac73928290030190a25050505050505050565b612cad61339b565b6001600160a01b0316612cbe611b41565b6001600160a01b031614612d07576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b612d3161339b565b6001600160a01b0316612d42611b41565b6001600160a01b031614612d8b576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6004805460ff19166001179055565b6002546001600160a01b031681565b60009081526006602052604090206002015490565b60009081526006602052604090206003015490565b6004546201000090046001600160a01b031681565b612df061339b565b6001600160a01b0316612e01611b41565b6001600160a01b031614612e4a576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19169055565b612e7361339b565b6001600160a01b0316612e84611b41565b6001600160a01b031614612ecd576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6004805460ff19169055565b60035481565b612ee761339b565b6001600160a01b0316612ef8611b41565b6001600160a01b031614612f41576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b6001600160a01b038116612f865760405162461bcd60e51b81526004018080602001828103825260268152602001806136666026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b612fe961339b565b6001600160a01b0316612ffa611b41565b6001600160a01b031614613043576040805162461bcd60e51b81526020600482018190526024820152600080516020613753833981519152604482015290519081900360640190fd5b60005b818110156119cc5760016007600085858581811061306057fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101613046565b606080600060015b60015481116130de576000818152600660205260409020600701546001600160a01b03868116911614156130d6576001909101905b6001016130a1565b5060608167ffffffffffffffff811180156130f857600080fd5b50604051908082528060200260200182016040528015613122578160200160208202803683370190505b50905060608267ffffffffffffffff8111801561313e57600080fd5b50604051908082528060200260200182016040528015613168578160200160208202803683370190505b5060009350905060015b6001548111611cf7576000818152600660205260409020600701546001600160a01b03888116911614156131ee57808385815181106131ad57fe5b60200260200101818152505060066000828152602001908152602001600020600101548285815181106131dc57fe5b60209081029190910101526001909301925b600101613172565b606080600060015b600154811161325f576000818152600660205260409020600701546001600160a01b03868116911614801561324b5750600081815260066020526040902060080154600160a01b900460ff165b15613257576001909101905b6001016131fe565b5060608167ffffffffffffffff8111801561327957600080fd5b506040519080825280602002602001820160405280156132a3578160200160208202803683370190505b50905060608267ffffffffffffffff811180156132bf57600080fd5b506040519080825280602002602001820160405280156132e9578160200160208202803683370190505b5060009350905060015b6001548111611cf7576000818152600660205260409020600701546001600160a01b0388811691161480156133405750600081815260066020526040902060080154600160a01b900460ff165b15613393578083858151811061335257fe5b602002602001018181525050600660008281526020019081526020016000206001015482858151811061338157fe5b60209081029190910101526001909301925b6001016132f3565b3390565b60006133b66001805461348790919063ffffffff16565b905090565b6001805481019055565b60008282111561341c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60008261343657506000613421565b8282028284828161344357fe5b04146134805760405162461bcd60e51b81526004018080602001828103825260218152602001806137046021913960400191505060405180910390fd5b9392505050565b600082820183811015613480576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040518061014001604052806000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160006001600160a01b0316815260200160006001600160a01b031681526020016000151581525090565b828054828255906000526020600020908101928215613583579160200282015b82811115613583578251825591602001919060010190613568565b5061358f929150613630565b5090565b82805482825590600052602060002090601f016020900481019282156135835791602002820160005b838211156135fa57835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026135bc565b80156136275782816101000a81549060ff02191690556001016020816000010492830192600103026135fa565b505061358f9291505b5b8082111561358f576000815560010161363156feed6db11026ebcc6aae64d66d0a08276ffed7c75ac478965350fd6ab360b8d2094f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373436f6e7472616374206d7573742062652077686974656c6973746564206279206f776e65724f72646572206578636565647320746865206d6178206c696d6974206f66204e465473207065722077616c6c65744e65656420746f20686f6c6420726571756972656420616d6f7574206f6620746f6b656e73536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f72646572206578636565647320746865206d6178206e756d626572206f6620617661696c61626c65204e4654734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572496e697469616c20737570706c792063616e6e6f74206265206d6f7265207468616e20617661696c61626c6520737570706c79a26469706673582212201422026f16488da67d8e7a9ac1d0eef58d1246f8683d20529dc4b9f5023bd89d64736f6c63430007030033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.