ETH Price: $3,881.76 (-1.08%)

Contract

0xB711C57c3FaB55b9a655508a70731f3A073634A5
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Register X Addre...83822192019-08-19 17:41:021942 days ago1566236462IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...83478362019-08-14 9:28:311948 days ago1565774911IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...83470982019-08-14 6:45:051948 days ago1565765105IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...83458262019-08-14 2:12:001948 days ago1565748720IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...83435392019-08-13 17:37:201948 days ago1565717840IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...83397972019-08-13 3:31:271949 days ago1565667087IN
0xB711C57c...A073634A5
0 ETH0.0009298841
Register X Addre...83239202019-08-10 16:24:511951 days ago1565454291IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...83202492019-08-10 2:44:281952 days ago1565405068IN
0xB711C57c...A073634A5
0 ETH0.0031561841
Register X Addre...83201712019-08-10 2:27:281952 days ago1565404048IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...83007462019-08-07 2:08:281955 days ago1565143708IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...82972722019-08-06 13:08:581955 days ago1565096938IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...82971012019-08-06 12:34:371955 days ago1565094877IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...82970052019-08-06 12:12:581955 days ago1565093578IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...82849372019-08-04 15:19:221957 days ago1564931962IN
0xB711C57c...A073634A5
0 ETH0.0014947741
Register X Addre...82848222019-08-04 14:51:251957 days ago1564930285IN
0xB711C57c...A073634A5
0 ETH0.0014947741
Register X Addre...82848022019-08-04 14:46:411957 days ago1564930001IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...82847952019-08-04 14:44:521957 days ago1564929892IN
0xB711C57c...A073634A5
0 ETH0.0009298841
Register X Addre...82847662019-08-04 14:37:381957 days ago1564929458IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...82846922019-08-04 14:19:351957 days ago1564928375IN
0xB711C57c...A073634A5
0 ETH0.0014947741
Register X Addre...82846862019-08-04 14:18:251957 days ago1564928305IN
0xB711C57c...A073634A5
0 ETH0.0009298841
Register X Addre...82846842019-08-04 14:17:361957 days ago1564928256IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...82844182019-08-04 13:20:071957 days ago1564924807IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...82837002019-08-04 10:38:091957 days ago1564915089IN
0xB711C57c...A073634A5
0 ETH0.0014947741
Register X Addre...82835542019-08-04 10:07:271957 days ago1564913247IN
0xB711C57c...A073634A5
0 ETH0.003158841
Register X Addre...82834472019-08-04 9:44:141957 days ago1564911854IN
0xB711C57c...A073634A5
0 ETH0.003158841
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RegXAddr

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-11-01
*/

pragma solidity ^0.4.23;

// File: contracts/ERC20Basic.sol

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

// File: contracts/Ownerable.sol

contract Ownerable {
    /// @notice The address of the owner is the only address that can call
    ///  a function with this modifier
    modifier onlyOwner { require(msg.sender == owner); _; }

    address public owner;

    constructor() public { owner = msg.sender;}

    /// @notice Changes the owner of the contract
    /// @param _newOwner The new owner of the contract
    function setOwner(address _newOwner) public onlyOwner {
        owner = _newOwner;
    }
}

// File: contracts/RegXAddr.sol

