Scorum
Public Member Functions | Public Attributes | List of all members
scorum::protocol::escrow_transfer_operation Struct Reference

Starts escrow transfer. More...

#include <scorum_operations.hpp>

Inheritance diagram for scorum::protocol::escrow_transfer_operation:
scorum::protocol::base_operation

Public Member Functions

void validate () const
 
void get_required_active_authorities (flat_set< account_name_type > &a) const
 
- Public Member Functions inherited from scorum::protocol::base_operation
void get_required_authorities (std::vector< authority > &) const
 
void get_required_active_authorities (flat_set< account_name_type > &) const
 
void get_required_posting_authorities (flat_set< account_name_type > &) const
 
void get_required_owner_authorities (flat_set< account_name_type > &) const
 
bool is_virtual () const
 
void validate () const
 

Public Attributes

account_name_type from
 
account_name_type to
 
account_name_type agent
 
uint32_t escrow_id = 30
 
asset scorum_amount = asset(0, SCORUM_SYMBOL)
 
asset fee = asset(0, SCORUM_SYMBOL)
 
time_point_sec ratification_deadline
 
time_point_sec escrow_expiration
 
std::string json_meta
 

Detailed Description

Starts escrow transfer.

The purpose of this operation is to enable someone to send money contingently to another individual. The funds leave the from account and go into a temporary balance where they are held until from releases it to to or to refunds it to from.

In the event of a dispute the agent can divide the funds between the to/from account. Disputes can be raised any time before or on the dispute deadline time, after the escrow has been approved by all parties.

This operation only creates a proposed escrow transfer. Both the agent and to must agree to the terms of the arrangement by approving the escrow.

The escrow agent is paid the fee on approval of all parties. It is up to the escrow agent to determine the fee.

Escrow transactions are uniquely identified by 'from' and 'escrow_id', the 'escrow_id' is defined by the sender.

Definition at line 288 of file scorum_operations.hpp.

Member Function Documentation

◆ get_required_active_authorities()

void scorum::protocol::escrow_transfer_operation::get_required_active_authorities ( flat_set< account_name_type > &  a) const
inline

Definition at line 304 of file scorum_operations.hpp.

◆ validate()

void scorum::protocol::escrow_transfer_operation::validate ( ) const

Definition at line 193 of file scorum_operations.cpp.

Member Data Documentation

◆ agent

account_name_type scorum::protocol::escrow_transfer_operation::agent

Definition at line 292 of file scorum_operations.hpp.

◆ escrow_expiration

time_point_sec scorum::protocol::escrow_transfer_operation::escrow_expiration

Definition at line 299 of file scorum_operations.hpp.

◆ escrow_id

uint32_t scorum::protocol::escrow_transfer_operation::escrow_id = 30

Definition at line 293 of file scorum_operations.hpp.

◆ fee

asset scorum::protocol::escrow_transfer_operation::fee = asset(0, SCORUM_SYMBOL)

Definition at line 296 of file scorum_operations.hpp.

◆ from

account_name_type scorum::protocol::escrow_transfer_operation::from

Definition at line 290 of file scorum_operations.hpp.

◆ json_meta

std::string scorum::protocol::escrow_transfer_operation::json_meta

Definition at line 301 of file scorum_operations.hpp.

◆ ratification_deadline

time_point_sec scorum::protocol::escrow_transfer_operation::ratification_deadline

Definition at line 298 of file scorum_operations.hpp.

◆ scorum_amount

asset scorum::protocol::escrow_transfer_operation::scorum_amount = asset(0, SCORUM_SYMBOL)

Definition at line 295 of file scorum_operations.hpp.

◆ to

account_name_type scorum::protocol::escrow_transfer_operation::to

Definition at line 291 of file scorum_operations.hpp.


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