Struct near_sdk::RuntimeFeesConfig
source · [−]pub struct RuntimeFeesConfig {
pub action_receipt_creation_config: Fee,
pub data_receipt_creation_config: DataReceiptCreationConfig,
pub action_creation_config: ActionCreationConfig,
pub storage_usage_config: StorageUsageConfig,
pub burnt_gas_reward: Ratio<isize>,
pub pessimistic_gas_price_inflation_ratio: Ratio<isize>,
}
Fields
action_receipt_creation_config: Fee
Describes the cost of creating an action receipt, ActionReceipt
, excluding the actual cost
of actions.
send
cost is burned when a receipt is created usingpromise_create
orpromise_batch_create
exec
cost is burned when the receipt is being executed.
data_receipt_creation_config: DataReceiptCreationConfig
Describes the cost of creating a data receipt, DataReceipt
.
action_creation_config: ActionCreationConfig
Describes the cost of creating a certain action, Action
. Includes all variants.
storage_usage_config: StorageUsageConfig
Describes fees for storage.
burnt_gas_reward: Ratio<isize>
Fraction of the burnt gas to reward to the contract account for execution.
pessimistic_gas_price_inflation_ratio: Ratio<isize>
Pessimistic gas price inflation ratio.
Implementations
sourceimpl RuntimeFeesConfig
impl RuntimeFeesConfig
pub fn test() -> RuntimeFeesConfig
pub fn free() -> RuntimeFeesConfig
sourcepub fn min_receipt_with_function_call_gas(&self) -> u64
pub fn min_receipt_with_function_call_gas(&self) -> u64
The minimum amount of gas required to create and execute a new receipt with a function call action. This amount is used to determine how many receipts can be created, send and executed for some amount of prepaid gas using function calls.
Trait Implementations
sourceimpl Clone for RuntimeFeesConfig
impl Clone for RuntimeFeesConfig
sourcefn clone(&self) -> RuntimeFeesConfig
fn clone(&self) -> RuntimeFeesConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RuntimeFeesConfig
impl Debug for RuntimeFeesConfig
sourceimpl<'de> Deserialize<'de> for RuntimeFeesConfig
impl<'de> Deserialize<'de> for RuntimeFeesConfig
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<RuntimeFeesConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RuntimeFeesConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for RuntimeFeesConfig
impl Hash for RuntimeFeesConfig
sourceimpl PartialEq<RuntimeFeesConfig> for RuntimeFeesConfig
impl PartialEq<RuntimeFeesConfig> for RuntimeFeesConfig
sourcefn eq(&self, other: &RuntimeFeesConfig) -> bool
fn eq(&self, other: &RuntimeFeesConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for RuntimeFeesConfig
impl Serialize for RuntimeFeesConfig
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for RuntimeFeesConfig
impl StructuralEq for RuntimeFeesConfig
impl StructuralPartialEq for RuntimeFeesConfig
Auto Trait Implementations
impl RefUnwindSafe for RuntimeFeesConfig
impl Send for RuntimeFeesConfig
impl Sync for RuntimeFeesConfig
impl Unpin for RuntimeFeesConfig
impl UnwindSafe for RuntimeFeesConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more