import Tabs from ‘@theme/Tabs’;
import TabItem from ‘@theme/TabItem’;
Shard
structure
Definition
IndexerShard
struct is ephemeral structure, there is no such entity in nearcore
. We’ve introduces it as a container in near-indexer-primitives
. This container includes:
- shard ID
- Chunk that might be absent
- ExecutionOutcomes for Receipts (these belong to a Shard not to a Chunk or a Block)
- StateChanges for a Shard
IndexerShard
“`rust links=1
pub struct IndexerShard {
pub shard_id: types::ShardId,
pub chunk: Option
pub receipt_execution_outcomes: Vec
pub state_changes: views::StateChangesView,
}
“`
“`ts links=1
export interface Shard {
shard_id: number;
chunk?: Chunk;
receiptExecutionOutcomes: ExecutionOutcomeWithReceipt[];
stateChanges: StateChange[];
};
“`