Module update_settings

Source
Expand description

Transaction that updates reserve settings.

Specification:

  1. The transaction should mint one token:
  • 1 Governance Policy Token (using reference script)
  1. The transaction should spend one token:
  • 1 Reserve Auth Policy Token (using reference script)
  1. The transaction should have two outputs:
  • Reserve Validator output that:
    • has value from existing reserve UTXO
    • has the updated Plutus Data (in our “versioned format”): [[[Int(t0), <Encoded Token>], [Bytes(v_function_hash), Int(initial_incentive)], [Int(0)]], Constr(0, []), Int(0)], where <Encoded Token> is Constr(0, [Bytes(policy_id), Bytes(asset_name)]).
  • Change output that keeps the Governance Token and change of other tokens
  1. The transaction should have three script reference inputs:
  • Reserve Auth Version Utxo
  • Reserve Validator Version Utxo
  • Governance Policy Script

Functions§

update_reserve_settings
Updates reserve settings.