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§

source

fn fetch_records( &self, __runtime_api_at_param__: <Block as BlockT>::Hash ) -> Result<Vec<GatewayRecord<AccountId>>, ApiError>

Returns metadata for all known Blockchains

source

fn fetch_full_gateway_records( &self, __runtime_api_at_param__: <Block as BlockT>::Hash ) -> Result<Vec<FullGatewayRecord<AccountId>>, ApiError>

source

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

source

fn retreive_treasury_address( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, treasury_account: TreasuryAccount ) -> Result<AccountId, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, AccountId> RuntimeApiInfo for dyn XdnsRuntimeApi<Block, AccountId>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§