Trait pallet_xdns_rpc::XdnsRuntimeApi
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>
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>
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