Skip to content

Commit b5e2cb2

Browse files
committed
feat(cardano-services): network info provider new protocol params
1 parent 567fad9 commit b5e2cb2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/cardano-services/src/NetworkInfo/DbSyncNetworkInfoProvider/mappers.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ export const toProtocolParams = ({
6767
governance_action_validity_period,
6868
governance_action_deposit,
6969
drep_deposit,
70-
drep_inactivity_period
70+
drep_inactivity_period,
71+
min_fee_ref_script_cost_per_byte
7172
}: ProtocolParamsModel): Cardano.ProtocolParameters => ({
7273
coinsPerUtxoByte: Number(coins_per_utxo_size),
7374
collateralPercentage: collateral_percent,
74-
committeeTermLimit: Number(committee_term_limit),
75+
committeeTermLimit: Cardano.EpochNo(committee_term_limit),
7576
costModels: mapCostModels(costs),
7677
dRepDeposit: Number(drep_deposit),
7778
dRepInactivityPeriod: Cardano.EpochNo(drep_inactivity_period),
@@ -96,6 +97,7 @@ export const toProtocolParams = ({
9697
minCommitteeSize: Number(min_committee_size),
9798
minFeeCoefficient: min_fee_a,
9899
minFeeConstant: min_fee_b,
100+
minFeeRefScriptCostPerByte: String(min_fee_ref_script_cost_per_byte),
99101
minPoolCost: Number(min_pool_cost),
100102
monetaryExpansion: String(monetary_expand_rate),
101103
poolDeposit: Number(pool_deposit),

packages/cardano-services/src/NetworkInfo/DbSyncNetworkInfoProvider/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export interface ProtocolParamsModel {
4242
max_bh_size: number;
4343
optimal_pool_count: number;
4444
influence: number;
45+
min_fee_ref_script_cost_per_byte: number;
4546
monetary_expand_rate: number;
4647
treasury_growth_rate: number;
4748
decentralisation: number;

0 commit comments

Comments
 (0)