8#include "../../core/eosio/time.hpp"
9#include "../../core/eosio/serialize.hpp"
14 namespace internal_use_do_not_use {
65 typedef std::tuple<uint16_t, std::vector<
char>>
extension;
95 uint8_t max_cpu_usage_ms = 0UL;
121 void send(
const uint128_t& sender_id,
name payer,
bool replace_existing =
false)
const {
122 auto serialize =
pack(*
this);
148 return unpack_action_data<onerror>();
155 return unpack<transaction>(sent_trx);
171 inline void send_deferred(
const uint128_t& sender_id,
name payer,
const char* serialized_transaction,
size_t size,
bool replace =
false) {
183 constexpr size_t max_stack_buffer_size = 512;
186 size_t size =
static_cast<size_t>(s);
187 char* buffer = (
char*)( max_stack_buffer_size <
size ? malloc(
size) : alloca(
size) );
190 return eosio::unpack<eosio::action>( buffer,
size );