From c919e89515abfea9d7ad76a306f2516b2d052f91 Mon Sep 17 00:00:00 2001 From: "github-merge-queue[bot]" Date: Wed, 28 Feb 2024 08:54:22 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20subspace?= =?UTF-8?q?/subspace@2040ac12327aedced3f0a3996d9772db09e51279=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../provider/struct.EthProvider.html | 14 +++--- domain_service/fn.new_full.html | 2 +- .../providers/struct.DefaultProvider.html | 4 +- .../providers/trait.BlockImportProvider.html | 4 +- domain_service/struct.DomainParams.html | 6 +-- domain_service/type.DomainOperator.html | 6 +-- domain_service/type.FullClient.html | 2 +- help.html | 4 +- .../dispatchables/fn.submit_fraud_proof.html | 2 +- pallet_domains/enum.Call.html | 8 ++-- pallet_domains/struct.Pallet.html | 4 +- .../struct.SubspaceRpcConfig.html | 20 ++++---- settings.html | 4 +- .../reading.rs.html | 24 ++++------ src/subspace_farmer_components/sector.rs.html | 48 +++++++++---------- .../reading/fn.read_piece.html | 2 +- .../reading/fn.read_sector_record_chunks.html | 2 +- .../fn.recover_extended_record_chunks.html | 2 +- .../fn.recover_source_record_chunks.html | 2 +- subspace_farmer_components/reading/index.html | 2 +- ...enum.SectorContentsMapEncodeIntoError.html | 6 +-- .../enum.SectorContentsMapFromBytesError.html | 6 +-- .../enum.SectorContentsMapIterationError.html | 6 +-- .../sector/fn.sector_record_chunks_size.html | 2 +- .../fn.sector_record_metadata_size.html | 2 +- .../sector/fn.sector_size.html | 2 +- .../sector/struct.EncodedChunksUsed.html | 8 ++-- .../sector/struct.SectorContentsMap.html | 20 ++++---- .../sector/struct.SectorMetadata.html | 10 ++-- .../struct.SectorMetadataChecksummed.html | 14 +++--- subspace_service/type.HostFunctions.html | 2 +- .../providers/trait.BlockImportProvider.js | 2 +- .../providers/trait.RpcProvider.js | 2 +- trait.impl/scale_info/trait.TypeInfo.js | 2 +- .../operator/struct.Operator.js | 2 +- type.impl/pallet_domains/struct.Pallet.js | 2 +- 36 files changed, 123 insertions(+), 127 deletions(-) diff --git a/domain_eth_service/provider/struct.EthProvider.html b/domain_eth_service/provider/struct.EthProvider.html index ff8002d0dd..99bf141f64 100644 --- a/domain_eth_service/provider/struct.EthProvider.html +++ b/domain_eth_service/provider/struct.EthProvider.html @@ -6,10 +6,10 @@ ) -> Self
source

pub fn with_configuration( base_path: Option<&Path>, eth_config: EthConfiguration -) -> Self

Trait Implementations§

source§

impl<Block, RuntimeApi, CT, EC> BlockImportProvider<Block, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>> for EthProvider<CT, EC>
where +) -> Self

Trait Implementations§

source§

impl<Block, RuntimeApi, CT, EC> BlockImportProvider<Block, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>> for EthProvider<CT, EC>
where Block: BlockT, - RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi>> + Send + Sync + 'static, - RuntimeApi::RuntimeApi: ApiExt<Block> + Core<Block> + BlockBuilder<Block> + EthereumRuntimeRPCApi<Block>,

§

type BI = FrontierBlockImport<Block, Arc<Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>>, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>>

source§

fn block_import(&self, client: Arc<FullClient<Block, RuntimeApi>>) -> Self::BI

source§

impl<Block, Client, BE, TxPool, CA, AccountId, CT, EC, CIDP> RpcProvider<Block, Client, TxPool, CA, BE, AccountId, CIDP> for EthProvider<CT, EC>
where + RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi>> + Send + Sync + 'static, + RuntimeApi::RuntimeApi: ApiExt<Block> + Core<Block> + BlockBuilder<Block> + EthereumRuntimeRPCApi<Block>,

§

type BI = FrontierBlockImport<Block, Arc<Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>>, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>>

source§

fn block_import(&self, client: Arc<FullClient<Block, RuntimeApi>>) -> Self::BI

source§

impl<Block, Client, BE, TxPool, CA, AccountId, CT, EC, CIDP> RpcProvider<Block, Client, TxPool, CA, BE, AccountId, CIDP> for EthProvider<CT, EC>
where Block: BlockT<Hash = H256>, BE: Backend<Block> + 'static, Client: ProvideRuntimeApi<Block> + BlockchainEvents<Block> + StorageProvider<Block, BE> + HeaderBackend<Block> + CallApiAt<Block> + HeaderMetadata<Block, Error = Error> + BlockBackend<Block> + AuxStore + Send + Sync + 'static, @@ -19,12 +19,12 @@ TxPool: TransactionPool<Block = Block> + Sync + Send + 'static, CA: ChainApi<Block = Block> + 'static, AccountId: DeserializeOwned + Encode + Debug + Decode + Display + Clone + Sync + Send + 'static, - CIDP: CreateInherentDataProviders<Block, ()> + Send + Clone + 'static,

§

type Deps = EthDeps<Client, TxPool, CA, CT, Block, BE, CIDP>

source§

fn deps( + CIDP: CreateInherentDataProviders<Block, ()> + Send + Clone + 'static,

§

type Deps = EthDeps<Client, TxPool, CA, CT, Block, BE, CIDP>

source§

fn deps( &self, - full_deps: FullDeps<Block, Client, TxPool, CA, BE, CIDP> -) -> Result<Self::Deps, Error>

source§

fn rpc_id(&self) -> Option<Box<dyn RpcSubscriptionIdProvider>>

source§

fn rpc_builder<SE>( + full_deps: FullDeps<Block, Client, TxPool, CA, BE, CIDP> +) -> Result<Self::Deps, Error>

source§

fn rpc_id(&self) -> Option<Box<dyn RpcSubscriptionIdProvider>>

source§

fn rpc_builder<SE>( &self, - deps: Self::Deps, + deps: Self::Deps, subscription_task_executor: SubscriptionTaskExecutor, essential_task_spawner: SE ) -> Result<RpcModule<()>, Box<dyn Error + Send + Sync>>
where diff --git a/domain_service/fn.new_full.html b/domain_service/fn.new_full.html index b562a7ad45..37bd33c30a 100644 --- a/domain_service/fn.new_full.html +++ b/domain_service/fn.new_full.html @@ -1,7 +1,7 @@ new_full in domain_service - Rust

Function domain_service::new_full

source ·
pub async fn new_full<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, RuntimeApi, AccountId, Provider, CNetwork>(
     domain_params: DomainParams<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, Provider, CNetwork>
-) -> Result<NewFull<Arc<FullClient<Block, RuntimeApi>>, RuntimeExecutor, CBlock, CClient, RuntimeApi, AccountId>>
where +) -> Result<NewFull<Arc<FullClient<Block, RuntimeApi>>, RuntimeExecutor, CBlock, CClient, RuntimeApi, AccountId>>
where CBlock: BlockT, NumberFor<CBlock>: From<NumberFor<Block>> + Into<u32>, CBlock::Hash: From<Hash> + Into<Hash>, diff --git a/domain_service/providers/struct.DefaultProvider.html b/domain_service/providers/struct.DefaultProvider.html index 0e34977a17..cb35cabe16 100644 --- a/domain_service/providers/struct.DefaultProvider.html +++ b/domain_service/providers/struct.DefaultProvider.html @@ -1,8 +1,8 @@ DefaultProvider in domain_service::providers - Rust -
pub struct DefaultProvider;

Trait Implementations§

source§

impl<Block, RuntimeApi> BlockImportProvider<Block, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>> for DefaultProvider
where +
pub struct DefaultProvider;

Trait Implementations§

source§

impl<Block, RuntimeApi> BlockImportProvider<Block, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>> for DefaultProvider
where Block: BlockT, RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi>> + Send + Sync + 'static, - RuntimeApi::RuntimeApi: ApiExt<Block> + Core<Block>,

§

type BI = Arc<Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>>

source§

fn block_import(&self, client: Arc<FullClient<Block, RuntimeApi>>) -> Self::BI

source§

impl Clone for DefaultProvider

source§

fn clone(&self) -> DefaultProvider

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Block, Client, BE, TxPool, CA, AccountId, CIDP> RpcProvider<Block, Client, TxPool, CA, BE, AccountId, CIDP> for DefaultProvider
where + RuntimeApi::RuntimeApi: ApiExt<Block> + Core<Block>,

§

type BI = Arc<Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>>

source§

fn block_import(&self, client: Arc<FullClient<Block, RuntimeApi>>) -> Self::BI

source§

impl Clone for DefaultProvider

source§

fn clone(&self) -> DefaultProvider

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Block, Client, BE, TxPool, CA, AccountId, CIDP> RpcProvider<Block, Client, TxPool, CA, BE, AccountId, CIDP> for DefaultProvider
where Block: BlockT, Client: ProvideRuntimeApi<Block> + BlockBackend<Block> + HeaderBackend<Block> + AuxStore + HeaderMetadata<Block, Error = Error> + StorageProvider<Block, BE> + Send + Sync + 'static, Client::Api: TransactionPaymentRuntimeApi<Block, Balance> + AccountNonceApi<Block, AccountId, Nonce> + BlockBuilder<Block>, diff --git a/domain_service/providers/trait.BlockImportProvider.html b/domain_service/providers/trait.BlockImportProvider.html index 0717182255..efaac9a40a 100644 --- a/domain_service/providers/trait.BlockImportProvider.html +++ b/domain_service/providers/trait.BlockImportProvider.html @@ -5,7 +5,7 @@ // Required method fn block_import(&self, client: Arc<Client>) -> Self::BI; -}

Required Associated Types§

source

type BI: BlockImport<Block, Error = Error> + Send + Sync + 'static

Required Methods§

source

fn block_import(&self, client: Arc<Client>) -> Self::BI

Implementors§

source§

impl<Block, RuntimeApi> BlockImportProvider<Block, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>> for DefaultProvider
where +}

Required Associated Types§

source

type BI: BlockImport<Block, Error = Error> + Send + Sync + 'static

Required Methods§

source

fn block_import(&self, client: Arc<Client>) -> Self::BI

Implementors§

source§

impl<Block, RuntimeApi> BlockImportProvider<Block, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>> for DefaultProvider
where Block: BlockT, RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi>> + Send + Sync + 'static, - RuntimeApi::RuntimeApi: ApiExt<Block> + Core<Block>,

§

type BI = Arc<Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>>

\ No newline at end of file + RuntimeApi::RuntimeApi: ApiExt<Block> + Core<Block>,

§

type BI = Arc<Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>>

\ No newline at end of file diff --git a/domain_service/struct.DomainParams.html b/domain_service/struct.DomainParams.html index 044b511d47..51041684cd 100644 --- a/domain_service/struct.DomainParams.html +++ b/domain_service/struct.DomainParams.html @@ -9,12 +9,12 @@ pub consensus_network: Arc<CNetwork>, pub consensus_offchain_tx_pool_factory: OffchainTransactionPoolFactory<CBlock>, pub consensus_network_sync_oracle: Arc<dyn SyncOracle + Send + Sync>, - pub operator_streams: OperatorStreams<CBlock, IBNS, CIBNS, NSNS, ASS>, - pub gossip_message_sink: GossipMessageSink, + pub operator_streams: OperatorStreams<CBlock, IBNS, CIBNS, NSNS, ASS>, + pub gossip_message_sink: GossipMessageSink, pub domain_message_receiver: TracingUnboundedReceiver<ChainTxPoolMsg>, pub provider: Provider, pub skip_empty_bundle_production: bool, -}

Fields§

§domain_id: DomainId§domain_config: Configuration§domain_created_at: NumberFor<CBlock>§maybe_operator_id: Option<OperatorId>§consensus_client: Arc<CClient>§consensus_network: Arc<CNetwork>§consensus_offchain_tx_pool_factory: OffchainTransactionPoolFactory<CBlock>§consensus_network_sync_oracle: Arc<dyn SyncOracle + Send + Sync>§operator_streams: OperatorStreams<CBlock, IBNS, CIBNS, NSNS, ASS>§gossip_message_sink: GossipMessageSink§domain_message_receiver: TracingUnboundedReceiver<ChainTxPoolMsg>§provider: Provider§skip_empty_bundle_production: bool

