pub struct ExecutionCost {Show 41 fields
pub syscall_base_cost: u64,
pub log_64_units: u64,
pub log_pubkey_units: u64,
pub create_program_address_units: u64,
pub invoke_units: u64,
pub max_cpi_instruction_size: u64,
pub cpi_bytes_per_unit: u64,
pub max_instruction_stack_depth: usize,
pub max_instruction_trace_length: usize,
pub sha256_base_cost: u64,
pub sha256_byte_cost: u64,
pub sha256_max_slices: u64,
pub sysvar_base_cost: u64,
pub secp256k1_recover_cost: u64,
pub curve25519_edwards_validate_point_cost: u64,
pub curve25519_edwards_add_cost: u64,
pub curve25519_edwards_subtract_cost: u64,
pub curve25519_edwards_multiply_cost: u64,
pub curve25519_edwards_msm_base_cost: u64,
pub curve25519_edwards_msm_incremental_cost: u64,
pub curve25519_ristretto_validate_point_cost: u64,
pub curve25519_ristretto_add_cost: u64,
pub curve25519_ristretto_subtract_cost: u64,
pub curve25519_ristretto_multiply_cost: u64,
pub curve25519_ristretto_msm_base_cost: u64,
pub curve25519_ristretto_msm_incremental_cost: u64,
pub heap_size: u64,
pub heap_cost: u64,
pub mem_op_base_cost: u64,
pub alt_bn128_addition_cost: u64,
pub alt_bn128_multiplication_cost: u64,
pub alt_bn128_pairing_one_pair_cost_first: u64,
pub alt_bn128_pairing_one_pair_cost_other: u64,
pub alt_bn128_g1_compress: u64,
pub alt_bn128_g1_decompress: u64,
pub alt_bn128_g2_compress: u64,
pub alt_bn128_g2_decompress: u64,
pub big_modular_exponentiation_cost: u64,
pub poseidon_cost_coefficient_a: u64,
pub poseidon_cost_coefficient_c: u64,
pub get_remaining_compute_units_cost: u64,
}Expand description
Compute unit costs for syscalls and operations Reference: https://github.com/anza-xyz/agave/blob/master/program-runtime/src/execution_budget.rs
Fields§
§syscall_base_cost: u64§log_64_units: u64§log_pubkey_units: u64§create_program_address_units: u64§invoke_units: u64§max_cpi_instruction_size: u64§cpi_bytes_per_unit: u64§max_instruction_stack_depth: usize§max_instruction_trace_length: usize§sha256_base_cost: u64§sha256_byte_cost: u64§sha256_max_slices: u64§sysvar_base_cost: u64§secp256k1_recover_cost: u64§curve25519_edwards_validate_point_cost: u64§curve25519_edwards_add_cost: u64§curve25519_edwards_subtract_cost: u64§curve25519_edwards_multiply_cost: u64§curve25519_edwards_msm_base_cost: u64§curve25519_edwards_msm_incremental_cost: u64§curve25519_ristretto_validate_point_cost: u64§curve25519_ristretto_add_cost: u64§curve25519_ristretto_subtract_cost: u64§curve25519_ristretto_multiply_cost: u64§curve25519_ristretto_msm_base_cost: u64§curve25519_ristretto_msm_incremental_cost: u64§heap_size: u64§heap_cost: u64§mem_op_base_cost: u64§alt_bn128_addition_cost: u64§alt_bn128_multiplication_cost: u64§alt_bn128_pairing_one_pair_cost_first: u64§alt_bn128_pairing_one_pair_cost_other: u64§alt_bn128_g1_compress: u64§alt_bn128_g1_decompress: u64§alt_bn128_g2_compress: u64§alt_bn128_g2_decompress: u64§big_modular_exponentiation_cost: u64§poseidon_cost_coefficient_a: u64§poseidon_cost_coefficient_c: u64§get_remaining_compute_units_cost: u64Trait Implementations§
Source§impl Clone for ExecutionCost
impl Clone for ExecutionCost
Source§fn clone(&self) -> ExecutionCost
fn clone(&self) -> ExecutionCost
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 moreSource§impl Debug for ExecutionCost
impl Debug for ExecutionCost
Auto Trait Implementations§
impl Freeze for ExecutionCost
impl RefUnwindSafe for ExecutionCost
impl Send for ExecutionCost
impl Sync for ExecutionCost
impl Unpin for ExecutionCost
impl UnsafeUnpin for ExecutionCost
impl UnwindSafe for ExecutionCost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more