pub struct CreateTransactionBuilder {
pub gas_price: u64,
pub gas_limit: u64,
pub maturity: u32,
pub bytecode_length: u64,
pub bytecode_witness_index: u8,
pub storage_slots: Vec<StorageSlot>,
pub inputs: Vec<Input>,
pub outputs: Vec<Output>,
pub witnesses: Vec<Witness>,
pub salt: Salt,
/* private fields */
}
Fields§
§gas_price: u64
§gas_limit: u64
§maturity: u32
§bytecode_length: u64
§bytecode_witness_index: u8
§storage_slots: Vec<StorageSlot>
§inputs: Vec<Input>
§outputs: Vec<Output>
§witnesses: Vec<Witness>
§salt: Salt
Implementations§
source§impl CreateTransactionBuilder
impl CreateTransactionBuilder
pub fn set_bytecode_length(self, bytecode_length: u64) -> Self
pub fn set_bytecode_witness_index(self, bytecode_witness_index: u8) -> Self
pub fn set_storage_slots(self, storage_slots: Vec<StorageSlot>) -> Self
pub fn set_salt(self, salt: impl Into<Salt>) -> Self
pub fn prepare_contract_deployment( binary: Vec<u8>, contract_id: ContractId, state_root: Bytes32, salt: Salt, storage_slots: Vec<StorageSlot>, params: TxParameters ) -> Self
Trait Implementations§
source§impl Clone for CreateTransactionBuilder
impl Clone for CreateTransactionBuilder
source§fn clone(&self) -> CreateTransactionBuilder
fn clone(&self) -> CreateTransactionBuilder
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 CreateTransactionBuilder
impl Debug for CreateTransactionBuilder
source§impl Default for CreateTransactionBuilder
impl Default for CreateTransactionBuilder
source§fn default() -> CreateTransactionBuilder
fn default() -> CreateTransactionBuilder
Returns the “default value” for a type. Read more
source§impl TransactionBuilder for CreateTransactionBuilder
impl TransactionBuilder for CreateTransactionBuilder
type TxType = CreateTransaction
fn build(self) -> Result<CreateTransaction>
fn fee_checked_from_tx( &self, params: &ConsensusParameters ) -> Option<TransactionFee>
fn check_without_signatures( &self, block_height: u32, parameters: &ConsensusParameters ) -> Result<()>
fn set_maturity(self, maturity: u32) -> Self
fn set_gas_price(self, gas_price: u64) -> Self
fn set_gas_limit(self, gas_limit: u64) -> Self
fn set_tx_params(self, tx_params: TxParameters) -> Self
fn set_inputs(self, inputs: Vec<Input>) -> Self
fn set_outputs(self, outputs: Vec<Output>) -> Self
fn set_witnesses(self, witnesses: Vec<Witness>) -> Self
fn set_consensus_parameters( self, consensus_parameters: ConsensusParameters ) -> Self
fn inputs(&self) -> &Vec<Input>
fn inputs_mut(&mut self) -> &mut Vec<Input>
fn outputs(&self) -> &Vec<Output>
fn outputs_mut(&mut self) -> &mut Vec<Output>
fn witnesses(&self) -> &Vec<Witness>
fn witnesses_mut(&mut self) -> &mut Vec<Witness>
Auto Trait Implementations§
impl RefUnwindSafe for CreateTransactionBuilder
impl Send for CreateTransactionBuilder
impl Sync for CreateTransactionBuilder
impl Unpin for CreateTransactionBuilder
impl UnwindSafe for CreateTransactionBuilder
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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