pub struct RuntimeFeesConfigView {
pub action_creation_config: ActionCreationConfigView,
pub action_receipt_creation_config: Fee,
pub burnt_gas_reward: [i32; 2],
pub data_receipt_creation_config: DataReceiptCreationConfigView,
pub pessimistic_gas_price_inflation_ratio: [i32; 2],
pub storage_usage_config: StorageUsageConfigView,
}
Expand description
Describes different costs for the runtime
JSON schema
{
"description": "Describes different costs for the runtime",
"type": "object",
"required": [
"action_creation_config",
"action_receipt_creation_config",
"burnt_gas_reward",
"data_receipt_creation_config",
"pessimistic_gas_price_inflation_ratio",
"storage_usage_config"
],
"properties": {
"action_creation_config": {
"description": "Describes the cost of creating a certain action, `Action`. Includes all variants.",
"allOf": [
{
"$ref": "#/components/schemas/ActionCreationConfigView"
}
]
},
"action_receipt_creation_config": {
"description": "Describes the cost of creating an action receipt, `ActionReceipt`, excluding the actual cost\nof actions.\n- `send` cost is burned when a receipt is created using `promise_create` or\n `promise_batch_create`\n- `exec` cost is burned when the receipt is being executed.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"burnt_gas_reward": {
"description": "Fraction of the burnt gas to reward to the contract account for execution.",
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"maxItems": 2,
"minItems": 2
},
"data_receipt_creation_config": {
"description": "Describes the cost of creating a data receipt, `DataReceipt`.",
"allOf": [
{
"$ref": "#/components/schemas/DataReceiptCreationConfigView"
}
]
},
"pessimistic_gas_price_inflation_ratio": {
"description": "Pessimistic gas price inflation ratio.",
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"maxItems": 2,
"minItems": 2
},
"storage_usage_config": {
"description": "Describes fees for storage.",
"allOf": [
{
"$ref": "#/components/schemas/StorageUsageConfigView"
}
]
}
}
}
Fields§
§action_creation_config: ActionCreationConfigView
Describes the cost of creating a certain action, Action
. Includes all variants.
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.
burnt_gas_reward: [i32; 2]
Fraction of the burnt gas to reward to the contract account for execution.
data_receipt_creation_config: DataReceiptCreationConfigView
Describes the cost of creating a data receipt, DataReceipt
.
pessimistic_gas_price_inflation_ratio: [i32; 2]
Pessimistic gas price inflation ratio.
storage_usage_config: StorageUsageConfigView
Describes fees for storage.
Trait Implementations§
Source§impl Clone for RuntimeFeesConfigView
impl Clone for RuntimeFeesConfigView
Source§fn clone(&self) -> RuntimeFeesConfigView
fn clone(&self) -> RuntimeFeesConfigView
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 RuntimeFeesConfigView
impl Debug for RuntimeFeesConfigView
Source§impl<'de> Deserialize<'de> for RuntimeFeesConfigView
impl<'de> Deserialize<'de> for RuntimeFeesConfigView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RuntimeFeesConfigView> for RuntimeFeesConfigView
impl From<&RuntimeFeesConfigView> for RuntimeFeesConfigView
Source§fn from(value: &RuntimeFeesConfigView) -> Self
fn from(value: &RuntimeFeesConfigView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeFeesConfigView
impl RefUnwindSafe for RuntimeFeesConfigView
impl Send for RuntimeFeesConfigView
impl Sync for RuntimeFeesConfigView
impl Unpin for RuntimeFeesConfigView
impl UnwindSafe for RuntimeFeesConfigView
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