text stringlengths 0 601k |
|---|
module I = struct type ' a t = { start : ' a ; bytecode_start_address : ' a [ @ bits dbits ] ; atom_table_address : ' a [ @ bits dbits ] ; globals_start_address : ' a [ @ bits dbits ] ; heap_start_address : ' a [ @ bits dbits ] ; stack_start_address : ' a [ @ bits dbits ] ; memory_i : ' a Memory . I . t ; c_call_ready ... |
module O = struct type ' a t = { state : ' a ; pc : ' a [ @ bits dbits ] ; sp : ' a [ @ bits dbits ] ; accu : ' a [ @ bits dbits ] ; env : ' a [ @ bits dbits ] ; extra_args : ' a [ @ bits dbits ] ; instruction : ' a [ @ bits 8 ] ; error : ' a ; memory_o : ' a Memory . O . t ; decode : ' a Decode . t ; c_call_request : ... |
type decinstr = { lte : t ; gte : t ; eq : t ; range : t } |
let decode instr = let constins i = consti ~ width : 8 ( Opcode . to_int i ) in let ins = Opcode . all in let sel = let sel = Array . of_list @@ List . map ins ~ f ( : fun i -> let i = constins i in { lte = instr <=: i ; gte = instr >=: i ; eq = instr ==: i ; range = instr -: i } ) in fun i -> sel . ( Opcode . to_int i... |
let alu_int op a b = let a , b , z = msbs a , msbs b , zero ( dbits - 1 ) in mux op [ z ; a +: b ; a -: b ; ( a *+ b ) . [ : dbits - 2 , 0 ] ; z ; z ; a &: b ; a |: b ; a ^: b ; log_shift sll a b . [ : 5 , 0 ] ; log_shift srl a b . [ : 5 , 0 ] ; log_shift sra a b . [ : 5 , 0 ] ] @: vdd ; ; |
let comp_int op a b = let a , b = msbs a , msbs b in zero ( dbits - 2 ) @: mux op [ a ==: b ; a <>: b ; a <+ b ; a <=+ b ; a >+ b ; a >=+ b ] @: vdd ; ; |
let ucomp_int op a b = let a , b = msbs a , msbs b in zero ( dbits - 2 ) @: mux op [ a <: b ; a >: b ] @: vdd ; ; |
module States = struct type t = [ ` init | ` fetch | ` decode | ` acc_set | ` acc_offset | ` pushacc | ` envacc | ` pop | ` constint | ` branch | ` c_call0 | ` c_call1 | ` c_call2 | ` c_call3 | ` alu | ` comp | ` ucomp | ` bcomp | ` bucomp | ` bcomp_setpc | ` closure_nfuncs | ` closure_nvars | ` closure_alloc | ` closu... |
let state_str = List . map States . all ~ f ( : fun s -> Sexp . to_string_hum ( States . sexp_of_t s ) ) |
module M = Mlvalues . Make ( struct include Signal let ( /: ) _ _ = failwith " " /: let ( %: ) _ _ = failwith " " %: let const = consti ~ width : dbits let zero = const 0 let one = const 1 let log_shift f a b = if Signal . is_const b then f a ( to_int b ) else log_shift f a b let sll a b = log_shift sll a b . [ : 5 , 0... |
let zinc i = let open Memory . O in let open Memory . I in let open Decode in let open I in let open O in let open Always in let e = vdd in let ures x = uresize x dbits in let sres x = sresize x dbits in let val_int x = uresize x ( dbits - 1 ) @: vdd in let val_unit = val_int ( zero dbits ) in let int_val x = sra x 1 i... |
module Z = Cyclesim . With_interface ( Zinc . I ) ( Zinc . O ) |
type cfg = { waves : bool ; instr_trace : bool ; state_trace : bool ; mem_trace : bool } |
let make cfg exe = let mem_size_words = 1024 * 1024 in let _show_instr = let ins = Base . List . map Opcode . all ~ f : Opcode . to_string |> Base . Array . of_list in fun x -> let i = Bits . to_int x in try ins . ( i ) with | _ -> " " in let sim = Z . create Zinc . zinc in let waves , sim = if cfg . waves then ( let w... |
let read2 ic = let lb = read1 ic in let hb = read1 ic in lb lor ( hb lsl 8 ) 8 |
let read4 ic = let lw = read2 ic in let hw = read2 ic in Int32 . logor ( Int32 . of_int lw ) lw ( Int32 . shift_left ( Int32 . of_int hw ) hw 16 ) 16 |
let read4_int ic = let lw = read2 ic in let hw = read2 ic in if hw > max_int lsr 16 then raise ( Error ( Error " " , " " , " 32 - bit data too large ) ) " ; lw lor ( hw lsl 16 ) 16 |
let readstring ic n = let s = Bytes . create n in really_input ic s 0 n ; Bytes . to_string s |
let write2 oc n = write1 oc n ; write1 oc ( n lsr 8 ) 8 |
let write4 oc n = write2 oc ( Int32 . to_int n ) n ; write2 oc ( Int32 . to_int ( Int32 . shift_right_logical n 16 ) 16 ) 16 |
let write4_int oc n = write2 oc n ; write2 oc ( n lsr 16 ) 16 |
let writestring oc s = output oc ( Bytes . of_string s ) s 0 ( String . length s ) s |
let writebytes oc s = output oc s 0 ( Bytes . length s ) s |
type compression_method = Stored | Deflated |
type entry = { filename : string ; extra : string ; comment : string ; methd : compression_method ; mtime : float ; crc : int32 ; uncompressed_size : int ; compressed_size : int ; is_directory : bool ; file_offset : int64 } |
type in_file = { if_filename : string ; if_channel : Pervasives . in_channel ; if_entries : entry list ; if_directory : ( string , entry ) entry Hashtbl . t ; if_comment : string } |
let entries ifile = ifile . if_entries |
let comment ifile = ifile . if_comment |
type out_file = { of_filename : string ; of_channel : Pervasives . out_channel ; mutable of_entries : entry list ; of_comment : string } |
let strrstr pattern buf ofs len = let rec search i j = if i < ofs then - 1 else if j >= String . length pattern then i else if pattern [ . j ] j = buf [ . i + j ] j then search i ( j + 1 ) 1 else search ( i - 1 ) 1 0 in search ( ofs + len - String . length pattern ) pattern 0 |
let filename_is_directory name = String . length name > 0 && name [ . String . length name - 1 ] 1 = ' / ' |
let unixtime_of_dostime time date = fst ( fstUnix . mktime { Unix . tm_sec = ( time lsl 1 ) 1 land 0x3e ; Unix . tm_min = ( time lsr 5 ) 5 land 0x3f ; Unix . tm_hour = ( time lsr 11 ) 11 land 0x1f ; Unix . tm_mday = date land 0x1f ; Unix . tm_mon = ( ( date lsr 5 ) 5 land 0xf ) 0xf - 1 ; Unix . tm_year = ( ( date lsr 9... |
let dostime_of_unixtime t = let tm = Unix . localtime t in ( tm . Unix . tm_sec lsr 1 + ( tm . Unix . tm_min lsl 5 ) 5 + ( tm . Unix . tm_hour lsl 11 ) 11 , tm . Unix . tm_mday + ( tm . Unix . tm_mon + 1 ) 1 lsl 5 + ( tm . Unix . tm_year - 80 ) 80 lsl 9 ) 9 |
let read_ecd filename ic = let buf = Bytes . create 256 in let filelen = in_channel_length ic in let rec find_ecd pos len = if pos <= 0 || filelen - pos >= 0x10000 then raise ( Error ( Errorfilename , " " , " end of central directory not found , not a ZIP file ) ) " ; let toread = min pos 128 in Bytes . blit buf 0 buf ... |
let read_cd filename ic cd_entries cd_offset cd_bound = let cd_bound = Int64 . of_int32 cd_bound in try LargeFile . seek_in ic ( Int64 . of_int32 cd_offset ) cd_offset ; let e = ref [ ] in let entrycnt = ref 0 in while ( LargeFile . pos_in ic < cd_bound ) cd_bound do incr entrycnt ; let magic = read4 ic in let _version... |
let open_in filename = let ic = Pervasives . open_in_bin filename in let ( cd_entries , cd_size , cd_offset , cd_comment ) cd_comment = read_ecd filename ic in let entries = read_cd filename ic cd_entries cd_offset ( Int32 . add cd_offset cd_size ) cd_size in let dir = Hashtbl . create ( cd_entries / 3 ) 3 in List . it... |
let close_in ifile = Pervasives . close_in ifile . if_channel |
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 _compr_size = read4_... |
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_input ifile . if_channel res 0 e ... |
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 n = if n > 0 then begin let r ... |
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_out oc ; Sys . remove outfilena... |
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 = comment } |
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 ( time , date ) date = dostime_of_unixtim... |
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 then raise ( raiseError ( ra... |
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 , filename , " filename too long... |
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_size = compr_size } |
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 data 0 ( Bytes . length data ) data in let c... |
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 ) uncompr_size = match level with 0 -> let buf = B... |
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_mtime ) st_mtime with Unix . Unix_error ( Unix_... |
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 = ref 0 in let finished = ref false in let c... |
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 = true ; block_producers = ... |
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 = { balance = Ignore ; nonce = Ignor... |
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 ~ num_bits : 16 ( Kimchi_backend_common . Sc... |
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_under_construction . In_circuit . to_party party in let returned_tra... |
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 initial_state = List . map ~ f : Field... |
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 new_state = exists ( Typ . list ~ le... |
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 . to_party |
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 = true ; block_producers = ... |
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 = Random_oracle . Checked .... |
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 ( Events . hash events ) events [ %% ... |
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 Pickles_types . Vector . Vector_5 . Stable .... |
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 ; sequence_state : ' field Pickles_types . Vector . Vector_5 ... |
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 . V1 . t , F . 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 . Step . Field . t , Mina_numbers . G... |
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 . transport ~ there ( : Option . map ~ f ( : With_ha... |
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 ( : f app_state ) app_state ~ ver... |
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 [ empty ; empty ; empty ; empty ; empty ]... |
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 . append ( f prev ) prev ( f next ) next [ %%... |
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_hlist ~ value_to_hlist : to_hlist ~ value_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 ) 1 ) 1 ( f data ) data ) data let to_input { is_some... |
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 Set x -> Some x | Keep -> None let o... |
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 in if b then let % map a = ge... |
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 : ' b } [ @@ deriving hlist ] hlist l... |
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_logic . For_tests in ... |
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 . compress fee_payer_keypair . public_key... |
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 : 1 ( Mina_generators . Partie... |
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 ( Mina_generators . Parties_gene... |
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 ( Mina_generators . Parties_genera... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.