Skip to content
Browse files

add issuer function

  • Loading branch information...
phamvancam2104 committed May 22, 2019
1 parent f09616a commit 1522c4196cc61c58abab8e6b8d9cc2c3a619bab0
Showing with 14 additions and 0 deletions.
  1. +14 −0 docs/wp-and-research/specs/
@@ -32,6 +32,8 @@ interface ITRC21 {
function balanceOf(address who) external view returns (uint256);
function estimateFee(uint256 value) external view returns (uint256);
function issuer() external view returns (address);
function allowance(address owner, address spender) external view returns (uint256);
@@ -76,6 +78,18 @@ Token issuers can fully customize the implementation of the function.

This function will also be called by user wallets to evaluate fees the user must be paying.

- `issuer`: Returns the address of the token issuer.

function issuer() external view returns (address);

The method returns the address of the token issuer.
The is to ensure that only the issuer has the right to apply to the TomoZ protocol for paying fees of token-holder transactions to
the token contract in terms of the token itself.
The method will be called by the TomoZ protocol source code to verify that no one else is able to apply
the token to the TomoZ protocol, except the issuer.

- ```transfer```:
Transfers ```_value``` amount of tokens to address ```_to```, and MUST fire the ```Transfer``` and ```Fee``` event.

0 comments on commit 1522c41

Please sign in to comment.
You can’t perform that action at this time.