Auto Trait Implementations§

§

impl<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, Provider, CNetwork> !RefUnwindSafe for DomainParams<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, Provider, CNetwork>

§

impl<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, Provider, CNetwork> Send for DomainParams<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, Provider, CNetwork>
where +}

Fields§

§domain_id: DomainId§domain_config: Configuration§domain_created_at: NumberFor<CBlock>§maybe_operator_id: Option<OperatorId>§consensus_client: Arc<CClient>§consensus_network: Arc<CNetwork>§consensus_offchain_tx_pool_factory: OffchainTransactionPoolFactory<CBlock>§consensus_network_sync_oracle: Arc<dyn SyncOracle + Send + Sync>§operator_streams: OperatorStreams<CBlock, IBNS, CIBNS, NSNS, ASS>§gossip_message_sink: GossipMessageSink§domain_message_receiver: TracingUnboundedReceiver<ChainTxPoolMsg>§provider: Provider§skip_empty_bundle_production: bool

Auto Trait Implementations§

§

impl<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, Provider, CNetwork> !RefUnwindSafe for DomainParams<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, Provider, CNetwork>

§

impl<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, Provider, CNetwork> Send for DomainParams<CBlock, CClient, IBNS, CIBNS, NSNS, ASS, Provider, CNetwork>
where ASS: Send, CClient: Sync + Send, CIBNS: Send, diff --git a/domain_service/type.DomainOperator.html b/domain_service/type.DomainOperator.html index 16ce0158a9..9b66e0ded6 100644 --- a/domain_service/type.DomainOperator.html +++ b/domain_service/type.DomainOperator.html @@ -1,6 +1,6 @@ DomainOperator in domain_service - Rust -
pub type DomainOperator<Block, CBlock, CClient, RuntimeApi> = Operator<Block, CBlock, FullClient<Block, RuntimeApi>, CClient, FullPool<RuntimeApi>, FullBackend<Block>, RuntimeExecutor>;

Aliased Type§

struct DomainOperator<Block, CBlock, CClient, RuntimeApi> {
-    pub transaction_pool: Arc<BasicPool<FullChainApiWrapper<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>,
+    
pub type DomainOperator<Block, CBlock, CClient, RuntimeApi> = Operator<Block, CBlock, FullClient<Block, RuntimeApi>, CClient, FullPool<RuntimeApi>, FullBackend<Block>, RuntimeExecutor>;

Aliased Type§

struct DomainOperator<Block, CBlock, CClient, RuntimeApi> {
+    pub transaction_pool: Arc<BasicPool<FullChainApiWrapper<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>,
     pub keystore: Arc<dyn Keystore>,
     /* private fields */
-}

Fields§

§transaction_pool: Arc<BasicPool<FullChainApiWrapper<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>§keystore: Arc<dyn Keystore>
\ No newline at end of file +}

Fields§

§transaction_pool: Arc<BasicPool<FullChainApiWrapper<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>§keystore: Arc<dyn Keystore>
\ No newline at end of file diff --git a/domain_service/type.FullClient.html b/domain_service/type.FullClient.html index 0b83071c5f..48ae35952a 100644 --- a/domain_service/type.FullClient.html +++ b/domain_service/type.FullClient.html @@ -1,3 +1,3 @@ FullClient in domain_service - Rust -

Type Alias domain_service::FullClient

source ·
pub type FullClient<Block, RuntimeApi> = TFullClient<Block, RuntimeApi, RuntimeExecutor>;
Expand description

Domain full client.

+

Type Alias domain_service::FullClient

source ·
pub type FullClient<Block, RuntimeApi> = TFullClient<Block, RuntimeApi, RuntimeExecutor>;
Expand description

Domain full client.

Aliased Type§

struct FullClient<Block, RuntimeApi> { /* private fields */ }
\ No newline at end of file diff --git a/help.html b/help.html index a0bb3ed0c0..dd85ad23ba 100644 --- a/help.html +++ b/help.html @@ -1,2 +1,2 @@ -Help -

Rustdoc help

Back
\ No newline at end of file +Help +

Rustdoc help

Back
\ No newline at end of file diff --git a/pallet_domains/dispatchables/fn.submit_fraud_proof.html b/pallet_domains/dispatchables/fn.submit_fraud_proof.html index 43775f8a1b..8124162742 100644 --- a/pallet_domains/dispatchables/fn.submit_fraud_proof.html +++ b/pallet_domains/dispatchables/fn.submit_fraud_proof.html @@ -1,6 +1,6 @@ submit_fraud_proof in pallet_domains::dispatchables - Rust
pub fn submit_fraud_proof<T: Config>(
-    fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>
+    fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>
 )
Expand description

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in diff --git a/pallet_domains/enum.Call.html b/pallet_domains/enum.Call.html index f242e1cf32..90b9aaca52 100644 --- a/pallet_domains/enum.Call.html +++ b/pallet_domains/enum.Call.html @@ -4,7 +4,7 @@ opaque_bundle: OpaqueBundleOf<T>, }, submit_fraud_proof { - fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>, + fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>, }, register_domain_runtime { runtime_name: String, @@ -54,7 +54,7 @@ // some variants omitted

}
Expand description

Contains a variant per dispatchable extrinsic that this pallet has.

Variants§

§

submit_bundle

Fields

§opaque_bundle: OpaqueBundleOf<T>
§

submit_fraud_proof

Fields

§fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>
§

submit_fraud_proof

Fields

§fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>
§

register_domain_runtime

Fields

§runtime_name: String
§runtime_type: RuntimeType
§raw_genesis_storage: Vec<u8>
§

upgrade_domain_runtime

Fields

§runtime_id: RuntimeId
§raw_genesis_storage: Vec<u8>
§

register_operator

Fields

§domain_id: DomainId
§amount: <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance
§config: OperatorConfig<<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>

See Pallet::register_operator.

@@ -69,7 +69,7 @@
§

force_staking_epoch_transition

Fields

§domain_id: DomainId

Implementations§

source§

impl<T: Config> Call<T>

source

pub fn new_call_variant_submit_bundle(opaque_bundle: OpaqueBundleOf<T>) -> Self

Create a call with the variant submit_bundle.

source

pub fn new_call_variant_submit_fraud_proof( - fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>> + fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>> ) -> Self

Create a call with the variant submit_fraud_proof.

source

pub fn new_call_variant_register_domain_runtime( runtime_name: String, @@ -127,7 +127,7 @@ sufficient, and should not be overridden without very good reason.

source§

impl<T> TypeInfo for Call<T>
where PhantomData<(T,)>: TypeInfo + 'static, OpaqueBundleOf<T>: TypeInfo + 'static, - Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>: TypeInfo + 'static, + Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>: TypeInfo + 'static, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: TypeInfo + 'static, OperatorConfig<<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>: TypeInfo + 'static, DomainConfig<T::AccountId, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>: TypeInfo + 'static, diff --git a/pallet_domains/struct.Pallet.html b/pallet_domains/struct.Pallet.html index 7e07101d54..abcd03dea1 100644 --- a/pallet_domains/struct.Pallet.html +++ b/pallet_domains/struct.Pallet.html @@ -6,7 +6,7 @@ opaque_bundle: OpaqueBundleOf<T> ) -> DispatchResultWithPostInfo

source

pub fn submit_fraud_proof( origin: OriginFor<T>, - fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>> + fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>> ) -> DispatchResult

source

pub fn register_domain_runtime( origin: OriginFor<T>, runtime_name: String, @@ -108,7 +108,7 @@ ) -> Option<ReceiptHashFor<T>>

source

pub fn confirmed_domain_block_storage_key(domain_id: DomainId) -> Vec<u8>

source§

impl<T> Pallet<T>
where T: Config + SendTransactionTypes<Call<T>>,

source

pub fn submit_bundle_unsigned(opaque_bundle: OpaqueBundleOf<T>)

Submits an unsigned extrinsic Call::submit_bundle.

source

pub fn submit_fraud_proof_unsigned( - fraud_proof: FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader> + fraud_proof: FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader> )

Submits an unsigned extrinsic Call::submit_fraud_proof.

Trait Implementations§

source§

impl<T: Config> BeforeAllRuntimeMigrations for Pallet<T>

source§

fn before_all_runtime_migrations() -> Weight

Something that should happen before runtime migrations are executed.
source§

impl<T: Config> Callable<T> for Pallet<T>

source§

impl<T> Clone for Pallet<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Pallet<T>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Config> GetStorageVersion for Pallet<T>

§

type CurrentStorageVersion = StorageVersion

This will be filled out by the pallet macro. Read more
source§

fn current_storage_version() -> Self::CurrentStorageVersion

Returns the current storage version as supported by the pallet.
source§

fn on_chain_storage_version() -> StorageVersion

Returns the on-chain storage version of the pallet as stored in the storage.
source§

impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(block_number: BlockNumberFor<T>) -> Weight

Block initialization hook. This is called at the very beginning of block execution. Read more
source§

fn on_finalize(_: BlockNumberFor<T>)

Block finalization hook. This is called at the very end of block execution. Read more
§

fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight

Hook to consume a block’s idle time. This will run when the block is being finalized (before [Hooks::on_finalize]). Read more
§

fn on_runtime_upgrade() -> Weight

Hook executed when a code change (aka. a “runtime upgrade”) is detected by FRAME. Read more
§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are diff --git a/sc_consensus_subspace_rpc/struct.SubspaceRpcConfig.html b/sc_consensus_subspace_rpc/struct.SubspaceRpcConfig.html index 571a1df830..294f069d7a 100644 --- a/sc_consensus_subspace_rpc/struct.SubspaceRpcConfig.html +++ b/sc_consensus_subspace_rpc/struct.SubspaceRpcConfig.html @@ -4,23 +4,23 @@ AS: AuxStore + Send + Sync + 'static,
{ pub client: Arc<Client>, pub subscription_executor: SubscriptionTaskExecutor, - pub new_slot_notification_stream: SubspaceNotificationStream<NewSlotNotification>, - pub reward_signing_notification_stream: SubspaceNotificationStream<RewardSigningNotification>, - pub archived_segment_notification_stream: SubspaceNotificationStream<ArchivedSegmentNotification>, + pub new_slot_notification_stream: SubspaceNotificationStream<NewSlotNotification>, + pub reward_signing_notification_stream: SubspaceNotificationStream<RewardSigningNotification>, + pub archived_segment_notification_stream: SubspaceNotificationStream<ArchivedSegmentNotification>, pub dsn_bootstrap_nodes: Vec<Multiaddr>, - pub segment_headers_store: SegmentHeadersStore<AS>, - pub sync_oracle: SubspaceSyncOracle<SO>, + pub segment_headers_store: SegmentHeadersStore<AS>, + pub sync_oracle: SubspaceSyncOracle<SO>, pub deny_unsafe: DenyUnsafe, pub kzg: Kzg, }
Expand description

Subspace RPC configuration

Fields§

§client: Arc<Client>

Substrate client

§subscription_executor: SubscriptionTaskExecutor

Task executor that is being used by RPC subscriptions

-
§new_slot_notification_stream: SubspaceNotificationStream<NewSlotNotification>

New slot notification stream

-
§reward_signing_notification_stream: SubspaceNotificationStream<RewardSigningNotification>

Reward signing notification stream

-
§archived_segment_notification_stream: SubspaceNotificationStream<ArchivedSegmentNotification>

Archived segment notification stream

+
§new_slot_notification_stream: SubspaceNotificationStream<NewSlotNotification>

New slot notification stream

+
§reward_signing_notification_stream: SubspaceNotificationStream<RewardSigningNotification>

Reward signing notification stream

+
§archived_segment_notification_stream: SubspaceNotificationStream<ArchivedSegmentNotification>

Archived segment notification stream

§dsn_bootstrap_nodes: Vec<Multiaddr>

DSN bootstrap nodes

-
§segment_headers_store: SegmentHeadersStore<AS>

Segment headers store

-
§sync_oracle: SubspaceSyncOracle<SO>

Subspace sync oracle

+
§segment_headers_store: SegmentHeadersStore<AS>

Segment headers store

+
§sync_oracle: SubspaceSyncOracle<SO>

Subspace sync oracle

§deny_unsafe: DenyUnsafe

Signifies whether a potentially unsafe RPC should be denied

§kzg: Kzg

Kzg instance

Auto Trait Implementations§

§

impl<Client, SO, AS> !RefUnwindSafe for SubspaceRpcConfig<Client, SO, AS>

§

impl<Client, SO, AS> Send for SubspaceRpcConfig<Client, SO, AS>
where diff --git a/settings.html b/settings.html index 51589d0c3f..a0149fb7e2 100644 --- a/settings.html +++ b/settings.html @@ -1,2 +1,2 @@ -Settings -

Rustdoc settings

Back
\ No newline at end of file +Settings +

Rustdoc settings

Back
\ No newline at end of file diff --git a/src/subspace_farmer_components/reading.rs.html b/src/subspace_farmer_components/reading.rs.html index 8430a4a9d3..e64916414a 100644 --- a/src/subspace_farmer_components/reading.rs.html +++ b/src/subspace_farmer_components/reading.rs.html @@ -424,8 +424,6 @@

Files

422 423 424 -425 -426

use crate::sector::{
     sector_record_chunks_size, RecordMetadata, SectorContentsMap, SectorContentsMapFromBytesError,
     SectorMetadataChecksummed,
@@ -546,7 +544,10 @@ 

Files

S: ReadAtSync, A: ReadAtAsync, { - let mut record_chunks = vec![None; Record::NUM_S_BUCKETS]; + // TODO: Should have been just `::new()`, but https://github.com/rust-lang/rust/issues/53827 + // SAFETY: Data structure filled with zeroes is a valid invariant + let mut record_chunks = + unsafe { Box::<[Option<Scalar>; Record::NUM_S_BUCKETS]>::new_zeroed().assume_init() }; let read_chunks_inputs = record_chunks .par_iter_mut() @@ -672,13 +673,6 @@

Files

} } - let mut record_chunks = ManuallyDrop::new(record_chunks); - - // SAFETY: Original memory is not dropped, layout is exactly what we need here - let record_chunks = unsafe { - Box::from_raw(record_chunks.as_mut_ptr() as *mut [Option<Scalar>; Record::NUM_S_BUCKETS]) - }; - Ok(record_chunks) } @@ -689,6 +683,8 @@

Files

erasure_coding: &ErasureCoding, ) -> Result<Box<[Scalar; Record::NUM_S_BUCKETS]>, ReadingError> { // Restore source record scalars + // TODO: Recover into `Box<[Scalar; Record::NUM_S_BUCKETS]>` or else conversion into `Box` below + // might leak memory let record_chunks = erasure_coding .recover(sector_record_chunks) .map_err(|error| ReadingError::FailedToErasureDecodeRecord { @@ -704,12 +700,12 @@

Files

}); } + // Allocation in vector can be larger than contents, we need to make sure allocation is the same + // as the contents, this should also contain fast path if allocation matches contents + let record_chunks = record_chunks.into_iter().collect::<Box<_>>(); let mut record_chunks = ManuallyDrop::new(record_chunks); - // SAFETY: Original memory is not dropped, size of the data checked above - let record_chunks = unsafe { - Box::from_raw(record_chunks.as_mut_ptr() as *mut [Scalar; Record::NUM_S_BUCKETS]) - }; + let record_chunks = unsafe { Box::from_raw(record_chunks.as_mut_ptr() as *mut _) }; Ok(record_chunks) } diff --git a/src/subspace_farmer_components/sector.rs.html b/src/subspace_farmer_components/sector.rs.html index b1c40c2d5e..c4aa52e158 100644 --- a/src/subspace_farmer_components/sector.rs.html +++ b/src/subspace_farmer_components/sector.rs.html @@ -597,6 +597,7 @@

