@@ -402,24 +402,14 @@ let check_authorization (p : Account_update.t) : unit Or_error.t =
402402 Error err
403403
404404module Verifiable : sig
405- [%% versioned:
406- module Stable : sig
407- module V1 : sig
408- type t = private
409- { fee_payer : Account_update.Fee_payer.Stable.V1 .t
410- ; account_updates :
411- ( Side_loaded_verification_key.Stable.V2 .t
412- , Zkapp_basic .F .Stable.V1 .t )
413- With_hash.Stable.V1 .t
414- option
415- Call_forest.With_hashes_and_data.Stable.V1 .t
416- ; memo : Signed_command_memo.Stable.V1 .t
417- }
418- [@@ deriving sexp , compare , equal , hash , yojson ]
419-
420- val to_latest : t -> t
421- end
422- end ]
405+ type t = private
406+ { fee_payer : Account_update.Fee_payer .t
407+ ; account_updates :
408+ (Side_loaded_verification_key .t , Zkapp_basic .F .t) With_hash .t option
409+ Call_forest.With_hashes_and_data .t
410+ ; memo : Signed_command_memo .t
411+ }
412+ [@@ deriving sexp , compare , equal , hash , yojson , bin_io ]
423413
424414 val load_vk_from_ledger :
425415 location_of_account :(Account_id .t -> 'loc option )
@@ -472,24 +462,17 @@ module Verifiable : sig
472462 with type 'a Command_wrapper. t = 'a With_status. t
473463 and type cache = Verification_key_wire. t Account_id.Map. t
474464end = struct
475- [%% versioned
476- module Stable = struct
477- module V1 = struct
478- type t =
479- { fee_payer : Account_update.Fee_payer.Stable.V1 .t
480- ; account_updates :
481- ( Side_loaded_verification_key.Stable.V2 .t
482- , Zkapp_basic .F .Stable.V1 .t )
483- With_hash.Stable.V1 .t
484- option
485- Call_forest.With_hashes_and_data.Stable.V1 .t
486- ; memo : Signed_command_memo.Stable.V1 .t
487- }
488- [@@ deriving sexp , compare , equal , hash , yojson ]
489-
490- let to_latest = Fn. id
491- end
492- end ]
465+ type t =
466+ { fee_payer : Account_update.Fee_payer.Stable.Latest .t
467+ ; account_updates :
468+ ( Side_loaded_verification_key.Stable.Latest .t
469+ , Zkapp_basic .F .Stable.Latest .t )
470+ With_hash.Stable.Latest .t
471+ option
472+ Call_forest.With_hashes_and_data.Stable.Latest .t
473+ ; memo : Signed_command_memo.Stable.Latest .t
474+ }
475+ [@@ deriving sexp , compare , equal , hash , yojson , bin_io_unversioned ]
493476
494477 let ok_if_vk_hash_expected ~got ~expected =
495478 if not @@ Zkapp_basic.F. equal (With_hash. hash got) expected then
0 commit comments