[go: up one dir, main page]

Proto/AI: use parse_data for set_delegate_parameters pseudo-operation (Follow-up from "Draft: Proto/AI: per-delegate staking parameters")

The following discussion from !8973 (merged) should be addressed:

  • @mbouaziz started a discussion: (+10 comments)

    In optimized form, a value of type pair (nat, pair (nat, unit)) will have the shape Prim (_, D_Pair, [Int (_, staking_over_baking_limit); Prim (_, D_Pair, [Int (_, baking_over_staking_edge); Prim (_, D_Unit, [], [])], [])], [])

    @rafoo_, do you think we should support other forms as well?

    • Prim (_, D_Pair, [Int (_, staking_over_baking_limit); Int (_, baking_over_staking_edge); Prim (_, D_Unit, [], [])], [])
    • Seq (_, [Int (_, staking_over_baking_limit); Int (_, baking_over_staking_edge); Prim (_, D_Unit, [], [])])