pub trait XdnsRuntimeApi<Block, AccountId>: Core<Block>where
    Block: Block,
    AccountId: Codec,{
    // Provided methods
    fn fetch_records(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash
    ) -> Result<Vec<GatewayRecord<AccountId>, Global>, ApiError> { ... }
    fn fetch_full_gateway_records(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash
    ) -> Result<Vec<FullGatewayRecord<AccountId>, Global>, ApiError> { ... }
    fn fetch_abi(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash,
        chain_id: [u8; 4]
    ) -> Result<Option<GatewayABIConfig>, ApiError> { ... }
    fn retreive_treasury_address(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash,
        treasury_account: TreasuryAccount
    ) -> Result<AccountId, ApiError> { ... }
}
Expand description

The API to interact with pallet XDNS

Provided Methods§

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

Returns metadata for all known Blockchains

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

fn fetch_abi( &self, __runtime_api_at_param__: <Block as Block>::Hash, chain_id: [u8; 4] ) -> Result<Option<GatewayABIConfig>, ApiError>

Returns the GatewayABIConfig for a given ChainId

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

Trait Implementations§

§

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

§

const ID: [u8; 8] = [26u8, 130u8, 189u8, 139u8, 201u8, 90u8, 159u8, 193u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§