hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::WsvCommand Class Referenceabstract

#include "wsv_command.hpp"

Inheritance diagram for iroha::ametsuchi::WsvCommand:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::WsvCommand:
Collaboration graph

Public Member Functions

virtual ~WsvCommand ()=default
 
virtual WsvCommandResult insertRole (const shared_model::interface::types::RoleIdType &role_name)=0
 
virtual WsvCommandResult insertAccountRole (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name)=0
 
virtual WsvCommandResult deleteAccountRole (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name)=0
 
virtual WsvCommandResult insertRolePermissions (const shared_model::interface::types::RoleIdType &role_id, const shared_model::interface::RolePermissionSet &permissions)=0
 
virtual WsvCommandResult insertAccountGrantablePermission (const shared_model::interface::types::AccountIdType &permittee_account_id, const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::permissions::Grantable permission)=0
 
virtual WsvCommandResult deleteAccountGrantablePermission (const shared_model::interface::types::AccountIdType &permittee_account_id, const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::permissions::Grantable permission)=0
 
virtual WsvCommandResult insertAccount (const shared_model::interface::Account &account)=0
 
virtual WsvCommandResult updateAccount (const shared_model::interface::Account &account)=0
 
virtual WsvCommandResult setAccountKV (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &key, const std::string &val)=0
 
virtual WsvCommandResult insertAsset (const shared_model::interface::Asset &asset)=0
 
virtual WsvCommandResult upsertAccountAsset (const shared_model::interface::AccountAsset &asset)=0
 
virtual WsvCommandResult insertSignatory (const shared_model::interface::types::PubkeyType &signatory)=0
 
virtual WsvCommandResult insertAccountSignatory (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::PubkeyType &signatory)=0
 
virtual WsvCommandResult deleteAccountSignatory (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::PubkeyType &signatory)=0
 
virtual WsvCommandResult deleteSignatory (const shared_model::interface::types::PubkeyType &signatory)=0
 
virtual WsvCommandResult insertPeer (const shared_model::interface::Peer &peer)=0
 
virtual WsvCommandResult deletePeer (const shared_model::interface::Peer &peer)=0
 
virtual WsvCommandResult insertDomain (const shared_model::interface::Domain &domain)=0
 

Detailed Description

Commands for modifying world state view

Constructor & Destructor Documentation

virtual iroha::ametsuchi::WsvCommand::~WsvCommand ( )
virtualdefault

Member Function Documentation

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::deleteAccountGrantablePermission ( const shared_model::interface::types::AccountIdType permittee_account_id,
const shared_model::interface::types::AccountIdType account_id,
shared_model::interface::permissions::Grantable  permission 
)
pure virtual

Delete grantable permission

Parameters
permittee_account_idto who the grant permission was previously granted
account_idon which account
permissionwhat permission
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::deleteAccountRole ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::RoleIdType role_name 
)
pure virtual

Unbind account and role

Parameters
account_id
role_name
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::deleteAccountSignatory ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::PubkeyType signatory 
)
pure virtual

Delete account signatory relationship

Parameters
account_id
signatory
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::deletePeer ( const shared_model::interface::Peer peer)
pure virtual
Parameters
peer
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::deleteSignatory ( const shared_model::interface::types::PubkeyType signatory)
pure virtual

Delete signatory

Parameters
signatory
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertAccount ( const shared_model::interface::Account account)
pure virtual

git

Parameters
account
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertAccountGrantablePermission ( const shared_model::interface::types::AccountIdType permittee_account_id,
const shared_model::interface::types::AccountIdType account_id,
shared_model::interface::permissions::Grantable  permission 
)
pure virtual

Insert grantable permission

Parameters
permittee_account_idto who give the grant permission
account_idon which account
permissionwhat permission
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertAccountRole ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::RoleIdType role_name 
)
pure virtual

Bind account and role

Parameters
account_id
role_name
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertAccountSignatory ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::PubkeyType signatory 
)
pure virtual

Insert account signatory relationship

Parameters
account_id
signatory
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertAsset ( const shared_model::interface::Asset asset)
pure virtual
Parameters
asset
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertDomain ( const shared_model::interface::Domain domain)
pure virtual
Parameters
peer
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertPeer ( const shared_model::interface::Peer peer)
pure virtual
Parameters
peer
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertRole ( const shared_model::interface::types::RoleIdType role_name)
pure virtual

Insert role entity

Parameters
role_name
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertRolePermissions ( const shared_model::interface::types::RoleIdType role_id,
const shared_model::interface::RolePermissionSet permissions 
)
pure virtual

Bind role and permissions

Parameters
role_id
permissions
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::insertSignatory ( const shared_model::interface::types::PubkeyType signatory)
pure virtual
Parameters
signatory
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::setAccountKV ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::AccountIdType creator_account_id,
const std::string key,
const std::string val 
)
pure virtual
Parameters
account_idaccount in which update key value
creator_account_idcreator's account who wants to update account_id
key- key to set
val- value of the key/value pair
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::updateAccount ( const shared_model::interface::Account account)
pure virtual
Parameters
account
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.

virtual WsvCommandResult iroha::ametsuchi::WsvCommand::upsertAccountAsset ( const shared_model::interface::AccountAsset asset)
pure virtual

Update or insert account asset

Parameters
asset
Returns
WsvCommandResult, which will contain error in case of failure

Implemented in iroha::ametsuchi::PostgresWsvCommand.


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