Burn token
Checking for state-machine.
Return value (hidden_acct_credit, hidden_acct_debit).
We’ll need those two values to check the overall balance
after commit.
We need to make sure the overall balance is zero
This get function can only be called from a pure query, not inside a txn.
If it’s inside a txn, we’ll need to use read_bonding_total_supply with a
token_ctx as a parameter.
Return reserved token balance from state-machine.
Return serialized txn.
Include the target actor name and the gas limit.
Return address’s allowance from the state-machine
Return the auth_key buffer from state-machine
Return the latest tsid from the state-machine
Return tea balance from state-machine.
Cannot use in inner txns as it only returns the tea balance before the txn start, so it won’t record the changed tea balance from inner txns
Return tea deposit amount from state-machine.
Cannot use in inner txns as it only returns the tea balance before the txn start, so it won’t record the changed tea deposit from inner txns
Return balance in bytes and tsid in bytes
Return token balance from state-machine.
It’s usually used in inner txns.
This is the in-transaction version of get_bonding_total_supply. It’s
used inside a transaction with ctx live.
Because there might be some uncommitted additions and subtractions, the get function won’t
have those changes included but the read function will
Return tea balance from state-machine.
Usually only used in inner txns.
Renew auth_key expiration if it’s expired
Set address’s allowance
Check if an account has enough required_amt balance. Return true if yes, false otherwise