pub type Upload = ChargeableTransaction<UploadBody, UploadMetadata>;
Aliased Type§
struct Upload { /* private fields */ }
Trait Implementations§
source§impl BytecodeRoot for Upload
impl BytecodeRoot for Upload
fn bytecode_root(&self) -> &Bytes32
fn bytecode_root_mut(&mut self) -> &mut Bytes32
fn bytecode_root_offset_static() -> usize
fn bytecode_root_offset(&self) -> usize
source§impl BytecodeWitnessIndex for Upload
impl BytecodeWitnessIndex for Upload
fn bytecode_witness_index(&self) -> &u16
fn bytecode_witness_index_mut(&mut self) -> &mut u16
fn bytecode_witness_index_offset_static() -> usize
fn bytecode_witness_index_offset(&self) -> usize
source§impl Cacheable for Upload
impl Cacheable for Upload
source§fn is_computed(&self) -> bool
fn is_computed(&self) -> bool
The cache is already computed. Read more
source§fn precompute(&mut self, chain_id: &ChainId) -> Result<(), ValidityError>
fn precompute(&mut self, chain_id: &ChainId) -> Result<(), ValidityError>
Computes the cache for the entity.
source§impl Chargeable for Upload
impl Chargeable for Upload
source§fn min_gas(&self, gas_costs: &GasCosts, fee: &FeeParameters) -> Word
fn min_gas(&self, gas_costs: &GasCosts, fee: &FeeParameters) -> Word
Returns the minimum gas required to start transaction execution.
source§fn metered_bytes_size(&self) -> usize
fn metered_bytes_size(&self) -> usize
Used for accounting purposes when charging byte based fees.
source§fn gas_used_by_metadata(&self, gas_cost: &GasCosts) -> Word
fn gas_used_by_metadata(&self, gas_cost: &GasCosts) -> Word
Used for accounting purposes when charging for metadata creation.
source§fn max_gas(&self, gas_costs: &GasCosts, fee: &FeeParameters) -> Word
fn max_gas(&self, gas_costs: &GasCosts, fee: &FeeParameters) -> Word
Returns the maximum possible gas after the end of transaction execution. Read more
source§fn min_fee(
&self,
gas_costs: &GasCosts,
fee: &FeeParameters,
gas_price: Word,
) -> u128
fn min_fee( &self, gas_costs: &GasCosts, fee: &FeeParameters, gas_price: Word, ) -> u128
Returns the minimum fee required to start transaction execution.
source§fn max_fee(
&self,
gas_costs: &GasCosts,
fee: &FeeParameters,
gas_price: Word,
) -> u128
fn max_fee( &self, gas_costs: &GasCosts, fee: &FeeParameters, gas_price: Word, ) -> u128
Returns the maximum possible fee after the end of transaction execution. Read more
source§fn refund_fee(
&self,
gas_costs: &GasCosts,
fee: &FeeParameters,
used_gas: Word,
gas_price: Word,
) -> Option<Word>
fn refund_fee( &self, gas_costs: &GasCosts, fee: &FeeParameters, used_gas: Word, gas_price: Word, ) -> Option<Word>
Returns the fee amount that can be refunded back based on the
used_gas
and
current state of the transaction. Read moresource§fn gas_used_by_inputs(&self, gas_costs: &GasCosts) -> Word
fn gas_used_by_inputs(&self, gas_costs: &GasCosts) -> Word
Returns the gas used by the inputs.