Overview
ETH Balance
0.222115609737516727 ETH
Eth Value
$418.21 (@ $1,882.87/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 150 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Distribute ETH | 20271591 | 262 days ago | IN | 0 ETH | 0.00488998 | ||||
Transfer Owner S... | 20271573 | 262 days ago | IN | 0 ETH | 0.00018472 | ||||
Claim | 12809618 | 1356 days ago | IN | 0 ETH | 0.00033602 | ||||
Claim | 12165046 | 1456 days ago | IN | 0 ETH | 0.0050894 | ||||
Claim | 12150812 | 1458 days ago | IN | 0 ETH | 0.00343039 | ||||
Claim | 12150678 | 1458 days ago | IN | 0 ETH | 0.00295783 | ||||
Claim | 12089117 | 1467 days ago | IN | 0 ETH | 0.00360541 | ||||
Claim | 12063618 | 1471 days ago | IN | 0 ETH | 0.00406133 | ||||
Claim | 12030629 | 1476 days ago | IN | 0 ETH | 0.00234526 | ||||
Transfer | 12026999 | 1477 days ago | IN | 0.08 ETH | 0.00363992 | ||||
Claim | 11985517 | 1483 days ago | IN | 0 ETH | 0.00124264 | ||||
Claim | 11819475 | 1509 days ago | IN | 0 ETH | 0.00743143 | ||||
Transfer | 11758187 | 1518 days ago | IN | 0.05 ETH | 0.00263 | ||||
Claim | 11740503 | 1521 days ago | IN | 0 ETH | 0.00302431 | ||||
Claim | 11734318 | 1522 days ago | IN | 0 ETH | 0.0018322 | ||||
Claim | 11723226 | 1524 days ago | IN | 0 ETH | 0.00361112 | ||||
Transfer | 11705537 | 1526 days ago | IN | 0.12 ETH | 0.00155696 | ||||
Claim | 11673170 | 1531 days ago | IN | 0 ETH | 0.00186884 | ||||
Claim | 11672915 | 1531 days ago | IN | 0 ETH | 0.0018322 | ||||
Claim | 11672902 | 1531 days ago | IN | 0 ETH | 0.0018322 | ||||
Claim | 11671886 | 1531 days ago | IN | 0 ETH | 0.00128254 | ||||
Claim | 11669647 | 1532 days ago | IN | 0 ETH | 0.00343056 | ||||
Transfer | 11660081 | 1533 days ago | IN | 0.05 ETH | 0.00185152 | ||||
Transfer | 11660081 | 1533 days ago | IN | 0.033 ETH | 0.00185152 | ||||
Claim | 11658724 | 1534 days ago | IN | 0 ETH | 0.00201542 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
- | 14072764 | 1159 days ago | 0.002 ETH | ||||
- | 13006461 | 1325 days ago | 0.00014898 ETH | ||||
- | 12923448 | 1338 days ago | 0.00079618 ETH | ||||
- | 12584311 | 1391 days ago | 0.00000042 ETH | ||||
- | 12584299 | 1391 days ago | 0.00077631 ETH | ||||
- | 12347599 | 1427 days ago | 0.00052683 ETH | ||||
- | 12306272 | 1434 days ago | 0.002 ETH | ||||
- | 12077105 | 1469 days ago | 0.00029027 ETH | ||||
- | 12065854 | 1471 days ago | 0.006 ETH | ||||
- | 12030418 | 1476 days ago | 0.00008224 ETH | ||||
- | 12018476 | 1478 days ago | 0.00004041 ETH | ||||
- | 11950530 | 1489 days ago | 0.002 ETH | ||||
- | 11883067 | 1499 days ago | 0.004 ETH | ||||
- | 11838407 | 1506 days ago | 0.016 ETH | ||||
- | 11813053 | 1510 days ago | 0.002 ETH | ||||
- | 11805796 | 1511 days ago | 0.00031794 ETH | ||||
- | 11784373 | 1514 days ago | 0.00000001 ETH | ||||
- | 11777127 | 1515 days ago | 0.00003987 ETH | ||||
- | 11774939 | 1516 days ago | 0.00001958 ETH | ||||
- | 11772493 | 1516 days ago | 0.003 ETH | ||||
- | 11767505 | 1517 days ago | 0.00021165 ETH | ||||
- | 11767427 | 1517 days ago | 0.02 ETH | ||||
- | 11761348 | 1518 days ago | 0.02 ETH | ||||
- | 11761181 | 1518 days ago | 0 ETH | ||||
- | 11758208 | 1518 days ago | 0 ETH |
Loading...
Loading
Contract Name:
GSG_official
Compiler Version
v0.4.24+commit.e67f0147
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-09-04 */ // pragma solidity 0.6.0; pragma solidity ^0.4.24; /* *Please accept this GSG-Loyalty Plan as a token of my appreciation. *Through sharing of knowledge we can uplift the world. *The individuals behind the creation of this contract wish you a successful journey. *With God behind us, we will create our own futures. * *Thank you Shihad for your expertise. * *This is a tribute to Jeremy, Marley, and Aria. I pray this project provides for you for generations - 4 September 2020 *Your Dad, LuckyRico AKA djSpade1 AKA GOLDBACKERS */ /** * @title IERC165 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md */ 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); } /** * @title ERC721 Non-Fungible Token Standard basic interface * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ 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 data ) public; } /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ 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); } /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ 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(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ function onERC721Received( address operator, address from, uint256 tokenId, bytes data ) public returns(bytes4); } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting '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; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; } /** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; } } /** * Utility library of inline functions on addresses */ 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 addr address to check * @return whether the target address is a contract */ function isContract(address addr) 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. // solium-disable-next-line security/no-inline-assembly assembly { size := extcodesize(addr) } return size > 0; } } /** * @title ERC165 * @author Matt Condon (@shrugs) * @dev Implements ERC165 using a lookup table. */ contract ERC165 is IERC165 { bytes4 private constant _InterfaceId_ERC165 = 0x01ffc9a7; /** * 0x01ffc9a7 === * bytes4(keccak256('supportsInterface(bytes4)')) */ /** * @dev a mapping of interface id to whether or not it's supported */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev A contract implementing SupportsInterfaceWithLookup * implement ERC165 itself */ constructor() internal { _registerInterface(_InterfaceId_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; } } /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721 is ERC165, IERC721 { using SafeMath for uint256; using Address for address; // 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 => uint256) private _ownedTokensCount; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; bytes4 private constant _InterfaceId_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(_InterfaceId_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]; } /** * @dev Gets the owner of the specified token ID * @param tokenId uint256 ID of the token to query the owner of * @return owner 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)); require(to != address(0)); _clearApproval(from, tokenId); _removeTokenFrom(from, tokenId); _addTokenTo(to, tokenId); emit Transfer(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 { // solium-disable-next-line arg-overflow 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 _data ) public { transferFrom(from, to, tokenId); // solium-disable-next-line arg-overflow 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 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); // Disable solium check because of // https://github.com/duaraghav8/Solium/issues/175 // solium-disable-next-line operator-whitespace 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 by the msg.sender */ function _mint(address to, uint256 tokenId) internal { require(to != address(0)); _addTokenTo(to, tokenId); emit Transfer(address(0), to, 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 by the msg.sender */ function _burn(address owner, uint256 tokenId) internal { _clearApproval(owner, tokenId); _removeTokenFrom(owner, tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Internal function to add a token ID to the list of a given address * Note that this function is left internal to make ERC721Enumerable possible, but is not * intended to be called by custom derived contracts: in particular, it emits no Transfer event. * @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 _addTokenTo(address to, uint256 tokenId) internal { require(_tokenOwner[tokenId] == address(0)); _tokenOwner[tokenId] = to; _ownedTokensCount[to] = _ownedTokensCount[to].add(1); } /** * @dev Internal function to remove a token ID from the list of a given address * Note that this function is left internal to make ERC721Enumerable possible, but is not * intended to be called by custom derived contracts: in particular, it emits no Transfer event, * and doesn't clear approvals. * @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 _removeTokenFrom(address from, uint256 tokenId) internal { require(ownerOf(tokenId) == from); _ownedTokensCount[from] = _ownedTokensCount[from].sub(1); _tokenOwner[tokenId] = address(0); } /** * @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 whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes _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 * Reverts if the given address is not indeed the owner of the token * @param owner owner of the token * @param tokenId uint256 ID of the token to be transferred */ function _clearApproval(address owner, uint256 tokenId) private { require(ownerOf(tokenId) == owner); if (_tokenApprovals[tokenId] != address(0)) { _tokenApprovals[tokenId] = address(0); } } } 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 _InterfaceId_ERC721Enumerable = 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 ERC721 via ERC165 _registerInterface(_InterfaceId_ERC721Enumerable); } /** * @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 add a token ID to the list of a given address * This function is internal due to language limitations, see the note in ERC721.sol. * It is not intended to be called by custom derived contracts: in particular, it emits no Transfer event. * @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 _addTokenTo(address to, uint256 tokenId) internal { super._addTokenTo(to, tokenId); uint256 length = _ownedTokens[to].length; _ownedTokens[to].push(tokenId); _ownedTokensIndex[tokenId] = length; } /** * @dev Internal function to remove a token ID from the list of a given address * This function is internal due to language limitations, see the note in ERC721.sol. * It is not intended to be called by custom derived contracts: in particular, it emits no Transfer event, * and doesn't clear approvals. * @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 _removeTokenFrom(address from, uint256 tokenId) internal { super._removeTokenFrom(from, tokenId); // To prevent a gap in the array, we store the last token in the index of the token to delete, and // then delete the last slot. uint256 tokenIndex = _ownedTokensIndex[tokenId]; uint256 lastTokenIndex = _ownedTokens[from].length.sub(1); uint256 lastToken = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastToken; // This also deletes the contents at the last position of the array _ownedTokens[from].length--; // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to // be zero. Then we can make sure that we will remove tokenId from the ownedTokens list since we are first swapping // the lastToken to the first position, and then dropping the element placed in the last position of the list _ownedTokensIndex[tokenId] = 0; _ownedTokensIndex[lastToken] = tokenIndex; } /** * @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 by the msg.sender */ function _mint(address to, uint256 tokenId) internal { super._mint(to, tokenId); _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Internal function to burn a specific token * Reverts if the token does not exist * @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); // Reorg all tokens array uint256 tokenIndex = _allTokensIndex[tokenId]; uint256 lastTokenIndex = _allTokens.length.sub(1); uint256 lastToken = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastToken; _allTokens[lastTokenIndex] = 0; _allTokens.length--; _allTokensIndex[tokenId] = 0; _allTokensIndex[lastToken] = tokenIndex; } } /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract IERC721Metadata is IERC721 { function name() external view returns (string); function symbol() external view returns (string); function tokenURI(uint256 tokenId) external view returns (string); } 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 InterfaceId_ERC721Metadata = 0x5b5e139f; /** * 0x5b5e139f === * bytes4(keccak256('name()')) ^ * bytes4(keccak256('symbol()')) ^ * bytes4(keccak256('tokenURI(uint256)')) */ /** * @dev Constructor function */ constructor(string name, string symbol) public { _name = name; _symbol = symbol; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(InterfaceId_ERC721Metadata); } /** * @dev Gets the token name * @return string representing the token name */ function name() external view returns (string) { return _name; } /** * @dev Gets the token symbol * @return string representing the token symbol */ function symbol() external view returns (string) { 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) { 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 uri) internal { require(_exists(tokenId)); _tokenURIs[tokenId] = uri; } /** * @dev Internal function to burn a specific token * Reverts if the token does not exist * @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]; } } } /** * @title Roles * @dev Library for managing addresses assigned to a Role. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an account access to this role */ function add(Role storage role, address account) internal { require(account != address(0)); require(!has(role, account)); role.bearer[account] = true; } /** * @dev remove an account's access to this role */ function remove(Role storage role, address account) internal { require(account != address(0)); require(has(role, account)); role.bearer[account] = false; } /** * @dev check if an account has this role * @return bool */ function has(Role storage role, address account) internal view returns (bool) { require(account != address(0)); return role.bearer[account]; } } contract MinterRole { using Roles for Roles.Role; event MinterAdded(address indexed account); event MinterRemoved(address indexed account); Roles.Role private minters; constructor() internal { _addMinter(msg.sender); } modifier onlyMinter() { require(isMinter(msg.sender)); _; } function isMinter(address account) public view returns (bool) { return minters.has(account); } function addMinter(address account) public onlyMinter { _addMinter(account); } function renounceMinter() public { _removeMinter(msg.sender); } function _addMinter(address account) internal { minters.add(account); emit MinterAdded(account); } function _removeMinter(address account) internal { minters.remove(account); emit MinterRemoved(account); } } /** * @title ERC721MetadataMintable * @dev ERC721 minting logic with metadata */ contract ERC721MetadataMintable is ERC721, ERC721Metadata, MinterRole { /** * @dev Function to mint tokens * @param to The address that will receive the minted tokens. * @param tokenId The token id to mint. * @param tokenURI The token URI of the minted token. * @return A boolean that indicates if the operation was successful. */ function mintWithTokenURI( address to, uint256 tokenId, string tokenURI ) public onlyMinter returns (bool) { _mint(to, tokenId); _setTokenURI(tokenId, tokenURI); return true; } } /** * @title Full ERC721 Token * This implementation includes all the required and some optional functionality of the ERC721 standard * Moreover, it includes approve all functionality using operator terminology * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ contract ERC721FullBatchMint is ERC721Enumerable, ERC721MetadataMintable { string public constant version = "Mintable v0.5" ; uint256 public MAX_MINT; constructor(string name, string symbol, string url, uint256 batchMint, address owner) ERC721Metadata(name, symbol) public { MAX_MINT = batchMint; _mint(owner, 0); _setTokenURI(0, url); } function batchMint (string url, uint256 count) public onlyMinter returns (bool) { if (count > MAX_MINT || count <= 0 || count < 0) { count = MAX_MINT; } uint256 totalSupply = super.totalSupply(); for (uint256 i = 0; i < count; i++) { mintWithTokenURI(msg.sender, totalSupply+i, url); } return true; } } contract GSG_official{ ERC721FullBatchMint token; using SafeMath for uint256; uint256 public currentId; uint256 public registeredUsers; address Owner; struct userDataSet{ uint256 claimedAmount; uint256 timeFrame; uint256 currentAmount; uint256 timeForClaim; bool isRegister; } mapping(address => userDataSet) public userMap; mapping(uint256 => address) public userlist; event TransferETH(address,uint256); event UserRegistered(address); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); // give token address of mainnet *the token you want to use in a contract* constructor(address _tokenAddress) public { token = ERC721FullBatchMint(address(_tokenAddress)); Owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner(),"ERROR: Only for owner"); _; } function() external payable{ } //register user to contract so they can start earning ethers function register() public { require(token.balanceOf(msg.sender) > 0,"ERROR: Get GSG-Official token to register"); require(msg.sender != address(0),"ERROR: zero address"); require(userMap[msg.sender].isRegister == false,"ERROR: User already registered"); userDataSet memory userdata; currentId++; registeredUsers++; userdata = userDataSet({ claimedAmount: 0, timeFrame: now + 4 weeks, currentAmount: 0, timeForClaim: now + 90 days, isRegister: true }); userMap[msg.sender] = userdata; userlist[currentId] = msg.sender; emit UserRegistered(msg.sender); } function hasRegistered() public view returns(bool) { return userMap[msg.sender].isRegister; } // user can claim one a month //claim amount is calculated according to how much balance and ethers we have in a contract function claim() public returns(bool){ require(token.balanceOf(msg.sender) > 0,"ERROR: You need a token to clain ETH"); require(msg.sender != address(0), "ERROR: zero address"); require(userMap[msg.sender].isRegister,"ERROR: Register first"); if(now >= userMap[msg.sender].timeForClaim) { userMap[msg.sender].currentAmount = 0; return true; } require(now >= userMap[msg.sender].timeFrame,"ERROR: Cannot claim before one month"); uint256 price = userMap[msg.sender].currentAmount; address(msg.sender).transfer(price); userMap[msg.sender].claimedAmount += price; userMap[msg.sender].currentAmount -= price; userMap[msg.sender].timeFrame = now + 4 weeks; userMap[msg.sender].timeForClaim = now + 90 days; emit TransferETH(msg.sender,price); } function calculatePriceETH() internal view returns(uint256) { uint256 contractBal = address(this).balance; uint256 balances1 = contractBal.mul(30).div(100); uint256 balances = balances1.div(registeredUsers); return balances; } function holdersBalance() public view returns(uint256) { if(now >= userMap[msg.sender].timeFrame){ return userMap[msg.sender].currentAmount; }else{ return 0; } } function distributeETH() public onlyOwner { uint256 id = currentId; uint256 price = calculatePriceETH(); for(uint256 i=1; i<=id; i++){ userMap[userlist[i]].currentAmount += price; } } function totalETH() public view returns(uint256) { return address(this).balance; } function owner() public view returns(address){ return Owner; } function transferOwnerShip(address _address) public onlyOwner { emit OwnershipTransferred(owner(),_address); Owner = _address; } function stopPool() public onlyOwner { address(this).transfer(address(this).balance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[],"name":"register","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"userMap","outputs":[{"name":"claimedAmount","type":"uint256"},{"name":"timeFrame","type":"uint256"},{"name":"currentAmount","type":"uint256"},{"name":"timeForClaim","type":"uint256"},{"name":"isRegister","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalETH","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"stopPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claim","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"registeredUsers","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"holdersBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"hasRegistered","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"transferOwnerShip","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"distributeETH","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"userlist","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentId","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_tokenAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"","type":"address"},{"indexed":false,"name":"","type":"uint256"}],"name":"TransferETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"","type":"address"}],"name":"UserRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405160208061164683398101806040528101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050611582806100c46000396000f3006080604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631aa3a008146100c75780632bcc23f8146100de57806336bdee74146101555780633c53c7b3146101805780634e71d92d14610197578063660d5887146101c657806373e98e74146101f1578063877a2a911461021c5780638863dd1a1461024b5780638da5cb5b1461028e578063b8b9b549146102e5578063d8e136e2146102fc578063e00dd16114610369575b005b3480156100d357600080fd5b506100dc610394565b005b3480156100ea57600080fd5b5061011f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610842565b60405180868152602001858152602001848152602001838152602001821515151581526020019550505050505060405180910390f35b34801561016157600080fd5b5061016a610885565b6040518082815260200191505060405180910390f35b34801561018c57600080fd5b506101956108a4565b005b3480156101a357600080fd5b506101ac6109ae565b604051808215151515815260200191505060405180910390f35b3480156101d257600080fd5b506101db61105e565b6040518082815260200191505060405180910390f35b3480156101fd57600080fd5b50610206611064565b6040518082815260200191505060405180910390f35b34801561022857600080fd5b50610231611103565b604051808215151515815260200191505060405180910390f35b34801561025757600080fd5b5061028c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061115a565b005b34801561029a57600080fd5b506102a36112a9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102f157600080fd5b506102fa6112d3565b005b34801561030857600080fd5b5061032760048036038101908080359060200190929190505050611434565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561037557600080fd5b5061037e611467565b6040518082815260200191505060405180910390f35b61039c611524565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561045a57600080fd5b505af115801561046e573d6000803e3d6000fd5b505050506040513d602081101561048457600080fd5b8101908080519060200190929190505050111515610530576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001807f4552524f523a20476574204753472d4f6666696369616c20746f6b656e20746f81526020017f207265676973746572000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515156105d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4552524f523a207a65726f20616464726573730000000000000000000000000081525060200191505060405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160009054906101000a900460ff1615151415156106a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4552524f523a205573657220616c72656164792072656769737465726564000081525060200191505060405180910390fd5b60016000815480929190600101919050555060026000815480929190600101919050555060a060405190810160405280600081526020016224ea0042018152602001600081526020016276a7004201815260200160011515815250905080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050503360056000600154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f54db7a5cb4735e1aac1f53db512d3390390bb6637bd30ad4bf9fc98667d9b9b933604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b60046020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b60003073ffffffffffffffffffffffffffffffffffffffff1631905090565b6108ac6112a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4552524f523a204f6e6c7920666f72206f776e6572000000000000000000000081525060200191505060405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f193505050501580156109ab573d6000803e3d6000fd5b50565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b158015610a6f57600080fd5b505af1158015610a83573d6000803e3d6000fd5b505050506040513d6020811015610a9957600080fd5b8101908080519060200190929190505050111515610b45576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f4552524f523a20596f75206e656564206120746f6b656e20746f20636c61696e81526020017f204554480000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151515610bea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4552524f523a207a65726f20616464726573730000000000000000000000000081525060200191505060405180910390fd5b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160009054906101000a900460ff161515610cae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4552524f523a205265676973746572206669727374000000000000000000000081525060200191505060405180910390fd5b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015442101515610d4a576000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201819055506001915061105a565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101544210151515610e2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f4552524f523a2043616e6e6f7420636c61696d206265666f7265206f6e65206d81526020017f6f6e74680000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015490503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610eb5573d6000803e3d6000fd5b5080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254019250508190555080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600082825403925050819055506224ea004201600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055506276a7004201600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301819055507ffd69c215b8b91dab5e96ff0bcbaf5dc372919948eea2003ae16481c036f816f83382604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15b5090565b60025481565b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154421015156110fb57600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201549050611100565b600090505b90565b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160009054906101000a900460ff16905090565b6111626112a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4552524f523a204f6e6c7920666f72206f776e6572000000000000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166112236112a9565b73ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060006112e06112a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611382576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4552524f523a204f6e6c7920666f72206f776e6572000000000000000000000081525060200191505060405180910390fd5b600154925061138f61146d565b9150600190505b828111151561142f5781600460006005600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600082825401925050819055508080600101915050611396565b505050565b60056020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6000806000803073ffffffffffffffffffffffffffffffffffffffff163192506114b460646114a6601e866114d690919063ffffffff16565b61150e90919063ffffffff16565b91506114cb6002548361150e90919063ffffffff16565b905080935050505090565b6000808314156114e95760009050611508565b81830290508183828115156114fa57fe5b0414151561150457fe5b8090505b92915050565b6000818381151561151b57fe5b04905092915050565b60a0604051908101604052806000815260200160008152602001600081526020016000815260200160001515815250905600a165627a7a72305820a2174f4f7ff9421c6c1226b87d1836b0fd912a71eb55c449648cb6c4b39846150029000000000000000000000000234b859d7135dc21a6c187b9769a5e34706ab1ad
Deployed Bytecode
0x6080604052600436106100c5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631aa3a008146100c75780632bcc23f8146100de57806336bdee74146101555780633c53c7b3146101805780634e71d92d14610197578063660d5887146101c657806373e98e74146101f1578063877a2a911461021c5780638863dd1a1461024b5780638da5cb5b1461028e578063b8b9b549146102e5578063d8e136e2146102fc578063e00dd16114610369575b005b3480156100d357600080fd5b506100dc610394565b005b3480156100ea57600080fd5b5061011f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610842565b60405180868152602001858152602001848152602001838152602001821515151581526020019550505050505060405180910390f35b34801561016157600080fd5b5061016a610885565b6040518082815260200191505060405180910390f35b34801561018c57600080fd5b506101956108a4565b005b3480156101a357600080fd5b506101ac6109ae565b604051808215151515815260200191505060405180910390f35b3480156101d257600080fd5b506101db61105e565b6040518082815260200191505060405180910390f35b3480156101fd57600080fd5b50610206611064565b6040518082815260200191505060405180910390f35b34801561022857600080fd5b50610231611103565b604051808215151515815260200191505060405180910390f35b34801561025757600080fd5b5061028c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061115a565b005b34801561029a57600080fd5b506102a36112a9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102f157600080fd5b506102fa6112d3565b005b34801561030857600080fd5b5061032760048036038101908080359060200190929190505050611434565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561037557600080fd5b5061037e611467565b6040518082815260200191505060405180910390f35b61039c611524565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561045a57600080fd5b505af115801561046e573d6000803e3d6000fd5b505050506040513d602081101561048457600080fd5b8101908080519060200190929190505050111515610530576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001807f4552524f523a20476574204753472d4f6666696369616c20746f6b656e20746f81526020017f207265676973746572000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515156105d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4552524f523a207a65726f20616464726573730000000000000000000000000081525060200191505060405180910390fd5b60001515600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160009054906101000a900460ff1615151415156106a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4552524f523a205573657220616c72656164792072656769737465726564000081525060200191505060405180910390fd5b60016000815480929190600101919050555060026000815480929190600101919050555060a060405190810160405280600081526020016224ea0042018152602001600081526020016276a7004201815260200160011515815250905080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff0219169083151502179055509050503360056000600154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f54db7a5cb4735e1aac1f53db512d3390390bb6637bd30ad4bf9fc98667d9b9b933604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b60046020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b60003073ffffffffffffffffffffffffffffffffffffffff1631905090565b6108ac6112a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4552524f523a204f6e6c7920666f72206f776e6572000000000000000000000081525060200191505060405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f193505050501580156109ab573d6000803e3d6000fd5b50565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b158015610a6f57600080fd5b505af1158015610a83573d6000803e3d6000fd5b505050506040513d6020811015610a9957600080fd5b8101908080519060200190929190505050111515610b45576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f4552524f523a20596f75206e656564206120746f6b656e20746f20636c61696e81526020017f204554480000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151515610bea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4552524f523a207a65726f20616464726573730000000000000000000000000081525060200191505060405180910390fd5b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160009054906101000a900460ff161515610cae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4552524f523a205265676973746572206669727374000000000000000000000081525060200191505060405180910390fd5b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015442101515610d4a576000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201819055506001915061105a565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101544210151515610e2a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001807f4552524f523a2043616e6e6f7420636c61696d206265666f7265206f6e65206d81526020017f6f6e74680000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015490503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610eb5573d6000803e3d6000fd5b5080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254019250508190555080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600082825403925050819055506224ea004201600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055506276a7004201600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301819055507ffd69c215b8b91dab5e96ff0bcbaf5dc372919948eea2003ae16481c036f816f83382604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a15b5090565b60025481565b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154421015156110fb57600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201549050611100565b600090505b90565b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040160009054906101000a900460ff16905090565b6111626112a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4552524f523a204f6e6c7920666f72206f776e6572000000000000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166112236112a9565b73ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060006112e06112a9565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611382576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4552524f523a204f6e6c7920666f72206f776e6572000000000000000000000081525060200191505060405180910390fd5b600154925061138f61146d565b9150600190505b828111151561142f5781600460006005600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201600082825401925050819055508080600101915050611396565b505050565b60056020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b6000806000803073ffffffffffffffffffffffffffffffffffffffff163192506114b460646114a6601e866114d690919063ffffffff16565b61150e90919063ffffffff16565b91506114cb6002548361150e90919063ffffffff16565b905080935050505090565b6000808314156114e95760009050611508565b81830290508183828115156114fa57fe5b0414151561150457fe5b8090505b92915050565b6000818381151561151b57fe5b04905092915050565b60a0604051908101604052806000815260200160008152602001600081526020016000815260200160001515815250905600a165627a7a72305820a2174f4f7ff9421c6c1226b87d1836b0fd912a71eb55c449648cb6c4b39846150029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000234b859d7135dc21a6c187b9769a5e34706ab1ad
-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x234b859D7135dC21A6c187b9769A5e34706Ab1aD
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000234b859d7135dc21a6c187b9769a5e34706ab1ad
Deployed Bytecode Sourcemap
31058:4340:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32185:752;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32185:752:0;;;;;;31440:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31440:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34921:96;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34921:96:0;;;;;;;;;;;;;;;;;;;;;;;35291:99;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35291:99:0;;;;;;33201:929;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33201:929:0;;;;;;;;;;;;;;;;;;;;;;;;;;;31188:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31188:30:0;;;;;;;;;;;;;;;;;;;;;;;34421:219;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34421:219:0;;;;;;;;;;;;;;;;;;;;;;;32949:107;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32949:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;35123:151;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35123:151:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;35029:76;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35029:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;34652:257;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34652:257:0;;;;;;31493:43;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31493:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31157:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31157:24:0;;;;;;;;;;;;;;;;;;;;;;;32185:752;32486:27;;:::i;:::-;32261:1;32231:5;;;;;;;;;;;:15;;;32247:10;32231:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32231:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32231:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;32231:27:0;;;;;;;;;;;;;;;;:31;32223:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32348:1;32326:24;;:10;:24;;;;32318:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32426:5;32392:39;;:7;:19;32400:10;32392:19;;;;;;;;;;;;;;;:30;;;;;;;;;;;;:39;;;32384:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32524:9;;:11;;;;;;;;;;;;;32546:15;;:17;;;;;;;;;;;;;32595:198;;;;;;;;;32637:1;32595:198;;;;32670:7;32664:3;:13;32595:198;;;;32707:1;32595:198;;;;32743:7;32737:3;:13;32595:198;;;;32777:4;32595:198;;;;;32584:209;;32836:8;32814:7;:19;32822:10;32814:19;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32877:10;32855:8;:19;32864:9;;32855:19;;;;;;;;;;;;:32;;;;;;;;;;;;;;;;;;32903:26;32918:10;32903:26;;;;;;;;;;;;;;;;;;;;;;32185:752;:::o;31440:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;34921:96::-;34961:7;34996:4;34988:21;;;34981:28;;34921:96;:::o;35291:99::-;32013:7;:5;:7::i;:::-;31999:21;;:10;:21;;;31991:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35346:4;35338:22;;:45;35369:4;35361:21;;;35338:45;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35338:45:0;35291:99::o;33201:929::-;33233:4;33730:13;33287:1;33257:5;;;;;;;;;;;:15;;;33273:10;33257:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33257:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33257:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;33257:27:0;;;;;;;;;;;;;;;;:31;33249:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33369:1;33347:24;;:10;:24;;;;33339:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33414:7;:19;33422:10;33414:19;;;;;;;;;;;;;;;:30;;;;;;;;;;;;33406:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33500:7;:19;33508:10;33500:19;;;;;;;;;;;;;;;:32;;;33493:3;:39;;33490:135;;;33585:1;33549:7;:19;33557:10;33549:19;;;;;;;;;;;;;;;:33;;:37;;;;33609:4;33602:11;;;;33490:135;33650:7;:19;33658:10;33650:19;;;;;;;;;;;;;;;:29;;;33643:3;:36;;33635:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33746:7;:19;33754:10;33746:19;;;;;;;;;;;;;;;:33;;;33730:49;;33808:10;33800:28;;:35;33829:5;33800:35;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33800:35:0;33893:5;33856:7;:19;33864:10;33856:19;;;;;;;;;;;;;;;:33;;;:42;;;;;;;;;;;33946:5;33909:7;:19;33917:10;33909:19;;;;;;;;;;;;;;;:33;;;:42;;;;;;;;;;;34001:7;33994:3;:14;33962:7;:19;33970:10;33962:19;;;;;;;;;;;;;;;:29;;:46;;;;34060:7;34054:3;:13;34019:7;:19;34027:10;34019:19;;;;;;;;;;;;;;;:32;;:48;;;;34083:29;34095:10;34106:5;34083:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;33201:929;;;:::o;31188:30::-;;;;:::o;34421:219::-;34467:7;34497;:19;34505:10;34497:19;;;;;;;;;;;;;;;:29;;;34490:3;:36;;34487:146;;;34549:7;:19;34557:10;34549:19;;;;;;;;;;;;;;;:33;;;34542:40;;;;34487:146;34620:1;34613:8;;34421:219;;:::o;32949:107::-;32994:4;33018:7;:19;33026:10;33018:19;;;;;;;;;;;;;;;:30;;;;;;;;;;;;33011:37;;32949:107;:::o;35123:151::-;32013:7;:5;:7::i;:::-;31999:21;;:10;:21;;;31991:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35230:8;35201:38;;35222:7;:5;:7::i;:::-;35201:38;;;;;;;;;;;;35258:8;35250:5;;:16;;;;;;;;;;;;;;;;;;35123:151;:::o;35029:76::-;35066:7;35092:5;;;;;;;;;;;35085:12;;35029:76;:::o;34652:257::-;34705:10;34738:13;34798:9;32013:7;:5;:7::i;:::-;31999:21;;:10;:21;;;31991:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34718:9;;34705:22;;34754:19;:17;:19::i;:::-;34738:35;;34808:1;34798:11;;34794:98;34814:2;34811:1;:5;;34794:98;;;34875:5;34837:7;:20;34845:8;:11;34854:1;34845:11;;;;;;;;;;;;;;;;;;;;;34837:20;;;;;;;;;;;;;;;:34;;;:43;;;;;;;;;;;34818:3;;;;;;;34794:98;;;34652:257;;;:::o;31493:43::-;;;;;;;;;;;;;;;;;;;;;;:::o;31157:24::-;;;;:::o;34142:267::-;34193:7;34213:19;34267:17;34326:16;34243:4;34235:21;;;34213:43;;34287:28;34311:3;34287:19;34303:2;34287:11;:15;;:19;;;;:::i;:::-;:23;;:28;;;;:::i;:::-;34267:48;;34345:30;34359:15;;34345:9;:13;;:30;;;;:::i;:::-;34326:49;;34393:8;34386:15;;34142:267;;;;:::o;4135:384::-;4193:9;4428:1;4423;:6;4419:37;;;4447:1;4440:8;;;;4419:37;4472:1;4468;:5;4464:9;;4496:1;4491;4487;:5;;;;;;;;:10;4480:18;;;;;;4512:1;4505:8;;4135:384;;;;;:::o;4606:277::-;4664:7;4876:1;4872;:5;;;;;;;;4865:12;;4606:277;;;;:::o;31058:4340::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
bzzr://a2174f4f7ff9421c6c1226b87d1836b0fd912a71eb55c449648cb6c4b3984615
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $1,882.93 | 0.2221 | $418.23 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.