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
- TypeScript
pub struct IndexerShard {
pub shard_id: types::ShardId,
pub chunk: Option<IndexerChunkView>,
pub receipt_execution_outcomes: Vec<IndexerExecutionOutcomeWithReceipt>,
pub state_changes: views::StateChangesView,
}
export interface Shard {
shard_id: number;
chunk?: Chunk;
receiptExecutionOutcomes: ExecutionOutcomeWithReceipt[];
stateChanges: StateChange[];
};