ETH Price: $2,914.32 (+3.36%)
 

Overview

Max Total Supply

199,038.30052607 TRM

Holders

1,197

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Balance
10 TRM

Value
$0.00
0x0761bdabd864691fa71f743fe4262fd7f39fcb20
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
TRMToken

Compiler Version
v0.4.11+commit.68ef5810

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2017-09-12
*/

pragma solidity ^0.4.11;

/*
 * ERC20 interface
 * see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 {
  uint public totalSupply;
  function balanceOf(address who) constant returns (uint);
  function allowance(address owner, address spender) constant returns (uint);

  function transfer(address to, uint value) returns (bool ok);
  function transferFrom(address from, address to, uint value) returns (bool ok);
  function approve(address spender, uint value) returns (bool ok);
  event Transfer(address indexed from, address indexed to, uint value);
  event Approval(address indexed owner, address indexed spender, uint value);
}

// ERC223
contract ContractReceiver {
  function tokenFallback(address from, uint value);
}

/**
 * Math operations with safety checks
 */
contract SafeMath {
  function safeMul(uint a, uint b) internal returns (uint) {
    uint c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function safeDiv(uint a, uint b) internal returns (uint) {
    assert(b > 0);
    uint c = a / b;
    assert(a == b * c + a % b);
    return c;
  }

  function safeSub(uint a, uint b) internal returns (uint) {
    assert(b <= a);
    return a - b;
  }

  function safeAdd(uint a, uint b) internal returns (uint) {
    uint c = a + b;
    assert(c>=a && c>=b);
    return c;
  }

  function max64(uint64 a, uint64 b) internal constant returns (uint64) {
    return a >= b ? a : b;
  }

  function min64(uint64 a, uint64 b) internal constant returns (uint64) {
    return a < b ? a : b;
  }

  function max256(uint256 a, uint256 b) internal constant returns (uint256) {
    return a >= b ? a : b;
  }

  function min256(uint256 a, uint256 b) internal constant returns (uint256) {
    return a < b ? a : b;
  }

  function assert(bool assertion) internal {
    if (!assertion) {
      revert();
    }
  }
}



/**
 * Standard ERC20 token with Short Hand Attack and approve() race condition mitigation.
 *
 * Based on code by FirstBlood:
 * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, SafeMath {

  /* Token supply got increased and a new owner received these tokens */
  event Minted(address receiver, uint amount);

  /* Actual balances of token holders */
  mapping(address => uint) balances;

  /* approve() allowances */
  mapping (address => mapping (address => uint)) allowed;

  /**
   *
   * Fix for the ERC20 short address attack
   *
   * http://vessenes.com/the-erc20-short-address-attack-explained/
   */
  modifier onlyPayloadSize(uint size) {
     if(msg.data.length != size + 4) {
       revert();
     }
     _;
  }

  function transfer(address _to, uint _value) onlyPayloadSize(2 * 32) returns (bool success) {
    balances[msg.sender] = safeSub(balances[msg.sender], _value);
    balances[_to] = safeAdd(balances[_to], _value);
    Transfer(msg.sender, _to, _value);

    if (isContract(_to)) {
      ContractReceiver rx = ContractReceiver(_to);
      rx.tokenFallback(msg.sender, _value);
    }

    return true;
  }

  // ERC223 fetch contract size (must be nonzero to be a contract)
  function isContract( address _addr ) private returns (bool) {
    uint length;
    _addr = _addr;
    assembly { length := extcodesize(_addr) }
    return (length > 0);
  }

  function transferFrom(address _from, address _to, uint _value) returns (bool success) {
    uint _allowance = allowed[_from][msg.sender];

    // Check is not needed because safeSub(_allowance, _value) will already throw if this condition is not met
    // if (_value > _allowance) revert();

    balances[_to] = safeAdd(balances[_to], _value);
    balances[_from] = safeSub(balances[_from], _value);
    allowed[_from][msg.sender] = safeSub(_allowance, _value);
    Transfer(_from, _to, _value);
    return true;
  }

  function balanceOf(address _owner) constant returns (uint balance) {
    return balances[_owner];
  }

  function approve(address _spender, uint _value) returns (bool success) {

    // To change the approve amount you first have to reduce the addresses`
    //  allowance to zero by calling `approve(_spender, 0)` if it is not
    //  already 0 to mitigate the race condition described here:
    //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    if ((_value != 0) && (allowed[msg.sender][_spender] != 0)) revert();

    allowed[msg.sender][_spender] = _value;
    Approval(msg.sender, _spender, _value);
    return true;
  }

  function allowance(address _owner, address _spender) constant returns (uint remaining) {
    return allowed[_owner][_spender];
  }

  /**
   * Atomic increment of approved spending
   *
   * Works around https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   *
   */
  function addApproval(address _spender, uint _addedValue)
  onlyPayloadSize(2 * 32)
  returns (bool success) {
      uint oldValue = allowed[msg.sender][_spender];
      allowed[msg.sender][_spender] = safeAdd(oldValue, _addedValue);
      Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
      return true;
  }

  /**
   * Atomic decrement of approved spending.
   *
   * Works around https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   */
  function subApproval(address _spender, uint _subtractedValue)
  onlyPayloadSize(2 * 32)
  returns (bool success) {

      uint oldVal = allowed[msg.sender][_spender];

      if (_subtractedValue > oldVal) {
          allowed[msg.sender][_spender] = 0;
      } else {
          allowed[msg.sender][_spender] = safeSub(oldVal, _subtractedValue);
      }
      Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
      return true;
  }

}



