Skip to content

Commit

Permalink
chore: remove dead code ActionCreationConfig
Browse files Browse the repository at this point in the history
`ActionCreationConfigView` is still around for the RPC format but inside
the transaction runtime logic we now use
`RuntimeFeesConfig::action_fees` which stores these fees by parameter.

This has been obsolete since near#8100 I just forgot to delete it.
  • Loading branch information
jakmeier committed Jan 19, 2023
1 parent 882a22b commit 43c8765
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions core/primitives-core/src/runtime/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,41 +78,6 @@ pub struct DataReceiptCreationConfig {
pub cost_per_byte: Fee,
}

/// Describes the cost of creating a specific action, `Action`. Includes all variants.
#[derive(Debug, Serialize, Deserialize, Clone, Hash, PartialEq, Eq)]
pub struct ActionCreationConfig {
/// Base cost of creating an account.
pub create_account_cost: Fee,

/// Base cost of deploying a contract.
pub deploy_contract_cost: Fee,
/// Cost per byte of deploying a contract.
pub deploy_contract_cost_per_byte: Fee,

/// Base cost of calling a function.
pub function_call_cost: Fee,
/// Cost per byte of method name and arguments of calling a function.
pub function_call_cost_per_byte: Fee,

/// Base cost of making a transfer.
pub transfer_cost: Fee,

/// Base cost of staking.
pub stake_cost: Fee,

/// Base cost of adding a key.
pub add_key_cost: AccessKeyCreationConfig,

/// Base cost of deleting a key.
pub delete_key_cost: Fee,

/// Base cost of deleting an account.
pub delete_account_cost: Fee,

/// Base cost of a delegate action
pub delegate_cost: Fee,
}

/// Describes the cost of creating an access key.
#[derive(Debug, Serialize, Deserialize, Clone, Hash, PartialEq, Eq)]
pub struct AccessKeyCreationConfig {
Expand Down

0 comments on commit 43c8765

Please sign in to comment.