plebble
|
#include <app.h>
Classes | |
struct | db_t |
struct | delta |
struct | local_delta |
struct | query_accounts_t |
Public Types | |
typedef engine::app | b |
typedef local_delta::box_t | box_t |
typedef local_delta::account_t | account_t |
typedef local_delta::accounts_t | accounts_t |
typedef local_delta::safe_deposit_box::fileattr_t | fileattr_t |
![]() | |
typedef crypto::ripemd160 | hasher_t |
typedef hasher_t::value_type | hash_t |
Public Member Functions | |
app (engine::daemon &) | |
app (const app &)=delete | |
app & | operator= (const app &)=delete |
~app () override | |
engine::app::local_delta * | create_local_delta () override |
bool | process_query (peer_t *, datagram *) override |
string | get_name () const override |
bool | process (const evidence &) override |
bool | process (const tx &, const tx::section_t &, local_delta::batch_t &, cash_t &fee) |
bool | process (const tx &, const tx::sections_t &, local_delta::batch_t &, cash_t &fee) |
bool | process (const tx &) |
bool | process (const map_tx &) |
bool | process (const file_tx &) |
bool | process (const ttx &) |
void | report_wallet (const tx &t, const string &feedback) const |
void | save_db (ostream &) const override |
bool | load_db (istream &) override |
bool | load_db_prev (istream &) override |
void | clear () override |
bool | process_tx (peer_t *, datagram *) |
void | cash_query (peer_t *, datagram *) |
void | search_kv (peer_t *, datagram *) |
bool | account_state (const local_delta::batch_t &batch, const hash_t &address, account_t &acc) const |
bool | checksig (const size_t &this_index, const string &locking_program_input, const tx &) const |
int | get_id () const override |
bool | shell_command (istream &, ostream &) override |
void | import (const engine::app::delta &, const engine::pow_t &) override |
void | update_ledger (const delta &g, vector< pair< hash_t, uint32_t >> &old_files, vector< pair< hash_t, uint32_t >> &new_files) |
cash_t | charge_ledger () |
cash_t | pay_services () const |
void | tax_accounts (const cash_t &amount) |
void | process_profit (cash_t &profit) |
void | pay_subsidy (const cash_t &amount, const engine::pow_t &w) |
void | get_files (vector< pair< hash_t, uint32_t >> &) const |
void | get_files (vector< pair< hash_t, fileattr_t >> &) const |
void | get_files (set< hash_t > &) const |
void | file_hash (peer_t *c, datagram *d) const |
![]() | |
app (daemon &e) | |
Static Public Member Functions | |
static bool | unlock (const hash_t &address, const hash_t &locking_program, const string &locking_program_input, const tx &) |
static bool | unlock (const hash_t &address, const hash_t &locking_program, const map_tx &t) |
static bool | unlock (const hash_t &address, const hash_t &locking_program, const file_tx &t) |
static bool | unlock (const hash_t &address, const hash_t &locking_program, const ttx &t) |
static constexpr int | id () |
static evidence * | evidence_from_stream (uint8_t evid, istream &is) |
static bool | check_amounts (const tx &) |
![]() | |
static unsigned int | get_seed () |
Public Attributes | |
db_t | db |
local_delta * | pool {0} |
mutex | mx_pool |
vector< pair< hash_t, uint32_t > > | old_files |
vector< pair< hash_t, uint32_t > > | new_files |
![]() | |
daemon & | demon |
Static Public Attributes | |
constexpr static const char * | name ={"cash"} |
![]() | |
static chaininfo_t | chaininfo |
typedef engine::app us::gov::cash::app::b |
us::gov::cash::app::app | ( | engine::daemon & | ) |
|
delete |
|
overridevirtual |
Reimplemented from us::gov::engine::app.
bool us::gov::cash::app::account_state | ( | const local_delta::batch_t & | batch, |
const hash_t & | address, | ||
account_t & | acc | ||
) | const |
cash_t us::gov::cash::app::charge_ledger | ( | ) |
|
static |
bool us::gov::cash::app::checksig | ( | const size_t & | this_index, |
const string & | locking_program_input, | ||
const tx & | |||
) | const |
|
overridevirtual |
Implements us::gov::engine::app.
|
overridevirtual |
Implements us::gov::engine::app.
|
static |
void us::gov::cash::app::get_files | ( | set< hash_t > & | ) | const |
void us::gov::cash::app::get_files | ( | vector< pair< hash_t, fileattr_t >> & | ) | const |
|
inlineoverridevirtual |
Implements us::gov::engine::app.
|
inlineoverridevirtual |
Implements us::gov::engine::app.
|
inlinestaticconstexpr |
|
overridevirtual |
Implements us::gov::engine::app.
|
overridevirtual |
Implements us::gov::engine::app.
|
overridevirtual |
Implements us::gov::engine::app.
cash_t us::gov::cash::app::pay_services | ( | ) | const |
void us::gov::cash::app::pay_subsidy | ( | const cash_t & | amount, |
const engine::pow_t & | w | ||
) |
|
overridevirtual |
Implements us::gov::engine::app.
bool us::gov::cash::app::process | ( | const file_tx & | ) |
bool us::gov::cash::app::process | ( | const map_tx & | ) |
bool us::gov::cash::app::process | ( | const ttx & | ) |
bool us::gov::cash::app::process | ( | const tx & | ) |
bool us::gov::cash::app::process | ( | const tx & | , |
const tx::section_t & | , | ||
local_delta::batch_t & | , | ||
cash_t & | fee | ||
) |
bool us::gov::cash::app::process | ( | const tx & | , |
const tx::sections_t & | , | ||
local_delta::batch_t & | , | ||
cash_t & | fee | ||
) |
void us::gov::cash::app::process_profit | ( | cash_t & | profit | ) |
Reimplemented from us::gov::engine::app.
void us::gov::cash::app::report_wallet | ( | const tx & | t, |
const string & | feedback | ||
) | const |
|
overridevirtual |
Implements us::gov::engine::app.
|
overridevirtual |
Reimplemented from us::gov::engine::app.
void us::gov::cash::app::tax_accounts | ( | const cash_t & | amount | ) |
|
static |
|
static |
|
static |
|
static |
void us::gov::cash::app::update_ledger | ( | const delta & | g, |
vector< pair< hash_t, uint32_t >> & | old_files, | ||
vector< pair< hash_t, uint32_t >> & | new_files | ||
) |
db_t us::gov::cash::app::db |
mutex us::gov::cash::app::mx_pool |
|
staticconstexpr |
local_delta* us::gov::cash::app::pool {0} |