Files

use bitvec::prelude::*;
 use parity_scale_codec::{Decode, Encode};
 use rayon::prelude::*;
+use std::mem::ManuallyDrop;
 use std::ops::{Deref, DerefMut};
 use std::{mem, slice};
 use subspace_core_primitives::checksum::Blake3Checksummed;
@@ -655,24 +656,24 @@ 

Files

impl SectorMetadata { /// Returns offsets of each s-bucket relatively to the beginning of the sector (in chunks) pub fn s_bucket_offsets(&self) -> Box<[u32; Record::NUM_S_BUCKETS]> { - // TODO: Should have been just `::new()`, but https://github.com/rust-lang/rust/issues/53827 - // SAFETY: Data structure filled with zeroes is a valid invariant - let mut s_bucket_offsets = - unsafe { Box::<[u32; Record::NUM_S_BUCKETS]>::new_zeroed().assume_init() }; - - self.s_bucket_sizes + let s_bucket_offsets = self + .s_bucket_sizes .iter() - .zip(s_bucket_offsets.iter_mut()) - .for_each({ + .map({ let mut base_offset = 0; - move |(s_bucket_size, s_bucket_offset)| { - *s_bucket_offset = base_offset; + move |s_bucket_size| { + let offset = base_offset; base_offset += u32::from(*s_bucket_size); + offset } - }); + }) + .collect::<Box<_>>(); - s_bucket_offsets + assert_eq!(s_bucket_offsets.len(), Record::NUM_S_BUCKETS); + let mut s_bucket_offsets = ManuallyDrop::new(s_bucket_offsets); + // SAFETY: Original memory is not dropped, number of elements checked above + unsafe { Box::from_raw(s_bucket_offsets.as_mut_ptr() as *mut [u32; Record::NUM_S_BUCKETS]) } } } @@ -760,6 +761,7 @@

Files

// Bit array containing space for bits equal to the number of s-buckets in a record type SingleRecordBitArray = BitArray<[u8; Record::NUM_S_BUCKETS / u8::BITS as usize]>; + const SINGLE_RECORD_BIT_ARRAY_SIZE: usize = mem::size_of::<SingleRecordBitArray>(); // TODO: I really tried to avoid `count_ones()`, but wasn't able to with safe Rust due to lifetimes @@ -996,23 +998,21 @@

Files

/// Returns sizes of each s-bucket pub fn s_bucket_sizes(&self) -> Box<[u16; Record::NUM_S_BUCKETS]> { - // TODO: Should have been just `::new()`, but https://github.com/rust-lang/rust/issues/53827 - // SAFETY: Data structure filled with zeroes is a valid invariant - let mut s_bucket_sizes = - unsafe { Box::<[u16; Record::NUM_S_BUCKETS]>::new_zeroed().assume_init() }; // Rayon doesn't support iteration over custom types yet - (u16::from(SBucket::ZERO)..=u16::from(SBucket::MAX)) +
let s_bucket_sizes = (u16::from(SBucket::ZERO)..=u16::from(SBucket::MAX)) .into_par_iter() .map(SBucket::from) - .zip(s_bucket_sizes.par_iter_mut()) - .for_each(|(s_bucket, s_bucket_size)| { - *s_bucket_size = self - .iter_s_bucket_records(s_bucket) + .map(|s_bucket| { + self.iter_s_bucket_records(s_bucket) .expect("S-bucket guaranteed to be in range; qed") - .count() as u16; - }); + .count() as u16 + }) + .collect::<Box<_>>(); - s_bucket_sizes + assert_eq!(s_bucket_sizes.len(), Record::NUM_S_BUCKETS); + let mut s_bucket_sizes = ManuallyDrop::new(s_bucket_sizes); + // SAFETY: Original memory is not dropped, number of elements checked above + unsafe { Box::from_raw(s_bucket_sizes.as_mut_ptr() as *mut [u16; Record::NUM_S_BUCKETS]) } } /// Creates an iterator of `(s_bucket, encoded_chunk_used, chunk_location)`, where `s_bucket` is diff --git a/subspace_farmer_components/reading/fn.read_piece.html b/subspace_farmer_components/reading/fn.read_piece.html index caa6025e6e..658bbb595f 100644 --- a/subspace_farmer_components/reading/fn.read_piece.html +++ b/subspace_farmer_components/reading/fn.read_piece.html @@ -1,5 +1,5 @@ read_piece in subspace_farmer_components::reading - Rust -
pub async fn read_piece<PosTable, S, A>(
+    
pub async fn read_piece<PosTable, S, A>(
     piece_offset: PieceOffset,
     sector_id: &SectorId,
     sector_metadata: &SectorMetadataChecksummed,
diff --git a/subspace_farmer_components/reading/fn.read_sector_record_chunks.html b/subspace_farmer_components/reading/fn.read_sector_record_chunks.html
index 95f12a3edc..cd1ccbef29 100644
--- a/subspace_farmer_components/reading/fn.read_sector_record_chunks.html
+++ b/subspace_farmer_components/reading/fn.read_sector_record_chunks.html
@@ -1,5 +1,5 @@
 read_sector_record_chunks in subspace_farmer_components::reading - Rust
-    
pub async fn read_sector_record_chunks<PosTable, S, A>(
+    
pub async fn read_sector_record_chunks<PosTable, S, A>(
     piece_offset: PieceOffset,
     pieces_in_sector: u16,
     s_bucket_offsets: &[u32; 65536],
diff --git a/subspace_farmer_components/reading/fn.recover_extended_record_chunks.html b/subspace_farmer_components/reading/fn.recover_extended_record_chunks.html
index d629f7a85c..4d65d5ba60 100644
--- a/subspace_farmer_components/reading/fn.recover_extended_record_chunks.html
+++ b/subspace_farmer_components/reading/fn.recover_extended_record_chunks.html
@@ -1,5 +1,5 @@
 recover_extended_record_chunks in subspace_farmer_components::reading - Rust
-    
pub fn recover_extended_record_chunks(
+    
pub fn recover_extended_record_chunks(
     sector_record_chunks: &[Option<Scalar>; 65536],
     piece_offset: PieceOffset,
     erasure_coding: &ErasureCoding
diff --git a/subspace_farmer_components/reading/fn.recover_source_record_chunks.html b/subspace_farmer_components/reading/fn.recover_source_record_chunks.html
index 7c1e4afd37..78c04c2ead 100644
--- a/subspace_farmer_components/reading/fn.recover_source_record_chunks.html
+++ b/subspace_farmer_components/reading/fn.recover_source_record_chunks.html
@@ -1,5 +1,5 @@
 recover_source_record_chunks in subspace_farmer_components::reading - Rust
-    
pub fn recover_source_record_chunks(
+    
pub fn recover_source_record_chunks(
     sector_record_chunks: &[Option<Scalar>; 65536],
     piece_offset: PieceOffset,
     erasure_coding: &ErasureCoding
diff --git a/subspace_farmer_components/reading/index.html b/subspace_farmer_components/reading/index.html
index c3e55231b8..d26b7d74b2 100644
--- a/subspace_farmer_components/reading/index.html
+++ b/subspace_farmer_components/reading/index.html
@@ -1,2 +1,2 @@
 subspace_farmer_components::reading - Rust
-    

Structs

Enums

Functions

\ No newline at end of file +

Structs

Enums

Functions

\ No newline at end of file diff --git a/subspace_farmer_components/sector/enum.SectorContentsMapEncodeIntoError.html b/subspace_farmer_components/sector/enum.SectorContentsMapEncodeIntoError.html index 333b09e1c1..bb4aa2175d 100644 --- a/subspace_farmer_components/sector/enum.SectorContentsMapEncodeIntoError.html +++ b/subspace_farmer_components/sector/enum.SectorContentsMapEncodeIntoError.html @@ -1,5 +1,5 @@ SectorContentsMapEncodeIntoError in subspace_farmer_components::sector - Rust -
pub enum SectorContentsMapEncodeIntoError {
+    
pub enum SectorContentsMapEncodeIntoError {
     InvalidBytesLength {
         expected: usize,
         actual: usize,
@@ -8,9 +8,9 @@
 

Variants§

§

InvalidBytesLength

Fields

§expected: usize

Expected length

§actual: usize

Actual length

Invalid bytes length

-

Trait Implementations§

source§

impl Clone for SectorContentsMapEncodeIntoError

source§

fn clone(&self) -> SectorContentsMapEncodeIntoError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorContentsMapEncodeIntoError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SectorContentsMapEncodeIntoError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SectorContentsMapEncodeIntoError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq for SectorContentsMapEncodeIntoError

source§

fn eq(&self, other: &SectorContentsMapEncodeIntoError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl Clone for SectorContentsMapEncodeIntoError

source§

fn clone(&self) -> SectorContentsMapEncodeIntoError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorContentsMapEncodeIntoError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SectorContentsMapEncodeIntoError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SectorContentsMapEncodeIntoError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq for SectorContentsMapEncodeIntoError

source§

fn eq(&self, other: &SectorContentsMapEncodeIntoError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for SectorContentsMapEncodeIntoError

source§

impl Eq for SectorContentsMapEncodeIntoError

source§

impl StructuralEq for SectorContentsMapEncodeIntoError

source§

impl StructuralPartialEq for SectorContentsMapEncodeIntoError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl Copy for SectorContentsMapEncodeIntoError

source§

impl Eq for SectorContentsMapEncodeIntoError

source§

impl StructuralEq for SectorContentsMapEncodeIntoError

source§

impl StructuralPartialEq for SectorContentsMapEncodeIntoError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/subspace_farmer_components/sector/enum.SectorContentsMapFromBytesError.html b/subspace_farmer_components/sector/enum.SectorContentsMapFromBytesError.html index 73dfee452d..f364a94655 100644 --- a/subspace_farmer_components/sector/enum.SectorContentsMapFromBytesError.html +++ b/subspace_farmer_components/sector/enum.SectorContentsMapFromBytesError.html @@ -1,5 +1,5 @@ SectorContentsMapFromBytesError in subspace_farmer_components::sector - Rust -
pub enum SectorContentsMapFromBytesError {
+    
pub enum SectorContentsMapFromBytesError {
     InvalidBytesLength {
         expected: usize,
         actual: usize,
@@ -17,9 +17,9 @@
 
§max: usize

Max supported

Invalid number of encoded record chunks

§

ChecksumMismatch

Checksum mismatch

-

Trait Implementations§

source§

impl Clone for SectorContentsMapFromBytesError

source§

fn clone(&self) -> SectorContentsMapFromBytesError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorContentsMapFromBytesError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SectorContentsMapFromBytesError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SectorContentsMapFromBytesError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<SectorContentsMapFromBytesError> for ProvingError

source§

fn from(source: SectorContentsMapFromBytesError) -> Self

Converts to this type from the input type.
source§

impl From<SectorContentsMapFromBytesError> for ReadingError

source§

fn from(source: SectorContentsMapFromBytesError) -> Self

Converts to this type from the input type.
source§

impl PartialEq for SectorContentsMapFromBytesError

source§

fn eq(&self, other: &SectorContentsMapFromBytesError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl Clone for SectorContentsMapFromBytesError

source§

fn clone(&self) -> SectorContentsMapFromBytesError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorContentsMapFromBytesError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SectorContentsMapFromBytesError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SectorContentsMapFromBytesError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<SectorContentsMapFromBytesError> for ProvingError

source§

fn from(source: SectorContentsMapFromBytesError) -> Self

Converts to this type from the input type.
source§

impl From<SectorContentsMapFromBytesError> for ReadingError

source§

fn from(source: SectorContentsMapFromBytesError) -> Self

Converts to this type from the input type.
source§

impl PartialEq for SectorContentsMapFromBytesError

source§

fn eq(&self, other: &SectorContentsMapFromBytesError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for SectorContentsMapFromBytesError

source§

impl Eq for SectorContentsMapFromBytesError

source§

impl StructuralEq for SectorContentsMapFromBytesError

source§

impl StructuralPartialEq for SectorContentsMapFromBytesError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl Copy for SectorContentsMapFromBytesError

source§

impl Eq for SectorContentsMapFromBytesError

source§

impl StructuralEq for SectorContentsMapFromBytesError

source§

impl StructuralPartialEq for SectorContentsMapFromBytesError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/subspace_farmer_components/sector/enum.SectorContentsMapIterationError.html b/subspace_farmer_components/sector/enum.SectorContentsMapIterationError.html index d4b625299d..7f1e4b1ea8 100644 --- a/subspace_farmer_components/sector/enum.SectorContentsMapIterationError.html +++ b/subspace_farmer_components/sector/enum.SectorContentsMapIterationError.html @@ -1,5 +1,5 @@ SectorContentsMapIterationError in subspace_farmer_components::sector - Rust -
pub enum SectorContentsMapIterationError {
+    
pub enum SectorContentsMapIterationError {
     SBucketOutOfRange {
         provided: usize,
         max: usize,
@@ -8,9 +8,9 @@
 

Variants§

§

SBucketOutOfRange

Fields

§provided: usize

Provided s-bucket

§max: usize

Max s-bucket

S-bucket provided is out of range

-

Trait Implementations§

source§

impl Clone for SectorContentsMapIterationError

source§

fn clone(&self) -> SectorContentsMapIterationError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorContentsMapIterationError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SectorContentsMapIterationError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SectorContentsMapIterationError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq for SectorContentsMapIterationError

source§

fn eq(&self, other: &SectorContentsMapIterationError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl Clone for SectorContentsMapIterationError

source§

fn clone(&self) -> SectorContentsMapIterationError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorContentsMapIterationError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SectorContentsMapIterationError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SectorContentsMapIterationError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq for SectorContentsMapIterationError

source§

fn eq(&self, other: &SectorContentsMapIterationError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for SectorContentsMapIterationError

source§

impl Eq for SectorContentsMapIterationError

source§

impl StructuralEq for SectorContentsMapIterationError

source§

impl StructuralPartialEq for SectorContentsMapIterationError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl Copy for SectorContentsMapIterationError

source§

impl Eq for SectorContentsMapIterationError

source§

impl StructuralEq for SectorContentsMapIterationError

source§

impl StructuralPartialEq for SectorContentsMapIterationError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/subspace_farmer_components/sector/fn.sector_record_chunks_size.html b/subspace_farmer_components/sector/fn.sector_record_chunks_size.html index 239b4f3fbe..72f8d97083 100644 --- a/subspace_farmer_components/sector/fn.sector_record_chunks_size.html +++ b/subspace_farmer_components/sector/fn.sector_record_chunks_size.html @@ -1,4 +1,4 @@ sector_record_chunks_size in subspace_farmer_components::sector - Rust -
pub const fn sector_record_chunks_size(pieces_in_sector: u16) -> usize
Expand description

Size of the part of the plot containing record chunks (s-buckets).

+
pub const fn sector_record_chunks_size(pieces_in_sector: u16) -> usize
Expand description

Size of the part of the plot containing record chunks (s-buckets).

Total size of the plot can be computed with sector_size().

\ No newline at end of file diff --git a/subspace_farmer_components/sector/fn.sector_record_metadata_size.html b/subspace_farmer_components/sector/fn.sector_record_metadata_size.html index 4ea346f477..408db1fd34 100644 --- a/subspace_farmer_components/sector/fn.sector_record_metadata_size.html +++ b/subspace_farmer_components/sector/fn.sector_record_metadata_size.html @@ -1,4 +1,4 @@ sector_record_metadata_size in subspace_farmer_components::sector - Rust -
pub const fn sector_record_metadata_size(pieces_in_sector: u16) -> usize
Expand description

Size of the part of the plot containing record metadata.

+
pub const fn sector_record_metadata_size(pieces_in_sector: u16) -> usize
Expand description

Size of the part of the plot containing record metadata.

Total size of the plot can be computed with sector_size().

\ No newline at end of file diff --git a/subspace_farmer_components/sector/fn.sector_size.html b/subspace_farmer_components/sector/fn.sector_size.html index 096f118aa5..7be6152490 100644 --- a/subspace_farmer_components/sector/fn.sector_size.html +++ b/subspace_farmer_components/sector/fn.sector_size.html @@ -1,5 +1,5 @@ sector_size in subspace_farmer_components::sector - Rust -
pub const fn sector_size(pieces_in_sector: u16) -> usize
Expand description

Exact sector plot size (sector contents map, record chunks, record metadata).

+
pub const fn sector_size(pieces_in_sector: u16) -> usize
Expand description

Exact sector plot size (sector contents map, record chunks, record metadata).

NOTE: Each sector also has corresponding fixed size metadata whose size can be obtained with SectorMetadataChecksummed::encoded_size(), size of the record chunks (s-buckets) with sector_record_chunks_size() and size of record commitments and witnesses with diff --git a/subspace_farmer_components/sector/struct.EncodedChunksUsed.html b/subspace_farmer_components/sector/struct.EncodedChunksUsed.html index 11be847cd5..fc16e6a3d3 100644 --- a/subspace_farmer_components/sector/struct.EncodedChunksUsed.html +++ b/subspace_farmer_components/sector/struct.EncodedChunksUsed.html @@ -1,15 +1,15 @@ EncodedChunksUsed in subspace_farmer_components::sector - Rust

-
pub struct EncodedChunksUsed<'a> { /* private fields */ }
Expand description

Wrapper data structure that allows to iterate mutably over encoded chunks bitfields, while +

pub struct EncodedChunksUsed<'a> { /* private fields */ }
Expand description

Wrapper data structure that allows to iterate mutably over encoded chunks bitfields, while maintaining up to date number of encoded chunks

Panics

Panics on drop if too many chunks are encoded

-

Implementations§

source§

impl EncodedChunksUsed<'_>

source

pub fn iter( +

Implementations§

source§

impl EncodedChunksUsed<'_>

source

pub fn iter( &self ) -> impl ExactSizeIterator<Item = impl Deref<Target = bool> + '_> + '_

Produces an iterator over encoded chunks bitfields.

-
source

pub fn iter_mut( +

source

pub fn iter_mut( &mut self ) -> impl ExactSizeIterator<Item = impl DerefMut<Target = bool> + '_> + '_

Produces a mutable iterator over encoded chunks bitfields.

-

Trait Implementations§

source§

impl Drop for EncodedChunksUsed<'_>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for EncodedChunksUsed<'a>

§

impl<'a> Send for EncodedChunksUsed<'a>

§

impl<'a> Sync for EncodedChunksUsed<'a>

§

impl<'a> Unpin for EncodedChunksUsed<'a>

§

impl<'a> !UnwindSafe for EncodedChunksUsed<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Drop for EncodedChunksUsed<'_>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for EncodedChunksUsed<'a>

§

impl<'a> Send for EncodedChunksUsed<'a>

§

impl<'a> Sync for EncodedChunksUsed<'a>

§

impl<'a> Unpin for EncodedChunksUsed<'a>

§

impl<'a> !UnwindSafe for EncodedChunksUsed<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/subspace_farmer_components/sector/struct.SectorContentsMap.html b/subspace_farmer_components/sector/struct.SectorContentsMap.html index 2d0422102d..627f12a68d 100644 --- a/subspace_farmer_components/sector/struct.SectorContentsMap.html +++ b/subspace_farmer_components/sector/struct.SectorContentsMap.html @@ -1,28 +1,28 @@ SectorContentsMap in subspace_farmer_components::sector - Rust -
pub struct SectorContentsMap { /* private fields */ }
Expand description

Abstraction on top of bitfields that allow making sense of sector contents that contains both +

pub struct SectorContentsMap { /* private fields */ }
Expand description

Abstraction on top of bitfields that allow making sense of sector contents that contains both encoded (meaning erasure coded and encoded with existing PoSpace quality) and unencoded chunks (just erasure coded) used at the same time both in records (before writing to plot) and s-buckets (written into the plot) format

-

Implementations§

source§

impl SectorContentsMap

source

pub fn new(pieces_in_sector: u16) -> Self

Create new sector contents map initialized with zeroes to store data for pieces_in_sector +

Implementations§

source§

impl SectorContentsMap

source

pub fn new(pieces_in_sector: u16) -> Self

Create new sector contents map initialized with zeroes to store data for pieces_in_sector records

-
source

pub fn from_bytes( +

source

pub fn from_bytes( bytes: &[u8], pieces_in_sector: u16 ) -> Result<Self, SectorContentsMapFromBytesError>

Reconstruct sector contents map from bytes.

Returns error if length of the vector doesn’t match Self::encoded_size() for pieces_in_sector.

-
source

pub const fn encoded_size(pieces_in_sector: u16) -> usize

Size of sector contents map when encoded and stored in the plot for specified number of +

source

pub const fn encoded_size(pieces_in_sector: u16) -> usize

Size of sector contents map when encoded and stored in the plot for specified number of pieces in sector

-
source

pub fn encode_into( +

source

pub fn encode_into( &self, output: &mut [u8] ) -> Result<(), SectorContentsMapEncodeIntoError>

Encode internal contents into output

-
source

pub fn num_encoded_record_chunks(&self) -> &[SBucket]

Number of encoded chunks in each record

-
source

pub fn iter_record_bitfields(&self) -> &[BitArray<[u8; 8192]>]

Iterate over individual record bitfields

-
source

pub fn iter_record_bitfields_mut( +

source

pub fn num_encoded_record_chunks(&self) -> &[SBucket]

Number of encoded chunks in each record

+
source

pub fn iter_record_bitfields(&self) -> &[BitArray<[u8; 8192]>]

Iterate over individual record bitfields

+
source

pub fn iter_record_bitfields_mut( &mut self ) -> impl ExactSizeIterator<Item = EncodedChunksUsed<'_>> + '_

Iterate mutably over individual record bitfields

-
source

pub fn s_bucket_sizes(&self) -> Box<[u16; 65536]>

Returns sizes of each s-bucket

+
source

pub fn s_bucket_sizes(&self) -> Box<[u16; 65536]>

Returns sizes of each s-bucket

source

pub fn iter_record_chunk_to_plot( &self, piece_offset: PieceOffset @@ -53,7 +53,7 @@ position

Panics

Panics if s_bucket is outside of [Record::NUM_S_BUCKETS] range.

-

Trait Implementations§

source§

impl Clone for SectorContentsMap

source§

fn clone(&self) -> SectorContentsMap

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorContentsMap

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Clone for SectorContentsMap

source§

fn clone(&self) -> SectorContentsMap

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorContentsMap

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/subspace_farmer_components/sector/struct.SectorMetadata.html b/subspace_farmer_components/sector/struct.SectorMetadata.html index 272febd124..7b293d5542 100644 --- a/subspace_farmer_components/sector/struct.SectorMetadata.html +++ b/subspace_farmer_components/sector/struct.SectorMetadata.html @@ -1,5 +1,5 @@ SectorMetadata in subspace_farmer_components::sector - Rust -
pub struct SectorMetadata {
+    
pub struct SectorMetadata {
     pub sector_index: SectorIndex,
     pub pieces_in_sector: u16,
     pub s_bucket_sizes: Box<[u16; 65536]>,
@@ -9,19 +9,19 @@
 
§pieces_in_sector: u16

Number of pieces stored in this sector

§s_bucket_sizes: Box<[u16; 65536]>

S-bucket sizes in a sector

§history_size: HistorySize

Size of the blockchain history at time of sector creation

-

Implementations§

source§

impl SectorMetadata

source

pub fn s_bucket_offsets(&self) -> Box<[u32; 65536]>

Returns offsets of each s-bucket relatively to the beginning of the sector (in chunks)

-

Trait Implementations§

source§

impl Clone for SectorMetadata

source§

fn clone(&self) -> SectorMetadata

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorMetadata

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for SectorMetadata

source§

fn decode<__CodecInputEdqy: Input>( +

Implementations§

source§

impl SectorMetadata

source

pub fn s_bucket_offsets(&self) -> Box<[u32; 65536]>

Returns offsets of each s-bucket relatively to the beginning of the sector (in chunks)

+

Trait Implementations§

source§

impl Clone for SectorMetadata

source§

fn clone(&self) -> SectorMetadata

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorMetadata

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for SectorMetadata

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where - I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl Encode for SectorMetadata

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( + I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl Encode for SectorMetadata

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where - F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl From<SectorMetadata> for SectorMetadataChecksummed

source§

fn from(value: SectorMetadata) -> Self

Converts to this type from the input type.
source§

impl EncodeLike for SectorMetadata

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl From<SectorMetadata> for SectorMetadataChecksummed

source§

fn from(value: SectorMetadata) -> Self

Converts to this type from the input type.
source§

impl EncodeLike for SectorMetadata

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/subspace_farmer_components/sector/struct.SectorMetadataChecksummed.html b/subspace_farmer_components/sector/struct.SectorMetadataChecksummed.html index 6fa4855cc4..4f31f4b492 100644 --- a/subspace_farmer_components/sector/struct.SectorMetadataChecksummed.html +++ b/subspace_farmer_components/sector/struct.SectorMetadataChecksummed.html @@ -1,22 +1,22 @@ SectorMetadataChecksummed in subspace_farmer_components::sector - Rust -
pub struct SectorMetadataChecksummed(/* private fields */);
Expand description

Same as SectorMetadata, but with checksums verified during SCALE encoding/decoding

-

Implementations§

source§

impl SectorMetadataChecksummed

source

pub fn encoded_size() -> usize

Size of encoded checksummed sector metadata.

+
pub struct SectorMetadataChecksummed(/* private fields */);
Expand description

Same as SectorMetadata, but with checksums verified during SCALE encoding/decoding

+

Implementations§

source§

impl SectorMetadataChecksummed

source

pub fn encoded_size() -> usize

Size of encoded checksummed sector metadata.

For sector plot size use sector_size().

-

Methods from Deref<Target = SectorMetadata>§

source

pub fn s_bucket_offsets(&self) -> Box<[u32; 65536]>

Returns offsets of each s-bucket relatively to the beginning of the sector (in chunks)

-

Trait Implementations§

source§

impl Clone for SectorMetadataChecksummed

source§

fn clone(&self) -> SectorMetadataChecksummed

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorMetadataChecksummed

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for SectorMetadataChecksummed

source§

fn decode<__CodecInputEdqy: Input>( +

Methods from Deref<Target = SectorMetadata>§

source

pub fn s_bucket_offsets(&self) -> Box<[u32; 65536]>

Returns offsets of each s-bucket relatively to the beginning of the sector (in chunks)

+

Trait Implementations§

source§

impl Clone for SectorMetadataChecksummed

source§

fn clone(&self) -> SectorMetadataChecksummed

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectorMetadataChecksummed

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for SectorMetadataChecksummed

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>

Attempt to deserialise the value from input.
§

fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>
where I: Input,

Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§

fn skip<I>(input: &mut I) -> Result<(), Error>
where - I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl Deref for SectorMetadataChecksummed

§

type Target = SectorMetadata

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for SectorMetadataChecksummed

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl Encode for SectorMetadataChecksummed

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( + I: Input,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl Deref for SectorMetadataChecksummed

§

type Target = SectorMetadata

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for SectorMetadataChecksummed

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl Encode for SectorMetadataChecksummed

source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy -)

Convert self to a slice and append it to the destination.
source§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
source§

fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>( +)

Convert self to a slice and append it to the destination.
source§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
source§

fn using_encoded<__CodecOutputReturn, __CodecUsingEncodedCallback: FnOnce(&[u8]) -> __CodecOutputReturn>( &self, f: __CodecUsingEncodedCallback -) -> __CodecOutputReturn

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl From<SectorMetadata> for SectorMetadataChecksummed

source§

fn from(value: SectorMetadata) -> Self

Converts to this type from the input type.
source§

impl EncodeLike for SectorMetadataChecksummed

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +) -> __CodecOutputReturn

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl From<SectorMetadata> for SectorMetadataChecksummed

source§

fn from(value: SectorMetadata) -> Self

Converts to this type from the input type.
source§

impl EncodeLike for SectorMetadataChecksummed

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where diff --git a/subspace_service/type.HostFunctions.html b/subspace_service/type.HostFunctions.html index 5a01aa194e..da1357c3d1 100644 --- a/subspace_service/type.HostFunctions.html +++ b/subspace_service/type.HostFunctions.html @@ -1,3 +1,3 @@ HostFunctions in subspace_service - Rust -
pub type HostFunctions = (SubstrateHostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions);
Expand description

Host functions required for Subspace

+
pub type HostFunctions = (SubstrateHostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions);
Expand description

Host functions required for Subspace

\ No newline at end of file diff --git a/trait.impl/domain_service/providers/trait.BlockImportProvider.js b/trait.impl/domain_service/providers/trait.BlockImportProvider.js index e39bd90257..f1dfc1ffdf 100644 --- a/trait.impl/domain_service/providers/trait.BlockImportProvider.js +++ b/trait.impl/domain_service/providers/trait.BlockImportProvider.js @@ -1,4 +1,4 @@ (function() {var implementors = { -"domain_eth_service":[["impl<Block, RuntimeApi, CT, EC> BlockImportProvider<Block, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>> for EthProvider<CT, EC>
where\n Block: BlockT,\n RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi>> + Send + Sync + 'static,\n RuntimeApi::RuntimeApi: ApiExt<Block> + Core<Block> + BlockBuilder<Block> + EthereumRuntimeRPCApi<Block>,
"]], +"domain_eth_service":[["impl<Block, RuntimeApi, CT, EC> BlockImportProvider<Block, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<((HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>> for EthProvider<CT, EC>
where\n Block: BlockT,\n RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi>> + Send + Sync + 'static,\n RuntimeApi::RuntimeApi: ApiExt<Block> + Core<Block> + BlockBuilder<Block> + EthereumRuntimeRPCApi<Block>,
"]], "domain_service":[] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/domain_service/providers/trait.RpcProvider.js b/trait.impl/domain_service/providers/trait.RpcProvider.js index ccb2b50c92..d0b83d84c5 100644 --- a/trait.impl/domain_service/providers/trait.RpcProvider.js +++ b/trait.impl/domain_service/providers/trait.RpcProvider.js @@ -1,4 +1,4 @@ (function() {var implementors = { -"domain_eth_service":[["impl<Block, Client, BE, TxPool, CA, AccountId, CT, EC, CIDP> RpcProvider<Block, Client, TxPool, CA, BE, AccountId, CIDP> for EthProvider<CT, EC>
where\n Block: BlockT<Hash = H256>,\n BE: Backend<Block> + 'static,\n Client: ProvideRuntimeApi<Block> + BlockchainEvents<Block> + StorageProvider<Block, BE> + HeaderBackend<Block> + CallApiAt<Block> + HeaderMetadata<Block, Error = Error> + BlockBackend<Block> + AuxStore + Send + Sync + 'static,\n Client::Api: TransactionPaymentRuntimeApi<Block, Balance> + EthereumRuntimeRPCApi<Block> + AccountNonceApi<Block, AccountId, Nonce> + ConvertTransactionRuntimeApi<Block> + BlockBuilder<Block>,\n CT: ConvertTransaction<<Block as BlockT>::Extrinsic> + Clone + Default + Send + Sync + 'static,\n EC: EthConfig<Block, Client>,\n TxPool: TransactionPool<Block = Block> + Sync + Send + 'static,\n CA: ChainApi<Block = Block> + 'static,\n AccountId: DeserializeOwned + Encode + Debug + Decode + Display + Clone + Sync + Send + 'static,\n CIDP: CreateInherentDataProviders<Block, ()> + Send + Clone + 'static,
"]], +"domain_eth_service":[["impl<Block, Client, BE, TxPool, CA, AccountId, CT, EC, CIDP> RpcProvider<Block, Client, TxPool, CA, BE, AccountId, CIDP> for EthProvider<CT, EC>
where\n Block: BlockT<Hash = H256>,\n BE: Backend<Block> + 'static,\n Client: ProvideRuntimeApi<Block> + BlockchainEvents<Block> + StorageProvider<Block, BE> + HeaderBackend<Block> + CallApiAt<Block> + HeaderMetadata<Block, Error = Error> + BlockBackend<Block> + AuxStore + Send + Sync + 'static,\n Client::Api: TransactionPaymentRuntimeApi<Block, Balance> + EthereumRuntimeRPCApi<Block> + AccountNonceApi<Block, AccountId, Nonce> + ConvertTransactionRuntimeApi<Block> + BlockBuilder<Block>,\n CT: ConvertTransaction<<Block as BlockT>::Extrinsic> + Clone + Default + Send + Sync + 'static,\n EC: EthConfig<Block, Client>,\n TxPool: TransactionPool<Block = Block> + Sync + Send + 'static,\n CA: ChainApi<Block = Block> + 'static,\n AccountId: DeserializeOwned + Encode + Debug + Decode + Display + Clone + Sync + Send + 'static,\n CIDP: CreateInherentDataProviders<Block, ()> + Send + Clone + 'static,
"]], "domain_service":[] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/trait.impl/scale_info/trait.TypeInfo.js b/trait.impl/scale_info/trait.TypeInfo.js index c7249a1756..9d7dae8ef5 100644 --- a/trait.impl/scale_info/trait.TypeInfo.js +++ b/trait.impl/scale_info/trait.TypeInfo.js @@ -6,7 +6,7 @@ "orml_vesting":[["impl<BlockNumber, Balance> TypeInfo for VestingSchedule<BlockNumber, Balance>
where\n BlockNumber: TypeInfo + 'static,\n Balance: HasCompact + MaxEncodedLen + HasCompact + TypeInfo + 'static,
"],["impl<T> TypeInfo for Event<T>
where\n T::AccountId: TypeInfo + 'static,\n VestingSchedule<BlockNumberFor<T>, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>: TypeInfo + 'static,\n <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance: TypeInfo + 'static,\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,
"],["impl<T> TypeInfo for Call<T>
where\n PhantomData<(T,)>: TypeInfo + 'static,\n <T::Lookup as StaticLookup>::Source: TypeInfo + 'static,\n VestingSchedule<BlockNumberFor<T>, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>: TypeInfo + 'static,\n Vec<VestingSchedule<BlockNumberFor<T>, <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance>>: TypeInfo + 'static,\n T: Config + 'static,
"],["impl<T> TypeInfo for Error<T>
where\n PhantomData<T>: TypeInfo + 'static,\n T: 'static,
"]], "pallet_block_fees":[["impl<T> TypeInfo for Call<T>
where\n PhantomData<(T,)>: TypeInfo + 'static,\n T::Balance: HasCompact,\n T: Config + 'static,
"]], "pallet_domain_id":[["impl<T> TypeInfo for Call<T>
where\n PhantomData<(T,)>: TypeInfo + 'static,\n T: Config + 'static,
"]], -"pallet_domains":[["impl<AccountId, Balance> TypeInfo for DomainConfig<AccountId, Balance>
where\n OperatorAllowList<AccountId>: TypeInfo + 'static,\n Vec<(MultiAccountId, Balance)>: TypeInfo + 'static,\n AccountId: Ord + TypeInfo + 'static,\n Balance: TypeInfo + 'static,
"],["impl<T> TypeInfo for Error<T>
where\n PhantomData<T>: TypeInfo + 'static,\n T: 'static,
"],["impl TypeInfo for BundleError"],["impl<Hash> TypeInfo for ScheduledRuntimeUpgrade<Hash>
where\n Hash: TypeInfo + 'static,
"],["impl<T> TypeInfo for Call<T>
where\n PhantomData<(T,)>: TypeInfo + 'static,\n OpaqueBundleOf<T>: TypeInfo + 'static,\n Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>: TypeInfo + 'static,\n <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: TypeInfo + 'static,\n OperatorConfig<<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>: TypeInfo + 'static,\n DomainConfig<T::AccountId, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>: TypeInfo + 'static,\n T::Share: TypeInfo + 'static,\n OperatorAllowList<T::AccountId>: TypeInfo + 'static,\n T: Config + 'static,
"],["impl<Number, Hash, DomainNumber, DomainHash, Balance> TypeInfo for BlockTreeNode<Number, Hash, DomainNumber, DomainHash, Balance>
where\n ExecutionReceipt<Number, Hash, DomainNumber, DomainHash, Balance>: TypeInfo + 'static,\n Number: TypeInfo + 'static,\n Hash: TypeInfo + 'static,\n DomainNumber: TypeInfo + 'static,\n DomainHash: TypeInfo + 'static,\n Balance: TypeInfo + 'static,
"],["impl TypeInfo for TxRangeState"],["impl TypeInfo for DomainRuntimeInfo"],["impl TypeInfo for FraudProofError"],["impl TypeInfo for Error"],["impl<Balance> TypeInfo for OperatorConfig<Balance>
where\n Balance: TypeInfo + 'static,
"],["impl<Number, Hash> TypeInfo for RuntimeObject<Number, Hash>
where\n Hash: TypeInfo + 'static,\n Number: TypeInfo + 'static,
"],["impl<DomainBlock, ReceiptHash> TypeInfo for SlashedReason<DomainBlock, ReceiptHash>
where\n DomainBlock: TypeInfo + 'static,\n ReceiptHash: TypeInfo + 'static,
"],["impl TypeInfo for Error"],["impl<T> TypeInfo for Event<T>
where\n BlockNumberFor<T>: TypeInfo + 'static,\n <T as Config>::AccountId: TypeInfo + 'static,\n <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: TypeInfo + 'static,\n Option<DomainBlockNumberFor<T>>: TypeInfo + 'static,\n SlashedReason<DomainBlockNumberFor<T>, ReceiptHashFor<T>>: TypeInfo + 'static,\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,
"],["impl TypeInfo for Error"],["impl<Number, ReceiptHash, AccountId, Balance> TypeInfo for DomainObject<Number, ReceiptHash, AccountId, Balance>
where\n AccountId: TypeInfo + 'static + Ord,\n Number: TypeInfo + 'static,\n ReceiptHash: TypeInfo + 'static,\n DomainConfig<AccountId, Balance>: TypeInfo + 'static,\n Balance: TypeInfo + 'static,
"]], +"pallet_domains":[["impl<AccountId, Balance> TypeInfo for DomainConfig<AccountId, Balance>
where\n OperatorAllowList<AccountId>: TypeInfo + 'static,\n Vec<(MultiAccountId, Balance)>: TypeInfo + 'static,\n AccountId: Ord + TypeInfo + 'static,\n Balance: TypeInfo + 'static,
"],["impl<T> TypeInfo for Error<T>
where\n PhantomData<T>: TypeInfo + 'static,\n T: 'static,
"],["impl TypeInfo for BundleError"],["impl<Hash> TypeInfo for ScheduledRuntimeUpgrade<Hash>
where\n Hash: TypeInfo + 'static,
"],["impl<T> TypeInfo for Call<T>
where\n PhantomData<(T,)>: TypeInfo + 'static,\n OpaqueBundleOf<T>: TypeInfo + 'static,\n Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>: TypeInfo + 'static,\n <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: TypeInfo + 'static,\n OperatorConfig<<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>: TypeInfo + 'static,\n DomainConfig<T::AccountId, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>: TypeInfo + 'static,\n T::Share: TypeInfo + 'static,\n OperatorAllowList<T::AccountId>: TypeInfo + 'static,\n T: Config + 'static,
"],["impl<Number, Hash, DomainNumber, DomainHash, Balance> TypeInfo for BlockTreeNode<Number, Hash, DomainNumber, DomainHash, Balance>
where\n ExecutionReceipt<Number, Hash, DomainNumber, DomainHash, Balance>: TypeInfo + 'static,\n Number: TypeInfo + 'static,\n Hash: TypeInfo + 'static,\n DomainNumber: TypeInfo + 'static,\n DomainHash: TypeInfo + 'static,\n Balance: TypeInfo + 'static,
"],["impl TypeInfo for TxRangeState"],["impl TypeInfo for DomainRuntimeInfo"],["impl TypeInfo for FraudProofError"],["impl TypeInfo for Error"],["impl<Balance> TypeInfo for OperatorConfig<Balance>
where\n Balance: TypeInfo + 'static,
"],["impl<Number, Hash> TypeInfo for RuntimeObject<Number, Hash>
where\n Hash: TypeInfo + 'static,\n Number: TypeInfo + 'static,
"],["impl<DomainBlock, ReceiptHash> TypeInfo for SlashedReason<DomainBlock, ReceiptHash>
where\n DomainBlock: TypeInfo + 'static,\n ReceiptHash: TypeInfo + 'static,
"],["impl TypeInfo for Error"],["impl<T> TypeInfo for Event<T>
where\n BlockNumberFor<T>: TypeInfo + 'static,\n <T as Config>::AccountId: TypeInfo + 'static,\n <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: TypeInfo + 'static,\n Option<DomainBlockNumberFor<T>>: TypeInfo + 'static,\n SlashedReason<DomainBlockNumberFor<T>, ReceiptHashFor<T>>: TypeInfo + 'static,\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,
"],["impl TypeInfo for Error"],["impl<Number, ReceiptHash, AccountId, Balance> TypeInfo for DomainObject<Number, ReceiptHash, AccountId, Balance>
where\n AccountId: TypeInfo + 'static + Ord,\n Number: TypeInfo + 'static,\n ReceiptHash: TypeInfo + 'static,\n DomainConfig<AccountId, Balance>: TypeInfo + 'static,\n Balance: TypeInfo + 'static,
"]], "pallet_feeds":[["impl<T> TypeInfo for Call<T>
where\n PhantomData<(T,)>: TypeInfo + 'static,\n T::FeedProcessorKind: TypeInfo + 'static,\n T::FeedId: TypeInfo + 'static,\n <T::Lookup as StaticLookup>::Source: TypeInfo + 'static,\n T: Config + 'static,
"],["impl TypeInfo for TotalObjectsAndSize"],["impl<T> TypeInfo for Error<T>
where\n PhantomData<T>: TypeInfo + 'static,\n T: 'static,
"],["impl<FeedProcessorId, AccountId> TypeInfo for FeedConfig<FeedProcessorId, AccountId>
where\n FeedProcessorId: TypeInfo + 'static,\n AccountId: TypeInfo + 'static,
"],["impl<T> TypeInfo for Event<T>
where\n T::FeedId: TypeInfo + 'static,\n T::AccountId: TypeInfo + 'static,\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,
"]], "pallet_grandpa_finality_verifier":[["impl TypeInfo for InitializationData"],["impl<T> TypeInfo for Error<T>
where\n PhantomData<T>: TypeInfo + 'static,\n T: 'static,
"],["impl<T> TypeInfo for Call<T>
where\n PhantomData<(T,)>: TypeInfo + 'static,\n T: Config + 'static,
"]], "pallet_messenger":[["impl<T> TypeInfo for Call<T>
where\n PhantomData<(T,)>: TypeInfo + 'static,\n InitiateChannelParams<<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>: TypeInfo + 'static,\n CrossDomainMessage<T::Hash, T::MmrHash>: TypeInfo + 'static,\n T: Config + 'static,
"],["impl<T> TypeInfo for Event<T>
where\n PhantomData<T>: TypeInfo + 'static,\n T: Config + 'static,
"],["impl<Balance> TypeInfo for Channel<Balance>
where\n FeeModel<Balance>: TypeInfo + 'static,\n Balance: TypeInfo + 'static,
"],["impl TypeInfo for ChannelState"],["impl<T> TypeInfo for Error<T>
where\n PhantomData<T>: TypeInfo + 'static,\n T: 'static,
"],["impl TypeInfo for OutboxMessageResult"]], diff --git a/type.impl/domain_client_operator/operator/struct.Operator.js b/type.impl/domain_client_operator/operator/struct.Operator.js index ff85fc25f9..c62e0d2638 100644 --- a/type.impl/domain_client_operator/operator/struct.Operator.js +++ b/type.impl/domain_client_operator/operator/struct.Operator.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"domain_service":[["
§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E> Operator<Block, CBlock, Client, CClient, TransactionPool, Backend, E>
where\n Block: Block,\n <Block as Block>::Hash: Into<H256>,\n CBlock: Block,\n <<CBlock as Block>::Header as Header>::Number: From<<<Block as Block>::Header as Header>::Number> + Into<<<Block as Block>::Header as Header>::Number>,\n <CBlock as Block>::Hash: From<<Block as Block>::Hash>,\n Client: HeaderBackend<Block> + BlockBackend<Block> + AuxStore + ProvideRuntimeApi<Block> + ProofProvider<Block> + Finalizer<Block, Backend> + 'static,\n <Client as ProvideRuntimeApi<Block>>::Api: DomainCoreApi<Block> + MessengerApi<Block, <<Block as Block>::Header as Header>::Number> + BlockBuilder<Block> + ApiExt<Block> + TaggedTransactionQueue<Block>,\n CClient: HeaderBackend<CBlock> + HeaderMetadata<CBlock, Error = Error> + BlockBackend<CBlock> + ProvideRuntimeApi<CBlock> + ProofProvider<CBlock> + BlockchainEvents<CBlock> + Send + Sync + 'static,\n <CClient as ProvideRuntimeApi<CBlock>>::Api: DomainsApi<CBlock, <Block as Block>::Header> + MessengerApi<CBlock, <<CBlock as Block>::Header as Header>::Number> + BundleProducerElectionApi<CBlock, u128> + FraudProofApi<CBlock, <Block as Block>::Header>,\n Backend: Backend<Block> + Send + Sync + 'static,\n TransactionPool: TransactionPool<Block = Block, Hash = <Block as Block>::Hash> + 'static,\n E: CodeExecutor,

pub async fn new<IBNS, CIBNS, NSNS, ASS>(\n spawn_essential: Box<dyn SpawnEssentialNamed>,\n params: OperatorParams<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS>\n) -> Result<Operator<Block, CBlock, Client, CClient, TransactionPool, Backend, E>, Error>
where\n IBNS: Stream<Item = (<<CBlock as Block>::Header as Header>::Number, Sender<()>)> + Send + 'static,\n CIBNS: Stream<Item = BlockImportNotification<CBlock>> + Send + 'static,\n NSNS: Stream<Item = (Slot, PotOutput)> + Send + 'static,\n ASS: Stream<Item = Sender<()>> + Send + 'static,

Create a new instance.

\n

pub fn fraud_proof_generator(\n &self\n) -> FraudProofGenerator<Block, CBlock, Client, CClient, Backend, E>

pub fn import_notification_stream(\n &self\n) -> TracingUnboundedReceiver<DomainBlockImportNotification<Block, CBlock>>

Get system domain block import notification stream.

\n

NOTE: Unlike BlockchainEvents::import_notification_stream(), this notification won’t be\nfired until the system domain block’s receipt processing is done.

\n
",0,"domain_service::domain::DomainOperator"],["
§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E> Clone for Operator<Block, CBlock, Client, CClient, TransactionPool, Backend, E>
where\n Block: Block,\n CBlock: Block,

§

fn clone(\n &self\n) -> Operator<Block, CBlock, Client, CClient, TransactionPool, Backend, E>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","domain_service::domain::DomainOperator"]] +"domain_service":[["
source§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E> Operator<Block, CBlock, Client, CClient, TransactionPool, Backend, E>
where\n Block: Block,\n <Block as Block>::Hash: Into<H256>,\n CBlock: Block,\n <<CBlock as Block>::Header as Header>::Number: From<<<Block as Block>::Header as Header>::Number> + Into<<<Block as Block>::Header as Header>::Number>,\n <CBlock as Block>::Hash: From<<Block as Block>::Hash>,\n Client: HeaderBackend<Block> + BlockBackend<Block> + AuxStore + ProvideRuntimeApi<Block> + ProofProvider<Block> + Finalizer<Block, Backend> + 'static,\n <Client as ProvideRuntimeApi<Block>>::Api: DomainCoreApi<Block> + MessengerApi<Block, <<Block as Block>::Header as Header>::Number> + BlockBuilder<Block> + ApiExt<Block> + TaggedTransactionQueue<Block>,\n CClient: HeaderBackend<CBlock> + HeaderMetadata<CBlock, Error = Error> + BlockBackend<CBlock> + ProvideRuntimeApi<CBlock> + ProofProvider<CBlock> + BlockchainEvents<CBlock> + Send + Sync + 'static,\n <CClient as ProvideRuntimeApi<CBlock>>::Api: DomainsApi<CBlock, <Block as Block>::Header> + MessengerApi<CBlock, <<CBlock as Block>::Header as Header>::Number> + BundleProducerElectionApi<CBlock, u128> + FraudProofApi<CBlock, <Block as Block>::Header>,\n Backend: Backend<Block> + Send + Sync + 'static,\n TransactionPool: TransactionPool<Block = Block, Hash = <Block as Block>::Hash> + 'static,\n E: CodeExecutor,

source

pub async fn new<IBNS, CIBNS, NSNS, ASS>(\n spawn_essential: Box<dyn SpawnEssentialNamed>,\n params: OperatorParams<Block, CBlock, Client, CClient, TransactionPool, Backend, E, IBNS, CIBNS, NSNS, ASS>\n) -> Result<Operator<Block, CBlock, Client, CClient, TransactionPool, Backend, E>, Error>
where\n IBNS: Stream<Item = (<<CBlock as Block>::Header as Header>::Number, Sender<()>)> + Send + 'static,\n CIBNS: Stream<Item = BlockImportNotification<CBlock>> + Send + 'static,\n NSNS: Stream<Item = (Slot, PotOutput)> + Send + 'static,\n ASS: Stream<Item = Sender<()>> + Send + 'static,

Create a new instance.

\n
source

pub fn fraud_proof_generator(\n &self\n) -> FraudProofGenerator<Block, CBlock, Client, CClient, Backend, E>

source

pub fn import_notification_stream(\n &self\n) -> TracingUnboundedReceiver<DomainBlockImportNotification<Block, CBlock>>

Get system domain block import notification stream.

\n

NOTE: Unlike BlockchainEvents::import_notification_stream(), this notification won’t be\nfired until the system domain block’s receipt processing is done.

\n
",0,"domain_service::domain::DomainOperator"],["
source§

impl<Block, CBlock, Client, CClient, TransactionPool, Backend, E> Clone for Operator<Block, CBlock, Client, CClient, TransactionPool, Backend, E>
where\n Block: Block,\n CBlock: Block,

source§

fn clone(\n &self\n) -> Operator<Block, CBlock, Client, CClient, TransactionPool, Backend, E>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","domain_service::domain::DomainOperator"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/type.impl/pallet_domains/struct.Pallet.js b/type.impl/pallet_domains/struct.Pallet.js index 1e856b160a..d1cd510e3a 100644 --- a/type.impl/pallet_domains/struct.Pallet.js +++ b/type.impl/pallet_domains/struct.Pallet.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"pallet_domains":[["
source§

impl<T: Config> Pallet<T>

source

pub fn submit_bundle(\n origin: OriginFor<T>,\n opaque_bundle: OpaqueBundleOf<T>\n) -> DispatchResultWithPostInfo

source

pub fn submit_fraud_proof(\n origin: OriginFor<T>,\n fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>\n) -> DispatchResult

source

pub fn register_domain_runtime(\n origin: OriginFor<T>,\n runtime_name: String,\n runtime_type: RuntimeType,\n raw_genesis_storage: Vec<u8>\n) -> DispatchResult

source

pub fn upgrade_domain_runtime(\n origin: OriginFor<T>,\n runtime_id: RuntimeId,\n raw_genesis_storage: Vec<u8>\n) -> DispatchResult

source

pub fn register_operator(\n origin: OriginFor<T>,\n domain_id: DomainId,\n amount: <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance,\n config: OperatorConfig<<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>\n) -> DispatchResult

source

pub fn nominate_operator(\n origin: OriginFor<T>,\n operator_id: OperatorId,\n amount: <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance\n) -> DispatchResult

source

pub fn instantiate_domain(\n origin: OriginFor<T>,\n domain_config: DomainConfig<T::AccountId, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>\n) -> DispatchResult

source

pub fn switch_domain(\n origin: OriginFor<T>,\n operator_id: OperatorId,\n new_domain_id: DomainId\n) -> DispatchResult

source

pub fn deregister_operator(\n origin: OriginFor<T>,\n operator_id: OperatorId\n) -> DispatchResult

source

pub fn withdraw_stake(\n origin: OriginFor<T>,\n operator_id: OperatorId,\n shares: T::Share\n) -> DispatchResult

source

pub fn unlock_funds(\n origin: OriginFor<T>,\n operator_id: OperatorId\n) -> DispatchResult

Unlocks the first withdrawal given the unlocking period is complete.\nEven if rest of the withdrawals are out of unlocking period, nominator\nshould call this extrinsic to unlock each withdrawal

\n
source

pub fn unlock_operator(\n origin: OriginFor<T>,\n operator_id: OperatorId\n) -> DispatchResult

Unlocks the operator given the unlocking period is complete.\nAnyone can initiate the operator unlock.

\n
source

pub fn update_domain_operator_allow_list(\n origin: OriginFor<T>,\n domain_id: DomainId,\n operator_allow_list: OperatorAllowList<T::AccountId>\n) -> DispatchResult

Extrinsic to update domain’s operator allow list.\nNote:

\n
    \n
  • If the previous allowed list is set to specific operators and new allow list is set\nto Anyone, then domain will become permissioned to open for all operators.
  • \n
  • If the previous allowed list is set to Anyone or specific operators and the new\nallow list is set to specific operators, then all the registered not allowed operators\nwill continue to operate until they de-register themselves.
  • \n
\n
source

pub fn force_staking_epoch_transition(\n origin: OriginFor<T>,\n domain_id: DomainId\n) -> DispatchResult

Force staking epoch transition for a given domain

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> Pallet<T>

source

pub fn operator_signing_key<KArg>(k: KArg) -> Option<OperatorId>
where\n KArg: EncodeLike<OperatorPublicKey>,

An auto-generated getter for OperatorSigningKey.

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> Pallet<T>

source

pub fn domain_staking_summary<KArg>(\n k: KArg\n) -> Option<StakingSummary<OperatorId, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>>
where\n KArg: EncodeLike<DomainId>,

An auto-generated getter for DomainStakingSummary.

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> Pallet<T>

source

pub fn consensus_block_info<KArg1, KArg2>(\n k1: KArg1,\n k2: KArg2\n) -> Option<T::Hash>
where\n KArg1: EncodeLike<DomainId>,\n KArg2: EncodeLike<BlockNumberFor<T>>,

An auto-generated getter for ConsensusBlockHash.

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> Pallet<T>

source

pub fn successful_bundles(domain_id: DomainId) -> Vec<H256>

source

pub fn successful_fraud_proofs(domain_id: DomainId) -> Vec<T::DomainHash>

source

pub fn domain_runtime_code(domain_id: DomainId) -> Option<Vec<u8>>

source

pub fn domain_best_number(\n domain_id: DomainId\n) -> Option<DomainBlockNumberFor<T>>

source

pub fn runtime_id(domain_id: DomainId) -> Option<RuntimeId>

source

pub fn domain_instance_data(\n domain_id: DomainId\n) -> Option<(DomainInstanceData, BlockNumberFor<T>)>

source

pub fn genesis_state_root(domain_id: DomainId) -> Option<H256>

source

pub fn domain_tx_range(domain_id: DomainId) -> U256

Returns the tx range for the domain.

\n
source

pub fn bundle_producer_election_params(\n domain_id: DomainId\n) -> Option<BundleProducerElectionParams<<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>>

source

pub fn operator(\n operator_id: OperatorId\n) -> Option<(OperatorPublicKey, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance)>

source

pub fn head_receipt_number(domain_id: DomainId) -> DomainBlockNumberFor<T>

Returns the best execution chain number.

\n
source

pub fn oldest_unconfirmed_receipt_number(\n domain_id: DomainId\n) -> Option<DomainBlockNumberFor<T>>

Returns the block number of the oldest existing unconfirmed execution receipt, return None\nmeans there is no unconfirmed ER exist or submitted yet.

\n
source

pub fn latest_confirmed_domain_block_number(\n domain_id: DomainId\n) -> DomainBlockNumberFor<T>

Returns the latest confirmed domain block number for a given domain\nZero block is always a default confirmed block.

\n
source

pub fn domain_block_limit(domain_id: DomainId) -> Option<DomainBlockLimit>

Returns the domain block limit of the given domain.

\n
source

pub fn non_empty_er_exists(domain_id: DomainId) -> bool

Returns if there are any ERs in the challenge period that have non empty extrinsics.\nNote that Genesis ER is also considered special and hence non empty

\n
source

pub fn extrinsics_shuffling_seed() -> T::Hash

source

pub fn execution_receipt(\n receipt_hash: ReceiptHashFor<T>\n) -> Option<ExecutionReceiptOf<T>>

source

pub fn receipt_hash(\n domain_id: DomainId,\n domain_number: DomainBlockNumberFor<T>\n) -> Option<ReceiptHashFor<T>>

source

pub fn confirmed_domain_block_storage_key(domain_id: DomainId) -> Vec<u8>

",0,"pallet_domains::pallet::Module"],["
source§

impl<T> Pallet<T>
where\n T: Config + SendTransactionTypes<Call<T>>,

source

pub fn submit_bundle_unsigned(opaque_bundle: OpaqueBundleOf<T>)

Submits an unsigned extrinsic Call::submit_bundle.

\n
source

pub fn submit_fraud_proof_unsigned(\n fraud_proof: FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>\n)

Submits an unsigned extrinsic Call::submit_fraud_proof.

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> ValidateUnsigned for Pallet<T>

§

type Call = Call<T>

The call to validate
source§

fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>

Validate the call right before dispatch. Read more
source§

fn validate_unsigned(\n _source: TransactionSource,\n call: &Self::Call\n) -> TransactionValidity

Return the validity of the call Read more
","ValidateUnsigned","pallet_domains::pallet::Module"],["
source§

impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(block_number: BlockNumberFor<T>) -> Weight

Block initialization hook. This is called at the very beginning of block execution. Read more
source§

fn on_finalize(_: BlockNumberFor<T>)

Block finalization hook. This is called at the very end of block execution. Read more
§

fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight

Hook to consume a block’s idle time. This will run when the block is being finalized (before\n[Hooks::on_finalize]). Read more
§

fn on_runtime_upgrade() -> Weight

Hook executed when a code change (aka. a “runtime upgrade”) is detected by FRAME. Read more
§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are\ndispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
","Hooks<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn name_hash() -> [u8; 16]

Two128 hash of name.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
","PalletInfoAccess","pallet_domains::pallet::Module"],["
source§

impl<T: Config> StorageInfoTrait for Pallet<T>

source§

fn storage_info() -> Vec<StorageInfo>

","StorageInfoTrait","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
","OnGenesis","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
","OffchainWorker<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
","IntegrityTest","pallet_domains::pallet::Module"],["
source§

impl<T> Debug for Pallet<T>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Debug","pallet_domains::pallet::Module"],["
source§

impl<T: Config> WhitelistedStorageKeys for Pallet<T>

source§

fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>

Returns a Vec<TrackedStorageKey> indicating the storage keys that\nshould be whitelisted during benchmarking. This means that those keys\nwill be excluded from the benchmarking performance calculation.
","WhitelistedStorageKeys","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
","OnIdle<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> GetStorageVersion for Pallet<T>

§

type CurrentStorageVersion = StorageVersion

This will be filled out by the pallet macro. Read more
source§

fn current_storage_version() -> Self::CurrentStorageVersion

Returns the current storage version as supported by the pallet.
source§

fn on_chain_storage_version() -> StorageVersion

Returns the on-chain storage version of the pallet as stored in the storage.
","GetStorageVersion","pallet_domains::pallet::Module"],["
source§

impl<T> Clone for Pallet<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","pallet_domains::pallet::Module"],["
source§

impl<T> Eq for Pallet<T>

","Eq","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
","OnRuntimeUpgrade","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
","OnFinalize<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
","OnInitialize<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
","PalletsInfoAccess","pallet_domains::pallet::Module"],["
source§

impl<T: Config> BeforeAllRuntimeMigrations for Pallet<T>

source§

fn before_all_runtime_migrations() -> Weight

Something that should happen before runtime migrations are executed.
","BeforeAllRuntimeMigrations","pallet_domains::pallet::Module"],["
source§

impl<T> PartialEq for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used\nby ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
","PartialEq","pallet_domains::pallet::Module"],["
source§

impl<T: Config> Callable<T> for Pallet<T>

","Callable","pallet_domains::pallet::Module"]] +"pallet_domains":[["
source§

impl<T: Config> Pallet<T>

source

pub fn submit_bundle(\n origin: OriginFor<T>,\n opaque_bundle: OpaqueBundleOf<T>\n) -> DispatchResultWithPostInfo

source

pub fn submit_fraud_proof(\n origin: OriginFor<T>,\n fraud_proof: Box<FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>>\n) -> DispatchResult

source

pub fn register_domain_runtime(\n origin: OriginFor<T>,\n runtime_name: String,\n runtime_type: RuntimeType,\n raw_genesis_storage: Vec<u8>\n) -> DispatchResult

source

pub fn upgrade_domain_runtime(\n origin: OriginFor<T>,\n runtime_id: RuntimeId,\n raw_genesis_storage: Vec<u8>\n) -> DispatchResult

source

pub fn register_operator(\n origin: OriginFor<T>,\n domain_id: DomainId,\n amount: <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance,\n config: OperatorConfig<<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>\n) -> DispatchResult

source

pub fn nominate_operator(\n origin: OriginFor<T>,\n operator_id: OperatorId,\n amount: <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance\n) -> DispatchResult

source

pub fn instantiate_domain(\n origin: OriginFor<T>,\n domain_config: DomainConfig<T::AccountId, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>\n) -> DispatchResult

source

pub fn switch_domain(\n origin: OriginFor<T>,\n operator_id: OperatorId,\n new_domain_id: DomainId\n) -> DispatchResult

source

pub fn deregister_operator(\n origin: OriginFor<T>,\n operator_id: OperatorId\n) -> DispatchResult

source

pub fn withdraw_stake(\n origin: OriginFor<T>,\n operator_id: OperatorId,\n shares: T::Share\n) -> DispatchResult

source

pub fn unlock_funds(\n origin: OriginFor<T>,\n operator_id: OperatorId\n) -> DispatchResult

Unlocks the first withdrawal given the unlocking period is complete.\nEven if rest of the withdrawals are out of unlocking period, nominator\nshould call this extrinsic to unlock each withdrawal

\n
source

pub fn unlock_operator(\n origin: OriginFor<T>,\n operator_id: OperatorId\n) -> DispatchResult

Unlocks the operator given the unlocking period is complete.\nAnyone can initiate the operator unlock.

\n
source

pub fn update_domain_operator_allow_list(\n origin: OriginFor<T>,\n domain_id: DomainId,\n operator_allow_list: OperatorAllowList<T::AccountId>\n) -> DispatchResult

Extrinsic to update domain’s operator allow list.\nNote:

\n
    \n
  • If the previous allowed list is set to specific operators and new allow list is set\nto Anyone, then domain will become permissioned to open for all operators.
  • \n
  • If the previous allowed list is set to Anyone or specific operators and the new\nallow list is set to specific operators, then all the registered not allowed operators\nwill continue to operate until they de-register themselves.
  • \n
\n
source

pub fn force_staking_epoch_transition(\n origin: OriginFor<T>,\n domain_id: DomainId\n) -> DispatchResult

Force staking epoch transition for a given domain

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> Pallet<T>

source

pub fn operator_signing_key<KArg>(k: KArg) -> Option<OperatorId>
where\n KArg: EncodeLike<OperatorPublicKey>,

An auto-generated getter for OperatorSigningKey.

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> Pallet<T>

source

pub fn domain_staking_summary<KArg>(\n k: KArg\n) -> Option<StakingSummary<OperatorId, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>>
where\n KArg: EncodeLike<DomainId>,

An auto-generated getter for DomainStakingSummary.

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> Pallet<T>

source

pub fn consensus_block_info<KArg1, KArg2>(\n k1: KArg1,\n k2: KArg2\n) -> Option<T::Hash>
where\n KArg1: EncodeLike<DomainId>,\n KArg2: EncodeLike<BlockNumberFor<T>>,

An auto-generated getter for ConsensusBlockHash.

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> Pallet<T>

source

pub fn successful_bundles(domain_id: DomainId) -> Vec<H256>

source

pub fn successful_fraud_proofs(domain_id: DomainId) -> Vec<T::DomainHash>

source

pub fn domain_runtime_code(domain_id: DomainId) -> Option<Vec<u8>>

source

pub fn domain_best_number(\n domain_id: DomainId\n) -> Option<DomainBlockNumberFor<T>>

source

pub fn runtime_id(domain_id: DomainId) -> Option<RuntimeId>

source

pub fn domain_instance_data(\n domain_id: DomainId\n) -> Option<(DomainInstanceData, BlockNumberFor<T>)>

source

pub fn genesis_state_root(domain_id: DomainId) -> Option<H256>

source

pub fn domain_tx_range(domain_id: DomainId) -> U256

Returns the tx range for the domain.

\n
source

pub fn bundle_producer_election_params(\n domain_id: DomainId\n) -> Option<BundleProducerElectionParams<<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>>

source

pub fn operator(\n operator_id: OperatorId\n) -> Option<(OperatorPublicKey, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance)>

source

pub fn head_receipt_number(domain_id: DomainId) -> DomainBlockNumberFor<T>

Returns the best execution chain number.

\n
source

pub fn oldest_unconfirmed_receipt_number(\n domain_id: DomainId\n) -> Option<DomainBlockNumberFor<T>>

Returns the block number of the oldest existing unconfirmed execution receipt, return None\nmeans there is no unconfirmed ER exist or submitted yet.

\n
source

pub fn latest_confirmed_domain_block_number(\n domain_id: DomainId\n) -> DomainBlockNumberFor<T>

Returns the latest confirmed domain block number for a given domain\nZero block is always a default confirmed block.

\n
source

pub fn domain_block_limit(domain_id: DomainId) -> Option<DomainBlockLimit>

Returns the domain block limit of the given domain.

\n
source

pub fn non_empty_er_exists(domain_id: DomainId) -> bool

Returns if there are any ERs in the challenge period that have non empty extrinsics.\nNote that Genesis ER is also considered special and hence non empty

\n
source

pub fn extrinsics_shuffling_seed() -> T::Hash

source

pub fn execution_receipt(\n receipt_hash: ReceiptHashFor<T>\n) -> Option<ExecutionReceiptOf<T>>

source

pub fn receipt_hash(\n domain_id: DomainId,\n domain_number: DomainBlockNumberFor<T>\n) -> Option<ReceiptHashFor<T>>

source

pub fn confirmed_domain_block_storage_key(domain_id: DomainId) -> Vec<u8>

",0,"pallet_domains::pallet::Module"],["
source§

impl<T> Pallet<T>
where\n T: Config + SendTransactionTypes<Call<T>>,

source

pub fn submit_bundle_unsigned(opaque_bundle: OpaqueBundleOf<T>)

Submits an unsigned extrinsic Call::submit_bundle.

\n
source

pub fn submit_fraud_proof_unsigned(\n fraud_proof: FraudProof<BlockNumberFor<T>, T::Hash, T::DomainHeader>\n)

Submits an unsigned extrinsic Call::submit_fraud_proof.

\n
",0,"pallet_domains::pallet::Module"],["
source§

impl<T: Config> ValidateUnsigned for Pallet<T>

§

type Call = Call<T>

The call to validate
source§

fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>

Validate the call right before dispatch. Read more
source§

fn validate_unsigned(\n _source: TransactionSource,\n call: &Self::Call\n) -> TransactionValidity

Return the validity of the call Read more
","ValidateUnsigned","pallet_domains::pallet::Module"],["
source§

impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(block_number: BlockNumberFor<T>) -> Weight

Block initialization hook. This is called at the very beginning of block execution. Read more
source§

fn on_finalize(_: BlockNumberFor<T>)

Block finalization hook. This is called at the very end of block execution. Read more
§

fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight

Hook to consume a block’s idle time. This will run when the block is being finalized (before\n[Hooks::on_finalize]). Read more
§

fn on_runtime_upgrade() -> Weight

Hook executed when a code change (aka. a “runtime upgrade”) is detected by FRAME. Read more
§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are\ndispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
","Hooks<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn name_hash() -> [u8; 16]

Two128 hash of name.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
","PalletInfoAccess","pallet_domains::pallet::Module"],["
source§

impl<T: Config> StorageInfoTrait for Pallet<T>

source§

fn storage_info() -> Vec<StorageInfo>

","StorageInfoTrait","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
","OnGenesis","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
","OffchainWorker<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
","IntegrityTest","pallet_domains::pallet::Module"],["
source§

impl<T> Debug for Pallet<T>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Debug","pallet_domains::pallet::Module"],["
source§

impl<T: Config> WhitelistedStorageKeys for Pallet<T>

source§

fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>

Returns a Vec<TrackedStorageKey> indicating the storage keys that\nshould be whitelisted during benchmarking. This means that those keys\nwill be excluded from the benchmarking performance calculation.
","WhitelistedStorageKeys","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
","OnIdle<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> GetStorageVersion for Pallet<T>

§

type CurrentStorageVersion = StorageVersion

This will be filled out by the pallet macro. Read more
source§

fn current_storage_version() -> Self::CurrentStorageVersion

Returns the current storage version as supported by the pallet.
source§

fn on_chain_storage_version() -> StorageVersion

Returns the on-chain storage version of the pallet as stored in the storage.
","GetStorageVersion","pallet_domains::pallet::Module"],["
source§

impl<T> Clone for Pallet<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","pallet_domains::pallet::Module"],["
source§

impl<T> Eq for Pallet<T>

","Eq","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
","OnRuntimeUpgrade","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
","OnFinalize<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
","OnInitialize<<<::Block as HeaderProvider>::HeaderT as Header>::Number>","pallet_domains::pallet::Module"],["
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
","PalletsInfoAccess","pallet_domains::pallet::Module"],["
source§

impl<T: Config> BeforeAllRuntimeMigrations for Pallet<T>

source§

fn before_all_runtime_migrations() -> Weight

Something that should happen before runtime migrations are executed.
","BeforeAllRuntimeMigrations","pallet_domains::pallet::Module"],["
source§

impl<T> PartialEq for Pallet<T>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used\nby ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
","PartialEq","pallet_domains::pallet::Module"],["
source§

impl<T: Config> Callable<T> for Pallet<T>

","Callable","pallet_domains::pallet::Module"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file