IoTeX client
Static Public Member Functions | List of all members
iotex::Xrc20Contract Class Reference

Static Public Member Functions

static void generateCallDataForTotalSupply (uint8_t data[4])
 Generates the Ethereum ABI encoded data for calling the totalSupply() function of a XRC20 token. More...
 
static void generateCallDataForBalanceOf (uint8_t address[ETH_ADDRESS_SIZE], uint8_t data[IOTEX_CONTRACT_ENCODED_TOTALSUPPLY_SIZE])
 Generates the Ethereum ABI encoded data for calling the balanceOf() function of a XRC20 token. More...
 
static void generateCallDataForTransfer (uint8_t to[ETH_ADDRESS_SIZE], uint64_t value, uint8_t data[IOTEX_CONTRACT_ENCODED_TRANSFER_SIZE])
 Generates the Ethereum ABI encoded data for calling the transfer() function of a XRC20 token. More...
 

Member Function Documentation

◆ generateCallDataForBalanceOf()

void Xrc20Contract::generateCallDataForBalanceOf ( uint8_t  address[ETH_ADDRESS_SIZE],
uint8_t  data[IOTEX_CONTRACT_ENCODED_TOTALSUPPLY_SIZE] 
)
static

Generates the Ethereum ABI encoded data for calling the balanceOf() function of a XRC20 token.

Parameters
addressThe ethereum address
[out]dataThe buffere where the data is stored

◆ generateCallDataForTotalSupply()

void Xrc20Contract::generateCallDataForTotalSupply ( uint8_t  data[4])
static

Generates the Ethereum ABI encoded data for calling the totalSupply() function of a XRC20 token.

Parameters
[out]dataThe buffer where the data is stored

◆ generateCallDataForTransfer()

void Xrc20Contract::generateCallDataForTransfer ( uint8_t  to[ETH_ADDRESS_SIZE],
uint64_t  value,
uint8_t  data[IOTEX_CONTRACT_ENCODED_TRANSFER_SIZE] 
)
static

Generates the Ethereum ABI encoded data for calling the transfer() function of a XRC20 token.

Parameters
toThe ethereum destination address
valueThe amount to transfer
data

The documentation for this class was generated from the following files: