text
stringlengths
12
786k
let find_entry ifile name = Hashtbl . find ifile . if_directory name
let goto_entry ifile e = try let ic = ifile . if_channel in LargeFile . seek_in ic e . file_offset ; let magic = read4 ic in let _version_needed = read2 ic in let _flags = read2 ic in let _methd = read2 ic in let _lastmod_time = read2 ic in let _lastmod_date = read2 ic in let _crc = read4 ic in let...
let read_entry ifile e = try goto_entry ifile e ; let res = Bytes . create e . uncompressed_size in match e . methd with Stored -> if e . compressed_size <> e . uncompressed_size then raise ( Error ( Errorifile . if_filename , e . filename , " wrong size for stored entry ) ) " ; really_in...
let copy_entry_to_channel ifile e oc = try goto_entry ifile e ; match e . methd with Stored -> if e . compressed_size <> e . uncompressed_size then raise ( Error ( Errorifile . if_filename , e . filename , " wrong size for stored entry ) ) " ; let buf = Bytes . create 4096 in let rec copy...
let copy_entry_to_file ifile e outfilename = let oc = open_out_bin outfilename in try copy_entry_to_channel ifile e oc ; close_out oc ; begin try Unix . utimes outfilename e . mtime e . mtime with Unix . Unix_error ( Unix_error_ , _ , _ ) _ | Invalid_argument _ -> ( ) end with x -> close_o...
let open_out ( ? comment = ) " " filename = if String . length comment >= 0x10000 then raise ( raiseError ( raiseErrorfilename , " " , " comment too long ) ) " ; { of_filename = filename ; of_channel = Pervasives . open_out_bin filename ; of_entries = [ ] ; of_comment = comm...
let write_directory_entry oc e = write4 oc ( Int32 . of_int 0x02014b50 ) 0x02014b50 ; let version = match e . methd with Stored -> 10 | Deflated -> 20 in write2 oc version ; write2 oc version ; write2 oc 8 ; write2 oc ( match e . methd with Stored -> 0 | Deflated -> 8 ) 8 ; let ( ...
let close_out ofile = let oc = ofile . of_channel in let start_cd = pos_out oc in List . iter ( write_directory_entry oc ) oc ( List . rev ofile . of_entries ) of_entries ; let cd_size = pos_out oc - start_cd in let num_entries = List . length ofile . of_entries in if num_entries >= 0x10000 th...
let add_entry_header ofile extra comment level mtime filename = if level < 0 || level > 9 then raise ( raiseError ( raiseErrorofile . of_filename , filename , " wrong compression level ) ) " ; if String . length filename >= 0x10000 then raise ( raiseError ( raiseErrorofile . of_filename...
let add_data_descriptor ofile crc compr_size uncompr_size entry = let oc = ofile . of_channel in write4 oc ( Int32 . of_int 0x08074b50 ) 0x08074b50 ; write4 oc crc ; write4_int oc compr_size ; write4_int oc uncompr_size ; { entry with crc = crc ; uncompressed_size = uncompr_size ; compressed_...
let add_entry data ofile ( ? extra = ) " " ( ? comment = ) " " ( ? level = 6 ) 6 ( ? mtime = Unix . time ( time ) time ) time name = let data = Bytes . of_string data in let e = add_entry_header ofile extra comment level mtime name in let crc = Zlib . update_crc Int32 . zero d...
let copy_channel_to_entry ic ofile ( ? extra = ) " " ( ? comment = ) " " ( ? level = 6 ) 6 ( ? mtime = Unix . time ( time ) time ) time name = let e = add_entry_header ofile extra comment level mtime name in let crc = ref Int32 . zero in let ( compr_size , uncompr_size ) un...
let copy_file_to_entry infilename ofile ( ? extra = ) " " ( ? comment = ) " " ( ? level = 6 ) 6 ? mtime name = let ic = open_in_bin infilename in let mtime ' = match mtime with Some t -> mtime | None -> try Some ( Some ( SomeUnix . stat infilename ) infilename . Unix . st_mt...
let add_entry_generator ofile ( ? extra = ) " " ( ? comment = ) " " ( ? level = 6 ) 6 ( ? mtime = Unix . time ( time ) time ) time name = let e = add_entry_header ofile extra comment level mtime name in let crc = ref Int32 . zero in let compr_size = ref 0 in let uncompr_size =...
module Make ( Inputs : Intf . Test . Inputs_intf ) Inputs_intf = struct open Inputs open Engine open Dsl open Test_common . Make ( Inputs ) Inputs type network = Network . t type node = Network . Node . t type dsl = Dsl . t let config = let open Test_config in { default with requires_graphql = ...
module Party_under_construction = struct module Account_condition = struct type t = { state_proved : bool option } let create ( ) = { state_proved = None } let to_predicate ( { state_proved } : t ) t : Zkapp_precondition . Account . t = let default : Zkapp_precondition . Account . t = {...
let dummy_constraints ( ) = let x = exists Field . typ ~ compute ( : fun ( ) -> Field . Constant . of_int 3 ) 3 in let g = exists Inner_curve . typ ~ compute ( : fun _ -> Inner_curve . one ) one in ignore ( Pickles . Scalar_challenge . to_field_checked ' ( module Impl ) Impl ~ ...
let party_circuit f ( [ ] : _ H1 . T ( TId ) TId . t ) t ( { transaction ; at_party } : Zkapp_statement . Checked . t ) t : _ H1 . T ( TE01 ( TE01Pickles . Inductive_rule . B ) B ) B . t = dummy_constraints ( ) ; let party = f ( ) in let party = Party_unde...
let initial_state = lazy [ Field . Constant . zero ; Field . Constant . zero ; Field . Constant . zero ; Field . Constant . zero ; Field . Constant . zero ; Field . Constant . zero ; Field . Constant . zero ; Field . Constant . zero ]
let initialize public_key = Zkapps_examples . party_circuit ( fun ( ) -> let party = Party_under_construction . In_circuit . create ~ public_key ( : Public_key . Compressed . var_of_t public_key ) public_key ~ token_id : Token_id ( . Checked . constant default ) default ( ) in let ini...
type _ Snarky_backendless . Request . t += | New_state : Field . Constant . t list Snarky_backendless . Request . t
let update_state_handler ( new_state : Field . Constant . t list ) list ( Snarky_backendless . Request . With { request ; respond } ) = match request with | New_state -> respond ( Provide new_state ) new_state | _ -> respond Unhandled
let update_state public_key = Zkapps_examples . party_circuit ( fun ( ) -> let party = Party_under_construction . In_circuit . create ~ public_key ( : Public_key . Compressed . var_of_t public_key ) public_key ~ token_id : Token_id ( . Checked . constant default ) default ( ) in let n...
let main_value ( [ ] : _ H1 . T ( TId ) TId . t ) t ( _ : Zkapp_statement . t ) t : _ H1 . T ( TE01 ( TE01Core_kernel . Bool ) Bool ) Bool . t = [ ]
let initialize_rule public_key : _ Pickles . Inductive_rule . t = { identifier = " Initialize snapp " ; prevs = [ ] ; main = initialize public_key ; main_value }
let update_state_rule public_key : _ Pickles . Inductive_rule . t = { identifier = " Update state " ; prevs = [ ] ; main = update_state public_key ; main_value }
let generate_initialize_party public_key = Party_under_construction . create ~ public_key ~ token_id : Token_id . default ( ) |> Party_under_construction . assert_state_unproved |> Party_under_construction . set_full_state ( Lazy . force initial_state ) initial_state |> Party_under_construction . ...
let generate_update_state_party public_key new_state = Party_under_construction . create ~ public_key ~ token_id : Token_id . default ( ) |> Party_under_construction . assert_state_proved |> Party_under_construction . set_full_state new_state |> Party_under_construction . to_party
module Make ( Inputs : Intf . Test . Inputs_intf ) Inputs_intf = struct open Inputs open Engine open Dsl open Test_common . Make ( Inputs ) Inputs type network = Network . t type node = Network . Node . t type dsl = Dsl . t let config = let open Test_config in { default with requires_graphql = ...
module Events = struct module Event = struct type t = Field . t array let hash ( x : t ) t = Random_oracle . hash ~ init : Hash_prefix_states . zkapp_event x [ %% ifdef consensus_mechanism ] consensus_mechanism type var = Field . Var . t array let hash_var ( x : Field . Var . t array ) array...
module Sequence_events = struct let empty_hash = lazy Random_oracle ( . salt " MinaSnappSequenceEmpty " |> digest ) digest let push_hash acc hash = Random_oracle . hash ~ init : Hash_prefix_states . zkapp_sequence_events [ | acc ; hash ] | let push_events acc events = push_hash acc ( Event...
module Poly = struct [ %% versioned module Stable = struct module V2 = struct type ( ' app_state , ' vk , ' zkapp_version , ' field , ' slot , ' bool ) ' bool t = { app_state : ' app_state ; verification_key : ' vk ; zkapp_version : ' zkapp_version ; sequence_state : ' field ...
type ( ' app_state , ' vk , ' zkapp_version , ' field , ' slot , ' bool ) ' bool t_ = ( ' app_state , ' vk , ' zkapp_version , ' field , ' slot , ' bool ) ' bool Poly . t = { app_state : ' app_state ; verification_key : ' vk ; zkapp_version : ' zkapp_version ; ...
module Stable = struct [ @@@ no_toplevel_latest_type ] no_toplevel_latest_type module V2 = struct type t = ( Zkapp_state . Value . Stable . V1 . t , ( Side_loaded_verification_key . Stable . V2 . t , F . Stable . V1 . t ) With_hash . Stable . V1 . t option , Mina_numbers . Zkapp_version . Stable...
type t = ( Zkapp_state . Value . t , ( Side_loaded_verification_key . t , F . t ) t With_hash . t option , Mina_numbers . Zkapp_version . t , F . t , Mina_numbers . Global_slot . t , bool ) Poly . t
let ( ) = let _f : unit -> ( t , Stable . Latest . t ) t Type_equal . t = fun ( ) -> Type_equal . T in ( )
let digest_vk ( t : Side_loaded_verification_key . t ) t = Random_oracle ( . hash ~ init : Hash_prefix_states . side_loaded_vk ( pack_input ( Side_loaded_verification_key . to_input t ) t ) t ) t
let dummy_vk_hash = Memo . unit ( fun ( ) -> digest_vk Side_loaded_verification_key . dummy ) dummy
module Checked = struct type t = ( Pickles . Impls . Step . Field . t Zkapp_state . V . t , ( Boolean . var , ( Side_loaded_verification_key . t option , Field . t ) t With_hash . t Data_as_hash . t ) Flagged_option . t , Mina_numbers . Zkapp_version . Checked . t , Pickles . Impls . St...
let typ : ( Checked . t , t ) t Typ . t = let open Poly in Typ . of_hlistable [ Zkapp_state . typ Field . typ ; Flagged_option . option_typ ~ default { : With_hash . data = None ; hash = dummy_vk_hash ( ) } ( Data_as_hash . typ ~ hash : With_hash . hash ) hash |> Typ . trans...
let to_input ( t : t ) t = let open Random_oracle . Input . Chunked in let f mk acc field = mk ( Core_kernel . Field . get field t ) t :: acc in let app_state v = Random_oracle . Input . Chunked . field_elements ( Vector . to_array v ) v in Poly . Fields . fold ~ init [ ] : ~ app_state ...
let default : _ Poly . t = { app_state = Vector . init Zkapp_state . Max_state_size . n ~ f ( : fun _ -> F . zero ) zero ; verification_key = None ; zkapp_version = Mina_numbers . Zkapp_version . zero ; sequence_state = ( let empty = Lazy . force Sequence_events . empty_hash in [ emp...
let digest ( t : t ) t = Random_oracle ( . hash ~ init : Hash_prefix_states . zkapp_account ( pack_input ( to_input t ) t ) t ) t
let default_digest = lazy ( digest default ) default
let field_of_bool = Mina_base_util . field_of_bool [ %% endif ] endif
let int_to_bits ~ length x = List . init length ~ f ( : fun i -> ( x lsr i ) i land 1 = 1 ) 1
let int_of_bits = List . foldi ~ init : 0 ~ f ( : fun i acc b -> if b then acc lor ( 1 lsl i ) i else acc ) acc
module Transition = struct [ %% versioned module Stable = struct module V1 = struct type ' a t = { prev : ' a ; next : ' a } [ @@ deriving hlist , sexp , equal , yojson , hash , compare ] compare end end ] end let to_input { prev ; next } ~ f = Random_oracle_input . Chunked . ...
module Flagged_data = struct type ( ' flag , ' a ) ' a t = { flag : ' flag ; data : ' a } [ @@ deriving hlist , fields ] fields [ %% ifdef consensus_mechanism ] consensus_mechanism let typ flag t = Typ . of_hlistable [ flag ; t ] ~ var_to_hlist : to_hlist ~ var_of_hlist : of...
module Flagged_option = struct type ( ' bool , ' a ) ' a t = { is_some : ' bool ; data : ' a } [ @@ deriving hlist , fields ] fields let to_input ' ~ field_of_bool { is_some ; data } ~ f = Random_oracle_input . Chunked ( . append ( packed ( field_of_bool is_some , 1 )...
module Set_or_keep = struct [ %% versioned module Stable = struct module V1 = struct type ' a t = Set of ' a | Keep [ @@ deriving sexp , equal , compare , hash , yojson ] yojson end end ] end let map t ~ f = match t with Keep -> Keep | Set x -> Set ( f x ) x let to_option = function S...
module Or_ignore = struct [ %% versioned module Stable = struct module V1 = struct type ' a t = Check of ' a | Ignore [ @@ deriving sexp , equal , compare , hash , yojson ] yojson end end ] end let gen gen_a = let open Quickcheck . Let_syntax in let % bind b = Quickcheck . Generator . bool ...
module Account_state = struct [ %% versioned module Stable = struct module V1 = struct type t = Empty | Non_empty | Any [ @@ deriving sexp , equal , yojson , hash , compare , enum ] enum let to_latest = Fn . id end end ] end module Encoding = struct type ' b t = { any : ' b ; empty ...
module F = Pickles . Backend . Tick . Field [ %% else ] else
module F = Snark_params . Tick . Field [ %% endif ] endif
let invalid_public_key : Public_key . Compressed . t = { x = F . zero ; is_odd = false } Option . is_none ( Public_key . decompress invalid_public_key ) invalid_public_key
module Spec = Transaction_snark . For_tests . Spec ( module struct let memo = Signed_command_memo . create_from_string_exn " Snapp deploy tests " let constraint_constants = U . constraint_constants let % test_unit " create a new snapp account / deploy a smart contract " = let open Mina_transaction_lo...
let logger = Logger . create ( )
let mk_ledgers_and_fee_payers ( ? is_timed = false ) false ~ num_of_fee_payers ( ) = let fee_payer_keypairs = Array . init num_of_fee_payers ~ f ( : fun _ -> Keypair . create ( ) ) in let fee_payer_pks = Array . map fee_payer_keypairs ~ f ( : fun fee_payer_keypair -> Public_key . compr...
let ` VK vk , ` Prover prover = Lazy . force U . trivial_zkapp
let generate_parties_and_apply_them_consecutively ( ) = let num_of_fee_payers = 5 in let trials = 6 in let ledger , fee_payer_keypairs , keymap = mk_ledgers_and_fee_payers ~ num_of_fee_payers ( ) in Test_util . with_randomness 123456789 ( fun ( ) -> let test i = Quickcheck . test ~ trials...
let generate_parties_and_apply_them_freshly ( ) = let num_of_fee_payers = 5 in let trials = 6 in Test_util . with_randomness 123456789 ( fun ( ) -> let test i = let ledger , fee_payer_keypairs , keymap = mk_ledgers_and_fee_payers ~ num_of_fee_payers ( ) in Quickcheck . test ~ trials : 1 ...
let mk_invalid_test ~ num_of_fee_payers ~ trials ~ type_of_failure ~ expected_failure_status = Test_util . with_randomness 123456789 ( fun ( ) -> let test i = let ledger , fee_payer_keypairs , keymap = mk_ledgers_and_fee_payers ~ num_of_fee_payers ( ) in Quickcheck . test ~ trials : 1 ( M...
let test_timed_account ( ) = let num_of_fee_payers = 5 in let trials = 1 in Test_util . with_randomness 123456789 ( fun ( ) -> let test i = let ledger , fee_payer_keypairs , keymap = mk_ledgers_and_fee_payers ~ is_timed : true ~ num_of_fee_payers ( ) in Quickcheck . test ~ trials : 1 ...
let ( ) = let num_of_fee_payers = 5 in let trials = 2 in generate_parties_and_apply_them_consecutively ( ) ; generate_parties_and_apply_them_freshly ( ) ; let open Mina_generators . Parties_generators in let open Transaction_status . Failure in mk_invalid_test ~ num_of_fee_payers ~ trials ~ ty...
module Spec = Transaction_snark . For_tests . Spec ( module struct let memo = Signed_command_memo . create_from_string_exn " Zkapp payments tests " let constraint_constants = U . constraint_constants let merkle_root_after_parties_exn t ~ txn_state_view txn = let hash = Ledger . merkle_root_after_parties_...
module Closed_interval = struct [ %% versioned module Stable = struct module V1 = struct type ' a t = { lower : ' a ; upper : ' a } [ @@ deriving annot , sexp , equal , compare , hash , yojson , hlist , fields ] fields end end ] end let gen gen_a compare_a = let open Quickcheck ....
let assert_ b e = if b then Ok ( ) else Or_error . error_string e
module Numeric = struct module Tc = struct type ( ' var , ' a ) ' a t = { zero : ' a ; max_value : ' a ; compare : ' a -> ' a -> int ; equal : ' a -> ' a -> bool ; typ : ( ' var , ' a ) ' a Typ . t ; to_input : ' a -> F . t Random_oracle_input . Chunked . t ; to_i...
module Eq_data = struct include Or_ignore module Tc = struct type ( ' var , ' a ) ' a t = { equal : ' a -> ' a -> bool ; equal_checked : ' var -> ' var -> Boolean . var ; default : ' a ; typ : ( ' var , ' a ) ' a Typ . t ; to_input : ' a -> F . t Random_oracle_input . C...
module Hash = struct include Eq_data let to_input tc = to_input ~ explicit : true tc let typ = typ_explicit end
module Leaf_typs = struct let public_key ( ) = Public_key . Compressed ( . Or_ignore . typ_explicit ~ ignore : invalid_public_key typ ) typ open Eq_data . Tc let field = Eq_data . typ_explicit field let receipt_chain_hash = Hash . typ receipt_chain_hash let ledger_hash = Hash . typ ledger_hash l...
module Account = struct module Poly = struct [ %% versioned module Stable = struct module V1 = struct type ( ' balance , ' nonce , ' receipt_chain_hash , ' pk , ' field ) ' field t = { balance : ' balance ; nonce : ' nonce ; receipt_chain_hash : ' receipt_chain_hash ; public_key ...
module Protocol_state = struct module Epoch_data = struct module Poly = Epoch_data . Poly [ %% versioned module Stable = struct module V1 = struct type t = ( ( Frozen_ledger_hash . Stable . V1 . t Hash . Stable . V1 . t , Currency . Amount . Stable . V1 . t Numeric . Stable . V1 . t ) Epoch_ledger...
module Account_type = struct [ %% versioned module Stable = struct module V1 = struct type t = User | Zkapp | None | Any [ @@ deriving sexp , equal , yojson , hash , compare ] compare let to_latest = Fn . id end end ] end let check ( t : t ) t ( a : A . t option ) option = match (...
module Other = struct module Poly = struct [ %% versioned module Stable = struct module V1 = struct type ( ' account , ' account_transition , ' vk ) ' vk t = { predicate : ' account ; account_transition : ' account_transition ; account_vk : ' vk } [ @@ deriving hlist , sexp , eq...
module Poly = struct [ %% versioned module Stable = struct module V1 = struct type ( ' account , ' protocol_state , ' other , ' pk ) ' pk t = { self_predicate : ' account ; other : ' other ; fee_payer : ' pk ; protocol_state_predicate : ' protocol_state } [ @@ deriving hlist ,...
module Stable = struct module V2 = struct type t = ( Account . Stable . V2 . t , Protocol_state . Stable . V1 . t , Other . Stable . V2 . t , Public_key . Compressed . Stable . V1 . t Eq_data . Stable . V1 . t ) Poly . Stable . V1 . t [ @@ deriving sexp , equal , yojson , hash , compare ] ...
let to_input ( { self_predicate ; other ; fee_payer ; protocol_state_predicate } : t ) t = let open Random_oracle_input . Chunked in List . reduce_exn ~ f : append [ Account . to_input self_predicate ; Other . to_input other ; Eq_data ( . to_input_explicit ( Tc . public_key ( ) )...
let digest t = Random_oracle ( . hash ~ init : Hash_prefix . zkapp_precondition ( pack_input ( to_input t ) t ) t ) t
let accept : t = { self_predicate = Account . accept ; other = Other . accept ; fee_payer = Ignore ; protocol_state_predicate = Protocol_state . accept }
module Checked = struct type t = ( Account . Checked . t , Protocol_state . Checked . t , Other . Checked . t , Public_key . Compressed . var Or_ignore . Checked . t ) Poly . Stable . Latest . t let to_input ( { self_predicate ; other ; fee_payer ; protocol_state_predicate } : t ) t = ...
let typ ( ) : ( Checked . t , Stable . Latest . t ) t Typ . t = Poly . typ [ Account . typ ( ) ; Other . typ ( ) ; Eq_data ( . typ_explicit ( Tc . public_key ( ) ) ) ; Protocol_state . typ ]
module V = struct [ %% versioned module Stable = struct [ @@@ no_toplevel_latest_type ] no_toplevel_latest_type module V1 = struct type ' a t = ' a Vector . Vector_8 . Stable . V1 . t [ @@ deriving compare , yojson , sexp , hash , equal ] equal end end ] end type ' a t = ' a Vector . Ve...
let ( ) = let _f : type a . unit -> ( a V . t , a Vector . With_length ( With_lengthMax_state_size ) With_lengthMax_state_size . t ) t Type_equal . t = fun ( ) -> Type_equal . T in ( )
let typ t = Vector . typ t Max_state_size . n
module Value = struct [ %% versioned module Stable = struct [ @@@ no_toplevel_latest_type ] no_toplevel_latest_type module V1 = struct type t = Zkapp_basic . F . Stable . V1 . t V . Stable . V1 . t [ @@ deriving sexp , equal , yojson , hash , compare ] compare let to_latest = Fn . id end en...
let to_input ( t : _ V . t ) t ~ f = Vector ( . reduce_exn ( map t ~ f ) f ~ f : Random_oracle_input . Chunked . append ) append
let deriver inner obj = let open Fields_derivers_zkapps . Derivers in iso ~ map : V . of_list_exn ~ contramap : V . to_list ( ( list @@ inner @@ o ( ) ) ( o ( ) ) ) obj
module Poly = struct [ %% versioned module Stable = struct module V1 = struct type ' comm t = { transaction : ' comm ; at_party : ' comm } [ @@ deriving hlist , sexp , yojson ] yojson end end ] end let to_field_elements ( t : ' c t ) t : ' c array = let [ x0 ; x1 ] = to_hlis...
module Stable = struct module V2 = struct type t = Parties . Transaction_commitment . Stable . V1 . t Poly . Stable . V1 . t [ @@ deriving sexp , yojson ] yojson let to_latest = Fn . id end end ] end
let to_field_elements : t -> _ = Poly . to_field_elements
module Checked = struct type t = Parties . Transaction_commitment . Checked . t Poly . t let to_field_elements : t -> _ = Poly . to_field_elements open Pickles . Impls . Step module Assert = struct let equal ( t1 : t ) t ( t2 : t ) t = Array . iter2_exn ~ f : Field . Assert . equal ( to_f...
let typ = let open Poly in Typ . of_hlistable Parties . Transaction_commitment [ . typ ; typ ] ~ var_to_hlist : to_hlist ~ var_of_hlist : of_hlist ~ value_to_hlist : to_hlist ~ value_of_hlist : of_hlist [ %% endif ] endif
module Flags = struct open Command let default_fee = Currency . Fee . of_formatted_string " 1 " let min_fee = Currency . Fee . of_formatted_string " 0 . 003 " let memo = Param . flag " -- memo " ~ doc " : STRING Memo accompanying the transaction " Param ( . optional string ) string let ...
let create_zkapp_account = let create_command ~ debug ~ keyfile ~ fee ~ zkapp_keyfile ~ amount ~ nonce ~ memo ( ) = let open Deferred . Let_syntax in let % map parties = create_zkapp_account ~ debug ~ keyfile ~ fee ~ zkapp_keyfile ~ amount ~ nonce ~ memo in Util . print_snapp_transaction parties...
let upgrade_zkapp = let create_command ~ debug ~ keyfile ~ fee ~ nonce ~ memo ~ zkapp_keyfile ~ verification_key ~ zkapp_uri ~ auth ( ) = let open Deferred . Let_syntax in let % map parties = upgrade_zkapp ~ debug ~ keyfile ~ fee ~ nonce ~ memo ~ zkapp_keyfile ~ verification_key ~ zkapp_uri ~...
let transfer_funds = let create_command ~ debug ~ keyfile ~ fee ~ nonce ~ memo ~ receivers ( ) = let open Deferred . Let_syntax in let % map parties = transfer_funds ~ debug ~ keyfile ~ fee ~ nonce ~ memo ~ receivers in Util . print_snapp_transaction parties ; ( ) in let read_key_and_amount ...
let update_state = let create_command ~ debug ~ keyfile ~ fee ~ nonce ~ memo ~ zkapp_keyfile ~ app_state ( ) = let open Deferred . Let_syntax in let % map parties = update_state ~ debug ~ keyfile ~ fee ~ nonce ~ memo ~ zkapp_keyfile ~ app_state in Util . print_snapp_transaction parties ; ( )...
let update_zkapp_uri = let create_command ~ debug ~ keyfile ~ fee ~ nonce ~ memo ~ snapp_keyfile ~ zkapp_uri ~ auth ( ) = let open Deferred . Let_syntax in let % map parties = update_zkapp_uri ~ debug ~ keyfile ~ fee ~ nonce ~ memo ~ snapp_keyfile ~ zkapp_uri ~ auth in Util . print_snapp_transa...