Skip to content

Commit

Permalink
feat: add FeesApi implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitdevos committed Apr 3, 2024
1 parent 377941b commit d753a67
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,16 @@ impl_runtime_apis! {
}
}

impl pallet_logion_loc::runtime_api::FeesApi<Block, Balance, TokenIssuance> for Runtime {
fn query_file_storage_fee(num_of_entries: u32, tot_size: u32) -> Balance {
LogionLoc::calculate_fee(num_of_entries, tot_size)
}

fn query_certificate_fee(token_issuance: TokenIssuance) -> Balance {
LogionLoc::calculate_certificate_fee(token_issuance)
}
}

#[cfg(feature = "try-runtime")]
impl frame_try_runtime::TryRuntime<Block> for Runtime {
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
Expand Down

0 comments on commit d753a67

Please sign in to comment.