contract BurnableToken is StandardToken {

  address public constant BURN_ADDRESS = 0;

  /** How many tokens we burned */
  event Burned(address burner, uint burnedAmount);

  /**
   * Burn extra tokens from a balance.
   *
   */
  function burn(uint burnAmount) {
    address burner = msg.sender;
    balances[burner] = safeSub(balances[burner], burnAmount);
    totalSupply = safeSub(totalSupply, burnAmount);
    Burned(burner, burnAmount);
  }
}





/**
 * Upgrade agent interface inspired by Lunyr.
 *
 * Upgrade agent transfers tokens to a new contract.
 * Upgrade agent itself can be the token contract, or just a middle man contract doing the heavy lifting.
 */
contract UpgradeAgent {

  uint public originalSupply;

  /** Interface marker */
  function isUpgradeAgent() public constant returns (bool) {
    return true;
  }

  function upgradeFrom(address _from, uint256 _value) public;

}


/**
 * A token upgrade mechanism where users can opt-in amount of tokens to the next smart contract revision.
 *
 * First envisioned by Golem and Lunyr projects.
 */
contract UpgradeableToken is StandardToken {

  /** Contract / person who can set the upgrade path. This can be the same as team multisig wallet, as what it is with its default value. */
  address public upgradeMaster;

  /** The next contract where the tokens will be migrated. */
  UpgradeAgent public upgradeAgent;

  /** How many tokens we have upgraded by now. */
  uint256 public totalUpgraded;

  /**
   * Upgrade states.
   *
   * - NotAllowed: The child contract has not reached a condition where the upgrade can bgun
   * - WaitingForAgent: Token allows upgrade, but we don't have a new agent yet
   * - ReadyToUpgrade: The agent is set, but not a single token has been upgraded yet
   * - Upgrading: Upgrade agent is set and the balance holders can upgrade their tokens
   *
   */
  enum UpgradeState {Unknown, NotAllowed, WaitingForAgent, ReadyToUpgrade, Upgrading}

  /**
   * Somebody has upgraded some of his tokens.
   */
  event Upgrade(address indexed _from, address indexed _to, uint256 _value);

  /**
   * New upgrade agent available.
   */
  event UpgradeAgentSet(address agent);

  /**
   * Do not allow construction without upgrade master set.
   */
  function UpgradeableToken(address _upgradeMaster) {
    upgradeMaster = _upgradeMaster;
  }

  /**
   * Allow the token holder to upgrade some of their tokens to a new contract.
   */
  function upgrade(uint256 value) public {

      UpgradeState state = getUpgradeState();
      if(!(state == UpgradeState.ReadyToUpgrade || state == UpgradeState.Upgrading)) {
        // Called in a bad state
        revert();
      }

      // Validate input value.
      if (value == 0) revert();

      balances[msg.sender] = safeSub(balances[msg.sender], value);

      // Take tokens out from circulation
      totalSupply = safeSub(totalSupply, value);
      totalUpgraded = safeAdd(totalUpgraded, value);

      // Upgrade agent reissues the tokens
      upgradeAgent.upgradeFrom(msg.sender, value);
      Upgrade(msg.sender, upgradeAgent, value);
  }

  /**
   * Set an upgrade agent that handles
   */
  function setUpgradeAgent(address agent) external {

      if(!canUpgrade()) {
        // The token is not yet in a state that we could think upgrading
        revert();
      }

      if (agent == 0x0) revert();
      // Only a master can designate the next agent
      if (msg.sender != upgradeMaster) revert();
      // Upgrade has already begun for an agent
      if (getUpgradeState() == UpgradeState.Upgrading) revert();

      upgradeAgent = UpgradeAgent(agent);

      // Bad interface
      if(!upgradeAgent.isUpgradeAgent()) revert();
      // Make sure that token supplies match in source and target
      if (upgradeAgent.originalSupply() != totalSupply) revert();

      UpgradeAgentSet(upgradeAgent);
  }

  /**
   * Get the state of the token upgrade.
   */
  function getUpgradeState() public constant returns(UpgradeState) {
    if(!canUpgrade()) return UpgradeState.NotAllowed;
    else if(address(upgradeAgent) == 0x00) return UpgradeState.WaitingForAgent;
    else if(totalUpgraded == 0) return UpgradeState.ReadyToUpgrade;
    else return UpgradeState.Upgrading;
  }

  /**
   * Change the upgrade master.
   *
   * This allows us to set a new owner for the upgrade mechanism.
   */
  function setUpgradeMaster(address master) public {
      if (master == 0x0) revert();
      if (msg.sender != upgradeMaster) revert();
      upgradeMaster = master;
  }

  /**
   * Child contract can enable to provide the condition when the upgrade can begun.
   */
  function canUpgrade() public constant returns(bool) {
     return true;
  }

}


