pub trait XdnsRuntimeApi<Block: BlockT, AccountId>: Core<Block>where
AccountId: Codec,{
// Provided methods
fn fetch_records(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Vec<GatewayRecord<AccountId>>, ApiError> { ... }
fn fetch_full_gateway_records(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Vec<FullGatewayRecord<AccountId>>, ApiError> { ... }
fn fetch_abi(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
chain_id: ChainId
) -> Result<Option<GatewayABIConfig>, ApiError> { ... }
fn retreive_treasury_address(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
treasury_account: TreasuryAccount
) -> Result<AccountId, ApiError> { ... }
}
Expand description
The API to interact with pallet XDNS
Provided Methods§
sourcefn fetch_records(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Vec<GatewayRecord<AccountId>>, ApiError>
fn fetch_records( &self, __runtime_api_at_param__: <Block as BlockT>::Hash ) -> Result<Vec<GatewayRecord<AccountId>>, ApiError>
Returns metadata for all known Blockchains
fn fetch_full_gateway_records( &self, __runtime_api_at_param__: <Block as BlockT>::Hash ) -> Result<Vec<FullGatewayRecord<AccountId>>, ApiError>
sourcefn fetch_abi(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
chain_id: ChainId
) -> Result<Option<GatewayABIConfig>, ApiError>
fn fetch_abi( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, chain_id: ChainId ) -> Result<Option<GatewayABIConfig>, ApiError>
Returns the GatewayABIConfig for a given ChainId