Bitshares-Core  2.0.181105
BitShares blockchain implementation and command-line interface software
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
graphene::chain::proposal_create_operation Struct Reference

The proposal_create_operation creates a transaction proposal, for use in multi-sig scenariosCreates a transaction proposal. The operations which compose the transaction are listed in order in proposed_ops, and expiration_time specifies the time by which the proposal must be accepted or it will fail permanently. The expiration_time cannot be farther in the future than the maximum expiration time set in the global properties object. More...

#include <proposal.hpp>

Inheritance diagram for graphene::chain::proposal_create_operation:
graphene::chain::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
share_type calculate_fee (const fee_parameters_type &k) const
 
- Public Member Functions inherited from graphene::chain::base_operation
template<typename T >
share_type calculate_fee (const T &params) const
 
void get_required_authorities (vector< authority > &) const
 
void get_required_active_authorities (flat_set< account_id_type > &) const
 
void get_required_owner_authorities (flat_set< account_id_type > &) const
 
void validate () const
 

Static Public Member Functions

static proposal_create_operation committee_proposal (const chain_parameters &param, fc::time_point_sec head_block_time)
 
- Static Public Member Functions inherited from graphene::chain::base_operation
static uint64_t calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte)
 

Public Attributes

asset fee
 
account_id_type fee_paying_account
 
vector< op_wrapperproposed_ops
 
time_point_sec expiration_time
 
optional< uint32_t > review_period_seconds
 
extensions_type extensions
 

Detailed Description

The proposal_create_operation creates a transaction proposal, for use in multi-sig scenarios

Creates a transaction proposal. The operations which compose the transaction are listed in order in proposed_ops, and expiration_time specifies the time by which the proposal must be accepted or it will fail permanently. The expiration_time cannot be farther in the future than the maximum expiration time set in the global properties object.

Definition at line 69 of file proposal.hpp.

Member Function Documentation

◆ calculate_fee()

share_type graphene::chain::proposal_create_operation::calculate_fee ( const fee_parameters_type k) const

Definition at line 45 of file proposal.cpp.

◆ committee_proposal()

proposal_create_operation graphene::chain::proposal_create_operation::committee_proposal ( const chain_parameters param,
fc::time_point_sec  head_block_time 
)
static

Constructs a proposal_create_operation suitable for committee proposals, with expiration time and review period set appropriately. No proposed_ops are added. When used to create a proposal to change chain parameters, this method expects to receive the currently effective parameters, not the proposed parameters. (The proposed parameters will go in proposed_ops, and proposed_ops is untouched by this function.)

Definition at line 30 of file proposal.cpp.

◆ fee_payer()

account_id_type graphene::chain::proposal_create_operation::fee_payer ( ) const
inline

Definition at line 95 of file proposal.hpp.

◆ validate()

void graphene::chain::proposal_create_operation::validate ( ) const

Definition at line 39 of file proposal.cpp.

Member Data Documentation

◆ expiration_time

time_point_sec graphene::chain::proposal_create_operation::expiration_time

Definition at line 79 of file proposal.hpp.

◆ extensions

extensions_type graphene::chain::proposal_create_operation::extensions

Definition at line 81 of file proposal.hpp.

◆ fee

asset graphene::chain::proposal_create_operation::fee

Definition at line 76 of file proposal.hpp.

◆ fee_paying_account

account_id_type graphene::chain::proposal_create_operation::fee_paying_account

Definition at line 77 of file proposal.hpp.

◆ proposed_ops

vector<op_wrapper> graphene::chain::proposal_create_operation::proposed_ops

Definition at line 78 of file proposal.hpp.

◆ review_period_seconds

optional<uint32_t> graphene::chain::proposal_create_operation::review_period_seconds

Definition at line 80 of file proposal.hpp.


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