BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
graphene::protocol::proposal_create_operation Struct Reference

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

#include <proposal.hpp>

Inheritance diagram for graphene::protocol::proposal_create_operation:
graphene::protocol::base_operation

Classes

struct  fee_params_t
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
share_type calculate_fee (const fee_params_t &k) const
 
- Public Member Functions inherited from graphene::protocol::base_operation
virtual ~base_operation ()=default
 
template<typename T >
share_type calculate_fee (const T &params) const
 
virtual void get_required_authorities (vector< authority > &) const
 
virtual void get_required_active_authorities (flat_set< account_id_type > &) const
 
virtual void get_required_owner_authorities (flat_set< account_id_type > &) const
 
fc::optional< fc::future< void > > validate_parallel (uint32_t skip) 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::protocol::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 70 of file proposal.hpp.

Member Function Documentation

◆ calculate_fee()

share_type graphene::protocol::proposal_create_operation::calculate_fee ( const fee_params_t k) const

Definition at line 46 of file proposal.cpp.

◆ committee_proposal()

proposal_create_operation graphene::protocol::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 31 of file proposal.cpp.

◆ fee_payer()

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

Definition at line 96 of file proposal.hpp.

◆ validate()

void graphene::protocol::proposal_create_operation::validate ( ) const
virtual

Reimplemented from graphene::protocol::base_operation.

Definition at line 40 of file proposal.cpp.

Member Data Documentation

◆ expiration_time

time_point_sec graphene::protocol::proposal_create_operation::expiration_time

Definition at line 80 of file proposal.hpp.

◆ extensions

extensions_type graphene::protocol::proposal_create_operation::extensions

Definition at line 82 of file proposal.hpp.

◆ fee

asset graphene::protocol::proposal_create_operation::fee

Definition at line 77 of file proposal.hpp.

◆ fee_paying_account

account_id_type graphene::protocol::proposal_create_operation::fee_paying_account

Definition at line 78 of file proposal.hpp.

◆ proposed_ops

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

Definition at line 79 of file proposal.hpp.

◆ review_period_seconds

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

Definition at line 81 of file proposal.hpp.


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