BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Classes | Public Member Functions | Public Attributes | List of all members
graphene::protocol::liquidity_pool_create_operation Struct Reference

Create a new liquidity pool. More...

#include <liquidity_pool.hpp>

Inheritance diagram for graphene::protocol::liquidity_pool_create_operation:
graphene::protocol::base_operation

Classes

struct  fee_parameters_type
 

Public Member Functions

account_id_type fee_payer () const
 
void validate () const
 
- Public Member Functions inherited from graphene::protocol::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
 
fc::optional< fc::future< void > > validate_parallel (uint32_t skip) const
 

Public Attributes

asset fee
 Operation fee. More...
 
account_id_type account
 The account who creates the liquidity pool. More...
 
asset_id_type asset_a
 Type of the first asset in the pool. More...
 
asset_id_type asset_b
 Type of the second asset in the pool. More...
 
asset_id_type share_asset
 Type of the share asset aka the LP token. More...
 
uint16_t taker_fee_percent = 0
 Taker fee percent. More...
 
uint16_t withdrawal_fee_percent = 0
 Withdrawal fee percent. More...
 
extensions_type extensions
 Unused. Reserved for future use. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from graphene::protocol::base_operation
static uint64_t calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte)
 

Detailed Description

Create a new liquidity pool.

Definition at line 34 of file liquidity_pool.hpp.

Member Function Documentation

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

Definition at line 48 of file liquidity_pool.hpp.

void graphene::protocol::liquidity_pool_create_operation::validate ( ) const

Definition at line 30 of file liquidity_pool.cpp.

Member Data Documentation

account_id_type graphene::protocol::liquidity_pool_create_operation::account

The account who creates the liquidity pool.

Definition at line 39 of file liquidity_pool.hpp.

asset_id_type graphene::protocol::liquidity_pool_create_operation::asset_a

Type of the first asset in the pool.

Definition at line 40 of file liquidity_pool.hpp.

asset_id_type graphene::protocol::liquidity_pool_create_operation::asset_b

Type of the second asset in the pool.

Definition at line 41 of file liquidity_pool.hpp.

extensions_type graphene::protocol::liquidity_pool_create_operation::extensions

Unused. Reserved for future use.

Definition at line 46 of file liquidity_pool.hpp.

asset graphene::protocol::liquidity_pool_create_operation::fee

Operation fee.

Definition at line 38 of file liquidity_pool.hpp.

asset_id_type graphene::protocol::liquidity_pool_create_operation::share_asset

Type of the share asset aka the LP token.

Definition at line 42 of file liquidity_pool.hpp.

uint16_t graphene::protocol::liquidity_pool_create_operation::taker_fee_percent = 0

Taker fee percent.

Definition at line 43 of file liquidity_pool.hpp.

uint16_t graphene::protocol::liquidity_pool_create_operation::withdrawal_fee_percent = 0

Withdrawal fee percent.

Definition at line 44 of file liquidity_pool.hpp.


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