Struct fuels_types::transaction::CreateTransaction
source · pub struct CreateTransaction {
pub tx: Create,
}
Fields§
§tx: Create
Implementations§
source§impl CreateTransaction
impl CreateTransaction
pub fn build_contract_deployment_tx( bytecode_witness_index: u8, outputs: Vec<Output>, witnesses: Vec<Witness>, salt: Salt, storage_slots: Vec<StorageSlot>, params: TxParameters ) -> Self
Trait Implementations§
source§impl Clone for CreateTransaction
impl Clone for CreateTransaction
source§fn clone(&self) -> CreateTransaction
fn clone(&self) -> CreateTransaction
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 CreateTransaction
impl Debug for CreateTransaction
source§impl Default for CreateTransaction
impl Default for CreateTransaction
source§impl From<Create> for CreateTransaction
impl From<Create> for CreateTransaction
source§impl From<CreateTransaction> for Create
impl From<CreateTransaction> for Create
source§fn from(tx: CreateTransaction) -> Self
fn from(tx: CreateTransaction) -> Self
Converts to this type from the input type.
source§impl From<CreateTransaction> for FuelTransaction
impl From<CreateTransaction> for FuelTransaction
source§fn from(tx: CreateTransaction) -> Self
fn from(tx: CreateTransaction) -> Self
Converts to this type from the input type.
source§impl Transaction for CreateTransaction
impl Transaction for CreateTransaction
fn fee_checked_from_tx( &self, params: &ConsensusParameters ) -> Option<TransactionFee>
fn check_without_signatures( &self, block_height: u64, parameters: &ConsensusParameters ) -> Result<(), Error>
fn id(&self) -> Bytes32
fn maturity(&self) -> u64
fn with_maturity(self, maturity: u64) -> Self
fn gas_price(&self) -> u64
fn with_gas_price(self, gas_price: u64) -> Self
fn gas_limit(&self) -> u64
fn with_gas_limit(self, gas_limit: u64) -> Self
fn with_tx_params(self, tx_params: TxParameters) -> Self
fn metered_bytes_size(&self) -> usize
fn inputs(&self) -> &Vec<Input> ⓘ
fn inputs_mut(&mut self) -> &mut Vec<Input> ⓘ
fn with_inputs(self, inputs: Vec<Input>) -> Self
fn outputs(&self) -> &Vec<Output> ⓘ
fn outputs_mut(&mut self) -> &mut Vec<Output> ⓘ
fn with_outputs(self, outputs: Vec<Output>) -> Self
fn witnesses(&self) -> &Vec<Witness> ⓘ
fn witnesses_mut(&mut self) -> &mut Vec<Witness> ⓘ
fn with_witnesses(self, witnesses: Vec<Witness>) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for CreateTransaction
impl Send for CreateTransaction
impl Sync for CreateTransaction
impl Unpin for CreateTransaction
impl UnwindSafe for CreateTransaction
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
.