Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 46 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 15860853 | 515 days ago | IN | 0 ETH | 0.00080046 | ||||
Safe Transfer Fr... | 15860831 | 515 days ago | IN | 0 ETH | 0.00115886 | ||||
Set Approval For... | 8886250 | 1604 days ago | IN | 0 ETH | 0.00006822 | ||||
Set Approval For... | 7968222 | 1748 days ago | IN | 0 ETH | 0.00027434 | ||||
Set Approval For... | 7968221 | 1748 days ago | IN | 0 ETH | 0.00027434 | ||||
Set Approval For... | 7968221 | 1748 days ago | IN | 0 ETH | 0.00018289 | ||||
Set Approval For... | 7968219 | 1748 days ago | IN | 0 ETH | 0.00027289 | ||||
Set Approval For... | 7876665 | 1762 days ago | IN | 0 ETH | 0.00018193 | ||||
Set Approval For... | 7829142 | 1769 days ago | IN | 0 ETH | 0.00022741 | ||||
Set Approval For... | 7811246 | 1772 days ago | IN | 0 ETH | 0.00027289 | ||||
Transfer From | 7759837 | 1780 days ago | IN | 0 ETH | 0.00021261 | ||||
Set Approval For... | 7759831 | 1780 days ago | IN | 0 ETH | 0.00027289 | ||||
Set Approval For... | 7748419 | 1782 days ago | IN | 0 ETH | 0.00018193 | ||||
Set Approval For... | 7727054 | 1785 days ago | IN | 0 ETH | 0.00036386 | ||||
Set Approval For... | 7722569 | 1786 days ago | IN | 0 ETH | 0.00027289 | ||||
Set Approval For... | 7721183 | 1786 days ago | IN | 0 ETH | 0.00027251 | ||||
Set Approval For... | 7720901 | 1786 days ago | IN | 0 ETH | 0.00022741 | ||||
Set Approval For... | 7717363 | 1787 days ago | IN | 0 ETH | 0.00036386 | ||||
Set Approval For... | 7711906 | 1788 days ago | IN | 0 ETH | 0.00036386 | ||||
Set Approval For... | 7710152 | 1788 days ago | IN | 0 ETH | 0.00013644 | ||||
Set Approval For... | 7709763 | 1788 days ago | IN | 0 ETH | 0.00036386 | ||||
Set Approval For... | 7700692 | 1789 days ago | IN | 0 ETH | 0.00004548 | ||||
Set Approval For... | 7671007 | 1794 days ago | IN | 0 ETH | 0.00027289 | ||||
Set Approval For... | 7665658 | 1795 days ago | IN | 0 ETH | 0.00027289 | ||||
Set Approval For... | 7663353 | 1795 days ago | IN | 0 ETH | 0.00027289 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ChainmonstersCoreV2
Compiler Version
v0.5.7+commit.6da8b019
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-04-01 */ pragma solidity ^0.5.2; interface IERC165 { /** * @notice Query if a contract implements an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @dev Interface identification is specified in ERC-165. This function * uses less than 30,000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } /** * @return the address of the owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner()); _; } /** * @return true if `msg.sender` is the owner of the contract. */ function isOwner() public view returns (bool) { return msg.sender == _owner; } /** * @dev Allows the current owner to relinquish control of the contract. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. * @notice Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0)); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } library Address { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until after the constructor finishes. * @param account address of the account to check * @return whether the target address is a contract */ function isContract(address account) internal view returns (bool) { uint256 size; // XXX Currently there is no better way to check if there is a contract in an address // than to check the size of the code at that address. // See https://ethereum.stackexchange.com/a/14016/36603 // for more details about how this works. // TODO Check this again before the Serenity release, because all addresses will be // contracts then. // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } } contract IERC721Receiver { /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a `safeTransfer`. This function MUST return the function selector, * otherwise the caller will revert the transaction. The selector to be * returned can be obtained as `this.onERC721Received.selector`. This * function MAY throw to revert and reject the transfer. * Note: the ERC721 contract address is always the message sender. * @param operator The address which called `safeTransferFrom` function * @param from The address which previously owned the token * @param tokenId The NFT identifier which is being transferred * @param data Additional data with no specified format * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) public returns (bytes4); } library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (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-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } /** * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } /** * @dev Adds two unsigned integers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } /** * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } } contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); function balanceOf(address owner) public view returns (uint256 balance); function ownerOf(uint256 tokenId) public view returns (address owner); function approve(address to, uint256 tokenId) public; function getApproved(uint256 tokenId) public view returns (address operator); function setApprovalForAll(address operator, bool _approved) public; function isApprovedForAll(address owner, address operator) public view returns (bool); function transferFrom(address from, address to, uint256 tokenId) public; function safeTransferFrom(address from, address to, uint256 tokenId) public; function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public; } contract ERC165 is IERC165 { bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /* * 0x01ffc9a7 === * bytes4(keccak256('supportsInterface(bytes4)')) */ /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev A contract implementing SupportsInterfaceWithLookup * implements ERC165 itself. */ constructor () internal { _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev Implement supportsInterface(bytes4) using a lookup table. */ function supportsInterface(bytes4 interfaceId) external view returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Internal method for registering an interface. */ function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff); _supportedInterfaces[interfaceId] = true; } } library Counters { using SafeMath for uint256; struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } } contract IERC721Enumerable is IERC721 { function totalSupply() public view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId); function tokenByIndex(uint256 index) public view returns (uint256); } contract IERC721Metadata is IERC721 { function name() external view returns (string memory); function symbol() external view returns (string memory); function tokenURI(uint256 tokenId) external view returns (string memory); } contract ERC721 is ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from token ID to owner mapping (uint256 => address) private _tokenOwner; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to number of owned token mapping (address => Counters.Counter) private _ownedTokensCount; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * 0x80ac58cd === * bytes4(keccak256('balanceOf(address)')) ^ * bytes4(keccak256('ownerOf(uint256)')) ^ * bytes4(keccak256('approve(address,uint256)')) ^ * bytes4(keccak256('getApproved(uint256)')) ^ * bytes4(keccak256('setApprovalForAll(address,bool)')) ^ * bytes4(keccak256('isApprovedForAll(address,address)')) ^ * bytes4(keccak256('transferFrom(address,address,uint256)')) ^ * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^ * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) */ constructor () public { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); } /** * @dev Gets the balance of the specified address. * @param owner address to query the balance of * @return uint256 representing the amount owned by the passed address */ function balanceOf(address owner) public view returns (uint256) { require(owner != address(0)); return _ownedTokensCount[owner].current(); } /** * @dev Gets the owner of the specified token ID. * @param tokenId uint256 ID of the token to query the owner of * @return address currently marked as the owner of the given token ID */ function ownerOf(uint256 tokenId) public view returns (address) { address owner = _tokenOwner[tokenId]; require(owner != address(0)); return owner; } /** * @dev Approves another address to transfer the given token ID * The zero address indicates there is no approved address. * There can only be one approved address per token at a given time. * Can only be called by the token owner or an approved operator. * @param to address to be approved for the given token ID * @param tokenId uint256 ID of the token to be approved */ function approve(address to, uint256 tokenId) public { address owner = ownerOf(tokenId); require(to != owner); require(msg.sender == owner || isApprovedForAll(owner, msg.sender)); _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Gets the approved address for a token ID, or zero if no address set * Reverts if the token ID does not exist. * @param tokenId uint256 ID of the token to query the approval of * @return address currently approved for the given token ID */ function getApproved(uint256 tokenId) public view returns (address) { require(_exists(tokenId)); return _tokenApprovals[tokenId]; } /** * @dev Sets or unsets the approval of a given operator * An operator is allowed to transfer all tokens of the sender on their behalf. * @param to operator address to set the approval * @param approved representing the status of the approval to be set */ function setApprovalForAll(address to, bool approved) public { require(to != msg.sender); _operatorApprovals[msg.sender][to] = approved; emit ApprovalForAll(msg.sender, to, approved); } /** * @dev Tells whether an operator is approved by a given owner. * @param owner owner address which you want to query the approval of * @param operator operator address which you want to query the approval of * @return bool whether the given operator is approved by the given owner */ function isApprovedForAll(address owner, address operator) public view returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Transfers the ownership of a given token ID to another address. * Usage of this method is discouraged, use `safeTransferFrom` whenever possible. * Requires the msg.sender to be the owner, approved, or operator. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function transferFrom(address from, address to, uint256 tokenId) public { require(_isApprovedOrOwner(msg.sender, tokenId)); _transferFrom(from, to, tokenId); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the msg.sender to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the msg.sender to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred * @param _data bytes data to send along with a safe transfer check */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public { transferFrom(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data)); } /** * @dev Returns whether the specified token exists. * @param tokenId uint256 ID of the token to query the existence of * @return bool whether the token exists */ function _exists(uint256 tokenId) internal view returns (bool) { address owner = _tokenOwner[tokenId]; return owner != address(0); } /** * @dev Returns whether the given spender can transfer a given token ID. * @param spender address of the spender to query * @param tokenId uint256 ID of the token to be transferred * @return bool whether the msg.sender is approved for the given token ID, * is an operator of the owner, or is the owner of the token */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Internal function to mint a new token. * Reverts if the given token ID already exists. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _mint(address to, uint256 tokenId) internal { require(to != address(0)); require(!_exists(tokenId)); _tokenOwner[tokenId] = to; _ownedTokensCount[to].increment(); emit Transfer(address(0), to, tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use _burn(uint256) instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */ function _burn(address owner, uint256 tokenId) internal { require(ownerOf(tokenId) == owner); _clearApproval(tokenId); _ownedTokensCount[owner].decrement(); _tokenOwner[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * @param tokenId uint256 ID of the token being burned */ function _burn(uint256 tokenId) internal { _burn(ownerOf(tokenId), tokenId); } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to transferFrom, this imposes no restrictions on msg.sender. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function _transferFrom(address from, address to, uint256 tokenId) internal { require(ownerOf(tokenId) == from); require(to != address(0)); _clearApproval(tokenId); _ownedTokensCount[from].decrement(); _ownedTokensCount[to].increment(); _tokenOwner[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Internal function to invoke `onERC721Received` on a target address. * The call is not executed if the target address is not a contract. * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) internal returns (bool) { if (!to.isContract()) { return true; } bytes4 retval = IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, _data); return (retval == _ERC721_RECEIVED); } /** * @dev Private function to clear current approval of a given token ID. * @param tokenId uint256 ID of the token to be transferred */ function _clearApproval(uint256 tokenId) private { if (_tokenApprovals[tokenId] != address(0)) { _tokenApprovals[tokenId] = address(0); } } } contract ERC721Metadata is ERC165, ERC721, IERC721Metadata { // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /* * 0x5b5e139f === * bytes4(keccak256('name()')) ^ * bytes4(keccak256('symbol()')) ^ * bytes4(keccak256('tokenURI(uint256)')) */ /** * @dev Constructor function */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721_METADATA); } /** * @dev Gets the token name. * @return string representing the token name */ function name() external view returns (string memory) { return _name; } /** * @dev Gets the token symbol. * @return string representing the token symbol */ function symbol() external view returns (string memory) { return _symbol; } /** * @dev Returns an URI for a given token ID. * Throws if the token ID does not exist. May return an empty string. * @param tokenId uint256 ID of the token to query */ function tokenURI(uint256 tokenId) external view returns (string memory) { require(_exists(tokenId)); return _tokenURIs[tokenId]; } /** * @dev Internal function to set the token URI for a given token. * Reverts if the token ID does not exist. * @param tokenId uint256 ID of the token to set its URI * @param uri string URI to assign */ function _setTokenURI(uint256 tokenId, string memory uri) internal { require(_exists(tokenId)); _tokenURIs[tokenId] = uri; } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use _burn(uint256) instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned by the msg.sender */ function _burn(address owner, uint256 tokenId) internal { super._burn(owner, tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } } contract ERC721Enumerable is ERC165, ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => uint256[]) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /* * 0x780e9d63 === * bytes4(keccak256('totalSupply()')) ^ * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^ * bytes4(keccak256('tokenByIndex(uint256)')) */ /** * @dev Constructor function. */ constructor () public { // register the supported interface to conform to ERC721Enumerable via ERC165 _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev Gets the token ID at a given index of the tokens list of the requested owner. * @param owner address owning the tokens list to be accessed * @param index uint256 representing the index to be accessed of the requested tokens list * @return uint256 token ID at the given index of the tokens list owned by the requested address */ function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) { require(index < balanceOf(owner)); return _ownedTokens[owner][index]; } /** * @dev Gets the total amount of tokens stored by the contract. * @return uint256 representing the total amount of tokens */ function totalSupply() public view returns (uint256) { return _allTokens.length; } /** * @dev Gets the token ID at a given index of all the tokens in this contract * Reverts if the index is greater or equal to the total number of tokens. * @param index uint256 representing the index to be accessed of the tokens list * @return uint256 token ID at the given index of the tokens list */ function tokenByIndex(uint256 index) public view returns (uint256) { require(index < totalSupply()); return _allTokens[index]; } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to transferFrom, this imposes no restrictions on msg.sender. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function _transferFrom(address from, address to, uint256 tokenId) internal { super._transferFrom(from, to, tokenId); _removeTokenFromOwnerEnumeration(from, tokenId); _addTokenToOwnerEnumeration(to, tokenId); } /** * @dev Internal function to mint a new token. * Reverts if the given token ID already exists. * @param to address the beneficiary that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _mint(address to, uint256 tokenId) internal { super._mint(to, tokenId); _addTokenToOwnerEnumeration(to, tokenId); _addTokenToAllTokensEnumeration(tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use _burn(uint256) instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */ function _burn(address owner, uint256 tokenId) internal { super._burn(owner, tokenId); _removeTokenFromOwnerEnumeration(owner, tokenId); // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund _ownedTokensIndex[tokenId] = 0; _removeTokenFromAllTokensEnumeration(tokenId); } /** * @dev Gets the list of token IDs of the requested owner. * @param owner address owning the tokens * @return uint256[] List of token IDs owned by the requested address */ function _tokensOfOwner(address owner) internal view returns (uint256[] storage) { return _ownedTokens[owner]; } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { _ownedTokensIndex[tokenId] = _ownedTokens[to].length; _ownedTokens[to].push(tokenId); } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the _ownedTokensIndex mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _ownedTokens[from].length.sub(1); uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array _ownedTokens[from].length--; // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by // lastTokenId, or just over the end of the array if the token was the last one). } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length.sub(1); uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array _allTokens.length--; _allTokensIndex[tokenId] = 0; } } contract ERC721Full is ERC721, ERC721Enumerable, ERC721Metadata { constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) { // solhint-disable-previous-line no-empty-blocks } } contract ChainmonstersCoreV2 is ERC721Full, Ownable{ address public GameContract; string baseAPI = "http://chainmonsters.appspot.com/api/GetMonster/"; uint256 public offset = 100000; constructor() ERC721Full("ChainmonstersV2", "CHMONV2") public { } function mintToken(address _to) public { require(msg.sender == GameContract); uint256 newTokenId = _getNextTokenId(); _mint(_to, newTokenId); } function setGameContract(address _contract) public onlyOwner { GameContract = _contract; } function setOffset(uint256 _offset) public onlyOwner { offset = _offset; } function setBaseAPI(string memory _api) public onlyOwner { baseAPI = _api; } function tokenURI(uint256 _tokenId) public view returns (string memory) { uint256 _id = offset+_tokenId; return append(baseTokenURI(), uint2str(_id)); } /** * @dev calculates the next token ID based on totalSupply * @return uint256 for the next token ID */ function _getNextTokenId() private view returns (uint256) { return totalSupply().add(1); } function baseTokenURI() public view returns (string memory) { return baseAPI; } function append(string memory a, string memory b) internal pure returns (string memory) { return string(abi.encodePacked(a, b)); } function uint2str(uint _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len - 1; while (_i != 0) { bstr[k--] = byte(uint8(48 + _i % 10)); _i /= 10; } return string(bstr); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"_to","type":"address"}],"name":"mintToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_offset","type":"uint256"}],"name":"setOffset","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_api","type":"string"}],"name":"setBaseAPI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_contract","type":"address"}],"name":"setGameContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"baseTokenURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"offset","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"GameContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"approved","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"operator","type":"address"},{"indexed":false,"name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"}]
Contract Creation Code
60e060405260306080818152906200176a60a03980516200002991600e91602090910190620001fc565b50620186a0600f553480156200003e57600080fd5b506040518060400160405280600f81526020017f436861696e6d6f6e7374657273563200000000000000000000000000000000008152506040518060400160405280600781526020017f43484d4f4e5632000000000000000000000000000000000000000000000000008152508181620000c56301ffc9a760e01b6200018f60201b60201c565b620000dd6380ac58cd60e01b6200018f60201b60201c565b620000f563780e9d6360e01b6200018f60201b60201c565b81516200010a906009906020850190620001fc565b5080516200012090600a906020840190620001fc565b5062000139635b5e139f60e01b6200018f60201b60201c565b5050600c80546001600160a01b0319163317908190556040516001600160a01b03919091169250600091507f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3620002a1565b7fffffffff000000000000000000000000000000000000000000000000000000008082161415620001bf57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200023f57805160ff19168380011785556200026f565b828001600101855582156200026f579182015b828111156200026f57825182559160200191906001019062000252565b506200027d92915062000281565b5090565b6200029e91905b808211156200027d576000815560010162000288565b90565b6114b980620002b16000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636352211e116100f9578063b88d4fde11610097578063d555654411610071578063d555654414610627578063e757c70d1461062f578063e985e9c514610637578063f2fde38b14610665576101a9565b8063b88d4fde1461053c578063c87b56dd14610602578063d547cfb71461061f576101a9565b80638da5cb5b116100d35780638da5cb5b146104f65780638f32d59b146104fe57806395d89b4114610506578063a22cb4651461050e576101a9565b80636352211e146104ab57806370a08231146104c8578063715018a6146104ee576101a9565b8063095ea7b3116101665780632f745c59116101405780632f745c5914610406578063405ebd4d1461043257806342842e0e146104585780634f6ccce71461048e576101a9565b8063095ea7b31461038a57806318160ddd146103b657806323b872dd146103d0576101a9565b806301173a74146101ae57806301e343db146101d657806301ffc9a7146101f357806306fdde031461022e578063081812fc146102ab57806309370e01146102e4575b600080fd5b6101d4600480360360208110156101c457600080fd5b50356001600160a01b031661068b565b005b6101d4600480360360208110156101ec57600080fd5b50356106bc565b61021a6004803603602081101561020957600080fd5b50356001600160e01b0319166106d2565b604080519115158252519081900360200190f35b6102366106f5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610270578181015183820152602001610258565b50505050905090810190601f16801561029d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102c8600480360360208110156102c157600080fd5b503561078c565b604080516001600160a01b039092168252519081900360200190f35b6101d4600480360360208110156102fa57600080fd5b81019060208101813564010000000081111561031557600080fd5b82018360208201111561032757600080fd5b8035906020019184600183028401116401000000008311171561034957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506107bc945050505050565b6101d4600480360360408110156103a057600080fd5b506001600160a01b0381351690602001356107e0565b6103be61088d565b60408051918252519081900360200190f35b6101d4600480360360608110156103e657600080fd5b506001600160a01b03813581169160208101359091169060400135610893565b6103be6004803603604081101561041c57600080fd5b506001600160a01b0381351690602001356108b6565b6101d46004803603602081101561044857600080fd5b50356001600160a01b0316610903565b6101d46004803603606081101561046e57600080fd5b506001600160a01b03813581169160208101359091169060400135610936565b6103be600480360360208110156104a457600080fd5b5035610951565b6102c8600480360360208110156104c157600080fd5b5035610985565b6103be600480360360208110156104de57600080fd5b50356001600160a01b03166109ad565b6101d46109e3565b6102c8610a3e565b61021a610a4d565b610236610a5e565b6101d46004803603604081101561052457600080fd5b506001600160a01b0381351690602001351515610abf565b6101d46004803603608081101561055257600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561058d57600080fd5b82018360208201111561059f57600080fd5b803590602001918460018302840111640100000000831117156105c157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b43945050505050565b6102366004803603602081101561061857600080fd5b5035610b69565b610236610b91565b6103be610bf2565b6102c8610bf8565b61021a6004803603604081101561064d57600080fd5b506001600160a01b0381358116916020013516610c07565b6101d46004803603602081101561067b57600080fd5b50356001600160a01b0316610c35565b600d546001600160a01b031633146106a257600080fd5b60006106ac610c52565b90506106b88282610c72565b5050565b6106c4610a4d565b6106cd57600080fd5b600f55565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107815780601f1061075657610100808354040283529160200191610781565b820191906000526020600020905b81548152906001019060200180831161076457829003601f168201915b505050505090505b90565b600061079782610c8f565b6107a057600080fd5b506000908152600260205260409020546001600160a01b031690565b6107c4610a4d565b6107cd57600080fd5b80516106b890600e9060208401906113d5565b60006107eb82610985565b9050806001600160a01b0316836001600160a01b0316141561080c57600080fd5b336001600160a01b038216148061082857506108288133610c07565b61083157600080fd5b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60075490565b61089d3382610cac565b6108a657600080fd5b6108b1838383610d0b565b505050565b60006108c1836109ad565b82106108cc57600080fd5b6001600160a01b03831660009081526005602052604090208054839081106108f057fe5b9060005260206000200154905092915050565b61090b610a4d565b61091457600080fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6108b183838360405180602001604052806000815250610b43565b600061095b61088d565b821061096657600080fd5b6007828154811061097357fe5b90600052602060002001549050919050565b6000818152600160205260408120546001600160a01b0316806109a757600080fd5b92915050565b60006001600160a01b0382166109c257600080fd5b6001600160a01b03821660009081526003602052604090206109a790610d2a565b6109eb610a4d565b6109f457600080fd5b600c546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600c80546001600160a01b0319169055565b600c546001600160a01b031690565b600c546001600160a01b0316331490565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107815780601f1061075657610100808354040283529160200191610781565b6001600160a01b038216331415610ad557600080fd5b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b610b4e848484610893565b610b5a84848484610d2e565b610b6357600080fd5b50505050565b600f546060908201610b8a610b7c610b91565b610b8583610e67565b610f2b565b9392505050565b600e8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107815780601f1061075657610100808354040283529160200191610781565b600f5481565b600d546001600160a01b031681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b610c3d610a4d565b610c4657600080fd5b610c4f81610fe6565b50565b6000610c6d6001610c6161088d565b9063ffffffff61105516565b905090565b610c7c8282611067565b610c868282611108565b6106b881611146565b6000908152600160205260409020546001600160a01b0316151590565b600080610cb883610985565b9050806001600160a01b0316846001600160a01b03161480610cf35750836001600160a01b0316610ce88461078c565b6001600160a01b0316145b80610d035750610d038185610c07565b949350505050565b610d1683838361118a565b610d20838261126a565b6108b18282611108565b5490565b6000610d42846001600160a01b031661135f565b610d4e57506001610d03565b604051600160e11b630a85bd0102815233600482018181526001600160a01b03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015610dcb578181015183820152602001610db3565b50505050905090810190601f168015610df85780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015610e1a57600080fd5b505af1158015610e2e573d6000803e3d6000fd5b505050506040513d6020811015610e4457600080fd5b50516001600160e01b031916600160e11b630a85bd010214915050949350505050565b606081610e8f57506040805180820190915260018152600160fc1b60030260208201526106f0565b8160005b8115610ea757600101600a82049150610e93565b6060816040519080825280601f01601f191660200182016040528015610ed4576020820181803883390190505b50905060001982015b8515610f2257600a860660300160f81b82828060019003935081518110610f0057fe5b60200101906001600160f81b031916908160001a905350600a86049550610edd565b50949350505050565b606082826040516020018083805190602001908083835b60208310610f615780518252601f199092019160209182019101610f42565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310610fa95780518252601f199092019160209182019101610f8a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052905092915050565b6001600160a01b038116610ff957600080fd5b600c546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015610b8a57600080fd5b6001600160a01b03821661107a57600080fd5b61108381610c8f565b1561108d57600080fd5b600081815260016020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558352600390915290206110cc90611365565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b826001600160a01b031661119d82610985565b6001600160a01b0316146111b057600080fd5b6001600160a01b0382166111c357600080fd5b6111cc8161136e565b6001600160a01b03831660009081526003602052604090206111ed906113a9565b6001600160a01b038216600090815260036020526040902061120e90611365565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526005602052604081205461129490600163ffffffff6113c016565b60008381526006602052604090205490915080821461132f576001600160a01b03841660009081526005602052604081208054849081106112d157fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061130f57fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611358906000198301611453565b5050505050565b3b151590565b80546001019055565b6000818152600260205260409020546001600160a01b031615610c4f57600090815260026020526040902080546001600160a01b0319169055565b80546113bc90600163ffffffff6113c016565b9055565b6000828211156113cf57600080fd5b50900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061141657805160ff1916838001178555611443565b82800160010185558215611443579182015b82811115611443578251825591602001919060010190611428565b5061144f929150611473565b5090565b8154818355818111156108b1576000838152602090206108b19181019083015b61078991905b8082111561144f576000815560010161147956fea165627a7a72305820bfbb7109b771767327bdfeaf7f0e6540db303b8fb4cadfb1bd068cc0c7324cc00029687474703a2f2f636861696e6d6f6e73746572732e61707073706f742e636f6d2f6170692f4765744d6f6e737465722f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80636352211e116100f9578063b88d4fde11610097578063d555654411610071578063d555654414610627578063e757c70d1461062f578063e985e9c514610637578063f2fde38b14610665576101a9565b8063b88d4fde1461053c578063c87b56dd14610602578063d547cfb71461061f576101a9565b80638da5cb5b116100d35780638da5cb5b146104f65780638f32d59b146104fe57806395d89b4114610506578063a22cb4651461050e576101a9565b80636352211e146104ab57806370a08231146104c8578063715018a6146104ee576101a9565b8063095ea7b3116101665780632f745c59116101405780632f745c5914610406578063405ebd4d1461043257806342842e0e146104585780634f6ccce71461048e576101a9565b8063095ea7b31461038a57806318160ddd146103b657806323b872dd146103d0576101a9565b806301173a74146101ae57806301e343db146101d657806301ffc9a7146101f357806306fdde031461022e578063081812fc146102ab57806309370e01146102e4575b600080fd5b6101d4600480360360208110156101c457600080fd5b50356001600160a01b031661068b565b005b6101d4600480360360208110156101ec57600080fd5b50356106bc565b61021a6004803603602081101561020957600080fd5b50356001600160e01b0319166106d2565b604080519115158252519081900360200190f35b6102366106f5565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610270578181015183820152602001610258565b50505050905090810190601f16801561029d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102c8600480360360208110156102c157600080fd5b503561078c565b604080516001600160a01b039092168252519081900360200190f35b6101d4600480360360208110156102fa57600080fd5b81019060208101813564010000000081111561031557600080fd5b82018360208201111561032757600080fd5b8035906020019184600183028401116401000000008311171561034957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506107bc945050505050565b6101d4600480360360408110156103a057600080fd5b506001600160a01b0381351690602001356107e0565b6103be61088d565b60408051918252519081900360200190f35b6101d4600480360360608110156103e657600080fd5b506001600160a01b03813581169160208101359091169060400135610893565b6103be6004803603604081101561041c57600080fd5b506001600160a01b0381351690602001356108b6565b6101d46004803603602081101561044857600080fd5b50356001600160a01b0316610903565b6101d46004803603606081101561046e57600080fd5b506001600160a01b03813581169160208101359091169060400135610936565b6103be600480360360208110156104a457600080fd5b5035610951565b6102c8600480360360208110156104c157600080fd5b5035610985565b6103be600480360360208110156104de57600080fd5b50356001600160a01b03166109ad565b6101d46109e3565b6102c8610a3e565b61021a610a4d565b610236610a5e565b6101d46004803603604081101561052457600080fd5b506001600160a01b0381351690602001351515610abf565b6101d46004803603608081101561055257600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561058d57600080fd5b82018360208201111561059f57600080fd5b803590602001918460018302840111640100000000831117156105c157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b43945050505050565b6102366004803603602081101561061857600080fd5b5035610b69565b610236610b91565b6103be610bf2565b6102c8610bf8565b61021a6004803603604081101561064d57600080fd5b506001600160a01b0381358116916020013516610c07565b6101d46004803603602081101561067b57600080fd5b50356001600160a01b0316610c35565b600d546001600160a01b031633146106a257600080fd5b60006106ac610c52565b90506106b88282610c72565b5050565b6106c4610a4d565b6106cd57600080fd5b600f55565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107815780601f1061075657610100808354040283529160200191610781565b820191906000526020600020905b81548152906001019060200180831161076457829003601f168201915b505050505090505b90565b600061079782610c8f565b6107a057600080fd5b506000908152600260205260409020546001600160a01b031690565b6107c4610a4d565b6107cd57600080fd5b80516106b890600e9060208401906113d5565b60006107eb82610985565b9050806001600160a01b0316836001600160a01b0316141561080c57600080fd5b336001600160a01b038216148061082857506108288133610c07565b61083157600080fd5b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60075490565b61089d3382610cac565b6108a657600080fd5b6108b1838383610d0b565b505050565b60006108c1836109ad565b82106108cc57600080fd5b6001600160a01b03831660009081526005602052604090208054839081106108f057fe5b9060005260206000200154905092915050565b61090b610a4d565b61091457600080fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6108b183838360405180602001604052806000815250610b43565b600061095b61088d565b821061096657600080fd5b6007828154811061097357fe5b90600052602060002001549050919050565b6000818152600160205260408120546001600160a01b0316806109a757600080fd5b92915050565b60006001600160a01b0382166109c257600080fd5b6001600160a01b03821660009081526003602052604090206109a790610d2a565b6109eb610a4d565b6109f457600080fd5b600c546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600c80546001600160a01b0319169055565b600c546001600160a01b031690565b600c546001600160a01b0316331490565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107815780601f1061075657610100808354040283529160200191610781565b6001600160a01b038216331415610ad557600080fd5b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b610b4e848484610893565b610b5a84848484610d2e565b610b6357600080fd5b50505050565b600f546060908201610b8a610b7c610b91565b610b8583610e67565b610f2b565b9392505050565b600e8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107815780601f1061075657610100808354040283529160200191610781565b600f5481565b600d546001600160a01b031681565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b610c3d610a4d565b610c4657600080fd5b610c4f81610fe6565b50565b6000610c6d6001610c6161088d565b9063ffffffff61105516565b905090565b610c7c8282611067565b610c868282611108565b6106b881611146565b6000908152600160205260409020546001600160a01b0316151590565b600080610cb883610985565b9050806001600160a01b0316846001600160a01b03161480610cf35750836001600160a01b0316610ce88461078c565b6001600160a01b0316145b80610d035750610d038185610c07565b949350505050565b610d1683838361118a565b610d20838261126a565b6108b18282611108565b5490565b6000610d42846001600160a01b031661135f565b610d4e57506001610d03565b604051600160e11b630a85bd0102815233600482018181526001600160a01b03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015610dcb578181015183820152602001610db3565b50505050905090810190601f168015610df85780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015610e1a57600080fd5b505af1158015610e2e573d6000803e3d6000fd5b505050506040513d6020811015610e4457600080fd5b50516001600160e01b031916600160e11b630a85bd010214915050949350505050565b606081610e8f57506040805180820190915260018152600160fc1b60030260208201526106f0565b8160005b8115610ea757600101600a82049150610e93565b6060816040519080825280601f01601f191660200182016040528015610ed4576020820181803883390190505b50905060001982015b8515610f2257600a860660300160f81b82828060019003935081518110610f0057fe5b60200101906001600160f81b031916908160001a905350600a86049550610edd565b50949350505050565b606082826040516020018083805190602001908083835b60208310610f615780518252601f199092019160209182019101610f42565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310610fa95780518252601f199092019160209182019101610f8a565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052905092915050565b6001600160a01b038116610ff957600080fd5b600c546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015610b8a57600080fd5b6001600160a01b03821661107a57600080fd5b61108381610c8f565b1561108d57600080fd5b600081815260016020908152604080832080546001600160a01b0319166001600160a01b0387169081179091558352600390915290206110cc90611365565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b826001600160a01b031661119d82610985565b6001600160a01b0316146111b057600080fd5b6001600160a01b0382166111c357600080fd5b6111cc8161136e565b6001600160a01b03831660009081526003602052604090206111ed906113a9565b6001600160a01b038216600090815260036020526040902061120e90611365565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526005602052604081205461129490600163ffffffff6113c016565b60008381526006602052604090205490915080821461132f576001600160a01b03841660009081526005602052604081208054849081106112d157fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061130f57fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611358906000198301611453565b5050505050565b3b151590565b80546001019055565b6000818152600260205260409020546001600160a01b031615610c4f57600090815260026020526040902080546001600160a01b0319169055565b80546113bc90600163ffffffff6113c016565b9055565b6000828211156113cf57600080fd5b50900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061141657805160ff1916838001178555611443565b82800160010185558215611443579182015b82811115611443578251825591602001919060010190611428565b5061144f929150611473565b5090565b8154818355818111156108b1576000838152602090206108b19181019083015b61078991905b8082111561144f576000815560010161147956fea165627a7a72305820bfbb7109b771767327bdfeaf7f0e6540db303b8fb4cadfb1bd068cc0c7324cc00029
Swarm Source
bzzr://bfbb7109b771767327bdfeaf7f0e6540db303b8fb4cadfb1bd068cc0c7324cc0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 24 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.