#include <transaction.hpp>
|
| Transaction () |
|
| Transaction (const trx_nonce_t &nonce, const val_t &value, const val_t &gas_price, gas_t gas, bytes data, const secret_t &sk, const std::optional< addr_t > &receiver=std::nullopt, uint64_t chain_id=0) |
|
| Transaction (const dev::RLP &_rlp, bool verify_strict=false, const h256 &hash={}) |
|
| Transaction (const bytes &_rlp, bool verify_strict=false, const h256 &hash={}) |
|
auto | isZero () const |
|
const trx_hash_t & | getHash () const |
|
auto | getNonce () const |
|
const auto & | getValue () const |
|
const auto & | getGasPrice () const |
|
auto | getGas () const |
|
const auto & | getData () const |
|
const auto & | getReceiver () const |
|
auto | getChainID () const |
|
const auto & | getVRS () const |
|
auto | getCost () const |
|
virtual const addr_t & | getSender () const |
|
bool | operator== (Transaction const &other) const |
|
const bytes & | rlp () const |
|
Json::Value | toJSON () const |
|
◆ Transaction() [1/4]
taraxa::Transaction::Transaction |
( |
| ) |
|
|
inline |
◆ Transaction() [2/4]
taraxa::Transaction::Transaction |
( |
const trx_nonce_t & |
nonce, |
|
|
const val_t & |
value, |
|
|
const val_t & |
gas_price, |
|
|
gas_t |
gas, |
|
|
bytes |
data, |
|
|
const secret_t & |
sk, |
|
|
const std::optional< addr_t > & |
receiver = std::nullopt , |
|
|
uint64_t |
chain_id = 0 |
|
) |
| |
◆ Transaction() [3/4]
taraxa::Transaction::Transaction |
( |
const dev::RLP & |
_rlp, |
|
|
bool |
verify_strict = false , |
|
|
const h256 & |
hash = {} |
|
) |
| |
|
explicit |
◆ Transaction() [4/4]
taraxa::Transaction::Transaction |
( |
const bytes & |
_rlp, |
|
|
bool |
verify_strict = false , |
|
|
const h256 & |
hash = {} |
|
) |
| |
|
explicit |
◆ fromRLP()
void taraxa::Transaction::fromRLP |
( |
const dev::RLP & |
_rlp, |
|
|
bool |
verify_strict, |
|
|
const h256 & |
hash |
|
) |
| |
|
protectedvirtual |
◆ get_sender_()
const addr_t & taraxa::Transaction::get_sender_ |
( |
| ) |
const |
|
protected |
◆ getChainID()
auto taraxa::Transaction::getChainID |
( |
| ) |
const |
|
inline |
◆ getCost()
auto taraxa::Transaction::getCost |
( |
| ) |
const |
|
inline |
◆ getData()
const auto& taraxa::Transaction::getData |
( |
| ) |
const |
|
inline |
◆ getGas()
auto taraxa::Transaction::getGas |
( |
| ) |
const |
|
inline |
◆ getGasPrice()
const auto& taraxa::Transaction::getGasPrice |
( |
| ) |
const |
|
inline |
◆ getHash()
const trx_hash_t & taraxa::Transaction::getHash |
( |
| ) |
const |
◆ getNonce()
auto taraxa::Transaction::getNonce |
( |
| ) |
const |
|
inline |
◆ getReceiver()
const auto& taraxa::Transaction::getReceiver |
( |
| ) |
const |
|
inline |
◆ getSender()
const addr_t & taraxa::Transaction::getSender |
( |
| ) |
const |
|
virtual |
◆ getValue()
const auto& taraxa::Transaction::getValue |
( |
| ) |
const |
|
inline |
◆ getVRS()
const auto& taraxa::Transaction::getVRS |
( |
| ) |
const |
|
inline |
◆ hash_for_signature()
trx_hash_t taraxa::Transaction::hash_for_signature |
( |
| ) |
const |
|
protected |
◆ isZero()
auto taraxa::Transaction::isZero |
( |
| ) |
const |
|
inline |
◆ operator==()
bool taraxa::Transaction::operator== |
( |
Transaction const & |
other | ) |
const |
|
inline |
◆ rlp()
const bytes & taraxa::Transaction::rlp |
( |
| ) |
const |
◆ streamRLP()
void taraxa::Transaction::streamRLP |
( |
dev::RLPStream & |
s, |
|
|
bool |
for_signature |
|
) |
| const |
|
protectedvirtual |
◆ toJSON()
Json::Value taraxa::Transaction::toJSON |
( |
| ) |
const |
◆ cached_rlp_
bytes taraxa::Transaction::cached_rlp_ |
|
mutableprotected |
◆ cached_rlp_mu_
std::mutex taraxa::Transaction::cached_rlp_mu_ |
|
mutableprotected |
◆ cached_rlp_set_
std::atomic_bool taraxa::Transaction::cached_rlp_set_ = false |
|
mutableprotected |
◆ chain_id_
uint64_t taraxa::Transaction::chain_id_ = 0 |
|
protected |
◆ data_
bytes taraxa::Transaction::data_ |
|
protected |
◆ gas_
gas_t taraxa::Transaction::gas_ = 0 |
|
protected |
◆ gas_price_
val_t taraxa::Transaction::gas_price_ |
|
protected |
◆ hash_
◆ hash_initialized_
std::atomic_bool taraxa::Transaction::hash_initialized_ = false |
|
mutableprotected |
◆ hash_mu_
std::mutex taraxa::Transaction::hash_mu_ |
|
mutableprotected |
◆ is_zero_
bool taraxa::Transaction::is_zero_ = false |
|
protected |
◆ nonce_
◆ receiver_
std::optional<addr_t> taraxa::Transaction::receiver_ |
|
protected |
◆ sender_
addr_t taraxa::Transaction::sender_ |
|
mutableprotected |
◆ sender_initialized_
std::atomic_bool taraxa::Transaction::sender_initialized_ = false |
|
mutableprotected |
◆ sender_mu_
std::mutex taraxa::Transaction::sender_mu_ |
|
mutableprotected |
◆ sender_valid_
bool taraxa::Transaction::sender_valid_ = false |
|
mutableprotected |
◆ value_
val_t taraxa::Transaction::value_ = 0 |
|
protected |
◆ vrs_
The documentation for this struct was generated from the following files: