bloxbean / yaci-store

A Cardano datastore implementation using Yaci
https://store.yaci.xyz/
MIT License
21 stars 8 forks source link

[Conway] Remove null fields from Protocol Param change gov action json #304

Open satran004 opened 4 months ago

satran004 commented 4 months ago

In gov_action_proposal table's details json field, the protocol param fields with null values are also stored. It should only keep non-no pp fields.

{"type": "PARAMETER_CHANGE_ACTION", "policyHash": "6913eb6a46b67bfa1ca082f2b410b0a4e502237d03f7a0b7cbf1b025", "govActionId": null, "protocolParamUpdate": {"nopt": null, "minFeeA": null, "minFeeB": null, "minUtxo": null, "maxEpoch": null, "priceMem": null, "maxTxSize": null, "priceStep": null, "costModels": null, "keyDeposit": null, "maxTxExMem": null, "maxValSize": null, "drepDeposit": null, "minPoolCost": 300000000, "poolDeposit": null, "drepActivity": null, "extraEntropy": null, "maxBlockSize": null, "maxTxExSteps": null, "expansionRate": null, "maxBlockExMem": null, "adaPerUtxoByte": null, "costModelsHash": null, "maxBlockExSteps": null, "committeeMinSize": null, "govActionDeposit": null, "protocolMajorVer": null, "protocolMinorVer": null, "collateralPercent": null, "govActionLifetime": null, "maxBlockHeaderSize": null, "treasuryGrowthRate": null, "maxCollateralInputs": null, "poolPledgeInfluence": null, "drepVotingThresholds": null, "poolVotingThresholds": null, "decentralisationParam": null, "committeeMaxTermLength": null, "minFeeRefScriptCostPerByte": null}}