hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::bindings::ModelQueryBuilder Class Reference

#include "model_query_builder.hpp"

Collaboration diagram for shared_model::bindings::ModelQueryBuilder:
Collaboration graph

Public Member Functions

 ModelQueryBuilder ()
 
ModelQueryBuilder createdTime (interface::types::TimestampType created_time)
 
ModelQueryBuilder creatorAccountId (const interface::types::AccountIdType &creator_account_id)
 
ModelQueryBuilder queryCounter (interface::types::CounterType query_counter)
 
ModelQueryBuilder getAccount (const interface::types::AccountIdType &account_id)
 
ModelQueryBuilder getSignatories (const interface::types::AccountIdType &account_id)
 
ModelQueryBuilder getAccountTransactions (const interface::types::AccountIdType &account_id, interface::types::TransactionsNumberType page_size, const boost::optional< interface::types::HashType > &first_hash=boost::none)
 
ModelQueryBuilder getAccountAssetTransactions (const interface::types::AccountIdType &account_id, const interface::types::AssetIdType &asset_id, interface::types::TransactionsNumberType page_size, const boost::optional< interface::types::HashType > &first_hash=boost::none)
 
ModelQueryBuilder getAccountAssets (const interface::types::AccountIdType &account_id)
 
ModelQueryBuilder getRoles ()
 
ModelQueryBuilder getAssetInfo (const interface::types::AssetIdType &asset_id)
 
ModelQueryBuilder getRolePermissions (const interface::types::RoleIdType &role_id)
 
ModelQueryBuilder getTransactions (const std::vector< crypto::Hash > &hashes)
 
ModelQueryBuilder getAccountDetail (const interface::types::AccountIdType &account_id="", const interface::types::AccountDetailKeyType &key="", const interface::types::AccountIdType &writer="")
 
ModelQueryBuilder getPendingTransactions ()
 
proto::UnsignedWrapper< proto::Query > build ()
 

Detailed Description

Wrapper class for query builder. Designed only for SWIG bindings, don't use in other cases.

Constructor & Destructor Documentation

shared_model::bindings::ModelQueryBuilder::ModelQueryBuilder ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

proto::UnsignedWrapper< proto::Query > shared_model::bindings::ModelQueryBuilder::build ( )

Builds result with all appended fields

Returns
wrapper on unsigned query

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::createdTime ( interface::types::TimestampType  created_time)

Sets time of query creation (Unix time in milliseconds)

Parameters
created_time- time to set
Returns
builder with created time field appended

Here is the call graph for this function:

Here is the caller graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::creatorAccountId ( const interface::types::AccountIdType creator_account_id)

Sets account id of query creator

Parameters
creator_account_id- account of query creator
Returns
builder with query account creator field appended

Here is the call graph for this function:

Here is the caller graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getAccount ( const interface::types::AccountIdType account_id)

Queries state of account

Parameters
account_id- id of account to query
Returns
builder with getAccount query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getAccountAssets ( const interface::types::AccountIdType account_id)

Queries balance of specific asset for given account

Parameters
account_id- id of account to query
Returns
builder with getAccountAssets query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getAccountAssetTransactions ( const interface::types::AccountIdType account_id,
const interface::types::AssetIdType asset_id,
interface::types::TransactionsNumberType  page_size,
const boost::optional< interface::types::HashType > &  first_hash = boost::none 
)

Queries account transaction collection for a given asset

Parameters
account_id- id of account to query
asset_id- asset id to query about
Returns
builder with getAccountAssetTransactions query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getAccountDetail ( const interface::types::AccountIdType account_id = "",
const interface::types::AccountDetailKeyType key = "",
const interface::types::AccountIdType writer = "" 
)

Retrieves details for a given account

Parameters
account_id- account to retrieve details from
key- under which keys data should be returned
writer- from which writers details should be returned
Returns
builder with getAccountDetail query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getAccountTransactions ( const interface::types::AccountIdType account_id,
interface::types::TransactionsNumberType  page_size,
const boost::optional< interface::types::HashType > &  first_hash = boost::none 
)

Queries account transaction collection

Parameters
account_id- id of account to query
Returns
builder with getAccountTransactions query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getAssetInfo ( const interface::types::AssetIdType asset_id)

Queries info about given asset

Parameters
asset_id- asset id to query about
Returns
builder with getAssetInfo query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getPendingTransactions ( )

Retrieves all pending (not fully signed) multisignature transactions or batches of transactions.

Returns
builder with getPendingTransactions query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getRolePermissions ( const interface::types::RoleIdType role_id)

Queries list of permissions for given role

Parameters
role_id- role id to query about
Returns
builder with getRolePermissions query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getRoles ( )

Queries available roles in the system

Returns
builder with getRoles query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getSignatories ( const interface::types::AccountIdType account_id)

Queries signatories of account

Parameters
account_id- id of account to query
Returns
builder with getSignatories query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::getTransactions ( const std::vector< crypto::Hash > &  hashes)

Queries transactions for given hashes

Parameters
hashes- list of transaction hashes to query
Returns
builder with getTransactions query inside

Here is the call graph for this function:

ModelQueryBuilder shared_model::bindings::ModelQueryBuilder::queryCounter ( interface::types::CounterType  query_counter)

Sets query counter

Parameters
query_counter- number to set as a query counter
Returns
builder with query counter field appended

Here is the call graph for this function:

Here is the caller graph for this function:


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