pub trait InvestmentsApi<Block: BlockT, AccountId, InvestmentId, InvestmentPortfolio>: Core<Block>
where AccountId: Codec, InvestmentId: Codec, InvestmentPortfolio: Codec,
{ // Provided method fn investment_portfolio( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account_id: AccountId ) -> Result<Vec<(InvestmentId, InvestmentPortfolio)>, ApiError> { ... } }
Expand description

Runtime API for investments

Provided Methods§

source

fn investment_portfolio( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account_id: AccountId ) -> Result<Vec<(InvestmentId, InvestmentPortfolio)>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, AccountId, InvestmentId, InvestmentPortfolio> RuntimeApiInfo for dyn InvestmentsApi<Block, AccountId, InvestmentId, InvestmentPortfolio>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§