Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 2 txns
Token Tracker: Accelerator-Registrar
Misc:
Address Watch: Add To Watch List
Contract Creator: 0x636a75562bb1e42c533b976804b94ef705a06340at txn 0x4be8021c73bb9e0440f4a7b4238b0bc146fa90d3e764fd106670de40c26a97ed
 Latest 2 txns

TxHash Age From To Value [TxFee]
0xd67c23550160adb9b3c31c7f0347fa07dd2c115ab130a5b9b4e9aa67192d629940 days 16 hrs ago0xefc50476a087850d5ed68a832c3a46c9397e4cdb  IN   0xc6b0adaec68a91e36903a9601d3489ef6a6ff9ce0 Ether0.0029188068
0x4be8021c73bb9e0440f4a7b4238b0bc146fa90d3e764fd106670de40c26a97ed53 days 15 hrs ago0x636a75562bb1e42c533b976804b94ef705a06340  IN    Contract Creation0 Ether0.002052465


[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0xd67c23550160adb9b3c31c7f0347fa07dd2c115ab130a5b9b4e9aa67192d6299684480440 days 16 hrs ago0xc6b0adaec68a91e36903a9601d3489ef6a6ff9ce  Contract Creation0 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: Registrar
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

/**
* Copyright Accelerator 2019
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished to
* do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
pragma solidity ^0.4.24;
contract Accelerator {
  function transfer(address to, uint256 tokens) public returns (bool success);
  function transferFrom(address from, address to, uint256 value) public returns (bool success);
}
contract Domain {
string public name;
constructor(string register_domain) public {
    name = register_domain;
}
}
contract Registrar {
  /// @dev Set constant values here
  string public constant name = "Accelerator-Registrar";
  address constant public ACCELERATOR_ADDR = 0x13F1b7FDFbE1fc66676D56483e21B1ecb40b58E2; // Accelerator contract address
  // index of created contracts
  address[] public contracts;
  // useful to know the row count in contracts index
  function getContractCount()
    public
    constant
    returns(uint contractCount)
  {
    return contracts.length;
  }
  /// @dev Register Domain
  function register(
    string register_domain
  ) public returns(address newContract)
  {
    //remember to call Token(address).approve(this, amount) or this contract will not be able to do the transfer on your behalf.
    require(Accelerator(ACCELERATOR_ADDR).transferFrom(msg.sender, this, 10**21));
    /// @dev Send the tokens to address(0) (the burn address) - require it or fail here
    require(Accelerator(ACCELERATOR_ADDR).transfer(address(0), 10**21));
    address c = new Domain(register_domain);
    contracts.push(c);
    return c;
  }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"contracts","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getContractCount","outputs":[{"name":"contractCount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ACCELERATOR_ADDR","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"register_domain","type":"string"}],"name":"register","outputs":[{"name":"newContract","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b5061095f806100206000396000f30060806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610072578063474da79a146101025780639399869d1461016f578063e730d4d41461019a578063f2c298be146101f1575b600080fd5b34801561007e57600080fd5b5061008761029a565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100c75780820151818401526020810190506100ac565b50505050905090810190601f1680156100f45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561010e57600080fd5b5061012d600480360381019080803590602001909291905050506102d3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017b57600080fd5b50610184610311565b6040518082815260200191505060405180910390f35b3480156101a657600080fd5b506101af61031d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101fd57600080fd5b50610258600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610335565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6040805190810160405280601581526020017f416363656c657261746f722d526567697374726172000000000000000000000081525081565b6000818154811015156102e257fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008080549050905090565b7313f1b7fdfbe1fc66676d56483e21b1ecb40b58e281565b6000807313f1b7fdfbe1fc66676d56483e21b1ecb40b58e273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330683635c9adc5dea000006040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561042c57600080fd5b505af1158015610440573d6000803e3d6000fd5b505050506040513d602081101561045657600080fd5b8101908080519060200190929190505050151561047257600080fd5b7313f1b7fdfbe1fc66676d56483e21b1ecb40b58e273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000683635c9adc5dea000006040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561053357600080fd5b505af1158015610547573d6000803e3d6000fd5b505050506040513d602081101561055d57600080fd5b8101908080519060200190929190505050151561057957600080fd5b8261058261067f565b8080602001828103825283818151815260200191508051906020019080838360005b838110156105bf5780820151818401526020810190506105a4565b50505050905090810190601f1680156105ec5780820380516001836020036101000a031916815260200191505b5092505050604051809103906000f08015801561060d573d6000803e3d6000fd5b50905060008190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505080915050919050565b6040516102a480610690833901905600608060405234801561001057600080fd5b506040516102a43803806102a4833981018060405281019080805182019291905050508060009080519060200190610049929190610050565b50506100f5565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061009157805160ff19168380011785556100bf565b828001600101855582156100bf579182015b828111156100be5782518255916020019190600101906100a3565b5b5090506100cc91906100d0565b5090565b6100f291905b808211156100ee5760008160009055506001016100d6565b5090565b90565b6101a0806101046000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610046575b600080fd5b34801561005257600080fd5b5061005b6100d6565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561009b578082015181840152602081019050610080565b50505050905090810190601f1680156100c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561016c5780601f106101415761010080835404028352916020019161016c565b820191906000526020600020905b81548152906001019060200180831161014f57829003601f168201915b5050505050815600a165627a7a723058204171e597049c70acb6962c4273d1a79d377de8bb18ebddcd2acd2d12da90e7270029a165627a7a72305820356211fc9b24b7b43d32ef896c893a16aeff4d84d4251010eead56e4167390db0029

   Swarm Source:
bzzr://356211fc9b24b7b43d32ef896c893a16aeff4d84d4251010eead56e4167390db

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.