Source Code
Overview
ETH Balance
0.057 ETH
Eth Value
$117.57 (@ $2,062.60/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 119 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Click Button | 9558405 | 2198 days ago | IN | 0.0005 ETH | 0.00039516 | ||||
| Click Button | 9558405 | 2198 days ago | IN | 0.0005 ETH | 0.00046521 | ||||
| Click Button | 9296070 | 2238 days ago | IN | 0.0005 ETH | 0.00093042 | ||||
| Click Button | 8619072 | 2351 days ago | IN | 0.0005 ETH | 0.00278655 | ||||
| Click Button | 8376710 | 2389 days ago | IN | 0.0005 ETH | 0.00023221 | ||||
| Click Button | 7620566 | 2507 days ago | IN | 0.0005 ETH | 0.00023221 | ||||
| Click Button | 7325265 | 2553 days ago | IN | 0.0005 ETH | 0.00023221 | ||||
| Click Button | 7301063 | 2557 days ago | IN | 0.0005 ETH | 0.00092885 | ||||
| Click Button | 6975747 | 2621 days ago | IN | 0.0005 ETH | 0.00069663 | ||||
| Click Button | 5755191 | 2825 days ago | IN | 0.0005 ETH | 0.00116106 | ||||
| Click Button | 5750250 | 2826 days ago | IN | 0.0005 ETH | 0.00116106 | ||||
| Click Button | 5749845 | 2826 days ago | IN | 0.0005 ETH | 0.00348319 | ||||
| Click Button | 5749774 | 2826 days ago | IN | 0.0005 ETH | 0.00321376 | ||||
| Click Button | 5749752 | 2826 days ago | IN | 0.0005 ETH | 0.00159033 | ||||
| Click Button | 5749734 | 2826 days ago | IN | 0.0005 ETH | 0.00136314 | ||||
| Click Button | 5749719 | 2826 days ago | IN | 0.0005 ETH | 0.00159033 | ||||
| Click Button | 5749707 | 2826 days ago | IN | 0.0005 ETH | 0.00181752 | ||||
| Click Button | 5749696 | 2826 days ago | IN | 0.0005 ETH | 0.00181752 | ||||
| Click Button | 5749685 | 2826 days ago | IN | 0.0005 ETH | 0.00272629 | ||||
| Click Button | 5749669 | 2826 days ago | IN | 0.0005 ETH | 0.00227191 | ||||
| Click Button | 5749658 | 2826 days ago | IN | 0.0005 ETH | 0.00204471 | ||||
| Click Button | 5749641 | 2826 days ago | IN | 0.0005 ETH | 0.00295348 | ||||
| Click Button | 5749629 | 2826 days ago | IN | 0.0005 ETH | 0.00272629 | ||||
| Click Button | 5749614 | 2826 days ago | IN | 0.0005 ETH | 0.00227191 | ||||
| Click Button | 5749600 | 2826 days ago | IN | 0.0005 ETH | 0.00227191 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ButtonClickGameContract
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2018-05-31
*/
pragma solidity ^0.4.21;
// File: zeppelin-solidity/contracts/ownership/rbac/Roles.sol
/**
* @title Roles
* @author Francisco Giordano (@frangio)
* @dev Library for managing addresses assigned to a Role.
* See RBAC.sol for example usage.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an address access to this role
*/
function add(Role storage role, address addr)
internal
{
role.bearer[addr] = true;
}
/**
* @dev remove an address' access to this role
*/
function remove(Role storage role, address addr)
internal
{
role.bearer[addr] = false;
}
/**
* @dev check if an address has this role
* // reverts
*/
function check(Role storage role, address addr)
view
internal
{
require(has(role, addr));
}
/**
* @dev check if an address has this role
* @return bool
*/
function has(Role storage role, address addr)
view
internal
returns (bool)
{
return role.bearer[addr];
}
}
// File: zeppelin-solidity/contracts/ownership/rbac/RBAC.sol
/**
* @title RBAC (Role-Based Access Control)
* @author Matt Condon (@Shrugs)
* @dev Stores and provides setters and getters for roles and addresses.
* Supports unlimited numbers of roles and addresses.
* See //contracts/mocks/RBACMock.sol for an example of usage.
* This RBAC method uses strings to key roles. It may be beneficial
* for you to write your own implementation of this interface using Enums or similar.
* It's also recommended that you define constants in the contract, like ROLE_ADMIN below,
* to avoid typos.
*/
contract RBAC {
using Roles for Roles.Role;
mapping (string => Roles.Role) private roles;
event RoleAdded(address addr, string roleName);
event RoleRemoved(address addr, string roleName);
/**
* A constant role name for indicating admins.
*/
string public constant ROLE_ADMIN = "admin";
/**
* @dev constructor. Sets msg.sender as admin by default
*/
function RBAC()
public
{
addRole(msg.sender, ROLE_ADMIN);
}
/**
* @dev reverts if addr does not have role
* @param addr address
* @param roleName the name of the role
* // reverts
*/
function checkRole(address addr, string roleName)
view
public
{
roles[roleName].check(addr);
}
/**
* @dev determine if addr has role
* @param addr address
* @param roleName the name of the role
* @return bool
*/
function hasRole(address addr, string roleName)
view
public
returns (bool)
{
return roles[roleName].has(addr);
}
/**
* @dev add a role to an address
* @param addr address
* @param roleName the name of the role
*/
function adminAddRole(address addr, string roleName)
onlyAdmin
public
{
addRole(addr, roleName);
}
/**
* @dev remove a role from an address
* @param addr address
* @param roleName the name of the role
*/
function adminRemoveRole(address addr, string roleName)
onlyAdmin
public
{
removeRole(addr, roleName);
}
/**
* @dev add a role to an address
* @param addr address
* @param roleName the name of the role
*/
function addRole(address addr, string roleName)
internal
{
roles[roleName].add(addr);
RoleAdded(addr, roleName);
}
/**
* @dev remove a role from an address
* @param addr address
* @param roleName the name of the role
*/
function removeRole(address addr, string roleName)
internal
{
roles[roleName].remove(addr);
RoleRemoved(addr, roleName);
}
/**
* @dev modifier to scope access to a single role (uses msg.sender as addr)
* @param roleName the name of the role
* // reverts
*/
modifier onlyRole(string roleName)
{
checkRole(msg.sender, roleName);
_;
}
/**
* @dev modifier to scope access to admins
* // reverts
*/
modifier onlyAdmin()
{
checkRole(msg.sender, ROLE_ADMIN);
_;
}
/**
* @dev modifier to scope access to a set of roles (uses msg.sender as addr)
* @param roleNames the names of the roles to scope access to
* // reverts
*
* @TODO - when solidity supports dynamic arrays as arguments to modifiers, provide this
* see: https://github.com/ethereum/solidity/issues/2467
*/
// modifier onlyRoles(string[] roleNames) {
// bool hasAnyRole = false;
// for (uint8 i = 0; i < roleNames.length; i++) {
// if (hasRole(msg.sender, roleNames[i])) {
// hasAnyRole = true;
// break;
// }
// }
// require(hasAnyRole);
// _;
// }
}
// File: contracts/ButtonClickRBAC.sol
/*
* @title Manages administrative roles for specific ethereum addresses
*/
contract ButtonClickRBAC is RBAC {
string constant ROLE_FINANCE = "finance";
/**
* @dev Access modifier, which restricts functions to only the "finance" role
*/
modifier onlyFinance() {
checkRole(msg.sender, ROLE_FINANCE);
_;
}
}
// File: contracts/ButtonClickGameControls.sol
/*
* @title Defines specific controls for game administrators
*/
contract ButtonClickGameControls is ButtonClickRBAC {
/**
* Monitors if the game has been started
*/
bool public started = false;
/**
* In order to reduce the likelihood of someone spamming the button click continually with
* multiple ether addresses, which would effectively prevent the button from ever decrementing,
* we have introduced the concept of a minimum fee required to click the button.
*/
uint256 public minimumFee;
/**
* Defines how many blocks must elapse before the game can be "won"
*
* http://solidity.readthedocs.io/en/develop/contracts.html?#visibility-and-getters
*/
uint256 public requiredBlocksElapsedForVictory;
/**
* @dev Access modifier, which restricts a call to happen once the game is started
*/
modifier isStarted() {
require(started);
_;
}
/**
* @dev Changes the required number of blocks for victory. This may ONLY be called by the "admin" role
*/
function setRequiredBlocksElapsedForVictory(uint256 _requiredBlocksElapsedForVictory) external onlyAdmin {
requiredBlocksElapsedForVictory = _requiredBlocksElapsedForVictory;
}
/**
* @dev Changes the minimum fee. This may ONLY be called by the "finance" role
*/
function setMinimumFee(uint256 _minimumFee) external onlyFinance {
minimumFee = _minimumFee;
}
/**
* @dev Withdraws the available balance. This may ONLY be called by the "finance" role
*/
function withdrawBalance() external onlyFinance {
msg.sender.transfer(address(this).balance);
}
}
// File: zeppelin-solidity/contracts/math/Math.sol
/**
* @title Math
* @dev Assorted math operations
*/
library Math {
function max64(uint64 a, uint64 b) internal pure returns (uint64) {
return a >= b ? a : b;
}
function min64(uint64 a, uint64 b) internal pure returns (uint64) {
return a < b ? a : b;
}
function max256(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
function min256(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
}
// File: zeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol
/**
* @title ERC721 Non-Fungible Token Standard basic interface
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Basic {
event Transfer(address indexed _from, address indexed _to, uint256 _tokenId);
event Approval(address indexed _owner, address indexed _approved, uint256 _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 exists(uint256 _tokenId) public view returns (bool _exists);
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;
}
// File: zeppelin-solidity/contracts/token/ERC721/ERC721.sol
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Enumerable is ERC721Basic {
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 ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721Metadata is ERC721Basic {
function name() public view returns (string _name);
function symbol() public view returns (string _symbol);
function tokenURI(uint256 _tokenId) public view returns (string);
}
/**
* @title ERC-721 Non-Fungible Token Standard, full implementation interface
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata {
}
// File: zeppelin-solidity/contracts/token/ERC721/DeprecatedERC721.sol
/**
* @title ERC-721 methods shipped in OpenZeppelin v1.7.0, removed in the latest version of the standard
* @dev Only use this interface for compatibility with previously deployed contracts
* @dev Use ERC721 for interacting with new contracts which are standard-compliant
*/
contract DeprecatedERC721 is ERC721 {
function takeOwnership(uint256 _tokenId) public;
function transfer(address _to, uint256 _tokenId) public;
function tokensOf(address _owner) public view returns (uint256[]);
}
// File: zeppelin-solidity/contracts/AddressUtils.sol
/**
* Utility library of inline functions on addresses
*/
library AddressUtils {
/**
* Returns whether there is code in the target address
* @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 address to check
* @return whether there is code in the target address
*/
function isContract(address addr) internal view returns (bool) {
uint256 size;
assembly { size := extcodesize(addr) }
return size > 0;
}
}
// File: zeppelin-solidity/contracts/math/SafeMath.sol
/**
* @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) {
if (a == 0) {
return 0;
}
uint256 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 c;
}
/**
* @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) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
// File: zeppelin-solidity/contracts/token/ERC721/ERC721Receiver.sol
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
contract ERC721Receiver {
/**
* @dev Magic value to be returned upon successful reception of an NFT
* Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`,
* which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
*/
bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba;
/**
* @notice Handle the receipt of an NFT
* @dev The ERC721 smart contract calls this function on the recipient
* after a `safetransfer`. This function MAY throw to revert and reject the
* transfer. This function MUST use 50,000 gas or less. Return of other
* than the magic value MUST result in the transaction being reverted.
* Note: the contract address is always the message sender.
* @param _from The sending address
* @param _tokenId The NFT identifier which is being transfered
* @param _data Additional data with no specified format
* @return `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`
*/
function onERC721Received(address _from, uint256 _tokenId, bytes _data) public returns(bytes4);
}
// File: zeppelin-solidity/contracts/token/ERC721/ERC721BasicToken.sol
/**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721BasicToken is ERC721Basic {
using SafeMath for uint256;
using AddressUtils for address;
// Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`
// which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba;
// Mapping from token ID to owner
mapping (uint256 => address) internal tokenOwner;
// Mapping from token ID to approved address
mapping (uint256 => address) internal tokenApprovals;
// Mapping from owner to number of owned token
mapping (address => uint256) internal ownedTokensCount;
// Mapping from owner to operator approvals
mapping (address => mapping (address => bool)) internal operatorApprovals;
/**
* @dev Guarantees msg.sender is owner of the given token
* @param _tokenId uint256 ID of the token to validate its ownership belongs to msg.sender
*/
modifier onlyOwnerOf(uint256 _tokenId) {
require(ownerOf(_tokenId) == msg.sender);
_;
}
/**
* @dev Checks msg.sender can transfer a token, by being owner, approved, or operator
* @param _tokenId uint256 ID of the token to validate
*/
modifier canTransfer(uint256 _tokenId) {
require(isApprovedOrOwner(msg.sender, _tokenId));
_;
}
/**
* @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 Returns whether the specified token exists
* @param _tokenId uint256 ID of the token to query the existance of
* @return whether the token exists
*/
function exists(uint256 _tokenId) public view returns (bool) {
address owner = tokenOwner[_tokenId];
return owner != address(0);
}
/**
* @dev Approves another address to transfer the given token ID
* @dev The zero address indicates there is no approved address.
* @dev There can only be one approved address per token at a given time.
* @dev 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));
if (getApproved(_tokenId) != address(0) || _to != address(0)) {
tokenApprovals[_tokenId] = _to;
Approval(owner, _to, _tokenId);
}
}
/**
* @dev Gets the approved address for a token ID, or zero if no address set
* @param _tokenId uint256 ID of the token to query the approval of
* @return address currently approved for a the given token ID
*/
function getApproved(uint256 _tokenId) public view returns (address) {
return tokenApprovals[_tokenId];
}
/**
* @dev Sets or unsets the approval of a given operator
* @dev 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;
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
* @dev Usage of this method is discouraged, use `safeTransferFrom` whenever possible
* @dev 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 canTransfer(_tokenId) {
require(_from != address(0));
require(_to != address(0));
clearApproval(_from, _tokenId);
removeTokenFrom(_from, _tokenId);
addTokenTo(_to, _tokenId);
Transfer(_from, _to, _tokenId);
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* @dev 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,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* @dev 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 canTransfer(_tokenId) {
safeTransferFrom(_from, _to, _tokenId, "");
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* @dev 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,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* @dev 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 canTransfer(_tokenId) {
transferFrom(_from, _to, _tokenId);
require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data));
}
/**
* @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
* @dev 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);
Transfer(address(0), _to, _tokenId);
}
/**
* @dev Internal function to burn a specific token
* @dev 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);
Transfer(_owner, address(0), _tokenId);
}
/**
* @dev Internal function to clear current approval of a given token ID
* @dev 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) internal {
require(ownerOf(_tokenId) == _owner);
if (tokenApprovals[_tokenId] != address(0)) {
tokenApprovals[_tokenId] = address(0);
Approval(_owner, address(0), _tokenId);
}
}
/**
* @dev Internal function to add a token ID to the list of a given address
* @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
* @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
* @dev 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 checkAndCallSafeTransfer(address _from, address _to, uint256 _tokenId, bytes _data) internal returns (bool) {
if (!_to.isContract()) {
return true;
}
bytes4 retval = ERC721Receiver(_to).onERC721Received(_from, _tokenId, _data);
return (retval == ERC721_RECEIVED);
}
}
// File: zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol
/**
* @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 ERC721Token is ERC721, ERC721BasicToken {
// Token name
string internal name_;
// Token symbol
string internal symbol_;
// Mapping from owner to list of owned token IDs
mapping (address => uint256[]) internal ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) internal ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] internal allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) internal allTokensIndex;
// Optional mapping for token URIs
mapping(uint256 => string) internal tokenURIs;
/**
* @dev Constructor function
*/
function ERC721Token(string _name, string _symbol) public {
name_ = _name;
symbol_ = _symbol;
}
/**
* @dev Gets the token name
* @return string representing the token name
*/
function name() public view returns (string) {
return name_;
}
/**
* @dev Gets the token symbol
* @return string representing the token symbol
*/
function symbol() public view returns (string) {
return symbol_;
}
/**
* @dev Returns an URI for a given token ID
* @dev 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) public view returns (string) {
require(exists(_tokenId));
return tokenURIs[_tokenId];
}
/**
* @dev Internal function to set the token URI for a given token
* @dev 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 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
* @dev 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
* @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
* @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);
uint256 tokenIndex = ownedTokensIndex[_tokenId];
uint256 lastTokenIndex = ownedTokens[_from].length.sub(1);
uint256 lastToken = ownedTokens[_from][lastTokenIndex];
ownedTokens[_from][tokenIndex] = lastToken;
ownedTokens[_from][lastTokenIndex] = 0;
// 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
ownedTokens[_from].length--;
ownedTokensIndex[_tokenId] = 0;
ownedTokensIndex[lastToken] = tokenIndex;
}
/**
* @dev Internal function to mint a new token
* @dev 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
* @dev 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];
}
// 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;
}
}
// File: contracts/ButtonClickGame.sol
contract ButtonClickGame is ERC721Token("The Ether Button", "Butt"), ButtonClickGameControls {
/**
* @dev This event is fired whenever a user clicks on a button, thereby creating a click
* and resetting our block timer
*/
event ButtonClick(address indexed owner, uint256 tokenId);
/**
* Defines the main struct for button clicks, which contains all relevant metadata about
* the click action.
*
* Please ensure that alterations to this struct respect the byte-packing rules:
* http://solidity.readthedocs.io/en/develop/miscellaneous.html
*/
struct ButtonClickMetadata {
// Tracks how far the user was away from the desired block (0 is optimal)
uint64 blocksAwayFromDesiredBlock;
// Defines the "generation" of this game. This gets incremented whenever the button is clicked
// at the desired block
uint64 clickGeneration;
// The timestamp from the block when this click occurred
uint64 clickTime;
}
/**
* An array which contains a complete list of of ButtonClickMetadata, each of which
* represents a unique time in which the button was clicked. The ID of each click
* event is an index into this array
*/
ButtonClickMetadata[] clicks;
/**
* Defines the current game generation. Users can play again whenever this increments.
* Note: This always starts with generation 1
*
* http://solidity.readthedocs.io/en/develop/contracts.html?#visibility-and-getters
*/
uint256 public gameGeneration = 1;
/**
* Defines the block number at which a click will "win"
*
* http://solidity.readthedocs.io/en/develop/contracts.html?#visibility-and-getters
*/
uint256 public blockNumberForVictory;
/**
* A mapping from a specific address to which generation the user last clicked the button
* during. Regardless of whether a user transfers his/her click token, we only allow a
* single button click per game generation
*/
mapping (address => uint256) public addressLastClickedForGeneration;
/**
* A mapping from the number "remaining blocks" (eg 19 blocks left) to the number of clicks
* clicks that occurred at this "remaining blocks" total
*/
mapping (uint8 => uint256) public numberOfClicksAtBlocksRemaining;
/**
* @dev This method contains the core game logic, tracking a distinct button "click" event and
* saving all relevant metadata associated with it. This method will generate both a ButtonClick
* and Transfer event. Callers can ONLY call this method a single time per game generation.
*
* @return the id in our array, which is the latest click
*/
function clickButton() external isStarted payable returns (uint256) {
// Avoid spamming the game with a minimum fee
require(msg.value >= minimumFee);
// Don't allow the game to be played indefinitely
require(gameGeneration <= 65535);
// Require that the user has never click the button previously this round
require(addressLastClickedForGeneration[msg.sender] < gameGeneration);
// Immediately bump the user's last button click to this generation
addressLastClickedForGeneration[msg.sender] = gameGeneration;
// Ensure that 0 is the effective floor for elapsed blocks
// Math.max256 won't work due to integer underflow, which will give a huge number if block.number > blockNumberForVictory
uint256 _blocksAwayFromDesiredBlock;
if (blockNumberForVictory > block.number) {
_blocksAwayFromDesiredBlock = blockNumberForVictory - block.number;
} else {
_blocksAwayFromDesiredBlock = 0;
}
// Keep the local value before possibly incrementing it in the victory condition
uint256 _generation = gameGeneration;
// Victory condition!!
if (_blocksAwayFromDesiredBlock == 0) {
gameGeneration++;
}
// Increment how many clicks have occurred at this number
numberOfClicksAtBlocksRemaining[uint8(_blocksAwayFromDesiredBlock)] += 1;
// Update the blockNumber that is required for the next victory condition
blockNumberForVictory = block.number + requiredBlocksElapsedForVictory;
// Create a new click
ButtonClickMetadata memory _click = ButtonClickMetadata({
blocksAwayFromDesiredBlock: uint64(_blocksAwayFromDesiredBlock),
clickGeneration: uint64(_generation),
clickTime: uint64(now)
});
uint256 newClickId = clicks.push(_click) - 1;
// Emit the click event
emit ButtonClick(msg.sender, newClickId);
// Formally mint this token and transfer ownership
_mint(msg.sender, newClickId);
return newClickId;
}
/**
* Fetches information about a specific click event
*
* @param _id The ID of a specific button click token
*/
function getClickMetadata(uint256 _id) external view returns (
uint256 blocksAwayFromDesiredBlock,
uint256 clickTime,
uint256 clickGeneration,
address owner
) {
ButtonClickMetadata storage metadata = clicks[_id];
blocksAwayFromDesiredBlock = uint256(metadata.blocksAwayFromDesiredBlock);
clickTime = uint256(metadata.clickTime);
clickGeneration = uint256(metadata.clickGeneration);
owner = ownerOf(_id);
}
}
// File: contracts/ButtonClickGameContract.sol
contract ButtonClickGameContract is ButtonClickGame {
/**
* Core constructer, which starts the game contact
*/
function ButtonClickGameContract() public {
// The contract creator immediately takes over both Admin and Finance roles
addRole(msg.sender, ROLE_ADMIN);
addRole(msg.sender, ROLE_FINANCE);
minimumFee = 500000000000000; // 0.0005 ETH (hopefully low enough to not deter users, but high enough to avoid bots)
requiredBlocksElapsedForVictory = 20; // 20 blocks must elapse to win
}
/**
* @dev Officially starts the game and configures all initial details
*/
function startGame() external onlyAdmin {
require(!started);
started = true;
blockNumberForVictory = block.number + requiredBlocksElapsedForVictory;
}
/**
* @dev A simple function to allow for deposits into this contract. We use this
* instead of the fallback function to ensure that deposits are intentional
*/
function sendDeposit() external payable {
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[],"name":"sendDeposit","outputs":[],"payable":true,"stateMutability":"payable","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":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"},{"name":"roleName","type":"string"}],"name":"checkRole","outputs":[],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_minimumFee","type":"uint256"}],"name":"setMinimumFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minimumFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"started","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"},{"name":"roleName","type":"string"}],"name":"hasRole","outputs":[{"name":"","type":"bool"}],"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":"requiredBlocksElapsedForVictory","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint8"}],"name":"numberOfClicksAtBlocksRemaining","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":true,"inputs":[],"name":"blockNumberForVictory","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"clickButton","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_requiredBlocksElapsedForVictory","type":"uint256"}],"name":"setRequiredBlocksElapsedForVictory","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":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"_id","type":"uint256"}],"name":"getClickMetadata","outputs":[{"name":"blocksAwayFromDesiredBlock","type":"uint256"},{"name":"clickTime","type":"uint256"},{"name":"clickGeneration","type":"uint256"},{"name":"owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressLastClickedForGeneration","outputs":[{"name":"","type":"uint256"}],"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":"addr","type":"address"},{"name":"roleName","type":"string"}],"name":"adminRemoveRole","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"addr","type":"address"},{"name":"roleName","type":"string"}],"name":"adminAddRole","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":"ROLE_ADMIN","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"startGame","outputs":[],"payable":false,"stateMutability":"nonpayable","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":true,"inputs":[],"name":"gameGeneration","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"tokenId","type":"uint256"}],"name":"ButtonClick","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"},{"indexed":false,"name":"roleName","type":"string"}],"name":"RoleAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"},{"indexed":false,"name":"roleName","type":"string"}],"name":"RoleRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":false,"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
60806040526000600c60006101000a81548160ff02191690831515021790555060016010553480156200003157600080fd5b506040805190810160405280601081526020017f54686520457468657220427574746f6e000000000000000000000000000000008152506040805190810160405280600481526020017f42757474000000000000000000000000000000000000000000000000000000008152508160049080519060200190620000b6929190620003a2565b508060059080519060200190620000cf929190620003a2565b50505062000122336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250620001de640100000000026401000000009004565b62000172336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250620001de640100000000026401000000009004565b620001c2336040805190810160405280600781526020017f66696e616e636500000000000000000000000000000000000000000000000000815250620001de640100000000026401000000009004565b6601c6bf52634000600d819055506014600e8190555062000451565b6200026d82600b836040518082805190602001908083835b6020831015156200021d5780518252602082019150602081019050602083039250620001f6565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020620003446401000000000262002cab179091906401000000009004565b7fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b7004898282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101562000304578082015181840152602081019050620002e7565b50505050905090810190601f168015620003325780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003e557805160ff191683800117855562000416565b8280016001018555821562000416579182015b8281111562000415578251825591602001919060010190620003f8565b5b50905062000425919062000429565b5090565b6200044e91905b808211156200044a57600081600090555060010162000430565b5090565b90565b612df780620004616000396000f3006080604052600436106101b7576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306cb4bcd146101bc57806306fdde03146101c6578063081812fc14610256578063095ea7b3146102c35780630988ca8c1461031057806318160ddd14610399578063182a7506146103c45780631a7626e7146103f15780631f2698ab1461041c578063217fe6c61461044b57806323b872dd146104ec57806324fa6f3b1461055957806325c82f86146105845780632f745c59146105c85780633a3eda84146106295780633bd0a6e5146106545780633ccb25a21461067257806342842e0e1461069f5780634f558e791461070c5780634f6ccce7146107515780635fd8c710146107925780636352211e146107a957806367b55bf914610816578063706184b21461089857806370a08231146108ef57806388cee87e1461094657806395d89b41146109cf578063a22cb46514610a5f578063b25fa92c14610aae578063b88d4fde14610b37578063c87b56dd14610bea578063d391014b14610c90578063d65ab5f214610d20578063e985e9c514610d37578063eb34967a14610db2575b600080fd5b6101c4610ddd565b005b3480156101d257600080fd5b506101db610ddf565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561021b578082015181840152602081019050610200565b50505050905090810190601f1680156102485780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561026257600080fd5b5061028160048036038101908080359060200190929190505050610e81565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102cf57600080fd5b5061030e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ebe565b005b34801561031c57600080fd5b50610397600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611084565b005b3480156103a557600080fd5b506103ae611105565b6040518082815260200191505060405180910390f35b3480156103d057600080fd5b506103ef60048036038101908080359060200190929190505050611112565b005b3480156103fd57600080fd5b5061040661115b565b6040518082815260200191505060405180910390f35b34801561042857600080fd5b50610431611161565b604051808215151515815260200191505060405180910390f35b34801561045757600080fd5b506104d2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611174565b604051808215151515815260200191505060405180910390f35b3480156104f857600080fd5b50610557600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111fb565b005b34801561056557600080fd5b5061056e611312565b6040518082815260200191505060405180910390f35b34801561059057600080fd5b506105b2600480360381019080803560ff169060200190929190505050611318565b6040518082815260200191505060405180910390f35b3480156105d457600080fd5b50610613600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611330565b6040518082815260200191505060405180910390f35b34801561063557600080fd5b5061063e6113a7565b6040518082815260200191505060405180910390f35b61065c6113ad565b6040518082815260200191505060405180910390f35b34801561067e57600080fd5b5061069d6004803603810190808035906020019092919050505061165b565b005b3480156106ab57600080fd5b5061070a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506116a4565b005b34801561071857600080fd5b50610737600480360381019080803590602001909291905050506116dc565b604051808215151515815260200191505060405180910390f35b34801561075d57600080fd5b5061077c6004803603810190808035906020019092919050505061174d565b6040518082815260200191505060405180910390f35b34801561079e57600080fd5b506107a7611785565b005b3480156107b557600080fd5b506107d460048036038101908080359060200190929190505050611824565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561082257600080fd5b50610841600480360381019080803590602001909291905050506118a1565b604051808581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200194505050505060405180910390f35b3480156108a457600080fd5b506108d9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611946565b6040518082815260200191505060405180910390f35b3480156108fb57600080fd5b50610930600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061195e565b6040518082815260200191505060405180910390f35b34801561095257600080fd5b506109cd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506119e2565b005b3480156109db57600080fd5b506109e4611a2f565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610a24578082015181840152602081019050610a09565b50505050905090810190601f168015610a515780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610a6b57600080fd5b50610aac600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611ad1565b005b348015610aba57600080fd5b50610b35600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611c0d565b005b348015610b4357600080fd5b50610be8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611c5a565b005b348015610bf657600080fd5b50610c1560048036038101908080359060200190929190505050611c99565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610c55578082015181840152602081019050610c3a565b50505050905090810190601f168015610c825780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610c9c57600080fd5b50610ca5611d62565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610ce5578082015181840152602081019050610cca565b50505050905090810190601f168015610d125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610d2c57600080fd5b50610d35611d9b565b005b348015610d4357600080fd5b50610d98600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e1e565b604051808215151515815260200191505060405180910390f35b348015610dbe57600080fd5b50610dc7611eb2565b6040518082815260200191505060405180910390f35b565b606060048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e775780601f10610e4c57610100808354040283529160200191610e77565b820191906000526020600020905b815481529060010190602001808311610e5a57829003601f168201915b5050505050905090565b60006001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ec982611824565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610f0657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f465750610f458133611e1e565b5b1515610f5157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16610f7283610e81565b73ffffffffffffffffffffffffffffffffffffffff16141580610fc25750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b1561107f57826001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35b505050565b61110182600b836040518082805190602001908083835b6020831015156110c0578051825260208201915060208101905060208303925061109b565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020611eb890919063ffffffff16565b5050565b6000600880549050905090565b611151336040805190810160405280600781526020017f66696e616e636500000000000000000000000000000000000000000000000000815250611084565b80600d8190555050565b600d5481565b600c60009054906101000a900460ff1681565b60006111f383600b846040518082805190602001908083835b6020831015156111b2578051825260208201915060208101905060208303925061118d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020611ed190919063ffffffff16565b905092915050565b806112063382611f2a565b151561121157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415151561124d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561128957600080fd5b6112938483611fbf565b61129d8483612128565b6112a78383612340565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b600e5481565b60136020528060005260406000206000915090505481565b600061133b8361195e565b8210151561134857600080fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110151561139457fe5b9060005260206000200154905092915050565b60115481565b60008060006113ba612d3a565b6000600c60009054906101000a900460ff1615156113d757600080fd5b600d5434101515156113e857600080fd5b61ffff601054111515156113fb57600080fd5b601054601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410151561144a57600080fd5b601054601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055504360115411156114a657436011540393506114ab565b600093505b601054925060008414156114cc576010600081548092919060010191905055505b6001601360008660ff1660ff16815260200190815260200160002060008282540192505081905550600e5443016011819055506060604051908101604052808567ffffffffffffffff1681526020018467ffffffffffffffff1681526020014267ffffffffffffffff1681525091506001600f8390806001815401808255809150509060018203906000526020600020016000909192909190915060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050500390503373ffffffffffffffffffffffffffffffffffffffff167f0691b9a8aafa3a93964a82e6102bd74f03c9bbc2506526d29528c77be24d7c0f826040518082815260200191505060405180910390a26116513382612417565b8094505050505090565b61169a336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250611084565b80600e8190555050565b806116af3382611f2a565b15156116ba57600080fd5b6116d68484846020604051908101604052806000815250611c5a565b50505050565b60008060008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b6000611757611105565b8210151561176457600080fd5b60088281548110151561177357fe5b90600052602060002001549050919050565b6117c4336040805190810160405280600781526020017f66696e616e636500000000000000000000000000000000000000000000000000815250611084565b3373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050158015611821573d6000803e3d6000fd5b50565b60008060008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561189857600080fd5b80915050919050565b6000806000806000600f868154811015156118b857fe5b9060005260206000200190508060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1694508060000160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1693508060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16925061193c86611824565b9150509193509193565b60126020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561199b57600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611a21336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250611084565b611a2b828261246e565b5050565b606060058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611ac75780601f10611a9c57610100808354040283529160200191611ac7565b820191906000526020600020905b815481529060010190602001808311611aaa57829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515611b0c57600080fd5b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b611c4c336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250611084565b611c5682826125bf565b5050565b81611c653382611f2a565b1515611c7057600080fd5b611c7b8585856111fb565b611c8785858585612710565b1515611c9257600080fd5b5050505050565b6060611ca4826116dc565b1515611caf57600080fd5b600a60008381526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d565780601f10611d2b57610100808354040283529160200191611d56565b820191906000526020600020905b815481529060010190602001808311611d3957829003601f168201915b50505050509050919050565b6040805190810160405280600581526020017f61646d696e00000000000000000000000000000000000000000000000000000081525081565b611dda336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250611084565b600c60009054906101000a900460ff16151515611df657600080fd5b6001600c60006101000a81548160ff021916908315150217905550600e544301601181905550565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60105481565b611ec28282611ed1565b1515611ecd57600080fd5b5050565b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080611f3683611824565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fa557508373ffffffffffffffffffffffffffffffffffffffff16611f8d84610e81565b73ffffffffffffffffffffffffffffffffffffffff16145b80611fb65750611fb58185611e1e565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff16611fdf82611824565b73ffffffffffffffffffffffffffffffffffffffff1614151561200157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156121245760006001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a35b5050565b600080600061213785856128fe565b600760008581526020019081526020016000205492506121a36001600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050612a2c90919063ffffffff16565b9150600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811015156121f157fe5b9060005260206000200154905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208481548110151561224b57fe5b90600052602060002001819055506000600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811015156122a757fe5b9060005260206000200181905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054809190600190036123079190612d7a565b50600060076000868152602001908152602001600020819055508260076000838152602001908152602001600020819055505050505050565b600061234c8383612a45565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806007600084815260200190815260200160002081905550505050565b6124218282612b9d565b600880549050600960008381526020019081526020016000208190555060088190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b6124eb82600b836040518082805190602001908083835b6020831015156124aa5780518252602082019150602081019050602083039250612485565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020612c4d90919063ffffffff16565b7fd211483f91fc6eff862467f8de606587a30c8fc9981056f051b897a418df803a8282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612580578082015181840152602081019050612565565b50505050905090810190601f1680156125ad5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b61263c82600b836040518082805190602001908083835b6020831015156125fb57805182526020820191506020810190506020830392506125d6565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020612cab90919063ffffffff16565b7fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b7004898282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b838110156126d15780820151818401526020810190506126b6565b50505050905090810190601f1680156126fe5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000806127328573ffffffffffffffffffffffffffffffffffffffff16612d09565b151561274157600191506128f5565b8473ffffffffffffffffffffffffffffffffffffffff1663f0b9e5ba8786866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156128035780820151818401526020810190506127e8565b50505050905090810190601f1680156128305780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561285157600080fd5b505af1158015612865573d6000803e3d6000fd5b505050506040513d602081101561287b57600080fd5b8101908080519060200190929190505050905063f0b9e5ba7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b8173ffffffffffffffffffffffffffffffffffffffff1661291e82611824565b73ffffffffffffffffffffffffffffffffffffffff1614151561294057600080fd5b6129936001600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a2c90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600080600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000828211151515612a3a57fe5b818303905092915050565b600073ffffffffffffffffffffffffffffffffffffffff1660008083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612ab257600080fd5b8160008083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612b566001600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612d1c90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612bd957600080fd5b612be38282612340565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600080823b905060008111915050919050565b6000808284019050838110151515612d3057fe5b8091505092915050565b606060405190810160405280600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681525090565b815481835581811115612da157818360005260206000209182019101612da09190612da6565b5b505050565b612dc891905b80821115612dc4576000816000905550600101612dac565b5090565b905600a165627a7a7230582023b084c0bf054397b92c10dfbd93fceba18c8be6af9da134a47ce4b733b93ec70029
Deployed Bytecode
0x6080604052600436106101b7576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306cb4bcd146101bc57806306fdde03146101c6578063081812fc14610256578063095ea7b3146102c35780630988ca8c1461031057806318160ddd14610399578063182a7506146103c45780631a7626e7146103f15780631f2698ab1461041c578063217fe6c61461044b57806323b872dd146104ec57806324fa6f3b1461055957806325c82f86146105845780632f745c59146105c85780633a3eda84146106295780633bd0a6e5146106545780633ccb25a21461067257806342842e0e1461069f5780634f558e791461070c5780634f6ccce7146107515780635fd8c710146107925780636352211e146107a957806367b55bf914610816578063706184b21461089857806370a08231146108ef57806388cee87e1461094657806395d89b41146109cf578063a22cb46514610a5f578063b25fa92c14610aae578063b88d4fde14610b37578063c87b56dd14610bea578063d391014b14610c90578063d65ab5f214610d20578063e985e9c514610d37578063eb34967a14610db2575b600080fd5b6101c4610ddd565b005b3480156101d257600080fd5b506101db610ddf565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561021b578082015181840152602081019050610200565b50505050905090810190601f1680156102485780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561026257600080fd5b5061028160048036038101908080359060200190929190505050610e81565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102cf57600080fd5b5061030e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ebe565b005b34801561031c57600080fd5b50610397600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611084565b005b3480156103a557600080fd5b506103ae611105565b6040518082815260200191505060405180910390f35b3480156103d057600080fd5b506103ef60048036038101908080359060200190929190505050611112565b005b3480156103fd57600080fd5b5061040661115b565b6040518082815260200191505060405180910390f35b34801561042857600080fd5b50610431611161565b604051808215151515815260200191505060405180910390f35b34801561045757600080fd5b506104d2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611174565b604051808215151515815260200191505060405180910390f35b3480156104f857600080fd5b50610557600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111fb565b005b34801561056557600080fd5b5061056e611312565b6040518082815260200191505060405180910390f35b34801561059057600080fd5b506105b2600480360381019080803560ff169060200190929190505050611318565b6040518082815260200191505060405180910390f35b3480156105d457600080fd5b50610613600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611330565b6040518082815260200191505060405180910390f35b34801561063557600080fd5b5061063e6113a7565b6040518082815260200191505060405180910390f35b61065c6113ad565b6040518082815260200191505060405180910390f35b34801561067e57600080fd5b5061069d6004803603810190808035906020019092919050505061165b565b005b3480156106ab57600080fd5b5061070a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506116a4565b005b34801561071857600080fd5b50610737600480360381019080803590602001909291905050506116dc565b604051808215151515815260200191505060405180910390f35b34801561075d57600080fd5b5061077c6004803603810190808035906020019092919050505061174d565b6040518082815260200191505060405180910390f35b34801561079e57600080fd5b506107a7611785565b005b3480156107b557600080fd5b506107d460048036038101908080359060200190929190505050611824565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561082257600080fd5b50610841600480360381019080803590602001909291905050506118a1565b604051808581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200194505050505060405180910390f35b3480156108a457600080fd5b506108d9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611946565b6040518082815260200191505060405180910390f35b3480156108fb57600080fd5b50610930600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061195e565b6040518082815260200191505060405180910390f35b34801561095257600080fd5b506109cd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506119e2565b005b3480156109db57600080fd5b506109e4611a2f565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610a24578082015181840152602081019050610a09565b50505050905090810190601f168015610a515780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610a6b57600080fd5b50610aac600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611ad1565b005b348015610aba57600080fd5b50610b35600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611c0d565b005b348015610b4357600080fd5b50610be8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611c5a565b005b348015610bf657600080fd5b50610c1560048036038101908080359060200190929190505050611c99565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610c55578082015181840152602081019050610c3a565b50505050905090810190601f168015610c825780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610c9c57600080fd5b50610ca5611d62565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610ce5578082015181840152602081019050610cca565b50505050905090810190601f168015610d125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610d2c57600080fd5b50610d35611d9b565b005b348015610d4357600080fd5b50610d98600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e1e565b604051808215151515815260200191505060405180910390f35b348015610dbe57600080fd5b50610dc7611eb2565b6040518082815260200191505060405180910390f35b565b606060048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e775780601f10610e4c57610100808354040283529160200191610e77565b820191906000526020600020905b815481529060010190602001808311610e5a57829003601f168201915b5050505050905090565b60006001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ec982611824565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610f0657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f465750610f458133611e1e565b5b1515610f5157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16610f7283610e81565b73ffffffffffffffffffffffffffffffffffffffff16141580610fc25750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b1561107f57826001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a35b505050565b61110182600b836040518082805190602001908083835b6020831015156110c0578051825260208201915060208101905060208303925061109b565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020611eb890919063ffffffff16565b5050565b6000600880549050905090565b611151336040805190810160405280600781526020017f66696e616e636500000000000000000000000000000000000000000000000000815250611084565b80600d8190555050565b600d5481565b600c60009054906101000a900460ff1681565b60006111f383600b846040518082805190602001908083835b6020831015156111b2578051825260208201915060208101905060208303925061118d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020611ed190919063ffffffff16565b905092915050565b806112063382611f2a565b151561121157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415151561124d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561128957600080fd5b6112938483611fbf565b61129d8483612128565b6112a78383612340565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b600e5481565b60136020528060005260406000206000915090505481565b600061133b8361195e565b8210151561134857600080fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110151561139457fe5b9060005260206000200154905092915050565b60115481565b60008060006113ba612d3a565b6000600c60009054906101000a900460ff1615156113d757600080fd5b600d5434101515156113e857600080fd5b61ffff601054111515156113fb57600080fd5b601054601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410151561144a57600080fd5b601054601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055504360115411156114a657436011540393506114ab565b600093505b601054925060008414156114cc576010600081548092919060010191905055505b6001601360008660ff1660ff16815260200190815260200160002060008282540192505081905550600e5443016011819055506060604051908101604052808567ffffffffffffffff1681526020018467ffffffffffffffff1681526020014267ffffffffffffffff1681525091506001600f8390806001815401808255809150509060018203906000526020600020016000909192909190915060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050500390503373ffffffffffffffffffffffffffffffffffffffff167f0691b9a8aafa3a93964a82e6102bd74f03c9bbc2506526d29528c77be24d7c0f826040518082815260200191505060405180910390a26116513382612417565b8094505050505090565b61169a336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250611084565b80600e8190555050565b806116af3382611f2a565b15156116ba57600080fd5b6116d68484846020604051908101604052806000815250611c5a565b50505050565b60008060008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b6000611757611105565b8210151561176457600080fd5b60088281548110151561177357fe5b90600052602060002001549050919050565b6117c4336040805190810160405280600781526020017f66696e616e636500000000000000000000000000000000000000000000000000815250611084565b3373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f19350505050158015611821573d6000803e3d6000fd5b50565b60008060008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561189857600080fd5b80915050919050565b6000806000806000600f868154811015156118b857fe5b9060005260206000200190508060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1694508060000160109054906101000a900467ffffffffffffffff1667ffffffffffffffff1693508060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff16925061193c86611824565b9150509193509193565b60126020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415151561199b57600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611a21336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250611084565b611a2b828261246e565b5050565b606060058054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611ac75780601f10611a9c57610100808354040283529160200191611ac7565b820191906000526020600020905b815481529060010190602001808311611aaa57829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515611b0c57600080fd5b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b611c4c336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250611084565b611c5682826125bf565b5050565b81611c653382611f2a565b1515611c7057600080fd5b611c7b8585856111fb565b611c8785858585612710565b1515611c9257600080fd5b5050505050565b6060611ca4826116dc565b1515611caf57600080fd5b600a60008381526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d565780601f10611d2b57610100808354040283529160200191611d56565b820191906000526020600020905b815481529060010190602001808311611d3957829003601f168201915b50505050509050919050565b6040805190810160405280600581526020017f61646d696e00000000000000000000000000000000000000000000000000000081525081565b611dda336040805190810160405280600581526020017f61646d696e000000000000000000000000000000000000000000000000000000815250611084565b600c60009054906101000a900460ff16151515611df657600080fd5b6001600c60006101000a81548160ff021916908315150217905550600e544301601181905550565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60105481565b611ec28282611ed1565b1515611ecd57600080fd5b5050565b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080611f3683611824565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fa557508373ffffffffffffffffffffffffffffffffffffffff16611f8d84610e81565b73ffffffffffffffffffffffffffffffffffffffff16145b80611fb65750611fb58185611e1e565b5b91505092915050565b8173ffffffffffffffffffffffffffffffffffffffff16611fdf82611824565b73ffffffffffffffffffffffffffffffffffffffff1614151561200157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156121245760006001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a35b5050565b600080600061213785856128fe565b600760008581526020019081526020016000205492506121a36001600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050612a2c90919063ffffffff16565b9150600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811015156121f157fe5b9060005260206000200154905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208481548110151561224b57fe5b90600052602060002001819055506000600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811015156122a757fe5b9060005260206000200181905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054809190600190036123079190612d7a565b50600060076000868152602001908152602001600020819055508260076000838152602001908152602001600020819055505050505050565b600061234c8383612a45565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020829080600181540180825580915050906001820390600052602060002001600090919290919091505550806007600084815260200190815260200160002081905550505050565b6124218282612b9d565b600880549050600960008381526020019081526020016000208190555060088190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b6124eb82600b836040518082805190602001908083835b6020831015156124aa5780518252602082019150602081019050602083039250612485565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020612c4d90919063ffffffff16565b7fd211483f91fc6eff862467f8de606587a30c8fc9981056f051b897a418df803a8282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612580578082015181840152602081019050612565565b50505050905090810190601f1680156125ad5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b61263c82600b836040518082805190602001908083835b6020831015156125fb57805182526020820191506020810190506020830392506125d6565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020612cab90919063ffffffff16565b7fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b7004898282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b838110156126d15780820151818401526020810190506126b6565b50505050905090810190601f1680156126fe5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000806127328573ffffffffffffffffffffffffffffffffffffffff16612d09565b151561274157600191506128f5565b8473ffffffffffffffffffffffffffffffffffffffff1663f0b9e5ba8786866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156128035780820151818401526020810190506127e8565b50505050905090810190601f1680156128305780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561285157600080fd5b505af1158015612865573d6000803e3d6000fd5b505050506040513d602081101561287b57600080fd5b8101908080519060200190929190505050905063f0b9e5ba7c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505b50949350505050565b8173ffffffffffffffffffffffffffffffffffffffff1661291e82611824565b73ffffffffffffffffffffffffffffffffffffffff1614151561294057600080fd5b6129936001600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a2c90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600080600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000828211151515612a3a57fe5b818303905092915050565b600073ffffffffffffffffffffffffffffffffffffffff1660008083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515612ab257600080fd5b8160008083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612b566001600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612d1c90919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612bd957600080fd5b612be38282612340565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600080823b905060008111915050919050565b6000808284019050838110151515612d3057fe5b8091505092915050565b606060405190810160405280600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681525090565b815481835581811115612da157818360005260206000209182019101612da09190612da6565b5b505050565b612dc891905b80821115612dc4576000816000905550600101612dac565b5090565b905600a165627a7a7230582023b084c0bf054397b92c10dfbd93fceba18c8be6af9da134a47ce4b733b93ec70029
Swarm Source
bzzr://23b084c0bf054397b92c10dfbd93fceba18c8be6af9da134a47ce4b733b93ec7
Loading...
Loading
Loading...
Loading
Net Worth in USD
$117.57
Net Worth in ETH
0.057
Token Allocations
ETH
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $2,062.6 | 0.057 | $117.57 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.