pub struct ActionCreationConfigView {
pub add_key_cost: AccessKeyCreationConfigView,
pub create_account_cost: Fee,
pub delegate_cost: Fee,
pub delete_account_cost: Fee,
pub delete_key_cost: Fee,
pub deploy_contract_cost: Fee,
pub deploy_contract_cost_per_byte: Fee,
pub function_call_cost: Fee,
pub function_call_cost_per_byte: Fee,
pub stake_cost: Fee,
pub transfer_cost: Fee,
}Expand description
Describes the cost of creating a specific action, Action. Includes all variants.
JSON schema
{
"description": "Describes the cost of creating a specific action, `Action`. Includes all variants.",
"type": "object",
"required": [
"add_key_cost",
"create_account_cost",
"delegate_cost",
"delete_account_cost",
"delete_key_cost",
"deploy_contract_cost",
"deploy_contract_cost_per_byte",
"function_call_cost",
"function_call_cost_per_byte",
"stake_cost",
"transfer_cost"
],
"properties": {
"add_key_cost": {
"description": "Base cost of adding a key.",
"allOf": [
{
"$ref": "#/components/schemas/AccessKeyCreationConfigView"
}
]
},
"create_account_cost": {
"description": "Base cost of creating an account.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"delegate_cost": {
"description": "Base cost for processing a delegate action.\n\nThis is on top of the costs for the actions inside the delegate action.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"delete_account_cost": {
"description": "Base cost of deleting an account.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"delete_key_cost": {
"description": "Base cost of deleting a key.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"deploy_contract_cost": {
"description": "Base cost of deploying a contract.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"deploy_contract_cost_per_byte": {
"description": "Cost per byte of deploying a contract.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"function_call_cost": {
"description": "Base cost of calling a function.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"function_call_cost_per_byte": {
"description": "Cost per byte of method name and arguments of calling a function.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"stake_cost": {
"description": "Base cost of staking.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
},
"transfer_cost": {
"description": "Base cost of making a transfer.",
"allOf": [
{
"$ref": "#/components/schemas/Fee"
}
]
}
}
}Fields§
§add_key_cost: AccessKeyCreationConfigViewBase cost of adding a key.
create_account_cost: FeeBase cost of creating an account.
delegate_cost: FeeBase cost for processing a delegate action.
This is on top of the costs for the actions inside the delegate action.
delete_account_cost: FeeBase cost of deleting an account.
delete_key_cost: FeeBase cost of deleting a key.
deploy_contract_cost: FeeBase cost of deploying a contract.
deploy_contract_cost_per_byte: FeeCost per byte of deploying a contract.
function_call_cost: FeeBase cost of calling a function.
function_call_cost_per_byte: FeeCost per byte of method name and arguments of calling a function.
stake_cost: FeeBase cost of staking.
transfer_cost: FeeBase cost of making a transfer.
Trait Implementations§
Source§impl Clone for ActionCreationConfigView
impl Clone for ActionCreationConfigView
Source§fn clone(&self) -> ActionCreationConfigView
fn clone(&self) -> ActionCreationConfigView
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 ActionCreationConfigView
impl Debug for ActionCreationConfigView
Source§impl<'de> Deserialize<'de> for ActionCreationConfigView
impl<'de> Deserialize<'de> for ActionCreationConfigView
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<&ActionCreationConfigView> for ActionCreationConfigView
impl From<&ActionCreationConfigView> for ActionCreationConfigView
Source§fn from(value: &ActionCreationConfigView) -> Self
fn from(value: &ActionCreationConfigView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActionCreationConfigView
impl RefUnwindSafe for ActionCreationConfigView
impl Send for ActionCreationConfigView
impl Sync for ActionCreationConfigView
impl Unpin for ActionCreationConfigView
impl UnwindSafe for ActionCreationConfigView
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