39 void setAddress(
const std::string &
address);
40 void setDataHex(
const std::string &datahex);
41 void setAmount(
const std::string &amount);
42 void setGasLimit(
const std::string &gaslimit);
43 void setGasPrice(
const std::string &gasPrice);
44 void setSender(
const std::string &
sender);
48 std::string getTxId();
51 bool name(std::string& result,
bool sendTo =
false);
52 bool approve(
const std::string& _spender,
const std::string& _value,
bool& success,
bool sendTo =
false);
53 bool totalSupply(std::string& result,
bool sendTo =
false);
54 bool transferFrom(
const std::string& _from,
const std::string& _to,
const std::string& _value,
bool& success,
bool sendTo =
false);
55 bool decimals(std::string& result,
bool sendTo =
false);
56 bool burn(
const std::string& _value,
bool& success,
bool sendTo =
false);
57 bool balanceOf(std::string& result,
bool sendTo =
false);
58 bool balanceOf(
const std::string& spender, std::string& result,
bool sendTo =
false);
59 bool burnFrom(
const std::string& _from,
const std::string& _value,
bool& success,
bool sendTo =
false);
60 bool symbol(std::string& result,
bool sendTo =
false);
61 bool transfer(
const std::string& _to,
const std::string& _value,
bool sendTo =
false);
62 bool approveAndCall(
const std::string& _spender,
const std::string& _value,
const std::string& _extraData,
bool& success,
bool sendTo =
false);
63 bool allowance(
const std::string& _from,
const std::string& _to, std::string& result,
bool sendTo =
false);
66 bool transferEvents(std::vector<TokenEvent>& tokenEvents, int64_t fromBlock = 0, int64_t toBlock = -1);
67 bool burnEvents(std::vector<TokenEvent>& tokenEvents, int64_t fromBlock = 0, int64_t toBlock = -1);
70 bool exec(
const std::vector<std::string>& input,
int func, std::vector<std::string>& output,
bool sendTo);
71 bool execEvents(int64_t fromBlock, int64_t toBlock,
int func, std::vector<TokenEvent> &tokenEvents);