contract TRMToken is BurnableToken, UpgradeableToken {

  string public name;
  string public symbol;
  uint public decimals;
  address public owner;

  bool public mintingFinished = false;

  mapping(address => uint) public previligedBalances;

  /** List of agents that are allowed to create new tokens */
  mapping(address => bool) public mintAgents;
  event MintingAgentChanged(address addr, bool state);

  modifier onlyOwner() {
    if(msg.sender != owner) revert();
    _;
  }

  modifier onlyMintAgent() {
    // Only crowdsale contracts are allowed to mint new tokens
    if(!mintAgents[msg.sender]) revert();
    _;
  }

  /** Make sure we are not done yet. */
  modifier canMint() {
    if(mintingFinished) revert();
    _;
  }

  function transferOwnership(address newOwner) onlyOwner {
    if (newOwner != address(0)) {
      owner = newOwner;
    }
  }

  function TRMToken(address _owner, string _name, string _symbol, uint _totalSupply, uint _decimals)  UpgradeableToken(_owner) {
    name = _name;
    symbol = _symbol;
    totalSupply = _totalSupply;
    decimals = _decimals;

    // Allocate initial balance to the owner
    balances[_owner] = _totalSupply;

    // save the owner
    owner = _owner;
  }

  // privileged transfer
  function transferPrivileged(address _to, uint _value) onlyOwner returns (bool success) {
    balances[msg.sender] = safeSub(balances[msg.sender], _value);
    balances[_to] = safeAdd(balances[_to], _value);
    previligedBalances[_to] = safeAdd(previligedBalances[_to], _value);
    Transfer(msg.sender, _to, _value);
    return true;
  }

  // get priveleged balance
  function getPrivilegedBalance(address _owner) constant returns (uint balance) {
    return previligedBalances[_owner];
  }

  // admin only can transfer from the privileged accounts
  function transferFromPrivileged(address _from, address _to, uint _value) onlyOwner returns (bool success) {
    uint availablePrevilegedBalance = previligedBalances[_from];

    balances[_from] = safeSub(balances[_from], _value);
    balances[_to] = safeAdd(balances[_to], _value);
    previligedBalances[_from] = safeSub(availablePrevilegedBalance, _value);
    Transfer(_from, _to, _value);
    return true;
  }

  /**
   * Create new tokens and allocate them to an address..
   *
   * Only callably by a crowdsale contract (mint agent).
   */
  function mint(address receiver, uint amount) onlyMintAgent canMint public {
    totalSupply = safeAdd(totalSupply, amount);
    balances[receiver] = safeAdd(balances[receiver], amount);

    // This will make the mint transaction apper in EtherScan.io
    // We can remove this after there is a standardized minting event
    Transfer(0, receiver, amount);
  }

  /**
   * Owner can allow a crowdsale contract to mint new tokens.
   */
  function setMintAgent(address addr, bool state) onlyOwner canMint public {
    mintAgents[addr] = state;
    MintingAgentChanged(addr, state);
  }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"mintingFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferPrivileged","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"receiver","type":"address"},{"name":"amount","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"burnAmount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"mintAgents","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"},{"name":"state","type":"bool"}],"name":"setMintAgent","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"value","type":"uint256"}],"name":"upgrade","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFromPrivileged","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"upgradeAgent","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"upgradeMaster","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getUpgradeState","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"previligedBalances","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"canUpgrade","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"getPrivilegedBalance","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"addApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalUpgraded","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"agent","type":"address"}],"name":"setUpgradeAgent","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"subApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"BURN_ADDRESS","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"master","type":"address"}],"name":"setUpgradeMaster","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_owner","type":"address"},{"name":"_name","type":"string"},{"name":"_symbol","type":"string"},{"name":"_totalSupply","type":"uint256"},{"name":"_decimals","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"},{"indexed":false,"name":"state","type":"bool"}],"name":"MintingAgentChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Upgrade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"agent","type":"address"}],"name":"UpgradeAgentSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"burner","type":"address"},{"indexed":false,"name":"burnedAmount","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"receiver","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]

