Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 of 6 tasks
satran004 opened this issue Feb 19, 2024 · 1 comment
Open
4 of 6 tasks
Assignees

Comments

@satran004
Copy link
Member

satran004 commented Feb 19, 2024

  • Verify and add any missing protocol params

    • nonnegative_interval ; MinFee RefScriptCostPerByte
  • Update to support new redeemer structure

; 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 ] }
  • List to Set
, ? 4: nonempty_set<plutus_data>
  • New redeemer purposes
redeemer_tag =
    0 ; Spending
  / 1 ; Minting
  / 2 ; Certifying
  / 3 ; Rewarding
  / 4 ; Voting
  / 5 ; Proposing
  • New Gov Action changes
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)
  • Allow 128 bytes
dns_name = tstr .size (0..128)

pool_metadata = [url, pool_metadata_hash]
url = tstr .size (0..128)
@satran004 satran004 changed the title [Conway] Add new security related protocol params [Conway] Add new security related protocol params / Changes in CDDL Feb 22, 2024
@satran004
Copy link
Member Author

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

@satran004 satran004 self-assigned this Feb 22, 2024
satran004 added a commit that referenced this issue Feb 23, 2024
feat: #49 Handle redeemers as map in Conway era
satran004 added a commit that referenced this issue Feb 26, 2024
feat: #49 Add new redeemer purpose, gov action changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant