|
Bitshares-Core
3.0.0
BitShares blockchain implementation and command-line interface software
|
#include <wallet.hpp>
Public Member Functions | |
| wallet_api (const wallet_data &initial_data, fc::api< login_api > rapi) | |
| virtual | ~wallet_api () |
| bool | copy_wallet_file (string destination_filename) |
| fc::ecc::private_key | derive_private_key (const std::string &prefix_string, int sequence_number) const |
| variant | info () |
| variant_object | about () const |
| optional< signed_block_with_info > | get_block (uint32_t num) |
| uint64_t | get_account_count () const |
| vector< account_object > | list_my_accounts () |
| map< string, account_id_type > | list_accounts (const string &lowerbound, uint32_t limit) |
| vector< asset > | list_account_balances (const string &id) |
| vector< asset_object > | list_assets (const string &lowerbound, uint32_t limit) const |
| uint64_t | get_asset_count () const |
| vector< operation_detail > | get_account_history (string name, int limit) const |
| vector< operation_detail > | get_relative_account_history (string name, uint32_t stop, int limit, uint32_t start) const |
| full_account | get_full_account (const string &name_or_id) |
| Fetch all objects relevant to the specified account. More... | |
| vector< bucket_object > | get_market_history (string symbol, string symbol2, uint32_t bucket, fc::time_point_sec start, fc::time_point_sec end) const |
| vector< limit_order_object > | get_account_limit_orders (const string &name_or_id, const string &base, const string "e, uint32_t limit=101, optional< limit_order_id_type > ostart_id=optional< limit_order_id_type >(), optional< price > ostart_price=optional< price >()) |
| Fetch all orders relevant to the specified account sorted descendingly by price. More... | |
| vector< limit_order_object > | get_limit_orders (string a, string b, uint32_t limit) const |
| vector< call_order_object > | get_call_orders (string a, uint32_t limit) const |
| vector< force_settlement_object > | get_settle_orders (string a, uint32_t limit) const |
| vector< collateral_bid_object > | get_collateral_bids (string asset, uint32_t limit=100, uint32_t start=0) const |
| global_property_object | get_global_properties () const |
| account_history_operation_detail | get_account_history_by_operations (string name, vector< uint16_t > operation_types, uint32_t start, int limit) |
| dynamic_global_property_object | get_dynamic_global_properties () const |
| account_object | get_account (string account_name_or_id) const |
| asset_object | get_asset (string asset_name_or_id) const |
| asset_bitasset_data_object | get_bitasset_data (string asset_name_or_id) const |
| fc::optional< fc::variant > | get_htlc (string htlc_id) const |
| account_id_type | get_account_id (string account_name_or_id) const |
| asset_id_type | get_asset_id (string asset_name_or_id) const |
| variant | get_object (object_id_type id) const |
| string | get_wallet_filename () const |
| string | get_private_key (public_key_type pubkey) const |
| transaction_handle_type | begin_builder_transaction () |
| void | add_operation_to_builder_transaction (transaction_handle_type transaction_handle, const operation &op) |
| void | replace_operation_in_builder_transaction (transaction_handle_type handle, unsigned operation_index, const operation &new_op) |
| asset | set_fees_on_builder_transaction (transaction_handle_type handle, string fee_asset=GRAPHENE_SYMBOL) |
| transaction | preview_builder_transaction (transaction_handle_type handle) |
| signed_transaction | sign_builder_transaction (transaction_handle_type transaction_handle, bool broadcast=true) |
| pair< transaction_id_type, signed_transaction > | broadcast_transaction (signed_transaction tx) |
| signed_transaction | propose_builder_transaction (transaction_handle_type handle, time_point_sec expiration=time_point::now()+fc::minutes(1), uint32_t review_period_seconds=0, bool broadcast=true) |
| signed_transaction | propose_builder_transaction2 (transaction_handle_type handle, string account_name_or_id, time_point_sec expiration=time_point::now()+fc::minutes(1), uint32_t review_period_seconds=0, bool broadcast=true) |
| void | remove_builder_transaction (transaction_handle_type handle) |
| bool | is_new () const |
| bool | is_locked () const |
| void | lock () |
| void | unlock (string password) |
| void | set_password (string password) |
| map< public_key_type, string > | dump_private_keys () |
| string | help () const |
| string | gethelp (const string &method) const |
| bool | load_wallet_file (string wallet_filename="") |
| void | quit () |
| void | save_wallet_file (string wallet_filename="") |
| void | set_wallet_filename (string wallet_filename) |
| brain_key_info | suggest_brain_key () const |
| vector< brain_key_info > | derive_owner_keys_from_brain_key (string brain_key, int number_of_desired_keys=1) const |
| bool | is_public_key_registered (string public_key) const |
| string | serialize_transaction (signed_transaction tx) const |
| bool | import_key (string account_name_or_id, string wif_key) |
| map< string, bool > | import_accounts (string filename, string password) |
| bool | import_account_keys (string filename, string password, string src_account_name, string dest_account_name) |
| vector< signed_transaction > | import_balance (string account_name_or_id, const vector< string > &wif_keys, bool broadcast) |
| string | normalize_brain_key (string s) const |
| signed_transaction | register_account (string name, public_key_type owner, public_key_type active, string registrar_account, string referrer_account, uint32_t referrer_percent, bool broadcast=false) |
| signed_transaction | upgrade_account (string name, bool broadcast) |
| signed_transaction | create_account_with_brain_key (string brain_key, string account_name, string registrar_account, string referrer_account, bool broadcast=false) |
| signed_transaction | transfer (string from, string to, string amount, string asset_symbol, string memo, bool broadcast=false) |
| pair< transaction_id_type, signed_transaction > | transfer2 (string from, string to, string amount, string asset_symbol, string memo) |
| transaction_id_type | get_transaction_id (const signed_transaction &trx) const |
| memo_data | sign_memo (string from, string to, string memo) |
| string | read_memo (const memo_data &memo) |
| vector< blind_receipt > | blind_history (string key_or_account) |
| blind_receipt | receive_blind_transfer (string confirmation_receipt, string opt_from, string opt_memo) |
| blind_confirmation | transfer_to_blind (string from_account_id_or_name, string asset_symbol, vector< pair< string, string >> to_amounts, bool broadcast=false) |
| blind_confirmation | transfer_from_blind (string from_blind_account_key_or_label, string to_account_id_or_name, string amount, string asset_symbol, bool broadcast=false) |
| blind_confirmation | blind_transfer (string from_key_or_label, string to_key_or_label, string amount, string symbol, bool broadcast=false) |
| signed_transaction | sell_asset (string seller_account, string amount_to_sell, string symbol_to_sell, string min_to_receive, string symbol_to_receive, uint32_t timeout_sec=0, bool fill_or_kill=false, bool broadcast=false) |
| signed_transaction | borrow_asset (string borrower_name, string amount_to_borrow, string asset_symbol, string amount_of_collateral, bool broadcast=false) |
| signed_transaction | borrow_asset_ext (string borrower_name, string amount_to_borrow, string asset_symbol, string amount_of_collateral, call_order_update_operation::extensions_type extensions, bool broadcast=false) |
| signed_transaction | cancel_order (object_id_type order_id, bool broadcast=false) |
| signed_transaction | create_asset (string issuer, string symbol, uint8_t precision, asset_options common, fc::optional< bitasset_options > bitasset_opts, bool broadcast=false) |
| signed_transaction | issue_asset (string to_account, string amount, string symbol, string memo, bool broadcast=false) |
| signed_transaction | update_asset (string symbol, optional< string > new_issuer, asset_options new_options, bool broadcast=false) |
| signed_transaction | update_asset_issuer (string symbol, string new_issuer, bool broadcast=false) |
| signed_transaction | update_bitasset (string symbol, bitasset_options new_options, bool broadcast=false) |
| signed_transaction | update_asset_feed_producers (string symbol, flat_set< string > new_feed_producers, bool broadcast=false) |
| signed_transaction | publish_asset_feed (string publishing_account, string symbol, price_feed feed, bool broadcast=false) |
| signed_transaction | fund_asset_fee_pool (string from, string symbol, string amount, bool broadcast=false) |
| signed_transaction | claim_asset_fee_pool (string symbol, string amount, bool broadcast=false) |
| signed_transaction | reserve_asset (string from, string amount, string symbol, bool broadcast=false) |
| signed_transaction | global_settle_asset (string symbol, price settle_price, bool broadcast=false) |
| signed_transaction | settle_asset (string account_to_settle, string amount_to_settle, string symbol, bool broadcast=false) |
| signed_transaction | bid_collateral (string bidder_name, string debt_amount, string debt_symbol, string additional_collateral, bool broadcast=false) |
| signed_transaction | whitelist_account (string authorizing_account, string account_to_list, account_whitelist_operation::account_listing new_listing_status, bool broadcast=false) |
| signed_transaction | create_committee_member (string owner_account, string url, bool broadcast=false) |
| map< string, witness_id_type > | list_witnesses (const string &lowerbound, uint32_t limit) |
| map< string, committee_member_id_type > | list_committee_members (const string &lowerbound, uint32_t limit) |
| witness_object | get_witness (string owner_account) |
| committee_member_object | get_committee_member (string owner_account) |
| signed_transaction | create_witness (string owner_account, string url, bool broadcast=false) |
| signed_transaction | update_witness (string witness_name, string url, string block_signing_key, bool broadcast=false) |
| signed_transaction | create_worker (string owner_account, time_point_sec work_begin_date, time_point_sec work_end_date, share_type daily_pay, string name, string url, variant worker_settings, bool broadcast=false) |
| signed_transaction | update_worker_votes (string account, worker_vote_delta delta, bool broadcast=false) |
| signed_transaction | htlc_create (string source, string destination, string amount, string asset_symbol, string hash_algorithm, const std::string &preimage_hash, uint32_t preimage_size, const uint32_t claim_period_seconds, bool broadcast=false) |
| signed_transaction | htlc_redeem (string htlc_id, string issuer, const std::string &preimage, bool broadcast=false) |
| signed_transaction | htlc_extend (string htlc_id, string issuer, const uint32_t seconds_to_add, bool broadcast=false) |
| vector< vesting_balance_object_with_info > | get_vesting_balances (string account_name) |
| signed_transaction | withdraw_vesting (string witness_name, string amount, string asset_symbol, bool broadcast=false) |
| signed_transaction | vote_for_committee_member (string voting_account, string committee_member, bool approve, bool broadcast=false) |
| signed_transaction | vote_for_witness (string voting_account, string witness, bool approve, bool broadcast=false) |
| signed_transaction | set_voting_proxy (string account_to_modify, optional< string > voting_account, bool broadcast=false) |
| signed_transaction | set_desired_witness_and_committee_member_count (string account_to_modify, uint16_t desired_number_of_witnesses, uint16_t desired_number_of_committee_members, bool broadcast=false) |
| signed_transaction | sign_transaction (signed_transaction tx, bool broadcast=false) |
| operation | get_prototype_operation (string operation_type) |
| signed_transaction | propose_parameter_change (const string &proposing_account, fc::time_point_sec expiration_time, const variant_object &changed_values, bool broadcast=false) |
| signed_transaction | propose_fee_change (const string &proposing_account, fc::time_point_sec expiration_time, const variant_object &changed_values, bool broadcast=false) |
| signed_transaction | approve_proposal (const string &fee_paying_account, const string &proposal_id, const approval_delta &delta, bool broadcast) |
| order_book | get_order_book (const string &base, const string "e, unsigned limit=50) |
| void | dbg_make_uia (string creator, string symbol) |
| void | dbg_make_mia (string creator, string symbol) |
| void | dbg_push_blocks (std::string src_filename, uint32_t count) |
| void | dbg_generate_blocks (std::string debug_wif_key, uint32_t count) |
| void | dbg_stream_json_objects (const std::string &filename) |
| void | dbg_update_object (fc::variant_object update) |
| void | flood_network (string prefix, uint32_t number_of_transactions) |
| void | network_add_nodes (const vector< string > &nodes) |
| vector< variant > | network_get_connected_peers () |
| blind_confirmation | blind_transfer_help (string from_key_or_label, string to_key_or_label, string amount, string symbol, bool broadcast=false, bool to_temp=false) |
| std::map< string, std::function< string(fc::variant, const fc::variants &)> > | get_result_formatters () const |
| void | encrypt_keys () |
| bool | set_key_label (public_key_type, string label) |
| string | get_key_label (public_key_type) const |
| public_key_type | create_blind_account (string label, string brain_key) |
| vector< asset > | get_blind_balances (string key_or_label) |
| map< string, public_key_type > | get_blind_accounts () const |
| map< string, public_key_type > | get_my_blind_accounts () const |
| public_key_type | get_public_key (string label) const |
Public Attributes | |
| fc::signal< void(bool)> | lock_changed |
| std::shared_ptr< detail::wallet_api_impl > | my |
This wallet assumes it is connected to the database server with a high-bandwidth, low-latency connection and performs minimal caching. This API could be provided locally to be used by a web interface.
Definition at line 313 of file wallet.hpp.
| graphene::wallet::wallet_api::wallet_api | ( | const wallet_data & | initial_data, |
| fc::api< login_api > | rapi | ||
| ) |
Definition at line 3128 of file wallet.cpp.
|
virtual |
Definition at line 3133 of file wallet.cpp.
| variant_object graphene::wallet::wallet_api::about | ( | ) | const |
Returns info such as client version, git version of graphene/fc, version of boost, openssl.
Definition at line 3729 of file wallet.cpp.
| void graphene::wallet::wallet_api::add_operation_to_builder_transaction | ( | transaction_handle_type | transaction_handle, |
| const operation & | op | ||
| ) |
Definition at line 3500 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::approve_proposal | ( | const string & | fee_paying_account, |
| const string & | proposal_id, | ||
| const approval_delta & | delta, | ||
| bool | broadcast | ||
| ) |
Approve or disapprove a proposal.
| fee_paying_account | The account paying the fee for the op. |
| proposal_id | The proposal to modify. |
| delta | Members contain approvals to create or remove. In JSON you can leave empty members undefined. |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 4064 of file wallet.cpp.
| transaction_handle_type graphene::wallet::wallet_api::begin_builder_transaction | ( | ) |
Definition at line 3495 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::bid_collateral | ( | string | bidder_name, |
| string | debt_amount, | ||
| string | debt_symbol, | ||
| string | additional_collateral, | ||
| bool | broadcast = false |
||
| ) |
Creates or updates a bid on an MPA after global settlement.
In order to revive a market-pegged asset after global settlement (aka black swan), investors can bid collateral in order to take over part of the debt and the settlement fund, see BSIP-0018. Updating an existing bid to cover 0 debt will delete the bid.
| bidder_name | the name or id of the account making the bid |
| debt_amount | the amount of debt of the named asset to bid for |
| debt_symbol | the name or id of the MPA to bid for |
| additional_collateral | the amount of additional collateral to bid for taking over debt_amount. The asset type of this amount is determined automatically from debt_symbol. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3855 of file wallet.cpp.
| vector< blind_receipt > graphene::wallet::wallet_api::blind_history | ( | string | key_or_account | ) |
Definition at line 4916 of file wallet.cpp.
| blind_confirmation graphene::wallet::wallet_api::blind_transfer | ( | string | from_key_or_label, |
| string | to_key_or_label, | ||
| string | amount, | ||
| string | symbol, | ||
| bool | broadcast = false |
||
| ) |
Used to transfer from one set of blinded balances to another
Definition at line 4572 of file wallet.cpp.
| blind_confirmation graphene::wallet::wallet_api::blind_transfer_help | ( | string | from_key_or_label, |
| string | to_key_or_label, | ||
| string | amount, | ||
| string | symbol, | ||
| bool | broadcast = false , |
||
| bool | to_temp = false |
||
| ) |
Used to transfer from one set of blinded balances to another
commitments must be in sorted order
Definition at line 4580 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::borrow_asset | ( | string | borrower_name, |
| string | amount_to_borrow, | ||
| string | asset_symbol, | ||
| string | amount_of_collateral, | ||
| bool | broadcast = false |
||
| ) |
Borrow an asset or update the debt/collateral ratio for the loan.
This is the first step in shorting an asset. Call sell_asset()
to complete the short.
| borrower_name | the name or id of the account associated with the transaction. |
| amount_to_borrow | the amount of the asset being borrowed. Make this value negative to pay back debt. |
| asset_symbol | the symbol or id of the asset being borrowed. |
| amount_of_collateral | the amount of the backing asset to add to your collateral position. Make this negative to claim back some of your collateral. The backing asset is defined in the bitasset_options for the asset being borrowed. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 4370 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::borrow_asset_ext | ( | string | borrower_name, |
| string | amount_to_borrow, | ||
| string | asset_symbol, | ||
| string | amount_of_collateral, | ||
| call_order_update_operation::extensions_type | extensions, | ||
| bool | broadcast = false |
||
| ) |
Borrow an asset or update the debt/collateral ratio for the loan, with additional options.
This is the first step in shorting an asset. Call sell_asset()
to complete the short.
| borrower_name | the name or id of the account associated with the transaction. |
| amount_to_borrow | the amount of the asset being borrowed. Make this value negative to pay back debt. |
| asset_symbol | the symbol or id of the asset being borrowed. |
| amount_of_collateral | the amount of the backing asset to add to your collateral position. Make this negative to claim back some of your collateral. The backing asset is defined in the bitasset_options for the asset being borrowed. |
| extensions | additional options |
| broadcast | true to broadcast the transaction on the network |
Definition at line 4377 of file wallet.cpp.
| pair< transaction_id_type, signed_transaction > graphene::wallet::wallet_api::broadcast_transaction | ( | signed_transaction | tx | ) |
Broadcast signed transaction
| tx | signed transaction |
Definition at line 3525 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::cancel_order | ( | object_id_type | order_id, |
| bool | broadcast = false |
||
| ) |
Cancel an existing order
| order_id | the id of order to be cancelled |
| broadcast | true to broadcast the transaction on the network |
Definition at line 4386 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::claim_asset_fee_pool | ( | string | symbol, |
| string | amount, | ||
| bool | broadcast = false |
||
| ) |
Claim funds from the fee pool for the given asset.
User-issued assets can optionally have a pool of the core asset which is automatically used to pay transaction fees for any transaction using that asset (using the asset's core exchange rate).
This command allows the issuer to withdraw those funds from the fee pool.
| symbol | the name or id of the asset whose fee pool you wish to claim |
| amount | the amount of the core asset to withdraw |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3825 of file wallet.cpp.
| bool graphene::wallet::wallet_api::copy_wallet_file | ( | string | destination_filename | ) |
Definition at line 3137 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::create_account_with_brain_key | ( | string | brain_key, |
| string | account_name, | ||
| string | registrar_account, | ||
| string | referrer_account, | ||
| bool | broadcast = false |
||
| ) |
Creates a new account and registers it on the blockchain.
| brain_key | the brain key used for generating the account's private keys |
| account_name | the name of the account, must be unique on the blockchain. Shorter names are more expensive to register; the rules are still in flux, but in general names of more than 8 characters with at least one digit will be cheap. |
| registrar_account | the account which will pay the fee to register the user |
| referrer_account | the account who is acting as a referrer, and may receive a portion of the user's transaction fees. This can be the same as the registrar_account if there is no referrer. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3749 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::create_asset | ( | string | issuer, |
| string | symbol, | ||
| uint8_t | precision, | ||
| asset_options | common, | ||
| fc::optional< bitasset_options > | bitasset_opts, | ||
| bool | broadcast = false |
||
| ) |
Creates a new user-issued or market-issued asset.
Many options can be changed later using update_asset()
Right now this function is difficult to use because you must provide raw JSON data structures for the options objects, and those include prices and asset ids.
| issuer | the name or id of the account who will pay the fee and become the issuer of the new asset. This can be updated later |
| symbol | the ticker symbol of the new asset |
| precision | the number of digits of precision to the right of the decimal point, must be less than or equal to 12 |
| common | asset options required for all new assets. Note that core_exchange_rate technically needs to store the asset ID of this new asset. Since this ID is not known at the time this operation is created, create this price as though the new asset has instance ID 1, and the chain will overwrite it with the new asset's ID. |
| bitasset_opts | options specific to BitAssets. This may be null unless the market_issued flag is set in common.flags |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3769 of file wallet.cpp.
| public_key_type graphene::wallet::wallet_api::create_blind_account | ( | string | label, |
| string | brain_key | ||
| ) |
Generates a new blind account for the given brain key and assigns it the given label.
Definition at line 4460 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::create_committee_member | ( | string | owner_account, |
| string | url, | ||
| bool | broadcast = false |
||
| ) |
Creates a committee_member object owned by the given account.
An account can have at most one committee_member object.
| owner_account | the name or id of the account which is creating the committee_member |
| url | a URL to include in the committee_member record in the blockchain. Clients may display this when showing a list of committee_members. May be blank. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3871 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::create_witness | ( | string | owner_account, |
| string | url, | ||
| bool | broadcast = false |
||
| ) |
Creates a witness object owned by the given account.
An account can have at most one witness object.
| owner_account | the name or id of the account which is creating the witness |
| url | a URL to include in the witness record in the blockchain. Clients may display this when showing a list of witnesses. May be blank. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3897 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::create_worker | ( | string | owner_account, |
| time_point_sec | work_begin_date, | ||
| time_point_sec | work_end_date, | ||
| share_type | daily_pay, | ||
| string | name, | ||
| string | url, | ||
| variant | worker_settings, | ||
| bool | broadcast = false |
||
| ) |
Create a worker object.
| owner_account | The account which owns the worker and will be paid |
| work_begin_date | When the work begins |
| work_end_date | When the work ends |
| daily_pay | Amount of pay per day (NOT per maint interval) |
| name | Any text |
| url | Any text |
| worker_settings | {"type" : "burn"|"refund"|"vesting", "pay_vesting_period_days" : x} |
| broadcast | true if you wish to broadcast the transaction. |
Definition at line 3904 of file wallet.cpp.
| void graphene::wallet::wallet_api::dbg_generate_blocks | ( | std::string | debug_wif_key, |
| uint32_t | count | ||
| ) |
Definition at line 4013 of file wallet.cpp.
| void graphene::wallet::wallet_api::dbg_make_mia | ( | string | creator, |
| string | symbol | ||
| ) |
Definition at line 4002 of file wallet.cpp.
| void graphene::wallet::wallet_api::dbg_make_uia | ( | string | creator, |
| string | symbol | ||
| ) |
Definition at line 3996 of file wallet.cpp.
| void graphene::wallet::wallet_api::dbg_push_blocks | ( | std::string | src_filename, |
| uint32_t | count | ||
| ) |
Definition at line 4008 of file wallet.cpp.
| void graphene::wallet::wallet_api::dbg_stream_json_objects | ( | const std::string & | filename | ) |
Definition at line 4018 of file wallet.cpp.
| void graphene::wallet::wallet_api::dbg_update_object | ( | fc::variant_object | update | ) |
Definition at line 4023 of file wallet.cpp.
| vector< brain_key_info > graphene::wallet::wallet_api::derive_owner_keys_from_brain_key | ( | string | brain_key, |
| int | number_of_desired_keys = 1 |
||
| ) | const |
Derive any number of possible owner keys from a given brain key.
NOTE: These keys may or may not match with the owner keys of any account. This function is merely intended to assist with account or key recovery.
| brain_key | Brain key |
| number_of_desired_keys | Number of desired keys |
Definition at line 3468 of file wallet.cpp.
| fc::ecc::private_key graphene::wallet::wallet_api::derive_private_key | ( | const std::string & | prefix_string, |
| int | sequence_number | ||
| ) | const |
Definition at line 3734 of file wallet.cpp.
| map< public_key_type, string > graphene::wallet::wallet_api::dump_private_keys | ( | ) |
Dumps all private keys owned by the wallet.
The keys are printed in WIF format. You can import these keys into another wallet using import_key()
Definition at line 4346 of file wallet.cpp.
| void graphene::wallet::wallet_api::encrypt_keys | ( | ) |
Definition at line 4190 of file wallet.cpp.
| void graphene::wallet::wallet_api::flood_network | ( | string | prefix, |
| uint32_t | number_of_transactions | ||
| ) |
Definition at line 4038 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::fund_asset_fee_pool | ( | string | from, |
| string | symbol, | ||
| string | amount, | ||
| bool | broadcast = false |
||
| ) |
Pay into the fee pool for the given asset.
User-issued assets can optionally have a pool of the core asset which is automatically used to pay transaction fees for any transaction using that asset (using the asset's core exchange rate).
This command allows anyone to deposit the core asset into this fee pool.
| from | the name or id of the account sending the core asset |
| symbol | the name or id of the asset whose fee pool you wish to fund |
| amount | the amount of the core asset to deposit |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3817 of file wallet.cpp.
| account_object graphene::wallet::wallet_api::get_account | ( | string | account_name_or_id | ) | const |
Returns information about the given account.
| account_name_or_id | the name or id of the account to provide information about |
Definition at line 3554 of file wallet.cpp.
| uint64_t graphene::wallet::wallet_api::get_account_count | ( | ) | const |
Returns the number of accounts registered on the blockchain
Definition at line 3147 of file wallet.cpp.
| vector< operation_detail > graphene::wallet::wallet_api::get_account_history | ( | string | name, |
| int | limit | ||
| ) | const |
Returns the most recent operations on the named account.
This returns a list of operation history objects, which describe activity on the account.
| name | the name or id of the account |
| limit | the number of entries to return (starting from the most recent) |
operation_history_objects
Definition at line 3258 of file wallet.cpp.
| account_history_operation_detail graphene::wallet::wallet_api::get_account_history_by_operations | ( | string | name, |
| vector< uint16_t > | operation_types, | ||
| uint32_t | start, | ||
| int | limit | ||
| ) |
Get operations relevant to the specified account filtering by operation type, with transaction id
| name | the name or id of the account, whose history shoulde be queried |
| operation_types | The IDs of the operation we want to get operations in the account( 0 = transfer , 1 = limit order create, ...) |
| start | the sequence number where to start looping back throw the history |
| limit | the max number of entries to return (from start number) |
Definition at line 3366 of file wallet.cpp.
| account_id_type graphene::wallet::wallet_api::get_account_id | ( | string | account_name_or_id | ) | const |
Lookup the id of a named account.
| account_name_or_id | the name of the account to look up |
Definition at line 3573 of file wallet.cpp.
| vector< limit_order_object > graphene::wallet::wallet_api::get_account_limit_orders | ( | const string & | name_or_id, |
| const string & | base, | ||
| const string & | quote, | ||
| uint32_t | limit = 101 , |
||
| optional< limit_order_id_type > | ostart_id = optional<limit_order_id_type>() , |
||
| optional< price > | ostart_price = optional<price>() |
||
| ) |
Fetch all orders relevant to the specified account sorted descendingly by price.
| name_or_id | The name or ID of an account to retrieve |
| base | Base asset |
| quote | Quote asset |
| limit | The limitation of items each query can fetch (max: 101) |
| ostart_id | Start order id, fetch orders which price are lower than or equal to this order |
| ostart_price | Fetch orders with price lower than or equal to this price |
name_or_id
to the corresponding accountname_or_id
cannot be tied to an account, empty result will be returnedostart_id
and ostart_price
can be null
, if so the api will return the "first page" of orders; if ostart_id
is specified and valid, its price will be used to do page query preferentially, otherwise the ostart_price
will be used Definition at line 3432 of file wallet.cpp.
| asset_object graphene::wallet::wallet_api::get_asset | ( | string | asset_name_or_id | ) | const |
Returns information about the given asset.
| asset_name_or_id | the symbol or id of the asset in question |
Definition at line 3559 of file wallet.cpp.
| uint64_t graphene::wallet::wallet_api::get_asset_count | ( | ) | const |
Returns assets count registered on the blockchain.
Definition at line 3180 of file wallet.cpp.
| asset_id_type graphene::wallet::wallet_api::get_asset_id | ( | string | asset_name_or_id | ) | const |
Lookup the id of a named asset.
| asset_name_or_id | the symbol of an asset to look up |
Definition at line 3578 of file wallet.cpp.
| asset_bitasset_data_object graphene::wallet::wallet_api::get_bitasset_data | ( | string | asset_name_or_id | ) | const |
Returns the BitAsset-specific data for a given asset. Market-issued assets's behavior are determined both by their "BitAsset Data" and their basic asset data, as returned by get_asset()
.
| asset_name_or_id | the symbol or id of the BitAsset in question |
Definition at line 3566 of file wallet.cpp.
| map< string, public_key_type > graphene::wallet::wallet_api::get_blind_accounts | ( | ) | const |
Definition at line 4441 of file wallet.cpp.
| vector< asset > graphene::wallet::wallet_api::get_blind_balances | ( | string | key_or_label | ) |
Definition at line 4480 of file wallet.cpp.
| optional< signed_block_with_info > graphene::wallet::wallet_api::get_block | ( | uint32_t | num | ) |
Definition at line 3142 of file wallet.cpp.
| vector< call_order_object > graphene::wallet::wallet_api::get_call_orders | ( | string | a, |
| uint32_t | limit | ||
| ) | const |
Definition at line 3448 of file wallet.cpp.
| vector< collateral_bid_object > graphene::wallet::wallet_api::get_collateral_bids | ( | string | asset, |
| uint32_t | limit = 100 , |
||
| uint32_t | start = 0 |
||
| ) | const |
Returns the collateral_bid object for the given MPA
| asset | the name or id of the asset |
| limit | the number of entries to return |
| start | the sequence number where to start looping back throw the history |
collateral_bid_objects
Definition at line 3458 of file wallet.cpp.
| committee_member_object graphene::wallet::wallet_api::get_committee_member | ( | string | owner_account | ) |
Returns information about the given committee_member.
| owner_account | the name or id of the committee_member account owner, or the id of the committee_member |
Definition at line 3892 of file wallet.cpp.
| dynamic_global_property_object graphene::wallet::wallet_api::get_dynamic_global_properties | ( | ) | const |
Returns the block chain's rapidly-changing properties. The returned object contains information that changes every block interval such as the head block number, the next witness, etc.
get_global_properties()
for less-frequently changing properties Definition at line 4079 of file wallet.cpp.
| full_account graphene::wallet::wallet_api::get_full_account | ( | const string & | name_or_id | ) |
Fetch all objects relevant to the specified account.
| name_or_id | Must be the name or ID of an account to retrieve |
This function fetches all relevant objects for the given account. If the string of name_or_id
cannot be tied to an account, that input will be ignored.
Definition at line 3417 of file wallet.cpp.
| global_property_object graphene::wallet::wallet_api::get_global_properties | ( | ) | const |
Returns the block chain's slowly-changing settings. This object contains all of the properties of the blockchain that are fixed or that change only once per maintenance interval (daily) such as the current list of witnesses, committee_members, block interval, etc.
get_dynamic_global_properties()
for frequently changing properties Definition at line 4074 of file wallet.cpp.
| fc::optional< fc::variant > graphene::wallet::wallet_api::get_htlc | ( | string | htlc_id | ) | const |
Returns information about the given HTLC object.
| htlc_id | the id of the HTLC object. |
Definition at line 3193 of file wallet.cpp.
| string graphene::wallet::wallet_api::get_key_label | ( | public_key_type | key | ) | const |
Definition at line 4404 of file wallet.cpp.
| vector< limit_order_object > graphene::wallet::wallet_api::get_limit_orders | ( | string | a, |
| string | b, | ||
| uint32_t | limit | ||
| ) | const |
Definition at line 3443 of file wallet.cpp.
| vector< bucket_object > graphene::wallet::wallet_api::get_market_history | ( | string | symbol, |
| string | symbol2, | ||
| uint32_t | bucket, | ||
| fc::time_point_sec | start, | ||
| fc::time_point_sec | end | ||
| ) | const |
Definition at line 3422 of file wallet.cpp.
| map< string, public_key_type > graphene::wallet::wallet_api::get_my_blind_accounts | ( | ) | const |
Definition at line 4448 of file wallet.cpp.
| variant graphene::wallet::wallet_api::get_object | ( | object_id_type | id | ) | const |
Returns the blockchain object corresponding to the given id.
This generic function can be used to retrieve any object from the blockchain that is assigned an ID. Certain types of objects have specialized convenience functions to return their objects – e.g., assets have get_asset()
, accounts have get_account()
, but this function will work for any object.
| id | the id of the object to return |
Definition at line 3485 of file wallet.cpp.
| order_book graphene::wallet::wallet_api::get_order_book | ( | const string & | base, |
| const string & | quote, | ||
| unsigned | limit = 50 |
||
| ) |
Definition at line 4933 of file wallet.cpp.
| string graphene::wallet::wallet_api::get_private_key | ( | public_key_type | pubkey | ) | const |
Get the WIF private key corresponding to a public key. The private key must already be in the wallet.
Definition at line 4412 of file wallet.cpp.
| operation graphene::wallet::wallet_api::get_prototype_operation | ( | string | operation_type | ) |
Returns an uninitialized object representing a given blockchain operation.
This returns a default-initialized object of the given type; it can be used during early development of the wallet when we don't yet have custom commands for creating all of the operations the blockchain supports.
Any operation the blockchain supports can be created using the transaction builder's add_operation_to_builder_transaction()
, but to do that from the CLI you need to know what the JSON form of the operation looks like. This will give you a template you can fill in. It's better than nothing.
| operation_type | the type of operation to return, must be one of the operations defined in graphene/chain/operations.hpp (e.g., "global_parameters_update_operation") |
Definition at line 3991 of file wallet.cpp.
| public_key_type graphene::wallet::wallet_api::get_public_key | ( | string | label | ) | const |
Definition at line 4417 of file wallet.cpp.
| vector< operation_detail > graphene::wallet::wallet_api::get_relative_account_history | ( | string | name, |
| uint32_t | stop, | ||
| int | limit, | ||
| uint32_t | start | ||
| ) | const |
Returns the relative operations on the named account from start number.
| name | the name or id of the account |
| stop | Sequence number of earliest operation. |
| limit | the number of entries to return |
| start | the sequence number where to start looping back throw the history |
operation_history_objects
Definition at line 3321 of file wallet.cpp.
| std::map< string, std::function< string(fc::variant, const fc::variants &)> > graphene::wallet::wallet_api::get_result_formatters | ( | ) | const |
Definition at line 4176 of file wallet.cpp.
| vector< force_settlement_object > graphene::wallet::wallet_api::get_settle_orders | ( | string | a, |
| uint32_t | limit | ||
| ) | const |
Definition at line 3453 of file wallet.cpp.
|
inline |
This method is used to convert a JSON transaction to its transactin ID.
Definition at line 880 of file wallet.hpp.
| vector< vesting_balance_object_with_info > graphene::wallet::wallet_api::get_vesting_balances | ( | string | account_name | ) |
Get information about a vesting balance object.
| account_name | An account name, account ID, or vesting balance object ID. |
Definition at line 3935 of file wallet.cpp.
| string graphene::wallet::wallet_api::get_wallet_filename | ( | ) | const |
Returns the current wallet filename.
This is the filename that will be used when automatically saving the wallet.
Definition at line 3490 of file wallet.cpp.
| witness_object graphene::wallet::wallet_api::get_witness | ( | string | owner_account | ) |
Returns information about the given witness.
| owner_account | the name or id of the witness account owner, or the id of the witness |
Definition at line 3887 of file wallet.cpp.
| string graphene::wallet::wallet_api::gethelp | ( | const string & | method | ) | const |
Returns detailed help on a single API command.
| method | the name of the API command you want help with |
Definition at line 4102 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::global_settle_asset | ( | string | symbol, |
| price | settle_price, | ||
| bool | broadcast = false |
||
| ) |
Forces a global settling of the given asset (black swan or prediction markets).
In order to use this operation, asset_to_settle must have the global_settle flag set
When this operation is executed all balances are converted into the backing asset at the settle_price and all open margin positions are called at the settle price. If this asset is used as backing for other bitassets, those bitassets will be force settled at their current feed price.
settle_asset()
may be used by any user owning the asset| symbol | the name or id of the asset to force settlement on |
| settle_price | the price at which to settle |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3840 of file wallet.cpp.
| string graphene::wallet::wallet_api::help | ( | ) | const |
Returns a list of all commands supported by the wallet API.
This lists each command, along with its arguments and return types. For more detailed help on a single command, use get_help()
Definition at line 4084 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::htlc_create | ( | string | source, |
| string | destination, | ||
| string | amount, | ||
| string | asset_symbol, | ||
| string | hash_algorithm, | ||
| const std::string & | preimage_hash, | ||
| uint32_t | preimage_size, | ||
| const uint32_t | claim_period_seconds, | ||
| bool | broadcast = false |
||
| ) |
Create a hashed time lock contract
| source | The account that will reserve the funds (and pay the fee) |
| destination | The account that will receive the funds if the preimage is presented |
| amount | the amount of the asset that is to be traded |
| asset_symbol | The asset that is to be traded |
| hash_algorithm | the algorithm used to generate the hash from the preimage. Can be RIPEMD160, SHA1 or SHA256. |
| preimage_hash | the hash of the preimage |
| preimage_size | the size of the preimage in bytes |
| claim_period_seconds | how long after creation until the lock expires |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 3185 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::htlc_extend | ( | string | htlc_id, |
| string | issuer, | ||
| const uint32_t | seconds_to_add, | ||
| bool | broadcast = false |
||
| ) |
Definition at line 3252 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::htlc_redeem | ( | string | htlc_id, |
| string | issuer, | ||
| const std::string & | preimage, | ||
| bool | broadcast = false |
||
| ) |
Definition at line 3245 of file wallet.cpp.
| bool graphene::wallet::wallet_api::import_account_keys | ( | string | filename, |
| string | password, | ||
| string | src_account_name, | ||
| string | dest_account_name | ||
| ) |
Definition at line 3672 of file wallet.cpp.
| map< string, bool > graphene::wallet::wallet_api::import_accounts | ( | string | filename, |
| string | password | ||
| ) |
Definition at line 3602 of file wallet.cpp.
| vector< signed_transaction > graphene::wallet::wallet_api::import_balance | ( | string | account_name_or_id, |
| const vector< string > & | wif_keys, | ||
| bool | broadcast | ||
| ) |
This call will construct transaction(s) that will claim all balances controled by wif_keys and deposit them into the given account.
Definition at line 4226 of file wallet.cpp.
| bool graphene::wallet::wallet_api::import_key | ( | string | account_name_or_id, |
| string | wif_key | ||
| ) |
Imports the private key for an existing account.
The private key must match either an owner key or an active key for the named account.
| account_name_or_id | the account owning the key |
| wif_key | the private key in WIF format |
Definition at line 3583 of file wallet.cpp.
| variant graphene::wallet::wallet_api::info | ( | ) |
Definition at line 3724 of file wallet.cpp.
| bool graphene::wallet::wallet_api::is_locked | ( | ) | const |
Checks whether the wallet is locked (is unable to use its private keys).
This state can be changed by calling lock()
or unlock()
.
Definition at line 4181 of file wallet.cpp.
| bool graphene::wallet::wallet_api::is_new | ( | ) | const |
Checks whether the wallet has just been created and has not yet had a password set.
Calling set_password
will transition the wallet to the locked state.
Definition at line 4185 of file wallet.cpp.
| bool graphene::wallet::wallet_api::is_public_key_registered | ( | string | public_key | ) | const |
Determine whether a textual representation of a public key (in Base-58 format) is currently linked to any registered (i.e. non-stealth) account on the blockchain
| public_key | Public key |
Definition at line 3473 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::issue_asset | ( | string | to_account, |
| string | amount, | ||
| string | symbol, | ||
| string | memo, | ||
| bool | broadcast = false |
||
| ) |
Issue new shares of an asset.
| to_account | the name or id of the account to receive the new shares |
| amount | the amount to issue, in nominal units |
| symbol | the ticker symbol of the asset to issue |
| memo | a memo to include in the transaction, readable by the recipient |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3758 of file wallet.cpp.
| vector< asset > graphene::wallet::wallet_api::list_account_balances | ( | const string & | id | ) |
List the balances of an account. Each account can have multiple balances, one for each type of asset owned by that account. The returned list will only contain assets for which the account has a nonzero balance
| id | the name or id of the account whose balances you want |
Definition at line 3162 of file wallet.cpp.
| map< string, account_id_type > graphene::wallet::wallet_api::list_accounts | ( | const string & | lowerbound, |
| uint32_t | limit | ||
| ) |
Lists all accounts registered in the blockchain. This returns a list of all account names and their account ids, sorted by account name.
Use the lowerbound
and limit parameters to page through the list. To retrieve all accounts, start by setting lowerbound
to the empty string ""
, and then each iteration, pass the last account name returned as the lowerbound
for the next list_accounts()
call.
| lowerbound | the name of the first account to return. If the named account does not exist, the list will start at the account that comes after lowerbound |
| limit | the maximum number of accounts to return (max: 1000) |
Definition at line 3157 of file wallet.cpp.
| vector< asset_object > graphene::wallet::wallet_api::list_assets | ( | const string & | lowerbound, |
| uint32_t | limit | ||
| ) | const |
Lists all assets registered on the blockchain.
To list all assets, pass the empty string ""
for the lowerbound to start at the beginning of the list, and iterate as necessary.
| lowerbound | the symbol of the first asset to include in the list. |
| limit | the maximum number of assets to return (max: 100) |
Definition at line 3175 of file wallet.cpp.
| map< string, committee_member_id_type > graphene::wallet::wallet_api::list_committee_members | ( | const string & | lowerbound, |
| uint32_t | limit | ||
| ) |
Lists all committee_members registered in the blockchain. This returns a list of all account names that own committee_members, and the associated committee_member id, sorted by name. This lists committee_members whether they are currently voted in or not.
Use the lowerbound
and limit parameters to page through the list. To retrieve all committee_members, start by setting lowerbound
to the empty string ""
, and then each iteration, pass the last committee_member name returned as the lowerbound
for the next list_committee_members()
call.
| lowerbound | the name of the first committee_member to return. If the named committee_member does not exist, the list will start at the committee_member that comes after lowerbound |
| limit | the maximum number of committee_members to return (max: 1000) |
Definition at line 3882 of file wallet.cpp.
| vector< account_object > graphene::wallet::wallet_api::list_my_accounts | ( | ) |
Lists all accounts controlled by this wallet. This returns a list of the full account objects for all accounts whose private keys we possess.
Definition at line 3152 of file wallet.cpp.
| map< string, witness_id_type > graphene::wallet::wallet_api::list_witnesses | ( | const string & | lowerbound, |
| uint32_t | limit | ||
| ) |
Lists all witnesses registered in the blockchain. This returns a list of all account names that own witnesses, and the associated witness id, sorted by name. This lists witnesses whether they are currently voted in or not.
Use the lowerbound
and limit parameters to page through the list. To retrieve all witnesss, start by setting lowerbound
to the empty string ""
, and then each iteration, pass the last witness name returned as the lowerbound
for the next list_witnesss()
call.
| lowerbound | the name of the first witness to return. If the named witness does not exist, the list will start at the witness that comes after lowerbound |
| limit | the maximum number of witnesss to return (max: 1000) |
Definition at line 3877 of file wallet.cpp.
| bool graphene::wallet::wallet_api::load_wallet_file | ( | string | wallet_filename = "" | ) |
Loads a specified Graphene wallet.
The current wallet is closed before the new wallet is loaded.
set_wallet_filename()
| wallet_filename | the filename of the wallet JSON file to load. If wallet_filename is empty, it reloads the existing wallet file |
Definition at line 4160 of file wallet.cpp.
| void graphene::wallet::wallet_api::lock | ( | ) |
Locks the wallet immediately.
Definition at line 4195 of file wallet.cpp.
| void graphene::wallet::wallet_api::network_add_nodes | ( | const vector< string > & | nodes | ) |
Definition at line 4028 of file wallet.cpp.
| vector< variant > graphene::wallet::wallet_api::network_get_connected_peers | ( | ) |
Definition at line 4033 of file wallet.cpp.
| string graphene::wallet::wallet_api::normalize_brain_key | ( | string | s | ) | const |
Transforms a brain key to reduce the chance of errors when re-entering the key from memory.
This takes a user-supplied brain key and normalizes it into the form used for generating private keys. In particular, this upper-cases all ASCII characters and collapses multiple spaces into one.
| s | the brain key as supplied by the user |
Definition at line 3719 of file wallet.cpp.
| transaction graphene::wallet::wallet_api::preview_builder_transaction | ( | transaction_handle_type | handle | ) |
Definition at line 3515 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::propose_builder_transaction | ( | transaction_handle_type | handle, |
| time_point_sec | expiration = time_point::now() + fc::minutes(1) , |
||
| uint32_t | review_period_seconds = 0 , |
||
| bool | broadcast = true |
||
| ) |
Definition at line 3530 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::propose_builder_transaction2 | ( | transaction_handle_type | handle, |
| string | account_name_or_id, | ||
| time_point_sec | expiration = time_point::now() + fc::minutes(1) , |
||
| uint32_t | review_period_seconds = 0 , |
||
| bool | broadcast = true |
||
| ) |
Definition at line 3539 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::propose_fee_change | ( | const string & | proposing_account, |
| fc::time_point_sec | expiration_time, | ||
| const variant_object & | changed_values, | ||
| bool | broadcast = false |
||
| ) |
Propose a fee change.
| proposing_account | The account paying the fee to propose the tx |
| expiration_time | Timestamp specifying when the proposal will either take effect or expire. |
| changed_values | Map of operation type to new fee. Operations may be specified by name or ID. The "scale" key changes the scale. All other operations will maintain current values. |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 4054 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::propose_parameter_change | ( | const string & | proposing_account, |
| fc::time_point_sec | expiration_time, | ||
| const variant_object & | changed_values, | ||
| bool | broadcast = false |
||
| ) |
Creates a transaction to propose a parameter change.
Multiple parameters can be specified if an atomic change is desired.
| proposing_account | The account paying the fee to propose the tx |
| expiration_time | Timestamp specifying when the proposal will either take effect or expire. |
| changed_values | The values to change; all other chain parameters are filled in with default values |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 4044 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::publish_asset_feed | ( | string | publishing_account, |
| string | symbol, | ||
| price_feed | feed, | ||
| bool | broadcast = false |
||
| ) |
Publishes a price feed for the named asset.
Price feed providers use this command to publish their price feeds for market-issued assets. A price feed is used to tune the market for a particular market-issued asset. For each value in the feed, the median across all committee_member feeds for that asset is calculated and the market for the asset is configured with the median of that value.
The feed object in this command contains three prices: a call price limit, a short price limit, and a settlement price. The call limit price is structured as (collateral asset) / (debt asset) and the short limit price is structured as (asset for sale) / (collateral asset). Note that the asset IDs are opposite to eachother, so if we're publishing a feed for USD, the call limit price will be CORE/USD and the short limit price will be USD/CORE. The settlement price may be flipped either direction, as long as it is a ratio between the market-issued asset and its collateral.
| publishing_account | the account publishing the price feed |
| symbol | the name or id of the asset whose feed we're publishing |
| feed | the price_feed object containing the three prices making up the feed |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3809 of file wallet.cpp.
| void graphene::wallet::wallet_api::quit | ( | ) |
Quitting from BitShares wallet.
The current wallet will be closed.
Definition at line 4165 of file wallet.cpp.
| string graphene::wallet::wallet_api::read_memo | ( | const memo_data & | memo | ) |
Read a memo.
| memo | JSON-enconded memo. |
Definition at line 4398 of file wallet.cpp.
| blind_receipt graphene::wallet::wallet_api::receive_blind_transfer | ( | string | confirmation_receipt, |
| string | opt_from, | ||
| string | opt_memo | ||
| ) |
Given a confirmation receipt, this method will parse it for a blinded balance and confirm that it exists in the blockchain. If it exists then it will report the amount received and who sent it.
| opt_from | if not empty and the sender is a unknown public key, then the unknown public key will be given the label opt_from |
| confirmation_receipt | a base58 encoded stealth confirmation |
| opt_memo | a self-defined label for this transfer to be saved in local wallet file |
Definition at line 4839 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::register_account | ( | string | name, |
| public_key_type | owner, | ||
| public_key_type | active, | ||
| string | registrar_account, | ||
| string | referrer_account, | ||
| uint32_t | referrer_percent, | ||
| bool | broadcast = false |
||
| ) |
Registers a third party's account on the blockckain.
This function is used to register an account for which you do not own the private keys. When acting as a registrar, an end user will generate their own private keys and send you the public keys. The registrar will use this function to register the account on behalf of the end user.
| name | the name of the account, must be unique on the blockchain. Shorter names are more expensive to register; the rules are still in flux, but in general names of more than 8 characters with at least one digit will be cheap. |
| owner | the owner key for the new account |
| active | the active key for the new account |
| registrar_account | the account which will pay the fee to register the user |
| referrer_account | the account who is acting as a referrer, and may receive a portion of the user's transaction fees. This can be the same as the registrar_account if there is no referrer. |
| referrer_percent | the percentage (0 - 100) of the new user's transaction fees not claimed by the blockchain that will be distributed to the referrer; the rest will be sent to the registrar. Will be multiplied by GRAPHENE_1_PERCENT when constructing the transaction. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3739 of file wallet.cpp.
| void graphene::wallet::wallet_api::remove_builder_transaction | ( | transaction_handle_type | handle | ) |
Definition at line 3549 of file wallet.cpp.
| void graphene::wallet::wallet_api::replace_operation_in_builder_transaction | ( | transaction_handle_type | handle, |
| unsigned | operation_index, | ||
| const operation & | new_op | ||
| ) |
Definition at line 3505 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::reserve_asset | ( | string | from, |
| string | amount, | ||
| string | symbol, | ||
| bool | broadcast = false |
||
| ) |
Burns the given user-issued asset.
This command burns the user-issued asset to reduce the amount in circulation.
| from | the account containing the asset you wish to burn |
| amount | the amount to burn, in nominal units |
| symbol | the name or id of the asset to burn |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3832 of file wallet.cpp.
| void graphene::wallet::wallet_api::save_wallet_file | ( | string | wallet_filename = "" | ) |
Saves the current wallet to the given filename.
set_wallet_filename()
to make the filename persist. | wallet_filename | the filename of the new wallet JSON file to create or overwrite. If wallet_filename is empty, save to the current filename. |
Definition at line 4170 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::sell_asset | ( | string | seller_account, |
| string | amount_to_sell, | ||
| string | symbol_to_sell, | ||
| string | min_to_receive, | ||
| string | symbol_to_receive, | ||
| uint32_t | timeout_sec = 0 , |
||
| bool | fill_or_kill = false , |
||
| bool | broadcast = false |
||
| ) |
Place a limit order attempting to sell one asset for another.
Buying and selling are the same operation on Graphene; if you want to buy BTS with USD, you should sell USD for BTS.
The blockchain will attempt to sell the symbol_to_sell
for as much symbol_to_receive
as possible, as long as the price is at least min_to_receive
/ amount_to_sell
.
In addition to the transaction fees, market fees will apply as specified by the issuer of both the selling asset and the receiving asset as a percentage of the amount exchanged.
If either the selling asset or the receiving asset is whitelist restricted, the order will only be created if the seller is on the whitelist of the restricted asset type.
Market orders are matched in the order they are included in the block chain.
| seller_account | the account providing the asset being sold, and which will receive the proceeds of the sale. |
| amount_to_sell | the amount of the asset being sold to sell (in nominal units) |
| symbol_to_sell | the name or id of the asset to sell |
| min_to_receive | the minimum amount you are willing to receive in return for selling the entire amount_to_sell |
| symbol_to_receive | the name or id of the asset you wish to receive |
| timeout_sec | if the order does not fill immediately, this is the length of time the order will remain on the order books before it is cancelled and the un-spent funds are returned to the seller's account |
| fill_or_kill | if true, the order will only be included in the blockchain if it is filled immediately; if false, an open order will be left on the books to fill any amount that cannot be filled immediately. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 4357 of file wallet.cpp.
| string graphene::wallet::wallet_api::serialize_transaction | ( | signed_transaction | tx | ) | const |
Converts a signed_transaction in JSON form to its binary representation.
| tx | the transaction to serialize |
Definition at line 3480 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::set_desired_witness_and_committee_member_count | ( | string | account_to_modify, |
| uint16_t | desired_number_of_witnesses, | ||
| uint16_t | desired_number_of_committee_members, | ||
| bool | broadcast = false |
||
| ) |
Set your vote for the number of witnesses and committee_members in the system.
Each account can voice their opinion on how many committee_members and how many witnesses there should be in the active committee_member/active witness list. These are independent of each other. You must vote your approval of at least as many committee_members or witnesses as you claim there should be (you can't say that there should be 20 committee_members but only vote for 10).
There are maximum values for each set in the blockchain parameters (currently defaulting to 1001).
This setting can be changed at any time. If your account has a voting proxy set, your preferences will be ignored.
| account_to_modify | the name or id of the account to update |
| desired_number_of_witnesses | desired number of active witnesses |
| desired_number_of_committee_members | desired number of active committee members |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 3972 of file wallet.cpp.
| asset graphene::wallet::wallet_api::set_fees_on_builder_transaction | ( | transaction_handle_type | handle, |
| string | fee_asset = GRAPHENE_SYMBOL |
||
| ) |
Definition at line 3510 of file wallet.cpp.
| bool graphene::wallet::wallet_api::set_key_label | ( | public_key_type | key, |
| string | label | ||
| ) |
These methods are used for stealth transfers This method can be used to set the label for a public key
Definition at line 4427 of file wallet.cpp.
| void graphene::wallet::wallet_api::set_password | ( | string | password | ) |
Sets a new password on the wallet.
The wallet must be either 'new' or 'unlocked' to execute this command.
Definition at line 4218 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::set_voting_proxy | ( | string | account_to_modify, |
| optional< string > | voting_account, | ||
| bool | broadcast = false |
||
| ) |
Set the voting proxy for an account.
If a user does not wish to take an active part in voting, they can choose to allow another account to vote their stake.
Setting a vote proxy does not remove your previous votes from the blockchain, they remain there but are ignored. If you later null out your vote proxy, your previous votes will take effect again.
This setting can be changed at any time.
| account_to_modify | the name or id of the account to update |
| voting_account | the name or id of an account authorized to vote account_to_modify's shares, or null to vote your own shares |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 3965 of file wallet.cpp.
| void graphene::wallet::wallet_api::set_wallet_filename | ( | string | wallet_filename | ) |
Sets the wallet filename used for future writes.
This does not trigger a save, it only changes the default filename that will be used the next time a save is triggered.
| wallet_filename | the new filename to use for future saves |
Definition at line 3981 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::settle_asset | ( | string | account_to_settle, |
| string | amount_to_settle, | ||
| string | symbol, | ||
| bool | broadcast = false |
||
| ) |
Schedules a market-issued asset for automatic settlement.
Holders of market-issued assests may request a forced settlement for some amount of their asset. This means that the specified sum will be locked by the chain and held for the settlement period, after which time the chain will choose a margin posision holder and buy the settled asset using the margin's collateral. The price of this sale will be based on the feed price for the market-issued asset being settled. The exact settlement price will be the feed price at the time of settlement with an offset in favor of the margin position, where the offset is a blockchain parameter set in the global_property_object.
| account_to_settle | the name or id of the account owning the asset |
| amount_to_settle | the amount of the named asset to schedule for settlement |
| symbol | the name or id of the asset to settlement on |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3847 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::sign_builder_transaction | ( | transaction_handle_type | transaction_handle, |
| bool | broadcast = true |
||
| ) |
Definition at line 3520 of file wallet.cpp.
| memo_data graphene::wallet::wallet_api::sign_memo | ( | string | from, |
| string | to, | ||
| string | memo | ||
| ) |
Sign a memo message.
| from | the name or id of signing account; or a public key. |
| to | the name or id of receiving account; or a public key. |
| memo | text to sign. |
Definition at line 4392 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::sign_transaction | ( | signed_transaction | tx, |
| bool | broadcast = false |
||
| ) |
Signs a transaction.
Given a fully-formed transaction that is only lacking signatures, this signs the transaction with the necessary keys and optionally broadcasts the transaction
| tx | the unsigned transaction |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 3986 of file wallet.cpp.
| brain_key_info graphene::wallet::wallet_api::suggest_brain_key | ( | ) | const |
Suggests a safe brain key to use for creating your account. create_account_with_brain_key()
requires you to specify a 'brain key', a long passphrase that provides enough entropy to generate cyrptographic keys. This function will suggest a suitably random string that should be easy to write down (and, with effort, memorize).
Definition at line 3463 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::transfer | ( | string | from, |
| string | to, | ||
| string | amount, | ||
| string | asset_symbol, | ||
| string | memo, | ||
| bool | broadcast = false |
||
| ) |
Transfer an amount from one account to another.
| from | the name or id of the account sending the funds |
| to | the name or id of the account receiving the funds |
| amount | the amount to send (in nominal units – to send half of a BTS, specify 0.5) |
| asset_symbol | the symbol or id of the asset to send |
| memo | a memo to attach to the transaction. The memo will be encrypted in the transaction and readable for the receiver. There is no length limit other than the limit imposed by maximum transaction size, but transaction increase with transaction size |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3764 of file wallet.cpp.
|
inline |
This method works just like transfer, except it always broadcasts and returns the transaction ID along with the signed transaction.
Definition at line 867 of file wallet.hpp.
| blind_confirmation graphene::wallet::wallet_api::transfer_from_blind | ( | string | from_blind_account_key_or_label, |
| string | to_account_id_or_name, | ||
| string | amount, | ||
| string | asset_symbol, | ||
| bool | broadcast = false |
||
| ) |
Transfers funds from a set of blinded balances to a public account balance.
Definition at line 4513 of file wallet.cpp.
| blind_confirmation graphene::wallet::wallet_api::transfer_to_blind | ( | string | from_account_id_or_name, |
| string | asset_symbol, | ||
| vector< pair< string, string >> | to_amounts, | ||
| bool | broadcast = false |
||
| ) |
Transfers a public balance from from_account_id_or_name
to one or more blinded balances using a stealth transfer.
Transfers a public balance from to one or more blinded balances using a stealth transfer.
commitments must be in sorted order
| to_amounts | map from key or label to amount |
Definition at line 4755 of file wallet.cpp.
| void graphene::wallet::wallet_api::unlock | ( | string | password | ) |
Unlocks the wallet.
The wallet remain unlocked until the lock
is called or the program exits.
| password | the password previously set with set_password() |
Definition at line 4206 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::update_asset | ( | string | symbol, |
| optional< string > | new_issuer, | ||
| asset_options | new_options, | ||
| bool | broadcast = false |
||
| ) |
Update the core options on an asset. There are a number of options which all assets in the network use. These options are enumerated in the asset_object::asset_options struct. This command is used to update these options for an existing asset.
update_bitasset()
instead.| symbol | the name or id of the asset to update |
| new_issuer | if changing the asset's issuer, the name or id of the new issuer. null if you wish to remain the issuer of the asset |
| new_options | the new asset_options object, which will entirely replace the existing options. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3780 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::update_asset_feed_producers | ( | string | symbol, |
| flat_set< string > | new_feed_producers, | ||
| bool | broadcast = false |
||
| ) |
Update the set of feed-producing accounts for a BitAsset.
BitAssets have price feeds selected by taking the median values of recommendations from a set of feed producers. This command is used to specify which accounts may produce feeds for a given BitAsset.
| symbol | the name or id of the asset to update |
| new_feed_producers | a list of account names or ids which are authorized to produce feeds for the asset. this list will completely replace the existing list |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3802 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::update_asset_issuer | ( | string | symbol, |
| string | new_issuer, | ||
| bool | broadcast = false |
||
| ) |
Update the issuer of an asset Since this call requires the owner authority of the current issuer to sign the transaction, a separated operation is used to change the issuer. This call simplifies the use of this action.
| symbol | the name or id of the asset to update |
| new_issuer | if changing the asset's issuer, the name or id of the new issuer. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3788 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::update_bitasset | ( | string | symbol, |
| bitasset_options | new_options, | ||
| bool | broadcast = false |
||
| ) |
Update the options specific to a BitAsset.
BitAssets have some options which are not relevant to other asset types. This operation is used to update those options an an existing BitAsset.
| symbol | the name or id of the asset to update, which must be a market-issued asset |
| new_options | the new bitasset_options object, which will entirely replace the existing options. |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3795 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::update_witness | ( | string | witness_name, |
| string | url, | ||
| string | block_signing_key, | ||
| bool | broadcast = false |
||
| ) |
Update a witness object owned by the given account.
| witness_name | The name of the witness's owner account. Also accepts the ID of the owner account or the ID of the witness. |
| url | Same as for create_witness. The empty string makes it remain the same. |
| block_signing_key | The new block signing public key. The empty string makes it remain the same. |
| broadcast | true if you wish to broadcast the transaction. |
Definition at line 3926 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::update_worker_votes | ( | string | account, |
| worker_vote_delta | delta, | ||
| bool | broadcast = false |
||
| ) |
Update your votes for a worker
| account | The account which will pay the fee and update votes. |
| delta | {"vote_for" : [...], "vote_against" : [...], "vote_abstain" : [...]} |
| broadcast | true if you wish to broadcast the transaction. |
Definition at line 3918 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::upgrade_account | ( | string | name, |
| bool | broadcast | ||
| ) |
Upgrades an account to prime status. This makes the account holder a 'lifetime member'.
| name | the name or id of the account to upgrade |
| broadcast | true to broadcast the transaction on the network |
Definition at line 4352 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::vote_for_committee_member | ( | string | voting_account, |
| string | committee_member, | ||
| bool | approve, | ||
| bool | broadcast = false |
||
| ) |
Vote for a given committee_member.
An account can publish a list of all committee_memberes they approve of. This command allows you to add or remove committee_memberes from this list. Each account's vote is weighted according to the number of shares of the core asset owned by that account at the time the votes are tallied.
| voting_account | the name or id of the account who is voting with their shares |
| committee_member | the name or id of the committee_member' owner account |
| approve | true if you wish to vote in favor of that committee_member, false to remove your vote in favor of that committee_member |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 3949 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::vote_for_witness | ( | string | voting_account, |
| string | witness, | ||
| bool | approve, | ||
| bool | broadcast = false |
||
| ) |
Vote for a given witness.
An account can publish a list of all witnesses they approve of. This command allows you to add or remove witnesses from this list. Each account's vote is weighted according to the number of shares of the core asset owned by that account at the time the votes are tallied.
| voting_account | the name or id of the account who is voting with their shares |
| witness | the name or id of the witness' owner account |
| approve | true if you wish to vote in favor of that witness, false to remove your vote in favor of that witness |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 3957 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::whitelist_account | ( | string | authorizing_account, |
| string | account_to_list, | ||
| account_whitelist_operation::account_listing | new_listing_status, | ||
| bool | broadcast = false |
||
| ) |
Whitelist and blacklist accounts, primarily for transacting in whitelisted assets.
Accounts can freely specify opinions about other accounts, in the form of either whitelisting or blacklisting them. This information is used in chain validation only to determine whether an account is authorized to transact in an asset type which enforces a whitelist, but third parties can use this information for other uses as well, as long as it does not conflict with the use of whitelisted assets.
An asset which enforces a whitelist specifies a list of accounts to maintain its whitelist, and a list of accounts to maintain its blacklist. In order for a given account A to hold and transact in a whitelisted asset S, A must be whitelisted by at least one of S's whitelist_authorities and blacklisted by none of S's blacklist_authorities. If A receives a balance of S, and is later removed from the whitelist(s) which allowed it to hold S, or added to any blacklist S specifies as authoritative, A's balance of S will be frozen until A's authorization is reinstated.
| authorizing_account | the account who is doing the whitelisting |
| account_to_list | the account being whitelisted |
| new_listing_status | the new whitelisting status |
| broadcast | true to broadcast the transaction on the network |
Definition at line 3863 of file wallet.cpp.
| signed_transaction graphene::wallet::wallet_api::withdraw_vesting | ( | string | witness_name, |
| string | amount, | ||
| string | asset_symbol, | ||
| bool | broadcast = false |
||
| ) |
Withdraw a vesting balance.
| witness_name | The account name of the witness, also accepts account ID or vesting balance ID type. |
| amount | The amount to withdraw. |
| asset_symbol | The symbol of the asset to withdraw. |
| broadcast | true if you wish to broadcast the transaction |
Definition at line 3940 of file wallet.cpp.
| fc::signal<void(bool)> graphene::wallet::wallet_api::lock_changed |
Definition at line 1713 of file wallet.hpp.
| std::shared_ptr<detail::wallet_api_impl> graphene::wallet::wallet_api::my |
Definition at line 1714 of file wallet.hpp.


Italian international Balotelli scored in Sunday's 2-1 Serie A defeat but his performance was overshadowed by his fury at the racist abuse from a section of Verona's supporters.
The Lega Serie A's disciplinary commission on Tuesday said that the chants "were clearly perceived, in addition to the player, also by the federation representative positioned nearby."
The commission found that "after these cries .. there were also cries of support followed by long applause".
As a result they ordered that a section known as the "Poltrone Est" in the Bentegodi Stadium, which can host around 3,500 spectators in the 30,000-capacity stadium, be closed for one match.
Despite denials of abuse from Verona, a video published on Twitter by a fan showed a number of supporters directing abuse at Balotelli before the forward booted the ball at them in the stands.
The match was suspended for a few minutes around the hour mark as Balotelli tried to force himself from the field before a message was read out on the stadium loudspeaker threatening that both teams would leave the field if there was a repeat of any abuse.
The message was whistled loudly by a large number of the home fans.
Verona coach Ivan Juric insisted he heard "no racists chants, nothing at all," adding that "to say otherwise is a lie".
Earlier Verona announced they have banned Luca Castellini, the leader of their hard-core ultras supporters group, until June 2030 for saying that Balotelli would never be "completely Italian".
"Balotelli's Italian because he has Italian citizenship, but he can never be completely Italian," Castellini said in a radio interview on Monday.
When asked if Verona fans were racist, Castellini added: "We have a negro in our team and he scored yesterday and all of Verona applauded."
Verona barred Castellini from their stadium "based on considerations and expressions seriously contrary to those that distinguish the ethical principles and values of our club".
Balotelli, 29, who was born in Palermo to Ghanaian parents but was raised just outside Brescia, had to be held back by players from both teams to stop him leaving the pitch.
"Balotelli's a clown. He only heard it in his own head," continued Castellini.
Former Manchester City and Inter Milan striker Balotelli, who obtained Italian citizenship at the age of 18, has been capped 36 times for Italy.


{include file="publics/head"} Reset Password Email Verification Password Conform Password Reset Password Welcome Login background system {include file="publics/footer"}


Is Phd: {{ employee.isPhd }}
DOJ: {{ employee.doj | date }}
Teaches: {{ employee.teaches }}
Salary: {{ employee.salary | currency }}


|
We're so glad that you love So Nice as much as we do and we look forward to keeping you up to date with our latest updates, coupons and healthy living ideas. From time to time we may also invite you to participate in surveys to help us develop new and exciting products.
|


{% extends "base.html" %} {% block extra_css %} {% endblock extra_css %} {% block content %}
Day: {{ item.clean_time|date:"l" }}
Date: {{ item.clean_time|date:"M d, Y" }}
Time: {{ item.clean_time|date:"h:i A" }}
{{ item.hour }} hours @ {{ per_hour }} rmb/hr
Total Cost: {{ fee }} rmb
Street #: {{ item.booker.my_profile.street_num }}
Street Name: {{ item.booker.my_profile.street }}
Building #: {{ item.booker.my_profile.bldg_num }}
Apartment #: {{ item.booker.my_profile.apt_num }}
Cross Street: {{ item.booker.my_profile.cross }}
Area: {{ item.booker.my_profile.get_area_display }}
Compound Name: {{ item.booker.my_profile.compound }}
**Cleaning Rate:
One Time is 50rmb/hour - This applies to all cleanings which are NOT weekly. You will need to make each bookings online.
Weekly is 35rmb/hour - We will come to your apartment EVERY week on the SAME day and time as indicated by this booking. Therefore, you will NOT need to make further bookings online for the same day and time. If you wish to cancel or change the day or time, please call 24 hours in advance at (021) 6380 1553, otherwise we will show up as normal and you will be charged.
Our professional Merry Cleaners are trained to ensure your home will be sparkling clean!
learn more
|
Bedroom
|
|
|
Bathroom
|
|
|
Kitchen
|
|
|
Other Areas
|
We will bring most supplies necessary to make it hassle-free.
learn more
|
Chemical Cleaners Multi-purpose Cleaner |
|
Cleaning tools Pair of gloves |
Please make sure your are able to provide all the necessary supplies for your apartment


| vec_as_index {vctrs} | R Documentation |
vec_as_index()
has been renamed to vec_as_location()
and is
deprecated as of vctrs 0.2.2.
vec_as_index(i, n, names = NULL)
i |
An integer, character or logical vector specifying the
locations or names of the observations to get/set. Specify
|
n |
A single integer representing the total size of the
object that |
names |
If |


#597 dip_
dip
diphtheria
diploid
diploma
diplomacy
diplomat
diplomatic
diplomatically
dipole
dipper
dippy
dipstick


--- layout: post title: More on the BPI fileshare suits date: 2004-11-22 00:00:00 category: personal ---
An update on the guy I wrote about who's getting sued by the BPI: apparently they have rejected his offer of £400 and are pushing for the full £2000. I'm waiting to hear more about this - hopefully I should be getting a copy of the letters exchanged to put up here soon.


Birthdays: A Special Day to Rejoice
Birthdays have always been special as it marks the birth anniversary of a person. It symbolises the milestones achieved in life, which one rejoices with full celebrations. Also, the person feels blessed to have this life. So, this calls for fun and get-together by all loved ones. Cake, decorations, sweets, party, wishes and goodies are all that defines this day. These merriments are incomplete without the gifts and warm wishes of family and friends. Furthermore, every effort is made to make that person feel loved and special. But one thing that bother is finding the perfect birthday gift for loved one. So, if you are going through that dilemma of what to buy and from where? Then stop worrying and visit Archiesonline today to shop for the best gifts right at your comfort and convenience. Birthday Gifts Ideas for All Choosing a perfect birthday present becomes a problem, especially when you want it to express your love and care in the best way. Moreover, every relation in your life holds a special place and their choices makes this search even more difficult. So, no matter for which relation you want to buy gifts, get it right here from your own online gift store – Archies. Choose from our wide range of creative gift ideas that will make their eyes sparkle with surprise. Our unique and interesting birthday gift ideas are selectively handpicked for your loved ones and will surely make them super happy. Just like you can gift fashion accessories to your fashionista wife, chocolates to adorable sister, home décor items to mom, flowers and cakes to friends, greeting cards to relatives and corporate associates, a perfect birthday hamper to father, personalized gifts to husband, mugs and sippers to close friends, stationary items, personalize items to daughter or son, flowers with teddy to female friend, men fashion accessories to male friends and so on. So, here at one place, you can get the best gift ideas for everyone in your life.
We duly understand the busy lifestyle of people nowadays, which makes it difficult to shop. But, still, if you want to make them feel cared and loved by expressing your heartfelt emotions on their special day, then we have the best option. Just browse through the magnificent collection of birthday gifts on our website and choose the one you like, complete the payment process and all is done. Yes, with our online marketplace, you can buy gifts online from the comfort of your house and office with a few clicks. Not just this, with Archiesonline, you can send these amazing presents to your loved ones anywhere in India, making their birthday extra special. Just think about the happiness and surprising expressions that will come over the face of your family and friends, when they will get their birthday gift right at their doorstep. Yes, you can send gifts directly to them along with the ease to get them delivered right on the date you want. We have premium online delivery services, which makes sure that the presents are delivered right on time to the concerned person only. So, what are you waiting for? Don’t let your busy lifestyle and schedules ruin the charm of your relations. Make memories today by expressing your feelings at the right time. So, shop for the extensive range of gifts online at Archies and make your loved ones feel fantastic on their birthday.


|
QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.30
|
Interest rate swap. More...
#include <ql/instruments/swap.hpp>
Classes | |
| class | arguments |
| class | engine |
| class | results |
Public Types | |
| enum | Type { Receiver = -1 , Payer = 1 } |
| Public Types inherited from Observer | |
| typedef set_type::iterator | iterator |
Public Member Functions | |
Observable interface | |
| void | deepUpdate () override |
Additional interface | |
| Size | numberOfLegs () const |
| virtual Date | startDate () const |
| virtual Date | maturityDate () const |
| Real | legBPS (Size j) const |
| Real | legNPV (Size j) const |
| DiscountFactor | startDiscounts (Size j) const |
| DiscountFactor | endDiscounts (Size j) const |
| DiscountFactor | npvDateDiscount () const |
| const Leg & | leg (Size j) const |
| bool | payer (Size j) const |
| Public Member Functions inherited from Instrument | |
| Instrument () | |
| Real | NPV () const |
| returns the net present value of the instrument. More... | |
| Real | errorEstimate () const |
| returns the error estimate on the NPV when available. More... | |
| const Date & | valuationDate () const |
| returns the date the net present value refers to. More... | |
| template<typename T > | |
| T | result (const std::string &tag) const |
| returns any additional result returned by the pricing engine. More... | |
| const std::map< std::string, ext::any > & | additionalResults () const |
| returns all additional result returned by the pricing engine. More... | |
| void | setPricingEngine (const ext::shared_ptr< PricingEngine > &) |
| set the pricing engine to be used. More... | |
| Public Member Functions inherited from LazyObject | |
| ~LazyObject () override=default | |
| void | update () override |
| void | forwardFirstNotificationOnly () |
| void | alwaysForwardNotifications () |
| void | recalculate () |
| void | freeze () |
| void | unfreeze () |
| Public Member Functions inherited from Observable | |
| Observable () | |
| Observable (const Observable &) | |
| Observable & | operator= (const Observable &) |
| virtual | ~Observable ()=default |
| void | notifyObservers () |
| Public Member Functions inherited from Observer | |
| Observer ()=default | |
| Observer (const Observer &) | |
| Observer & | operator= (const Observer &) |
| virtual | ~Observer () |
| std::pair< iterator, bool > | registerWith (const ext::shared_ptr< Observable > &) |
| void | registerWithObservables (const ext::shared_ptr< Observer > &) |
| Size | unregisterWith (const ext::shared_ptr< Observable > &) |
| void | unregisterWithAll () |
| virtual void | update ()=0 |
| virtual void | deepUpdate () |
Instrument interface | |
| std::vector< Leg > | legs_ |
| std::vector< Real > | payer_ |
| std::vector< Real > | legNPV_ |
| std::vector< Real > | legBPS_ |
| std::vector< DiscountFactor > | startDiscounts_ |
| std::vector< DiscountFactor > | endDiscounts_ |
| DiscountFactor | npvDateDiscount_ |
| bool | isExpired () const override |
| returns whether the instrument might have value greater than zero. More... | |
| void | setupArguments (PricingEngine::arguments *) const override |
| void | fetchResults (const PricingEngine::results *) const override |
| void | setupExpired () const override |
Constructors | |
| Swap (const Leg &firstLeg, const Leg &secondLeg) | |
| Swap (const std::vector< Leg > &legs, const std::vector< bool > &payer) | |
| Swap (Size legs) | |
Additional Inherited Members | |
| Protected Member Functions inherited from Instrument | |
| void | calculate () const override |
| void | performCalculations () const override |
| Protected Member Functions inherited from LazyObject | |
| Protected Attributes inherited from Instrument | |
| Real | NPV_ |
| Real | errorEstimate_ |
| Date | valuationDate_ |
| std::map< std::string, ext::any > | additionalResults_ |
| ext::shared_ptr< PricingEngine > | engine_ |
| Protected Attributes inherited from LazyObject | |
| bool | calculated_ = false |
| bool | frozen_ = false |
| bool | alwaysForward_ = true |
Interest rate swap.
The cash flows belonging to the first leg are paid; the ones belonging to the second leg are received.
| enum Type |
|
overridevirtual |
This method allows to explicitly update the instance itself and nested observers. If notifications are disabled a call to this method ensures an update of such nested observers. It should be implemented in derived classes whenever applicable
Reimplemented from Observer.
Definition at line 160 of file swap.cpp.
|
overridevirtual |
returns whether the instrument might have value greater than zero.
Implements Instrument.
Definition at line 68 of file swap.cpp.
|
overridevirtual |
When a derived argument structure is defined for an instrument, this method should be overridden to fill it. This is mandatory in case a pricing engine is used.
Reimplemented from Instrument.
Reimplemented in VanillaSwap, and YearOnYearInflationSwap.
Definition at line 87 of file swap.cpp.
|
overridevirtual |
When a derived result structure is defined for an instrument, this method should be overridden to read from it. This is mandatory in case a pricing engine is used.
Reimplemented from Instrument.
Reimplemented in VanillaSwap, and YearOnYearInflationSwap.
Definition at line 95 of file swap.cpp.
|
virtual |
Reimplemented in ZeroCouponInflationSwap, and ZeroCouponSwap.
Definition at line 144 of file swap.cpp.
|
virtual |
Reimplemented in ZeroCouponInflationSwap, and ZeroCouponSwap.
Definition at line 152 of file swap.cpp.
| DiscountFactor startDiscounts | ( | Size | j | ) | const |
| DiscountFactor endDiscounts | ( | Size | j | ) | const |
| DiscountFactor npvDateDiscount | ( | ) | const |
|
overrideprotectedvirtual |
This method must leave the instrument in a consistent state when the expiration condition is met.
Reimplemented from Instrument.
Reimplemented in VanillaSwap, and YearOnYearInflationSwap.
Definition at line 78 of file swap.cpp.
|
mutableprotected |
|
protected |
|
mutableprotected |


OO vs. Functional Programming
Phase 0. Week 6 - Friday, December 5th, 2014
Welcome back to my blog! In this weeks installment I am going to be comparing Object Oriented(OO) and Functional programming. Some consider the two styles of programming to be opposites.. I would have to agree for the most part. In OO everything is an object, and each object has its own behavioral traits programmed into it. Functional is more about functions, "Oh no way".. Yea not very descriptive huh, we'll let's get into it.
We will start with OO, mainly because I have a better understanding of it. When designing an OO program it's all about keeping it simple. First, I'll start by saying that EVERYTHING is an object. Making your program run basically is just objects sending messages to each other. Depending on what messages you send will result in the behavior of your object.
In functional programming it's more about the predictability of the program and it being non-destructive. Non-destructive in the sense that it's not changing or modifying values. Also know as "Side effects". The roots of functional programming are in Lambda calculus, it provides the theoretical framework for describing functions and their evaluation. It seems to me like this type of programming would be used in data analytics rather than program development.In conclusion each language has their application proposes. If I had a choice between the two the answer would have to be... It depends on what I am trying to accomplish. I have a friend that is working for a data analytics firm and they made him learn R; a functional programming language. His company has a specific need to analyze lots of numerical data so they use a functional programing. On the other hand, if you had to design a video game or a program that stores information you might go with OO programing. Thinking conceptually that you might need the program to be more flexible with user input. Giving these objects behavior and having them interact with each other might be the way you want to go.
This may not have been the most informative blog about these concepts, so if you're interested do some research of your own! Here are some links that might shine a brighter light on the subject.
Thanks for reading my blog!!


Cases per day
Loading...
Cases per day for a municipality
Start tying to
search.
Loading...
Cases per day for a province
Start tying to search.
Loading...


{% load staticfiles %}
{{ main_info }}
The Price Estimation Tool shows the expected weekly price of an AirBnB based on location coordinates alone. It is useful for finding out which areas are more pricey than others, or for finding a good weekly price to start an AirBnB at. It uses a distance weighted algorithm, along with Haversine's formula to get extremely accurate results!
The Bookings Optimization Tool shows what daily price one can sell at on any given day to make sure the AirBnB gets booked, while still maximizing profit. It is useful for current AirBnBs that aren't producing enough profit due to lack of bookings. It uses a distance weighted algorithm to look at other close ABnBs, and then find what prices they are selling at, so you can sell slightly lower.
The Investment Strategy Tool gives a good estimation on where to best invest money in a San Fransisco AirBnB. It finds the average price per airbnb (per bedroom!) for every neighborhood, and finds which neighborhood will produce the highest returns
Informatics shows relevant data about the modern AirBnB market. From the neighborhood rating system to which neighborhoods have the highest potential returns, the informatics section has everything you need to own a successful AirBnB


The folder for {{blog.title}} syncs with {{client.display_name}}. You can choose another way and Blot will transfer the contents of your folder automatically so you can pick up where you left off.
How would you like to sync the folder for {{blog.title}}?


How to use:
The tasks definition must be a list with the following format:
[
{
"name": "some string",
"resources": ["list", "of", "strings"],
"payoff": 1.0
}
...
]
A few sample tasks files can be found here
{{context.result.selected_tasks}}
{{context.result.excluded_tasks}}


Research Topic: Computer Aided Diagnosis for Breast Ultrasound based on Deep Learning
National Taiwan University
2015-Present
National Chung Hsing University
2010-2015
2016/06 - 2017/03
VoiceTube (紅點子科技股份有限公司 REDIdea Co., Ltd)
2016/02 - 2016/04
National Taiwan University CSIE (台灣大學資訊系統訓練班)
2016/1, 2016/8-2016/9
Great passion towards frontend web development, embraces new technology and loves to share information with others.


Two suspects arrested for planning to attack French president
by Agency ReportTwo men close to the ultra-right were indicted for “terrorist criminal conspiracy” and placed in pre-trial detention, as part of the investigation of a bombing project against French President Emmanuel Macron.
Franceinfo, a French domestic rolling news channel, reported this on Saturday.
The two suspects, aged 30 and 45 respectively, were believed to have planned an action against Mr Macron during the commemoration of the centenary of the end of the First World War, in November 2018, said Franceinfo quoting a Parisian judicial source.
The two were arrested Monday in Moselle, northeastern France.
They had been presented to an examining magistrate for their indictment.
The national anti-terrorist prosecutor’s office had requested their detention on remand.
(Xinhua/NAN)


{block name="head_top"}{/block}
{include file="public/left_menu" /} {block name="content"}{/block} {include file="public/foot" /} {block name="newJs"}{/block}