1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Relay API
 *
 * API specification for MEV-Boost PBS relays.
 *
 * The version of the OpenAPI document: dev
 *
 * Generated by: https://openapi-generator.tech
 */

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct SubmitBlockRequestMessage {
    #[serde(rename = "slot", skip_serializing_if = "Option::is_none")]
    pub slot:                   Option<String>,
    #[serde(rename = "parent_hash", skip_serializing_if = "Option::is_none")]
    pub parent_hash:            Option<String>,
    #[serde(rename = "block_hash", skip_serializing_if = "Option::is_none")]
    pub block_hash:             Option<String>,
    /// The validator's BLS public key, uniquely identifying them. _48-bytes,
    /// hex encoded with 0x prefix, case insensitive._
    #[serde(rename = "builder_pubkey", skip_serializing_if = "Option::is_none")]
    pub builder_pubkey:         Option<String>,
    /// An address on the execution (Ethereum 1) network.
    #[serde(rename = "proposer_fee_recipient", skip_serializing_if = "Option::is_none")]
    pub proposer_fee_recipient: Option<String>,
    #[serde(rename = "gas_limit", skip_serializing_if = "Option::is_none")]
    pub gas_limit:              Option<String>,
    #[serde(rename = "gas_used", skip_serializing_if = "Option::is_none")]
    pub gas_used:               Option<String>,
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value:                  Option<String>,
}

impl SubmitBlockRequestMessage {
    pub fn new() -> SubmitBlockRequestMessage {
        SubmitBlockRequestMessage {
            slot:                   None,
            parent_hash:            None,
            block_hash:             None,
            builder_pubkey:         None,
            proposer_fee_recipient: None,
            gas_limit:              None,
            gas_used:               None,
            value:                  None,
        }
    }
}