60606040526009805460a060020a60ff021916905534156200001d57fe5b604051620018833803806200188383398101604090815281516020830151918301516060840151608085015192949384019391909101915b845b60038054600160a060020a031916600160a060020a0383161790555b50835162000089906006906020870190620000e3565b5082516200009f906007906020860190620000e3565b5060008281556008829055600160a060020a0386168082526001602052604090912083905560098054600160a060020a03191690911790555b50505050506200018d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200012657805160ff191683800117855562000156565b8280016001018555821562000156579182015b828111156200015657825182559160200191906001019062000139565b5b506200016592915062000169565b5090565b6200018a91905b8082111562000165576000815560010162000170565b5090565b90565b6116e6806200019d6000396000f3006060604052361561016f5763ffffffff60e060020a60003504166305d2035b811461017157806306fdde0314610195578063095ea7b31461022557806318160ddd146102585780631a017f3f1461027a57806323b872dd146102ad578063313ce567146102e657806340c10f191461030857806342966c681461032957806342c1867b1461033e578063432146751461036e57806345977d03146103915780635d3171d9146103a65780635de4ccb0146103df578063600440cb1461040b57806370a08231146104375780638444b391146104655780638c133a77146104995780638da5cb5b146104c757806395d89b41146104f35780639738968c14610583578063a9059cbb146105a7578063ab7e9dca146105da578063ac3cb72c14610608578063c752ff621461063b578063d7e7088a1461065d578063dd62ed3e1461067b578063e2301d02146106af578063f2fde38b146106e2578063fccc281314610700578063ffeb7d751461072c575bfe5b341561017957fe5b61018161074a565b604080519115158252519081900360200190f35b341561019d57fe5b6101a561076b565b6040805160208082528351818301528351919283929083019185019080838382156101eb575b8051825260208311156101eb57601f1990920191602091820191016101cb565b505050905090810190601f1680156102175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561022d57fe5b610181600160a060020a03600435166024356107f9565b604080519115158252519081900360200190f35b341561026057fe5b6102686108a0565b60408051918252519081900360200190f35b341561028257fe5b610181600160a060020a03600435166024356108a6565b604080519115158252519081900360200190f35b34156102b557fe5b610181600160a060020a0360043581169060243516604435610997565b604080519115158252519081900360200190f35b34156102ee57fe5b610268610a88565b60408051918252519081900360200190f35b341561031057fe5b610327600160a060020a0360043516602435610a8e565b005b341561033157fe5b610327600435610b59565b005b341561034657fe5b610181600160a060020a0360043516610bf0565b604080519115158252519081900360200190f35b341561037657fe5b610327600160a060020a03600435166024351515610c05565b005b341561039957fe5b610327600435610cb1565b005b34156103ae57fe5b610181600160a060020a0360043581169060243516604435610e25565b604080519115158252519081900360200190f35b34156103e757fe5b6103ef610f1d565b60408051600160a060020a039092168252519081900360200190f35b341561041357fe5b6103ef610f2c565b60408051600160a060020a039092168252519081900360200190f35b341561043f57fe5b610268600160a060020a0360043516610f3b565b60408051918252519081900360200190f35b341561046d57fe5b610475610f5a565b6040518082600481111561048557fe5b60ff16815260200191505060405180910390f35b34156104a157fe5b610268600160a060020a0360043516610fa7565b60408051918252519081900360200190f35b34156104cf57fe5b6103ef610fb9565b60408051600160a060020a039092168252519081900360200190f35b34156104fb57fe5b6101a5610fc8565b6040805160208082528351818301528351919283929083019185019080838382156101eb575b8051825260208311156101eb57601f1990920191602091820191016101cb565b505050905090810190601f1680156102175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561058b57fe5b610181611056565b604080519115158252519081900360200190f35b34156105af57fe5b610181600160a060020a036004351660243561105c565b604080519115158252519081900360200190f35b34156105e257fe5b610268600160a060020a0360043516611197565b60408051918252519081900360200190f35b341561061057fe5b610181600160a060020a03600435166024356111b6565b604080519115158252519081900360200190f35b341561064357fe5b61026861126a565b60408051918252519081900360200190f35b341561066557fe5b610327600160a060020a0360043516611270565b005b341561068357fe5b610268600160a060020a0360043581169060243516611446565b60408051918252519081900360200190f35b34156106b757fe5b610181600160a060020a0360043516602435611473565b604080519115158252519081900360200190f35b34156106ea57fe5b610327600160a060020a036004351661157d565b005b341561070857fe5b6103ef6115d6565b60408051600160a060020a039092168252519081900360200190f35b341561073457fe5b610327600160a060020a03600435166115db565b005b60095474010000000000000000000000000000000000000000900460ff1681565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107f15780601f106107c6576101008083540402835291602001916107f1565b820191906000526020600020905b8154815290600101906020018083116107d457829003601f168201915b505050505081565b6000811580159061082e5750600160a060020a0333811660009081526002602090815260408083209387168352929052205415155b156108395760006000fd5b600160a060020a03338116600081815260026020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b92915050565b60005481565b60095460009033600160a060020a039081169116146108c55760006000fd5b600160a060020a0333166000908152600160205260409020546108e89083611639565b600160a060020a0333811660009081526001602052604080822093909355908516815220546109179083611652565b600160a060020a038416600090815260016020908152604080832093909355600a905220546109469083611652565b600160a060020a038085166000818152600a602090815260409182902094909455805186815290519193339093169260008051602061169b83398151915292918290030190a35060015b5b92915050565b600160a060020a0380841660009081526002602090815260408083203385168452825280832054938616835260019091528120549091906109d89084611652565b600160a060020a038086166000908152600160205260408082209390935590871681522054610a079084611639565b600160a060020a038616600090815260016020526040902055610a2a8184611639565b600160a060020a0380871660008181526002602090815260408083203386168452825291829020949094558051878152905192881693919260008051602061169b833981519152929181900390910190a3600191505b509392505050565b60085481565b600160a060020a0333166000908152600b602052604090205460ff161515610ab65760006000fd5b60095474010000000000000000000000000000000000000000900460ff1615610adf5760006000fd5b610aeb60005482611652565b6000908155600160a060020a038316815260016020526040902054610b109082611652565b600160a060020a038316600081815260016020908152604080832094909455835185815293519293919260008051602061169b8339815191529281900390910190a35b5b5b5050565b33600160a060020a038116600090815260016020526040902054610b7d9083611639565b600160a060020a03821660009081526001602052604081209190915554610ba49083611639565b60005560408051600160a060020a03831681526020810184905281517f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df7929181900390910190a15b5050565b600b6020526000908152604090205460ff1681565b60095433600160a060020a03908116911614610c215760006000fd5b60095474010000000000000000000000000000000000000000900460ff1615610c4a5760006000fd5b600160a060020a0382166000818152600b6020908152604091829020805460ff191685151590811790915582519384529083015280517f4b0adf6c802794c7dde28a08a4e07131abcff3bf9603cd71f14f90bec7865efa9281900390910190a15b5b5b5050565b6000610cbb610f5a565b905060035b816004811115610ccc57fe5b1480610ce4575060045b816004811115610ce257fe5b145b1515610cf05760006000fd5b811515610cfd5760006000fd5b600160a060020a033316600090815260016020526040902054610d209083611639565b600160a060020a03331660009081526001602052604081209190915554610d479083611639565b600055600554610d579083611652565b60055560048054604080517f753e88e5000000000000000000000000000000000000000000000000000000008152600160a060020a0333811694820194909452602481018690529051929091169163753e88e59160448082019260009290919082900301818387803b1515610dc857fe5b6102c65a03f11515610dd657fe5b5050600454604080518581529051600160a060020a03928316935033909216917f7e5c344a8141a805725cb476f76c6953b842222b967edd1f78ddb6e8b3f397ac9181900360200190a35b5050565b600954600090819033600160a060020a03908116911614610e465760006000fd5b50600160a060020a0384166000908152600a6020908152604080832054600190925290912054610e769084611639565b600160a060020a038087166000908152600160205260408082209390935590861681522054610ea59084611652565b600160a060020a038516600090815260016020526040902055610ec88184611639565b600160a060020a038087166000818152600a6020908152604091829020949094558051878152905192881693919260008051602061169b833981519152929181900390910190a3600191505b5b509392505050565b600454600160a060020a031681565b600354600160a060020a031681565b600160a060020a0381166000908152600160205260409020545b919050565b6000610f64611056565b1515610f7257506001610fa1565b600454600160a060020a03161515610f8c57506002610fa1565b6005541515610f9d57506003610fa1565b5060045b5b5b5b90565b600a6020526000908152604090205481565b600954600160a060020a031681565b6007805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107f15780601f106107c6576101008083540402835291602001916107f1565b820191906000526020600020905b8154815290600101906020018083116107d457829003601f168201915b505050505081565b60015b90565b60008060403660441461106f5760006000fd5b600160a060020a0333166000908152600160205260409020546110929085611639565b600160a060020a0333811660009081526001602052604080822093909355908716815220546110c19085611652565b600160a060020a0380871660008181526001602090815260409182902094909455805188815290519193339093169260008051602061169b83398151915292918290030190a36111108561167a565b156111895784915081600160a060020a0316633b66d02b33866040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b151561117757fe5b6102c65a03f1151561118557fe5b5050505b600192505b5b505092915050565b600160a060020a0381166000908152600a60205260409020545b919050565b6000806040366044146111c95760006000fd5b600160a060020a0333811660009081526002602090815260408083209389168352929052205491506111fb8285611652565b600160a060020a033381166000818152600260209081526040808320948b168084529482529182902085905581519485529051929391927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3600192505b5b505092915050565b60055481565b611278611056565b15156112845760006000fd5b600160a060020a038116151561129a5760006000fd5b60035433600160a060020a039081169116146112b65760006000fd5b60045b6112c1610f5a565b60048111156112cc57fe5b14156112d85760006000fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117808355604080516000602091820181905282517f61d3d7a6000000000000000000000000000000000000000000000000000000008152925193909416946361d3d7a69483820194929383900390910190829087803b151561135f57fe5b6102c65a03f1151561136d57fe5b505060405151151590506113815760006000fd5b600054600460009054906101000a9004600160a060020a0316600160a060020a0316634b2ba0dd6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156113df57fe5b6102c65a03f115156113ed57fe5b5050604051519190911490506114035760006000fd5b60045460408051600160a060020a039092168252517f7845d5aa74cc410e35571258d954f23b82276e160fe8c188fa80566580f279cc9181900360200190a15b50565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b6000806040366044146114865760006000fd5b600160a060020a033381166000908152600260209081526040808320938916835292905220549150818411156114e357600160a060020a033381166000908152600260209081526040808320938916835292905290812055611514565b6111fb8285611639565b600160a060020a033381166000908152600260209081526040808320938a16835292905220555b600160a060020a033381166000818152600260209081526040808320948a168084529482529182902054825190815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3600192505b5b505092915050565b60095433600160a060020a039081169116146115995760006000fd5b600160a060020a03811615611443576009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b5b50565b600081565b600160a060020a03811615156115f15760006000fd5b60035433600160a060020a0390811691161461160d5760006000fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600061164783831115611689565b508082035b92915050565b600082820161166f84821080159061166a5750838210155b611689565b8091505b5092915050565b6000813b908111905b50919050565b8015156114435760006000fd5b5b505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a723058201d4b61c277eb7d6cd928f7d59729d4b886324322d28f103902c6eb9ace37b17b00290000000000000000000000006dd6827ce1cb8607fc4484b04c774f7427a63cb900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000011307fc9480000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000854524d546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000354524d0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6060604052361561016f5763ffffffff60e060020a60003504166305d2035b811461017157806306fdde0314610195578063095ea7b31461022557806318160ddd146102585780631a017f3f1461027a57806323b872dd146102ad578063313ce567146102e657806340c10f191461030857806342966c681461032957806342c1867b1461033e578063432146751461036e57806345977d03146103915780635d3171d9146103a65780635de4ccb0146103df578063600440cb1461040b57806370a08231146104375780638444b391146104655780638c133a77146104995780638da5cb5b146104c757806395d89b41146104f35780639738968c14610583578063a9059cbb146105a7578063ab7e9dca146105da578063ac3cb72c14610608578063c752ff621461063b578063d7e7088a1461065d578063dd62ed3e1461067b578063e2301d02146106af578063f2fde38b146106e2578063fccc281314610700578063ffeb7d751461072c575bfe5b341561017957fe5b61018161074a565b604080519115158252519081900360200190f35b341561019d57fe5b6101a561076b565b6040805160208082528351818301528351919283929083019185019080838382156101eb575b8051825260208311156101eb57601f1990920191602091820191016101cb565b505050905090810190601f1680156102175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561022d57fe5b610181600160a060020a03600435166024356107f9565b604080519115158252519081900360200190f35b341561026057fe5b6102686108a0565b60408051918252519081900360200190f35b341561028257fe5b610181600160a060020a03600435166024356108a6565b604080519115158252519081900360200190f35b34156102b557fe5b610181600160a060020a0360043581169060243516604435610997565b604080519115158252519081900360200190f35b34156102ee57fe5b610268610a88565b60408051918252519081900360200190f35b341561031057fe5b610327600160a060020a0360043516602435610a8e565b005b341561033157fe5b610327600435610b59565b005b341561034657fe5b610181600160a060020a0360043516610bf0565b604080519115158252519081900360200190f35b341561037657fe5b610327600160a060020a03600435166024351515610c05565b005b341561039957fe5b610327600435610cb1565b005b34156103ae57fe5b610181600160a060020a0360043581169060243516604435610e25565b604080519115158252519081900360200190f35b34156103e757fe5b6103ef610f1d565b60408051600160a060020a039092168252519081900360200190f35b341561041357fe5b6103ef610f2c565b60408051600160a060020a039092168252519081900360200190f35b341561043f57fe5b610268600160a060020a0360043516610f3b565b60408051918252519081900360200190f35b341561046d57fe5b610475610f5a565b6040518082600481111561048557fe5b60ff16815260200191505060405180910390f35b34156104a157fe5b610268600160a060020a0360043516610fa7565b60408051918252519081900360200190f35b34156104cf57fe5b6103ef610fb9565b60408051600160a060020a039092168252519081900360200190f35b34156104fb57fe5b6101a5610fc8565b6040805160208082528351818301528351919283929083019185019080838382156101eb575b8051825260208311156101eb57601f1990920191602091820191016101cb565b505050905090810190601f1680156102175780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561058b57fe5b610181611056565b604080519115158252519081900360200190f35b34156105af57fe5b610181600160a060020a036004351660243561105c565b604080519115158252519081900360200190f35b34156105e257fe5b610268600160a060020a0360043516611197565b60408051918252519081900360200190f35b341561061057fe5b610181600160a060020a03600435166024356111b6565b604080519115158252519081900360200190f35b341561064357fe5b61026861126a565b60408051918252519081900360200190f35b341561066557fe5b610327600160a060020a0360043516611270565b005b341561068357fe5b610268600160a060020a0360043581169060243516611446565b60408051918252519081900360200190f35b34156106b757fe5b610181600160a060020a0360043516602435611473565b604080519115158252519081900360200190f35b34156106ea57fe5b610327600160a060020a036004351661157d565b005b341561070857fe5b6103ef6115d6565b60408051600160a060020a039092168252519081900360200190f35b341561073457fe5b610327600160a060020a03600435166115db565b005b60095474010000000000000000000000000000000000000000900460ff1681565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107f15780601f106107c6576101008083540402835291602001916107f1565b820191906000526020600020905b8154815290600101906020018083116107d457829003601f168201915b505050505081565b6000811580159061082e5750600160a060020a0333811660009081526002602090815260408083209387168352929052205415155b156108395760006000fd5b600160a060020a03338116600081815260026020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b92915050565b60005481565b60095460009033600160a060020a039081169116146108c55760006000fd5b600160a060020a0333166000908152600160205260409020546108e89083611639565b600160a060020a0333811660009081526001602052604080822093909355908516815220546109179083611652565b600160a060020a038416600090815260016020908152604080832093909355600a905220546109469083611652565b600160a060020a038085166000818152600a602090815260409182902094909455805186815290519193339093169260008051602061169b83398151915292918290030190a35060015b5b92915050565b600160a060020a0380841660009081526002602090815260408083203385168452825280832054938616835260019091528120549091906109d89084611652565b600160a060020a038086166000908152600160205260408082209390935590871681522054610a079084611639565b600160a060020a038616600090815260016020526040902055610a2a8184611639565b600160a060020a0380871660008181526002602090815260408083203386168452825291829020949094558051878152905192881693919260008051602061169b833981519152929181900390910190a3600191505b509392505050565b60085481565b600160a060020a0333166000908152600b602052604090205460ff161515610ab65760006000fd5b60095474010000000000000000000000000000000000000000900460ff1615610adf5760006000fd5b610aeb60005482611652565b6000908155600160a060020a038316815260016020526040902054610b109082611652565b600160a060020a038316600081815260016020908152604080832094909455835185815293519293919260008051602061169b8339815191529281900390910190a35b5b5b5050565b33600160a060020a038116600090815260016020526040902054610b7d9083611639565b600160a060020a03821660009081526001602052604081209190915554610ba49083611639565b60005560408051600160a060020a03831681526020810184905281517f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df7929181900390910190a15b5050565b600b6020526000908152604090205460ff1681565b60095433600160a060020a03908116911614610c215760006000fd5b60095474010000000000000000000000000000000000000000900460ff1615610c4a5760006000fd5b600160a060020a0382166000818152600b6020908152604091829020805460ff191685151590811790915582519384529083015280517f4b0adf6c802794c7dde28a08a4e07131abcff3bf9603cd71f14f90bec7865efa9281900390910190a15b5b5b5050565b6000610cbb610f5a565b905060035b816004811115610ccc57fe5b1480610ce4575060045b816004811115610ce257fe5b145b1515610cf05760006000fd5b811515610cfd5760006000fd5b600160a060020a033316600090815260016020526040902054610d209083611639565b600160a060020a03331660009081526001602052604081209190915554610d479083611639565b600055600554610d579083611652565b60055560048054604080517f753e88e5000000000000000000000000000000000000000000000000000000008152600160a060020a0333811694820194909452602481018690529051929091169163753e88e59160448082019260009290919082900301818387803b1515610dc857fe5b6102c65a03f11515610dd657fe5b5050600454604080518581529051600160a060020a03928316935033909216917f7e5c344a8141a805725cb476f76c6953b842222b967edd1f78ddb6e8b3f397ac9181900360200190a35b5050565b600954600090819033600160a060020a03908116911614610e465760006000fd5b50600160a060020a0384166000908152600a6020908152604080832054600190925290912054610e769084611639565b600160a060020a038087166000908152600160205260408082209390935590861681522054610ea59084611652565b600160a060020a038516600090815260016020526040902055610ec88184611639565b600160a060020a038087166000818152600a6020908152604091829020949094558051878152905192881693919260008051602061169b833981519152929181900390910190a3600191505b5b509392505050565b600454600160a060020a031681565b600354600160a060020a031681565b600160a060020a0381166000908152600160205260409020545b919050565b6000610f64611056565b1515610f7257506001610fa1565b600454600160a060020a03161515610f8c57506002610fa1565b6005541515610f9d57506003610fa1565b5060045b5b5b5b90565b600a6020526000908152604090205481565b600954600160a060020a031681565b6007805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107f15780601f106107c6576101008083540402835291602001916107f1565b820191906000526020600020905b8154815290600101906020018083116107d457829003601f168201915b505050505081565b60015b90565b60008060403660441461106f5760006000fd5b600160a060020a0333166000908152600160205260409020546110929085611639565b600160a060020a0333811660009081526001602052604080822093909355908716815220546110c19085611652565b600160a060020a0380871660008181526001602090815260409182902094909455805188815290519193339093169260008051602061169b83398151915292918290030190a36111108561167a565b156111895784915081600160a060020a0316633b66d02b33866040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b151561117757fe5b6102c65a03f1151561118557fe5b5050505b600192505b5b505092915050565b600160a060020a0381166000908152600a60205260409020545b919050565b6000806040366044146111c95760006000fd5b600160a060020a0333811660009081526002602090815260408083209389168352929052205491506111fb8285611652565b600160a060020a033381166000818152600260209081526040808320948b168084529482529182902085905581519485529051929391927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3600192505b5b505092915050565b60055481565b611278611056565b15156112845760006000fd5b600160a060020a038116151561129a5760006000fd5b60035433600160a060020a039081169116146112b65760006000fd5b60045b6112c1610f5a565b60048111156112cc57fe5b14156112d85760006000fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117808355604080516000602091820181905282517f61d3d7a6000000000000000000000000000000000000000000000000000000008152925193909416946361d3d7a69483820194929383900390910190829087803b151561135f57fe5b6102c65a03f1151561136d57fe5b505060405151151590506113815760006000fd5b600054600460009054906101000a9004600160a060020a0316600160a060020a0316634b2ba0dd6000604051602001526040518163ffffffff1660e060020a028152600401809050602060405180830381600087803b15156113df57fe5b6102c65a03f115156113ed57fe5b5050604051519190911490506114035760006000fd5b60045460408051600160a060020a039092168252517f7845d5aa74cc410e35571258d954f23b82276e160fe8c188fa80566580f279cc9181900360200190a15b50565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b6000806040366044146114865760006000fd5b600160a060020a033381166000908152600260209081526040808320938916835292905220549150818411156114e357600160a060020a033381166000908152600260209081526040808320938916835292905290812055611514565b6111fb8285611639565b600160a060020a033381166000908152600260209081526040808320938a16835292905220555b600160a060020a033381166000818152600260209081526040808320948a168084529482529182902054825190815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3600192505b5b505092915050565b60095433600160a060020a039081169116146115995760006000fd5b600160a060020a03811615611443576009805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b5b50565b600081565b600160a060020a03811615156115f15760006000fd5b60035433600160a060020a0390811691161461160d5760006000fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600061164783831115611689565b508082035b92915050565b600082820161166f84821080159061166a5750838210155b611689565b8091505b5092915050565b6000813b908111905b50919050565b8015156114435760006000fd5b5b505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a723058201d4b61c277eb7d6cd928f7d59729d4b886324322d28f103902c6eb9ace37b17b0029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000006dd6827ce1cb8607fc4484b04c774f7427a63cb900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000011307fc9480000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000854524d546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000354524d0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _owner (address): 0x6DD6827cE1cb8607Fc4484B04c774F7427A63cb9
Arg [1] : _name (string): TRMToken
Arg [2] : _symbol (string): TRM
Arg [3] : _totalSupply (uint256): 302400000000000
Arg [4] : _decimals (uint256): 8

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000006dd6827ce1cb8607fc4484b04c774f7427a63cb9
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 00000000000000000000000000000000000000000000000000011307fc948000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 54524d546f6b656e000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 54524d0000000000000000000000000000000000000000000000000000000000


Swarm Source

bzzr://1d4b61c277eb7d6cd928f7d59729d4b886324322d28f103902c6eb9ace37b17b
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.