bloxbean / cardano-client-lib

Cardano client library in Java
https://cardano-client.dev
MIT License
118 stars 51 forks source link

[Koios] minFeeRefScriptCostPerByte is missing in Koios backend #425

Closed satran004 closed 4 weeks ago

satran004 commented 1 month ago

The minFeeRefScriptCostPerByte is missing in the Koios backend response. This will cause issues with tier reference script fee calculations.

Additionally, we need to map the 'PlutusV3' cost model and the following fields in the KoiosEpochService response.

    private BigDecimal dvtPPNetworkGroup;
    private BigDecimal dvtPPEconomicGroup;
    private BigDecimal dvtPPTechnicalGroup;
    private BigDecimal dvtPPGovGroup;
    private BigDecimal dvtTreasuryWithdrawal;

    private Integer committeeMinSize;
    private Integer committeeMaxTermLength;
    private Integer govActionLifetime;
    private BigInteger govActionDeposit;
    private BigInteger drepDeposit;
    private Integer drepActivity;
    private BigDecimal minFeeRefScriptCostPerByte;

Workaround for now: You can manually set minFeeRefScriptCostPerByte=15 after retrieving the protocol parameters from the backend provider.

We will fix this in the next release.

satran004 commented 1 month ago

@edridudi I am adding these missing attributes as I am modifying a few parts of the KoiosEpochService for this PR.

https://github.com/bloxbean/cardano-client-lib/pull/418