Struct thor::fragment::FragmentBuilder
source · pub struct FragmentBuilder {
fragment_factory: FragmentFactory,
valid_until: BlockDate,
}
Fields§
§fragment_factory: FragmentFactory
§valid_until: BlockDate
Implementations§
source§impl FragmentBuilder
impl FragmentBuilder
pub fn try_from_with_setup( jormungandr: &JormungandrProcess, block_date: BlockDate ) -> Result<Self, RestError>
source§impl FragmentBuilder
impl FragmentBuilder
pub fn from_settings(settings: &SettingsDto, block_date: BlockDate) -> Self
source§impl FragmentBuilder
impl FragmentBuilder
pub fn new(block0_hash: &Hash, fees: &LinearFee, valid_until: BlockDate) -> Self
pub fn update_valid_until(&mut self, valid_until: BlockDate)
pub fn witness_mode(self, witness_mode: WitnessMode) -> Self
pub fn transaction( &self, from: &Wallet, address: Address, value: Value ) -> Result<Fragment, FragmentBuilderError>
pub fn transaction_to_many( &self, from: &Wallet, addresses: &[Address], value: Value ) -> Result<Fragment, FragmentBuilderError>
pub fn full_delegation_cert_for_block0( valid_until: BlockDate, wallet: &Wallet, pool_id: PoolId ) -> Initial
pub fn stake_pool_registration( &self, funder: &Wallet, stake_pool: &StakePool ) -> Fragment
pub fn delegation(&self, from: &Wallet, stake_pool: &StakePool) -> Fragment
pub fn delegation_remove(&self, from: &Wallet) -> Fragment
pub fn delegation_to_many( &self, from: &Wallet, distribution: Vec<(&StakePool, u8)> ) -> Fragment
pub fn owner_delegation( &self, from: &Wallet, stake_pool: &StakePool ) -> Fragment
pub fn stake_pool_retire( &self, owners: Vec<&Wallet>, stake_pool: &StakePool ) -> Fragment
pub fn stake_pool_update( &self, owners: Vec<&Wallet>, old_stake_pool: &StakePool, new_stake_pool: &StakePool ) -> Fragment
pub fn vote_plan(&self, wallet: &Wallet, vote_plan: &VotePlan) -> Fragment
pub fn vote_cast( &self, wallet: &Wallet, vote_plan: &VotePlan, proposal_index: u8, choice: &Choice ) -> Fragment
pub fn public_vote_cast( &self, wallet: &Wallet, vote_plan: &VotePlan, proposal_index: u8, choice: &Choice ) -> Fragment
pub fn private_vote_cast( &self, wallet: &Wallet, vote_plan: &VotePlan, proposal_index: u8, choice: &Choice ) -> Fragment
pub fn vote_tally( &self, wallet: &Wallet, vote_plan: &VotePlan, payload: VoteTallyPayload ) -> Fragment
pub fn update_proposal( &self, wallet: &Wallet, update_proposal: UpdateProposal, bft_auth: &SecretKey<Ed25519> ) -> Fragment
pub fn update_vote( &self, wallet: &Wallet, update_vote: UpdateVote, bft_auth: &SecretKey<Ed25519> ) -> Fragment
Auto Trait Implementations§
impl RefUnwindSafe for FragmentBuilder
impl Send for FragmentBuilder
impl Sync for FragmentBuilder
impl Unpin for FragmentBuilder
impl UnwindSafe for FragmentBuilder
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