Skip to content

Commit

Permalink
api: ProtocolParams collateralPercent type Double -> Integer
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Oct 21, 2021
1 parent b2c3c12 commit d8874d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions blockfrost-api/CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@

* Breaking changes
* `AddressUTXO` renamed to `AddressUtxo` along with its fields
* `ProtocolParams` `collateralPercent` field type changed from `Double` to `Integer`

* Alonzo additions
* `collateral` field to `UtxoInput`
Expand Down
3 changes: 1 addition & 2 deletions blockfrost-api/src/Blockfrost/Types/Cardano/Epochs.hs
Expand Up @@ -77,8 +77,7 @@ data ProtocolParams = ProtocolParams
, _protocolParamsMaxBlockExMem :: Quantity -- ^ The maximum number of execution memory allowed to be used in a single block
, _protocolParamsMaxBlockExSteps :: Quantity -- ^ The maximum number of execution steps allowed to be used in a single block
, _protocolParamsMaxValSize :: Quantity -- ^ The maximum Val size
-- TODO: Integer https://github.com/blockfrost/openapi/pull/146
, _protocolParamsCollateralPercent :: Double -- ^ The percentage of the transactions fee which must be provided as collateral when including non-native scripts
, _protocolParamsCollateralPercent :: Integer -- ^ The percentage of the transactions fee which must be provided as collateral when including non-native scripts
, _protocolParamsMaxCollateralInputs :: Integer -- ^ The maximum number of collateral inputs allowed in a transaction
, _protocolParamsCoinsPerUtxoWord :: Lovelaces -- ^ The cost per UTxO word
}
Expand Down

0 comments on commit d8874d9

Please sign in to comment.