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
RuntimeFeesConfigView
JSON schema
{
"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\n of 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: ActionCreationConfigViewDescribes the cost of creating a certain action, Action. Includes all variants.
action_receipt_creation_config: FeeDescribes the cost of creating an action receipt, ActionReceipt, excluding the actual cost
of actions.
sendcost is burned when a receipt is created usingpromise_createorpromise_batch_createexeccost 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: DataReceiptCreationConfigViewDescribes the cost of creating a data receipt, DataReceipt.
pessimistic_gas_price_inflation_ratio: [i32; 2]Pessimistic gas price inflation ratio.
storage_usage_config: StorageUsageConfigViewDescribes 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§const fn clone_from(&mut self, source: &Self)
const 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<RuntimeFeesConfigView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeFeesConfigView, <__D as Deserializer<'de>>::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) -> RuntimeFeesConfigView
fn from(value: &RuntimeFeesConfigView) -> RuntimeFeesConfigView
Converts to this type from the input type.
Source§impl Serialize for RuntimeFeesConfigView
impl Serialize for RuntimeFeesConfigView
Source§fn 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
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