bloxbean / yaci

A Cardano Mini Protocols implementation in Java
MIT License
25 stars 3 forks source link

[Conway] Add new security related protocol params / Changes in CDDL #49

Open satran004 opened 8 months ago

satran004 commented 8 months ago
; Flat Array support is included for backwards compatibility and will be removed in the next era.
; It is recommended for tools to adopt using a Map instead of Array going forward.
redeemers =
  [ + [ tag: redeemer_tag, index: uint, data: plutus_data, ex_units: ex_units ] ]
  / { + [ tag: redeemer_tag, index: uint ] => [ data: plutus_data, ex_units: ex_units ] }
, ? 4: nonempty_set<plutus_data>
redeemer_tag =
    0 ; Spending
  / 1 ; Minting
  / 2 ; Certifying
  / 3 ; Rewarding
  / 4 ; Voting
  / 5 ; Proposing
policy_hash = scripthash

parameter_change_action = (0, gov_action_id / null, protocol_param_update, policy_hash / null)

treasury_withdrawals_action = (2, { reward_account => coin }, policy_hash / null)
dns_name = tstr .size (0..128)

pool_metadata = [url, pool_metadata_hash]
url = tstr .size (0..128)
satran004 commented 8 months ago

@Sotatek-HuyLe3a Can you please review these changes in Conway cddl ? Please add if there's any missing change.