pub struct TransitionBuilder { /* private fields */ }Implementations§
Source§impl TransitionBuilder
impl TransitionBuilder
pub fn named_transition( contract_id: ContractId, schema: Schema, transition_name: impl Into<FieldName>, types: TypeSystem, ) -> Result<TransitionBuilder, BuilderError>
pub fn with( contract_id: ContractId, schema: Schema, transition_type: TransitionType, types: TypeSystem, ) -> TransitionBuilder
pub fn type_system(&self) -> &TypeSystem
pub fn transition_type(&self) -> TransitionType
pub fn set_nonce(self, nonce: u64) -> TransitionBuilder
pub fn add_metadata( self, name: impl Into<FieldName>, value: impl StrictSerialize, ) -> Result<TransitionBuilder, BuilderError>
pub fn add_metadata_raw( self, type_id: MetaType, value: impl StrictSerialize, ) -> Result<TransitionBuilder, BuilderError>
pub fn add_global_state( self, name: impl Into<FieldName>, value: impl StrictSerialize, ) -> Result<TransitionBuilder, BuilderError>
pub fn add_input( self, opout: Opout, state: AllocatedState, ) -> Result<TransitionBuilder, BuilderError>
pub fn assignment_type(&self, name: impl Into<FieldName>) -> AssignmentType
pub fn global_type(&self, name: impl Into<FieldName>) -> GlobalStateType
pub fn meta_name(&self, type_id: MetaType) -> &FieldName
pub fn add_owned_state_raw( self, type_id: AssignmentType, seal: impl Into<BuilderSeal<BlindSeal<TxPtr>>>, state: AllocatedState, ) -> Result<TransitionBuilder, BuilderError>
pub fn add_rights( self, name: impl Into<FieldName>, seal: impl Into<BuilderSeal<BlindSeal<TxPtr>>>, ) -> Result<TransitionBuilder, BuilderError>
pub fn add_rights_raw( self, type_id: AssignmentType, seal: impl Into<BuilderSeal<BlindSeal<TxPtr>>>, ) -> Result<TransitionBuilder, BuilderError>
pub fn add_fungible_state( self, name: impl Into<FieldName>, seal: impl Into<BuilderSeal<BlindSeal<TxPtr>>>, value: impl Into<Amount>, ) -> Result<TransitionBuilder, BuilderError>
pub fn add_fungible_state_raw( self, type_id: AssignmentType, seal: impl Into<BuilderSeal<BlindSeal<TxPtr>>>, value: impl Into<Amount>, ) -> Result<TransitionBuilder, BuilderError>
pub fn add_data( self, name: impl Into<FieldName>, seal: impl Into<BuilderSeal<BlindSeal<TxPtr>>>, value: impl StrictSerialize, ) -> Result<TransitionBuilder, BuilderError>
pub fn add_data_raw( self, type_id: AssignmentType, seal: impl Into<BuilderSeal<BlindSeal<TxPtr>>>, state: RevealedData, ) -> Result<TransitionBuilder, BuilderError>
pub fn has_inputs(&self) -> bool
pub fn complete_transition(self) -> Result<Transition, BuilderError>
Trait Implementations§
Source§impl Clone for TransitionBuilder
impl Clone for TransitionBuilder
Source§fn clone(&self) -> TransitionBuilder
fn clone(&self) -> TransitionBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TransitionBuilder
impl RefUnwindSafe for TransitionBuilder
impl Send for TransitionBuilder
impl Sync for TransitionBuilder
impl Unpin for TransitionBuilder
impl UnwindSafe for TransitionBuilder
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