Struct jormungandr_automation::jormungandr::configuration::block0::block0_config_builder::Block0ConfigurationBuilder
source · pub struct Block0ConfigurationBuilder {
pub blockchain_configuration: BlockchainConfiguration,
pub initial: Vec<Initial>,
minimal_setup: bool,
}
Fields§
§blockchain_configuration: BlockchainConfiguration
§initial: Vec<Initial>
§minimal_setup: bool
Implementations§
source§impl Block0ConfigurationBuilder
impl Block0ConfigurationBuilder
pub fn minimal_setup() -> Self
pub fn with_signed_certs(self, signed_certs: Vec<SignedCertificate>) -> Self
pub fn with_funds_split_if_needed(self, utxos: Vec<InitialUTxO>) -> Self
pub fn with_funds_split_if_needed_recursively( self, utxos: &[InitialUTxO] ) -> Self
pub fn with_some_consensus_leader(self) -> Self
pub fn with_utxo(self, utxo: InitialUTxO) -> Self
pub fn with_leader_key_pair(self, leader_pair: &KeyPair<Ed25519>) -> Self
pub fn with_leader_signing_key(self, signing_key: SigningKey<Ed25519>) -> Self
pub fn with_leader(self, leader: ConsensusLeaderId) -> Self
pub fn with_committees(self, committees: &[CommitteeIdDef]) -> Self
pub fn with_consensus_genesis_praos_active_slot_coeff( self, active_slot_coeff: ActiveSlotCoefficient ) -> Self
pub fn with_funds(self, funds: Vec<Initial>) -> Self
pub fn with_utxos(self, utxos: Vec<InitialUTxO>) -> Self
pub fn with_token(self, initial_token: InitialToken) -> Self
pub fn with_block_content_max_size( self, block_content_max_size: BlockContentMaxSize ) -> Self
pub fn with_consensus_leaders_ids( self, leaders_ids: Vec<ConsensusLeaderId> ) -> Self
pub fn with_block0_consensus(self, block0_consensus: ConsensusVersion) -> Self
pub fn with_kes_update_speed(self, kes_update_speed: KesUpdateSpeed) -> Self
pub fn with_slots_per_epoch( self, slots_per_epoch: NumberOfSlotsPerEpoch ) -> Self
pub fn with_slot_duration(self, slot_duration: SlotDuration) -> Self
pub fn with_discrimination(self, discrimination: Discrimination) -> Self
pub fn with_epoch_stability_depth( self, epoch_stability_depth: EpochStabilityDepth ) -> Self
pub fn with_active_slot_coeff( self, consensus_genesis_praos_active_slot_coeff: ActiveSlotCoefficient ) -> Self
pub fn with_treasury(self, treasury: Value) -> Self
pub fn with_reward_parameters( self, reward_parameters: Option<RewardParams> ) -> Self
pub fn with_total_rewards_supply( self, total_reward_supply: Option<Value> ) -> Self
pub fn with_committee_ids(self, committee_ids: Vec<CommitteeIdDef>) -> Self
pub fn with_linear_fees(self, linear_fees: LinearFee) -> Self
pub fn with_proposal_expiration( self, proposal_expiration: ProposalExpiration ) -> Self
pub fn with_certs(self, certs: Vec<Initial>) -> Self
pub fn with_initial(self, initial: Vec<Initial>) -> Self
pub fn with_fees_go_to(self, fees_go_to: Option<FeesGoTo>) -> Self
pub fn with_treasury_parameters( self, treasury_parameters: Option<TaxType> ) -> Self
pub fn with_tx_max_expiry_epochs(self, tx_max_expiry_epochs: u8) -> Self
pub fn build(self) -> Block0Configuration
Trait Implementations§
source§impl Clone for Block0ConfigurationBuilder
impl Clone for Block0ConfigurationBuilder
source§fn clone(&self) -> Block0ConfigurationBuilder
fn clone(&self) -> Block0ConfigurationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Block0ConfigurationBuilder
impl Debug for Block0ConfigurationBuilder
source§impl Default for Block0ConfigurationBuilder
impl Default for Block0ConfigurationBuilder
source§impl<'de> Deserialize<'de> for Block0ConfigurationBuilder
impl<'de> Deserialize<'de> for Block0ConfigurationBuilder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Block0ConfigurationBuilder
impl Send for Block0ConfigurationBuilder
impl Sync for Block0ConfigurationBuilder
impl Unpin for Block0ConfigurationBuilder
impl UnwindSafe for Block0ConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request