BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
credit_offer.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021 Abit More, and contributors.
3  *
4  * The MIT License
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  */
24 #pragma once
27 
28 namespace graphene { namespace protocol {
29 
37  {
38  struct fee_params_t {
41  };
42 
44  account_id_type owner_account;
45  asset_id_type asset_type;
47  uint32_t fee_rate = 0;
48  uint32_t max_duration_seconds = 0;
50  bool enabled = false;
52 
54  flat_map<asset_id_type, price> acceptable_collateral;
55 
57  flat_map<account_id_type, share_type> acceptable_borrowers;
58 
60 
61  account_id_type fee_payer()const { return owner_account; }
62  void validate()const override;
63  share_type calculate_fee(const fee_params_t& k)const;
64  };
65 
71  {
72  struct fee_params_t { uint64_t fee = 0; };
73 
75  account_id_type owner_account;
76  credit_offer_id_type offer_id;
77 
79 
80  account_id_type fee_payer()const { return owner_account; }
81  void validate()const override;
82  };
83 
89  {
90  struct fee_params_t {
93  };
94 
96  account_id_type owner_account;
97  credit_offer_id_type offer_id;
104 
107 
110 
112 
113  account_id_type fee_payer()const { return owner_account; }
114  void validate()const override;
115  share_type calculate_fee(const fee_params_t& k)const;
116  };
117 
120  {
122  no_auto_repayment = 0,
128  CDAR_TYPE_COUNT = 3
129  };
130 
136  {
137  struct ext
138  {
141  };
142 
143  struct fee_params_t { uint64_t fee = 1 * GRAPHENE_BLOCKCHAIN_PRECISION; };
144 
146  account_id_type borrower;
147  credit_offer_id_type offer_id;
150  uint32_t max_fee_rate = 0;
151  uint32_t min_duration_seconds = 0;
152 
154 
155  account_id_type fee_payer()const { return borrower; }
156  void validate()const override;
157  };
158 
164  {
165  struct fee_params_t { uint64_t fee = 1 * GRAPHENE_BLOCKCHAIN_PRECISION; };
166 
168  account_id_type account;
169  credit_deal_id_type deal_id;
172 
174 
175  account_id_type fee_payer()const { return account; }
176  void validate()const override;
177  };
178 
185  {
186  struct fee_params_t {};
187 
188  credit_deal_expired_operation() = default;
189 
190  credit_deal_expired_operation( const credit_deal_id_type& did, const credit_offer_id_type& oid,
191  const account_id_type& o, const account_id_type& b, const asset& u, const asset& c, const uint32_t fr)
192  : deal_id(did), offer_id(oid), offer_owner(o), borrower(b), unpaid_amount(u), collateral(c), fee_rate(fr)
193  { /* Nothing to do */ }
194 
196  credit_deal_id_type deal_id;
197  credit_offer_id_type offer_id;
198  account_id_type offer_owner;
199  account_id_type borrower;
202  uint32_t fee_rate = 0;
203 
204  account_id_type fee_payer()const { return borrower; }
205  void validate()const override { FC_ASSERT( !"virtual operation" ); }
206 
208  share_type calculate_fee(const fee_params_t&)const { return 0; }
209  };
210 
216  {
217  struct fee_params_t { uint64_t fee = 1 * GRAPHENE_BLOCKCHAIN_PRECISION; };
218 
220  account_id_type account;
221  credit_deal_id_type deal_id;
222  uint8_t auto_repay;
223 
225 
226  account_id_type fee_payer()const { return account; }
227  void validate()const override;
228  };
229 
230 } } // graphene::protocol
231 
238 FC_REFLECT( graphene::protocol::credit_deal_update_operation::fee_params_t, (fee) )
239 
240 FC_REFLECT( graphene::protocol::credit_offer_create_operation,
241  (fee)
242  (owner_account)
243  (asset_type)
244  (balance)
245  (fee_rate)
246  (max_duration_seconds)
247  (min_deal_amount)
248  (enabled)
249  (auto_disable_time)
250  (acceptable_collateral)
251  (acceptable_borrowers)
252  (extensions)
253  )
254 
255 FC_REFLECT( graphene::protocol::credit_offer_delete_operation,
256  (fee)
257  (owner_account)
258  (offer_id)
259  (extensions)
260  )
261 
262 FC_REFLECT( graphene::protocol::credit_offer_update_operation,
263  (fee)
264  (owner_account)
265  (offer_id)
266  (delta_amount)
267  (fee_rate)
268  (max_duration_seconds)
269  (min_deal_amount)
270  (enabled)
271  (auto_disable_time)
272  (acceptable_collateral)
273  (acceptable_borrowers)
274  (extensions)
275  )
276 
277 FC_REFLECT( graphene::protocol::credit_offer_accept_operation::ext,
278  (auto_repay)
279  )
280 
281 FC_REFLECT( graphene::protocol::credit_offer_accept_operation,
282  (fee)
283  (borrower)
284  (offer_id)
285  (borrow_amount)
286  (collateral)
287  (max_fee_rate)
288  (min_duration_seconds)
289  (extensions)
290  )
291 
292 FC_REFLECT( graphene::protocol::credit_deal_repay_operation,
293  (fee)
294  (account)
295  (deal_id)
296  (repay_amount)
297  (credit_fee)
298  (extensions)
299  )
300 
301 FC_REFLECT( graphene::protocol::credit_deal_expired_operation,
302  (fee)
303  (deal_id)
304  (offer_id)
305  (offer_owner)
306  (borrower)
307  (unpaid_amount)
308  (collateral)
309  (fee_rate)
310  )
311 
312 FC_REFLECT( graphene::protocol::credit_deal_update_operation,
313  (fee)
314  (account)
315  (deal_id)
316  (auto_repay)
317  (extensions)
318  )
319 
320 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_offer_accept_operation::ext )
321 
322 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_offer_create_operation::fee_params_t )
323 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_offer_delete_operation::fee_params_t )
324 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_offer_update_operation::fee_params_t )
325 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_offer_accept_operation::fee_params_t )
326 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_deal_repay_operation::fee_params_t )
327 // Note: credit_deal_expired_operation is virtual so no external serialization for its fee_params_t
328 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_deal_update_operation::fee_params_t )
329 
330 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_offer_create_operation )
331 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_offer_delete_operation )
332 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_offer_update_operation )
333 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_offer_accept_operation )
334 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_deal_repay_operation )
335 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_deal_expired_operation )
336 GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::protocol::credit_deal_update_operation )
graphene::protocol::credit_deal_expired_operation::calculate_fee
share_type calculate_fee(const fee_params_t &) const
This is a virtual operation; there is no fee.
Definition: credit_offer.hpp:208
graphene::protocol::credit_offer_accept_operation::borrower
account_id_type borrower
The account who accepts the offer.
Definition: credit_offer.hpp:146
graphene::protocol::credit_offer_accept_operation::extensions
extension< ext > extensions
Extensions.
Definition: credit_offer.hpp:153
graphene::protocol::extension
Definition: ext.hpp:36
graphene::protocol::credit_offer_update_operation::owner_account
account_id_type owner_account
Owner of the credit offer.
Definition: credit_offer.hpp:96
graphene::protocol::credit_deal_repay_operation::fee_payer
account_id_type fee_payer() const
Definition: credit_offer.hpp:175
graphene::protocol::credit_deal_update_operation::fee
asset fee
Operation fee.
Definition: credit_offer.hpp:219
graphene::protocol::credit_offer_create_operation::fee
asset fee
Operation fee.
Definition: credit_offer.hpp:43
graphene::protocol::credit_offer_delete_operation::fee_params_t::fee
uint64_t fee
Definition: credit_offer.hpp:72
graphene::protocol::credit_deal_expired_operation::validate
void validate() const override
Definition: credit_offer.hpp:205
graphene::protocol::credit_offer_create_operation::fee_params_t::fee
uint64_t fee
Definition: credit_offer.hpp:39
graphene::protocol::credit_offer_create_operation::auto_disable_time
time_point_sec auto_disable_time
The time when this offer will be disabled automatically.
Definition: credit_offer.hpp:51
graphene::protocol::credit_offer_accept_operation::fee_params_t::fee
uint64_t fee
Definition: credit_offer.hpp:143
graphene::protocol::credit_deal_expired_operation::fee
asset fee
Only for compatibility, unused.
Definition: credit_offer.hpp:195
graphene::protocol::credit_offer_create_operation::balance
share_type balance
Usable amount in the credit offer.
Definition: credit_offer.hpp:46
graphene::protocol::credit_offer_update_operation::validate
void validate() const override
Definition: credit_offer.cpp:91
graphene::protocol::credit_offer_update_operation::acceptable_borrowers
optional< flat_map< account_id_type, share_type > > acceptable_borrowers
New allowed borrowers and their maximum amounts to borrow, optional.
Definition: credit_offer.hpp:109
graphene::protocol::credit_deal_repay_operation::deal_id
credit_deal_id_type deal_id
ID of the credit deal.
Definition: credit_offer.hpp:169
graphene::protocol::credit_deal_update_operation::auto_repay
uint8_t auto_repay
The specified automatic repayment type.
Definition: credit_offer.hpp:222
graphene::protocol::credit_deal_auto_repayment_type::CDAR_TYPE_COUNT
@ CDAR_TYPE_COUNT
Total number of available automatic repayment types.
graphene::protocol::credit_deal_update_operation::extensions
extensions_type extensions
Unused. Reserved for future use.
Definition: credit_offer.hpp:224
graphene::protocol::credit_deal_repay_operation
Repay a credit deal.
Definition: credit_offer.hpp:163
graphene::protocol::credit_deal_expired_operation::credit_deal_expired_operation
credit_deal_expired_operation(const credit_deal_id_type &did, const credit_offer_id_type &oid, const account_id_type &o, const account_id_type &b, const asset &u, const asset &c, const uint32_t fr)
Definition: credit_offer.hpp:190
graphene::protocol::credit_offer_create_operation
Create a new credit offer.
Definition: credit_offer.hpp:36
graphene::protocol::credit_offer_create_operation::acceptable_borrowers
flat_map< account_id_type, share_type > acceptable_borrowers
Allowed borrowers and their maximum amounts to borrow. No limitation if empty.
Definition: credit_offer.hpp:57
graphene::protocol::credit_offer_accept_operation::validate
void validate() const override
Definition: credit_offer.cpp:144
graphene::protocol::credit_deal_repay_operation::extensions
extensions_type extensions
Unused. Reserved for future use.
Definition: credit_offer.hpp:173
graphene::protocol::credit_offer_update_operation::fee_params_t
Definition: credit_offer.hpp:90
graphene::protocol::credit_offer_delete_operation::extensions
extensions_type extensions
Unused. Reserved for future use.
Definition: credit_offer.hpp:78
graphene::protocol::credit_deal_auto_repayment_type::no_auto_repayment
@ no_auto_repayment
Do not repay automatically.
graphene::protocol::credit_deal_expired_operation::fee_rate
uint32_t fee_rate
Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM.
Definition: credit_offer.hpp:202
graphene::protocol::credit_offer_update_operation::min_deal_amount
optional< share_type > min_deal_amount
Minimum amount to borrow for each new deal, optional.
Definition: credit_offer.hpp:101
graphene::protocol::credit_offer_create_operation::calculate_fee
share_type calculate_fee(const fee_params_t &k) const
Definition: credit_offer.cpp:79
graphene::protocol::credit_deal_expired_operation::offer_id
credit_offer_id_type offer_id
ID of the credit offer.
Definition: credit_offer.hpp:197
graphene::protocol::credit_deal_expired_operation::credit_deal_expired_operation
credit_deal_expired_operation()=default
graphene::protocol::credit_offer_create_operation::validate
void validate() const override
Definition: credit_offer.cpp:63
graphene::protocol::credit_offer_delete_operation
Delete a credit offer.
Definition: credit_offer.hpp:70
graphene::protocol::credit_offer_update_operation::enabled
optional< bool > enabled
Whether this offer is available, optional.
Definition: credit_offer.hpp:102
graphene::protocol::credit_offer_create_operation::min_deal_amount
share_type min_deal_amount
Minimum amount to borrow for each new deal.
Definition: credit_offer.hpp:49
graphene::protocol::credit_deal_auto_repayment_type::only_full_repayment
@ only_full_repayment
Automatically repay fully when and only when the account balance is sufficient.
graphene::protocol::base_operation
Definition: base.hpp:124
graphene::protocol::credit_offer_update_operation::fee_params_t::price_per_kbyte
uint32_t price_per_kbyte
Definition: credit_offer.hpp:92
graphene::protocol::credit_offer_create_operation::fee_params_t
Definition: credit_offer.hpp:38
graphene::protocol::credit_offer_create_operation::fee_params_t::price_per_kbyte
uint32_t price_per_kbyte
Definition: credit_offer.hpp:40
graphene::protocol::credit_offer_create_operation::enabled
bool enabled
Whether this offer is available.
Definition: credit_offer.hpp:50
graphene::protocol::credit_deal_repay_operation::repay_amount
asset repay_amount
The amount to repay.
Definition: credit_offer.hpp:170
graphene::protocol::credit_offer_update_operation::fee_rate
optional< uint32_t > fee_rate
New fee rate, optional.
Definition: credit_offer.hpp:99
graphene::protocol::credit_deal_repay_operation::credit_fee
asset credit_fee
The credit fee relative to the amount to repay.
Definition: credit_offer.hpp:171
graphene::protocol::credit_deal_expired_operation::collateral
asset collateral
The collateral liquidated.
Definition: credit_offer.hpp:201
graphene::protocol::credit_offer_accept_operation::fee_params_t
Definition: credit_offer.hpp:143
GRAPHENE_BLOCKCHAIN_PRECISION
#define GRAPHENE_BLOCKCHAIN_PRECISION
Definition: config.hpp:29
graphene::protocol::credit_offer_create_operation::extensions
extensions_type extensions
Unused. Reserved for future use.
Definition: credit_offer.hpp:59
graphene::protocol::credit_deal_repay_operation::validate
void validate() const override
Definition: credit_offer.cpp:157
graphene::protocol::credit_offer_delete_operation::offer_id
credit_offer_id_type offer_id
ID of the credit offer.
Definition: credit_offer.hpp:76
graphene::protocol::credit_offer_accept_operation
Accept a credit offer, thereby creating a credit deal.
Definition: credit_offer.hpp:135
graphene::protocol::credit_offer_update_operation::acceptable_collateral
optional< flat_map< asset_id_type, price > > acceptable_collateral
New types and rates of acceptable collateral, optional.
Definition: credit_offer.hpp:106
fc::time_point_sec
Definition: time.hpp:74
graphene::protocol::credit_deal_expired_operation::deal_id
credit_deal_id_type deal_id
ID of the credit deal.
Definition: credit_offer.hpp:196
graphene::protocol::credit_offer_accept_operation::ext
Definition: credit_offer.hpp:137
graphene::protocol::credit_offer_create_operation::acceptable_collateral
flat_map< asset_id_type, price > acceptable_collateral
Types and rates of acceptable collateral.
Definition: credit_offer.hpp:54
graphene::protocol::credit_offer_update_operation::offer_id
credit_offer_id_type offer_id
ID of the credit offer.
Definition: credit_offer.hpp:97
graphene::protocol::credit_deal_auto_repayment_type
credit_deal_auto_repayment_type
Defines automatic repayment types.
Definition: credit_offer.hpp:119
GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
Definition: types.hpp:85
graphene::protocol::credit_offer_create_operation::asset_type
asset_id_type asset_type
Asset type in the credit offer.
Definition: credit_offer.hpp:45
graphene::protocol::credit_deal_update_operation::fee_params_t::fee
uint64_t fee
Definition: credit_offer.hpp:217
graphene::protocol::credit_deal_update_operation::fee_params_t
Definition: credit_offer.hpp:217
graphene::protocol::credit_offer_update_operation::fee
asset fee
Operation fee.
Definition: credit_offer.hpp:95
graphene::protocol::credit_offer_accept_operation::offer_id
credit_offer_id_type offer_id
ID of the credit offer.
Definition: credit_offer.hpp:147
graphene::protocol::credit_offer_update_operation::extensions
extensions_type extensions
Unused. Reserved for future use.
Definition: credit_offer.hpp:111
graphene::protocol::credit_offer_accept_operation::borrow_amount
asset borrow_amount
The amount to borrow.
Definition: credit_offer.hpp:148
graphene::protocol::credit_deal_update_operation::fee_payer
account_id_type fee_payer() const
Definition: credit_offer.hpp:226
graphene::protocol::credit_offer_create_operation::fee_payer
account_id_type fee_payer() const
Definition: credit_offer.hpp:61
graphene::protocol::credit_offer_delete_operation::fee_params_t
Definition: credit_offer.hpp:72
FC_ASSERT
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
Definition: exception.hpp:345
graphene::protocol::credit_offer_create_operation::max_duration_seconds
uint32_t max_duration_seconds
The time limit that borrowed funds should be repaid.
Definition: credit_offer.hpp:48
graphene::protocol::credit_offer_update_operation::fee_params_t::fee
uint64_t fee
Definition: credit_offer.hpp:91
base.hpp
graphene::protocol::credit_offer_update_operation::calculate_fee
share_type calculate_fee(const fee_params_t &k) const
Definition: credit_offer.cpp:137
graphene::protocol::credit_deal_expired_operation::fee_params_t
Definition: credit_offer.hpp:186
graphene::protocol::credit_deal_update_operation
Update a credit deal.
Definition: credit_offer.hpp:215
graphene::protocol::credit_offer_accept_operation::ext::auto_repay
fc::optional< uint8_t > auto_repay
After the core-2595 hard fork, the account can specify whether and how to automatically repay.
Definition: credit_offer.hpp:140
graphene::protocol::credit_deal_repay_operation::fee_params_t
Definition: credit_offer.hpp:165
graphene::protocol::credit_deal_expired_operation
A credit deal expired without being fully repaid.
Definition: credit_offer.hpp:184
graphene::protocol::credit_deal_auto_repayment_type::allow_partial_repayment
@ allow_partial_repayment
Automatically repay as much as possible using available account balance.
graphene::protocol::credit_offer_accept_operation::fee
asset fee
Operation fee.
Definition: credit_offer.hpp:145
graphene::protocol::credit_deal_expired_operation::borrower
account_id_type borrower
The account who repays to the credit offer.
Definition: credit_offer.hpp:199
graphene::protocol::credit_offer_delete_operation::fee
asset fee
Operation fee.
Definition: credit_offer.hpp:74
graphene::protocol::credit_deal_update_operation::validate
void validate() const override
Definition: credit_offer.cpp:166
graphene::protocol::credit_deal_update_operation::deal_id
credit_deal_id_type deal_id
ID of the credit deal.
Definition: credit_offer.hpp:221
graphene::protocol::credit_offer_create_operation::fee_rate
uint32_t fee_rate
Fee rate, the demominator is GRAPHENE_FEE_RATE_DENOM.
Definition: credit_offer.hpp:47
FC_REFLECT
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
Definition: reflect.hpp:388
graphene::protocol::credit_offer_update_operation::delta_amount
optional< asset > delta_amount
Delta amount, optional.
Definition: credit_offer.hpp:98
graphene::protocol::credit_deal_repay_operation::fee
asset fee
Operation fee.
Definition: credit_offer.hpp:167
graphene::protocol::credit_deal_update_operation::account
account_id_type account
The account who owns the credit deal.
Definition: credit_offer.hpp:220
fc::optional
provides stack-based nullable value similar to boost::optional
Definition: optional.hpp:20
graphene::protocol::credit_offer_accept_operation::max_fee_rate
uint32_t max_fee_rate
The maximum acceptable fee rate.
Definition: credit_offer.hpp:150
graphene::protocol::credit_offer_update_operation::auto_disable_time
optional< time_point_sec > auto_disable_time
New time to disable automatically, optional.
Definition: credit_offer.hpp:103
graphene::protocol::credit_deal_repay_operation::fee_params_t::fee
uint64_t fee
Definition: credit_offer.hpp:165
graphene::protocol::credit_deal_expired_operation::fee_payer
account_id_type fee_payer() const
Definition: credit_offer.hpp:204
graphene::protocol::credit_deal_expired_operation::unpaid_amount
asset unpaid_amount
The amount that is unpaid.
Definition: credit_offer.hpp:200
graphene::protocol::asset
Definition: asset.hpp:31
graphene::protocol::credit_offer_accept_operation::collateral
asset collateral
The collateral.
Definition: credit_offer.hpp:149
graphene::protocol::credit_offer_delete_operation::fee_payer
account_id_type fee_payer() const
Definition: credit_offer.hpp:80
graphene::protocol::credit_offer_accept_operation::min_duration_seconds
uint32_t min_duration_seconds
The minimum acceptable duration.
Definition: credit_offer.hpp:151
graphene::protocol::credit_offer_create_operation::owner_account
account_id_type owner_account
Owner of the credit offer.
Definition: credit_offer.hpp:44
asset.hpp
graphene::protocol::credit_offer_delete_operation::owner_account
account_id_type owner_account
The account who owns the credit offer.
Definition: credit_offer.hpp:75
graphene::protocol::credit_offer_delete_operation::validate
void validate() const override
Definition: credit_offer.cpp:86
graphene::protocol::credit_deal_expired_operation::offer_owner
account_id_type offer_owner
Owner of the credit offer.
Definition: credit_offer.hpp:198
graphene::protocol::credit_offer_update_operation
Update a credit offer.
Definition: credit_offer.hpp:88
graphene::protocol::credit_offer_update_operation::max_duration_seconds
optional< uint32_t > max_duration_seconds
New repayment time limit, optional.
Definition: credit_offer.hpp:100
graphene
Definition: api.cpp:48
graphene::protocol::extensions_type
future_extensions::flat_set_type extensions_type
Definition: base.hpp:156
graphene::protocol::credit_deal_repay_operation::account
account_id_type account
The account who repays to the credit offer.
Definition: credit_offer.hpp:168
graphene::protocol::credit_offer_accept_operation::fee_payer
account_id_type fee_payer() const
Definition: credit_offer.hpp:155
graphene::protocol::credit_offer_update_operation::fee_payer
account_id_type fee_payer() const
Definition: credit_offer.hpp:113
fc::safe
Definition: safe.hpp:26