hotshot_types/
bundle.rs

1//! This module provides the `Bundle` type
2
3use serde::{Deserialize, Serialize};
4
5use crate::traits::{
6    block_contents::BuilderFee, node_implementation::NodeType, signature_key::BuilderSignatureKey,
7    BlockPayload,
8};
9
10#[derive(Clone, Debug, Serialize, Deserialize)]
11#[serde(bound = "TYPES: NodeType")]
12/// The Bundle for a portion of a block, provided by a downstream
13/// builder that exists in a bundle auction.
14/// This type is maintained by HotShot
15pub struct Bundle<TYPES: NodeType> {
16    /// The bundle transactions sent by the builder.
17    pub transactions: Vec<<TYPES::BlockPayload as BlockPayload<TYPES>>::Transaction>,
18
19    /// The signature over the bundle.
20    pub signature: <TYPES::BuilderSignatureKey as BuilderSignatureKey>::BuilderSignature,
21
22    /// The fee for sequencing
23    pub sequencing_fee: BuilderFee<TYPES>,
24}