Introduce new Ticket constructor
Problem
Users cannot know they are transferring tickets by just inspecting parameters, which look like Pair 0x01fb.. (Pair "foo" 1). This means they can be tricked into sending tickets without knowing. This becomes problematic when we enable implicit accounts to send tickets via Transaction (!10919 (merged))
Solution
Introduce a new Ticket primitive so ticks appear as tickets in the Micheline expression so tickets appear as tickets in the Micheline expression.
So instead of:
Pair 0x01fb08747351ab3652f772910c4565880d8df616f800 (Pair "Ticket" 1)
We would have something like:
Ticket (0x01fb08747351ab3652f772910c4565880d8df616f800 "Ticket" 1)
Tasks
-
add D_Ticketconstructor, !11599 (merged) -
handle parsing of D_Ticketconstructor, !11602 (merged) -
handle unparsing of D_Ticketconstructor, !11619 (merged) -
deactivate the use of Pairconstructor to create Ticket, !11620 (merged)
Edited by YunYan