![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <token.h>
Public Member Functions | |
| Token () | |
| ~Token () | |
| void | setAddress (const std::string &address) |
| void | setDataHex (const std::string &datahex) |
| void | setAmount (const std::string &amount) |
| void | setGasLimit (const std::string &gaslimit) |
| void | setGasPrice (const std::string &gasPrice) |
| void | setSender (const std::string &sender) |
| void | clear () |
| std::string | getTxId () |
| bool | name (std::string &result, bool sendTo=false) |
| bool | approve (const std::string &_spender, const std::string &_value, bool &success, bool sendTo=false) |
| bool | totalSupply (std::string &result, bool sendTo=false) |
| bool | transferFrom (const std::string &_from, const std::string &_to, const std::string &_value, bool &success, bool sendTo=false) |
| bool | decimals (std::string &result, bool sendTo=false) |
| bool | burn (const std::string &_value, bool &success, bool sendTo=false) |
| bool | balanceOf (std::string &result, bool sendTo=false) |
| bool | balanceOf (const std::string &spender, std::string &result, bool sendTo=false) |
| bool | burnFrom (const std::string &_from, const std::string &_value, bool &success, bool sendTo=false) |
| bool | symbol (std::string &result, bool sendTo=false) |
| bool | transfer (const std::string &_to, const std::string &_value, bool sendTo=false) |
| bool | approveAndCall (const std::string &_spender, const std::string &_value, const std::string &_extraData, bool &success, bool sendTo=false) |
| bool | allowance (const std::string &_from, const std::string &_to, std::string &result, bool sendTo=false) |
| bool | transferEvents (std::vector< TokenEvent > &tokenEvents, int64_t fromBlock=0, int64_t toBlock=-1) |
| bool | burnEvents (std::vector< TokenEvent > &tokenEvents, int64_t fromBlock=0, int64_t toBlock=-1) |
Private Member Functions | |
| bool | exec (const std::vector< std::string > &input, int func, std::vector< std::string > &output, bool sendTo) |
| bool | execEvents (int64_t fromBlock, int64_t toBlock, int func, std::vector< TokenEvent > &tokenEvents) |
| Token (Token const &) | |
| Token & | operator= (Token const &) |
Private Attributes | |
| TokenData * | d |
| Token::Token | ( | ) |
|
private |
| bool Token::allowance | ( | const std::string & | _from, |
| const std::string & | _to, | ||
| std::string & | result, | ||
| bool | sendTo = false |
||
| ) |
| bool Token::approve | ( | const std::string & | _spender, |
| const std::string & | _value, | ||
| bool & | success, | ||
| bool | sendTo = false |
||
| ) |
| bool Token::approveAndCall | ( | const std::string & | _spender, |
| const std::string & | _value, | ||
| const std::string & | _extraData, | ||
| bool & | success, | ||
| bool | sendTo = false |
||
| ) |
| bool Token::balanceOf | ( | std::string & | result, |
| bool | sendTo = false |
||
| ) |
| bool Token::balanceOf | ( | const std::string & | spender, |
| std::string & | result, | ||
| bool | sendTo = false |
||
| ) |
| bool Token::burn | ( | const std::string & | _value, |
| bool & | success, | ||
| bool | sendTo = false |
||
| ) |
| bool Token::burnEvents | ( | std::vector< TokenEvent > & | tokenEvents, |
| int64_t | fromBlock = 0, |
||
| int64_t | toBlock = -1 |
||
| ) |
| bool Token::burnFrom | ( | const std::string & | _from, |
| const std::string & | _value, | ||
| bool & | success, | ||
| bool | sendTo = false |
||
| ) |
| void Token::clear | ( | ) |
| bool Token::decimals | ( | std::string & | result, |
| bool | sendTo = false |
||
| ) |
|
private |
|
private |
| std::string Token::getTxId | ( | ) |
| bool Token::name | ( | std::string & | result, |
| bool | sendTo = false |
||
| ) |
| void Token::setAddress | ( | const std::string & | address | ) |
| void Token::setAmount | ( | const std::string & | amount | ) |
| void Token::setDataHex | ( | const std::string & | datahex | ) |
| void Token::setGasLimit | ( | const std::string & | gaslimit | ) |
| void Token::setGasPrice | ( | const std::string & | gasPrice | ) |
| void Token::setSender | ( | const std::string & | sender | ) |
| bool Token::symbol | ( | std::string & | result, |
| bool | sendTo = false |
||
| ) |
| bool Token::totalSupply | ( | std::string & | result, |
| bool | sendTo = false |
||
| ) |
| bool Token::transfer | ( | const std::string & | _to, |
| const std::string & | _value, | ||
| bool | sendTo = false |
||
| ) |
| bool Token::transferEvents | ( | std::vector< TokenEvent > & | tokenEvents, |
| int64_t | fromBlock = 0, |
||
| int64_t | toBlock = -1 |
||
| ) |
| bool Token::transferFrom | ( | const std::string & | _from, |
| const std::string & | _to, | ||
| const std::string & | _value, | ||
| bool & | success, | ||
| bool | sendTo = false |
||
| ) |
1.8.11