Skip to content

REP ‐ Augur

BokkyPooBah edited this page Mar 14, 2017 · 4 revisions

Table of contents



Token Contract Information



How To Watch The Token Contract In Ethereum Wallet / Mist

In Ethereum Wallet / Mist, select the CONTRACTS tab and click WATCH CONTRACT to open the Watch contract window. Then:

  • Under CONTRACT NAME, enter REP

  • Under CONTRACT ADDRESS, enter 0x48c80f1f4d53d5951e5d5438b54cba84f29f32a5

  • Copy the Standard ERC20 Application Binary Interface below and paste it into the JSON INTERFACE text box

    [{"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":"totalSupply","type":"uint256"}],"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":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"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":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"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"}]

  • Click OK



How To Watch The Token In Ethereum Wallet / Mist

In Ethereum Wallet / Mist, select the CONTRACTS tab and click WATCH TOKEN to open the Add token window. Then:

  • Under TOKEN CONTRACT ADDRESS, enter 0x48c80f1f4d53d5951e5d5438b54cba84f29f32a5. The additional fields should automatically be filled in.

  • Click OK



The Token Contract Source Code

There is no verified source code at 0x48c80f1f4d53d5951e5d5438b54cba84f29f32a5. The ERC20 interface has been provided below.:

pragma solidity ^0.4.2;

// ERC Token Standard #20
// https://github.com/ethereum/EIPs/issues/20

contract ERC20Interface {

    // Get the total token supply
    // Signature 18160ddd totalSupply()
    function totalSupply() constant returns (uint256 totalSupply);
    
    // Get the account balance of another account with address _owner
    // Signature 70a08231 balanceOf(address)
    function balanceOf(address _owner) constant returns (uint256 balance);
    
    // Send _value amount of tokens to address _to
    // Signature a9059cbb transfer(address,uint256)
    function transfer(address _to, uint256 _value) returns (bool success);
    
    // Send _value amount of tokens from address _from to address _to
    // The transferFrom method is used for a withdraw workflow, allowing contracts to send 
    // tokens on your behalf, for example to "deposit" to a contract address and/or to charge 
    // fees in sub-currencies; the command should fail unless the _from account has 
    // deliberately authorized the sender of the message via some mechanism; we propose 
    // these standardized APIs for approval:
    // Signature 23b872dd transferFrom(address,address,uint256)
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
    
    // Allow _spender to withdraw from your account, multiple times, up to the _value amount. 
    // If this function is called again it overwrites the current allowance with _value.
    // Signature 095ea7b3 approve(address,uint256)
    function approve(address _spender, uint256 _value) returns (bool success);
    
    // Returns the amount which _spender is still allowed to withdraw from _owner
    // Signature dd62ed3e allowance(address,address)
    function allowance(address _owner, address _spender) constant returns (uint256 remaining);
    
    // Triggered when tokens are transferred.
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    
    // Triggered whenever approve(address _spender, uint256 _value) is called.
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}
Clone this wiki locally