message: Added delayed transaction_receipt status and added ctor for boxing transaction as deferred transaction. GH# 1022
diff: @@ -82,7 +82,8 @@ namespace eosio { namespace chain {
  enum status_enum {
  executed = 0, ///< succeed, no error handler executed
  soft_fail = 1, ///< objectively failed (not executed), error handler executed
  - hard_fail = 2 ///< objectively failed and error handler objectively failed thus no state change
  + hard_fail = 2, ///< objectively failed and error handler objectively failed thus no state change
  + delayed = 3 ///< transaction delayed
  };
  transaction_receipt() : status(hard_fail) {}
  @@ -216,6 +217,15 @@ namespace eosio { namespace chain {
  uint64_t sender_id; /// ID assigned by sender of generated, accessible via WASM api when executing normal or error
  account_name sender; /// receives error handler callback
  time_point_sec execute_after; /// delayed exeuction
  +
  + deferred_transaction() = default;
  +
  + deferred_transaction(uint32_t sender_id, account_name sender, time_point_sec execute_after, const transaction& txn)
  + : transaction(txn),
  + sender_id(sender_id),
  + sender(sender),
  + execute_after(execute_after)
  + {}
  };
  struct deferred_reference {
  @@ -270,7 +280,7 @@ FC_REFLECT_ENUM( eosio::chain::data_access_info::access_type, (read)(write))
  FC_REFLECT( eosio::chain::data_access_info, (type)(code)(scope)(sequence))
  FC_REFLECT( eosio::chain::action_trace, (receiver)(act)(console)(region_id)(cycle_index)(data_access) )
  FC_REFLECT( eosio::chain::transaction_receipt, (status)(id))
  -FC_REFLECT_ENUM( eosio::chain::transaction_receipt::status_enum, (executed)(soft_fail)(hard_fail))
  +FC_REFLECT_ENUM( eosio::chain::transaction_receipt::status_enum, (executed)(soft_fail)(hard_fail)(delayed) )
  FC_REFLECT_DERIVED( eosio::chain::transaction_trace, (eosio::chain::transaction_receipt), (action_traces)(deferred_transaction_requests) )
  