contract RegXAddr is Ownerable {

  bool public registable;
  ERC20Basic private atxToken;

  address[] public ethAddrs;
  mapping (address => address) public eth2xbc;

  constructor () public {
    atxToken = ERC20Basic(0x1A0F2aB46EC630F9FD638029027b552aFA64b94c);
  }

  function setRegistable(bool _registable) public onlyOwner {
    registable = _registable;
  }

  function registeredCount() public view returns (uint256) {
    return ethAddrs.length;
  }
  
  function xbc2eth(address _xaddr) public view returns (address) {
    require(_xaddr != 0x0);
      
    for(uint i=0; i<ethAddrs.length; i++) {
      if(eth2xbc[ethAddrs[i]] == _xaddr) {
	return ethAddrs[i];
      }
    }
    return 0x0;
  }

  function registerXAddress (address _xaddr) public returns (bool){
    require(registable);
    require(_xaddr != 0x0);
    require(msg.sender != 0x0);

    uint256 atxBalance = atxToken.balanceOf(msg.sender);
    require(atxBalance > 0);
      
    if(eth2xbc[msg.sender] == 0x0) {
      ethAddrs.push(msg.sender);
    }
    eth2xbc[msg.sender] = _xaddr;

    emit RegisterXAddress(msg.sender, _xaddr, atxBalance);
    return true;
  }

  function reset() public onlyOwner {
    for(uint i=0; i<ethAddrs.length; i++) {
      delete eth2xbc[ ethAddrs[i] ];
    }
    delete ethAddrs;
  }


  event RegisterXAddress (address indexed ethaddr, address indexed xbcaddr, uint256 balance);
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"registable","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"registeredCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_registable","type":"bool"}],"name":"setRegistable","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_xaddr","type":"address"}],"name":"registerXAddress","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_xaddr","type":"address"}],"name":"xbc2eth","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"ethAddrs","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"eth2xbc","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"reset","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"ethaddr","type":"address"},{"indexed":true,"name":"xbcaddr","type":"address"},{"indexed":false,"name":"balance","type":"uint256"}],"name":"RegisterXAddress","type":"event"}]

608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550731a0f2ab46ec630f9fd638029027b552afa64b94c600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610bbc806100b56000396000f3006080604052600436106100a4576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a82b670146100a957806313af4035146100d8578063210ff9bb1461011b5780633206843c14610146578063503079d214610175578063542b8306146101d0578063717076a1146102535780638da5cb5b146102c057806396b6689314610317578063d826f88f1461039a575b600080fd5b3480156100b557600080fd5b506100be6103b1565b604051808215151515815260200191505060405180910390f35b3480156100e457600080fd5b50610119600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103c4565b005b34801561012757600080fd5b50610130610462565b6040518082815260200191505060405180910390f35b34801561015257600080fd5b5061017360048036038101908080351515906020019092919050505061046f565b005b34801561018157600080fd5b506101b6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104e7565b604051808215151515815260200191505060405180910390f35b3480156101dc57600080fd5b50610211600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061082c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025f57600080fd5b5061027e6004803603810190808035906020019092919050505061098c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102cc57600080fd5b506102d56109ca565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561032357600080fd5b50610358600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109ef565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103a657600080fd5b506103af610a22565b005b600060149054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561041f57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600280549050905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156104ca57600080fd5b80600060146101000a81548160ff02191690831515021790555050565b600080600060149054906101000a900460ff16151561050557600080fd5b60008373ffffffffffffffffffffffffffffffffffffffff161415151561052b57600080fd5b60003373ffffffffffffffffffffffffffffffffffffffff161415151561055157600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561060e57600080fd5b505af1158015610622573d6000803e3d6000fd5b505050506040513d602081101561063857600080fd5b8101908080519060200190929190505050905060008111151561065a57600080fd5b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561073f5760023390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b82600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f1ef3ac306295447441e0db9896a6325c403e9d8b6cdf6b3e588a486a3ef798fe836040518082815260200191505060405180910390a36001915050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff161415151561085557600080fd5b600090505b600280549050811015610981578273ffffffffffffffffffffffffffffffffffffffff166003600060028481548110151561089157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109745760028181548110151561094257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150610986565b808060010191505061085a565b600091505b50919050565b60028181548110151561099b57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a7f57600080fd5b600090505b600280549050811015610b395760036000600283815481101515610aa457fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558080600101915050610a84565b60026000610b479190610b4a565b50565b5080546000825590600052602060002090810190610b689190610b6b565b50565b610b8d91905b80821115610b89576000816000905550600101610b71565b5090565b905600a165627a7a723058206fcc0bba24bef5ce6e7e13ff2a3baa5b7dd57f6fce2032a8dd1d9f1167d344ce0029

Deployed Bytecode

0x6080604052600436106100a4576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630a82b670146100a957806313af4035146100d8578063210ff9bb1461011b5780633206843c14610146578063503079d214610175578063542b8306146101d0578063717076a1146102535780638da5cb5b146102c057806396b6689314610317578063d826f88f1461039a575b600080fd5b3480156100b557600080fd5b506100be6103b1565b604051808215151515815260200191505060405180910390f35b3480156100e457600080fd5b50610119600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103c4565b005b34801561012757600080fd5b50610130610462565b6040518082815260200191505060405180910390f35b34801561015257600080fd5b5061017360048036038101908080351515906020019092919050505061046f565b005b34801561018157600080fd5b506101b6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104e7565b604051808215151515815260200191505060405180910390f35b3480156101dc57600080fd5b50610211600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061082c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025f57600080fd5b5061027e6004803603810190808035906020019092919050505061098c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102cc57600080fd5b506102d56109ca565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561032357600080fd5b50610358600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109ef565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103a657600080fd5b506103af610a22565b005b600060149054906101000a900460ff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561041f57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600280549050905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156104ca57600080fd5b80600060146101000a81548160ff02191690831515021790555050565b600080600060149054906101000a900460ff16151561050557600080fd5b60008373ffffffffffffffffffffffffffffffffffffffff161415151561052b57600080fd5b60003373ffffffffffffffffffffffffffffffffffffffff161415151561055157600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561060e57600080fd5b505af1158015610622573d6000803e3d6000fd5b505050506040513d602081101561063857600080fd5b8101908080519060200190929190505050905060008111151561065a57600080fd5b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561073f5760023390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b82600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f1ef3ac306295447441e0db9896a6325c403e9d8b6cdf6b3e588a486a3ef798fe836040518082815260200191505060405180910390a36001915050919050565b60008060008373ffffffffffffffffffffffffffffffffffffffff161415151561085557600080fd5b600090505b600280549050811015610981578273ffffffffffffffffffffffffffffffffffffffff166003600060028481548110151561089157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109745760028181548110151561094257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150610986565b808060010191505061085a565b600091505b50919050565b60028181548110151561099b57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a7f57600080fd5b600090505b600280549050811015610b395760036000600283815481101515610aa457fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690558080600101915050610a84565b60026000610b479190610b4a565b50565b5080546000825590600052602060002090810190610b689190610b6b565b50565b610b8d91905b80821115610b89576000816000905550600101610b71565b5090565b905600a165627a7a723058206fcc0bba24bef5ce6e7e13ff2a3baa5b7dd57f6fce2032a8dd1d9f1167d344ce0029

Swarm Source

bzzr://6fcc0bba24bef5ce6e7e13ff2a3baa5b7dd57f6fce2032a8dd1d9f1167d344ce

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.