text
stringlengths 0
601k
|
---|
module type FOLDOOO_VANILLA = sig type ' a elt type ' a t val fold : ( ' b elt -> ' a -> ' a ) -> ' b t -> ' a -> ' a end
|
module type FOLDOOO_SEQUENTIAL = sig include FOLDOOO_VANILLA val fold_e : ( ' b elt -> ' a -> ( ' a , ' trace ) result ) -> ' b t -> ' a -> ( ' a , ' trace ) result val fold_s : ( ' b elt -> ' a -> ' a Lwt . t ) -> ' b t -> ' a -> ' a Lwt . t val fold_es : ( ' b elt -> ' a -> ( ' a , ' trace ) result Lwt . t ) -> ' b t -> ' a -> ( ' a , ' trace ) result Lwt . t end
|
module type EXISTFORALL_VANILLA = sig type ' a elt type ' a t val exists : ( ' a elt -> bool ) -> ' a t -> bool val for_all : ( ' a elt -> bool ) -> ' a t -> bool end
|
module type EXISTFORALL_SEQUENTIAL = sig include EXISTFORALL_VANILLA val exists_e : ( ' a elt -> ( bool , ' trace ) result ) -> ' a t -> ( bool , ' trace ) result val exists_s : ( ' a elt -> bool Lwt . t ) -> ' a t -> bool Lwt . t val exists_es : ( ' a elt -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( bool , ' trace ) result Lwt . t val for_all_e : ( ' a elt -> ( bool , ' trace ) result ) -> ' a t -> ( bool , ' trace ) result val for_all_s : ( ' a elt -> bool Lwt . t ) -> ' a t -> bool Lwt . t val for_all_es : ( ' a elt -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( bool , ' trace ) result Lwt . t end
|
module type EXISTFORALL_PARALLEL = sig include EXISTFORALL_SEQUENTIAL val exists_p : ( ' a elt -> bool Lwt . t ) -> ' a t -> bool Lwt . t val exists_ep : ( ' a elt -> ( bool , ' error trace ) result Lwt . t ) -> ' a t -> ( bool , ' error trace ) result Lwt . t val for_all_p : ( ' a elt -> bool Lwt . t ) -> ' a t -> bool Lwt . t val for_all_ep : ( ' a elt -> ( bool , ' error trace ) result Lwt . t ) -> ' a t -> ( bool , ' error trace ) result Lwt . t end
|
module type FILTER_VANILLA = sig type ' a elt type ' a t val filter : ( ' a -> bool ) -> ' a t -> ' a t end
|
module type FILTER_EXTRAS = sig include FILTER_VANILLA val filter_left : ( ' a , ' b ) Either . t t -> ' a t val filter_right : ( ' b , ' a ) Either . t t -> ' a t val filter_ok : ( ' a , ' b ) result t -> ' a t val filter_error : ( ' b , ' a ) result t -> ' a t end
|
module type FILTER_SEQUENTIAL = sig include FILTER_VANILLA val filter_e : ( ' a -> ( bool , ' trace ) result ) -> ' a t -> ( ' a t , ' trace ) result val filter_s : ( ' a -> bool Lwt . t ) -> ' a t -> ' a t Lwt . t val filter_es : ( ' a -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( ' a t , ' trace ) result Lwt . t end
|
module type FILTER_PARALLEL = sig type ' a t val filter_p : ( ' a -> bool Lwt . t ) -> ' a t -> ' a t Lwt . t val filter_ep : ( ' a -> ( bool , ' error trace ) result Lwt . t ) -> ' a t -> ( ' a t , ' error trace ) result Lwt . t end
|
module type FILTERI_VANILLA = sig type ' a elt type ' a t val filteri : ( int -> ' a -> bool ) -> ' a t -> ' a t end
|
module type FILTERI_SEQUENTIAL = sig include FILTERI_VANILLA val filteri_e : ( int -> ' a -> ( bool , ' trace ) result ) -> ' a t -> ( ' a t , ' trace ) result val filteri_s : ( int -> ' a -> bool Lwt . t ) -> ' a t -> ' a t Lwt . t val filteri_es : ( int -> ' a -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( ' a t , ' trace ) result Lwt . t end
|
module type FILTERI_PARALLEL = sig type ' a t val filteri_p : ( int -> ' a -> bool Lwt . t ) -> ' a t -> ' a t Lwt . t val filteri_ep : ( int -> ' a -> ( bool , ' error trace ) result Lwt . t ) -> ' a t -> ( ' a t , ' error trace ) result Lwt . t end
|
module type FILTERMAP_VANILLA = sig type ' a t val filter_map : ( ' a -> ' b option ) -> ' a t -> ' b t end
|
module type FILTERMAP_SEQUENTIAL = sig include FILTERMAP_VANILLA val filter_map_e : ( ' a -> ( ' b option , ' trace ) result ) -> ' a t -> ( ' b t , ' trace ) result val filter_map_s : ( ' a -> ' b option Lwt . t ) -> ' a t -> ' b t Lwt . t val filter_map_es : ( ' a -> ( ' b option , ' trace ) result Lwt . t ) -> ' a t -> ( ' b t , ' trace ) result Lwt . t end
|
module type FILTERMAP_PARALLEL = sig type ' a t val filter_map_p : ( ' a -> ' b option Lwt . t ) -> ' a t -> ' b t Lwt . t val filter_map_ep : ( ' a -> ( ' b option , ' error trace ) result Lwt . t ) -> ' a t -> ( ' b t , ' error trace ) result Lwt . t end
|
module type CONCATMAP_VANILLA = sig type ' a t val concat_map : ( ' a -> ' b t ) -> ' a t -> ' b t end
|
module type CONCATMAP_SEQUENTIAL = sig include CONCATMAP_VANILLA val concat_map_s : ( ' a -> ' b t Lwt . t ) -> ' a t -> ' b t Lwt . t val concat_map_e : ( ' a -> ( ' b t , ' error ) result ) -> ' a t -> ( ' b t , ' error ) result val concat_map_es : ( ' a -> ( ' b t , ' error ) result Lwt . t ) -> ' a t -> ( ' b t , ' error ) result Lwt . t end
|
module type CONCATMAP_PARALLEL = sig type ' a t val concat_map_p : ( ' a -> ' b t Lwt . t ) -> ' a t -> ' b t Lwt . t val concat_map_ep : ( ' a -> ( ' b t , ' error trace ) result Lwt . t ) -> ' a t -> ( ' b t , ' error trace ) result Lwt . t end
|
module type FIND_VANILLA = sig type ' a t val find : ( ' a -> bool ) -> ' a t -> ' a option end
|
module type FIND_SEQUENTIAL = sig include FIND_VANILLA val find_e : ( ' a -> ( bool , ' trace ) result ) -> ' a t -> ( ' a option , ' trace ) result val find_s : ( ' a -> bool Lwt . t ) -> ' a t -> ' a option Lwt . t val find_es : ( ' a -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( ' a option , ' trace ) result Lwt . t end
|
module type FINDMAP_VANILLA = sig type ' a t val find_map : ( ' a -> ' b option ) -> ' a t -> ' b option end
|
module type FINDMAP_SEQUENTIAL = sig include FINDMAP_VANILLA val find_map_e : ( ' a -> ( ' b option , ' trace ) result ) -> ' a t -> ( ' b option , ' trace ) result val find_map_s : ( ' a -> ' b option Lwt . t ) -> ' a t -> ' b option Lwt . t val find_map_es : ( ' a -> ( ' b option , ' trace ) result Lwt . t ) -> ' a t -> ( ' b option , ' trace ) result Lwt . t end
|
module type PARTITION_VANILLA = sig type ' a t val partition : ( ' a -> bool ) -> ' a t -> ' a t * ' a t end
|
module type PARTITION_EXTRAS = sig include PARTITION_VANILLA val partition_either : ( ' a , ' b ) Either . t t -> ' a t * ' b t val partition_result : ( ' a , ' b ) result t -> ' a t * ' b t end
|
module type PARTITION_SEQUENTIAL = sig include PARTITION_VANILLA val partition_e : ( ' a -> ( bool , ' trace ) result ) -> ' a t -> ( ' a t * ' a t , ' trace ) result val partition_s : ( ' a -> bool Lwt . t ) -> ' a t -> ( ' a t * ' a t ) Lwt . t val partition_es : ( ' a -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( ' a t * ' a t , ' trace ) result Lwt . t end
|
module type PARTITION_PARALLEL = sig include PARTITION_SEQUENTIAL val partition_p : ( ' a -> bool Lwt . t ) -> ' a t -> ( ' a t * ' a t ) Lwt . t val partition_ep : ( ' a -> ( bool , ' error trace ) result Lwt . t ) -> ' a t -> ( ' a t * ' a t , ' error trace ) result Lwt . t end
|
module type PARTITIONMAP_VANILLA = sig type ' a t val partition_map : ( ' a -> ( ' b , ' c ) Either . t ) -> ' a t -> ' b t * ' c t end
|
module type PARTITIONMAP_SEQUENTIAL = sig include PARTITIONMAP_VANILLA val partition_map_e : ( ' a -> ( ( ' b , ' c ) Either . t , ' trace ) result ) -> ' a t -> ( ' b t * ' c t , ' trace ) result val partition_map_s : ( ' a -> ( ' b , ' c ) Either . t Lwt . t ) -> ' a t -> ( ' b t * ' c t ) Lwt . t val partition_map_es : ( ' a -> ( ( ' b , ' c ) Either . t , ' trace ) result Lwt . t ) -> ' a t -> ( ' b t * ' c t , ' trace ) result Lwt . t end
|
module type PARTITIONMAP_PARALLEL = sig include PARTITIONMAP_SEQUENTIAL val partition_map_p : ( ' a -> ( ' b , ' c ) Either . t Lwt . t ) -> ' a t -> ( ' b t * ' c t ) Lwt . t val partition_map_ep : ( ' a -> ( ( ' b , ' c ) Either . t , ' error trace ) result Lwt . t ) -> ' a t -> ( ' b t * ' c t , ' error trace ) result Lwt . t end
|
module type COMBINE_VANILLA = sig type ' a t val combine : when_different_lengths ' : trace -> ' a t -> ' b t -> ( ( ' a * ' b ) t , ' trace ) result val combine_with_leftovers : ' a t -> ' b t -> ( ' a * ' b ) t * ( ' a list , ' b list ) Either . t option end
|
module type ALLDOUBLE_VANILLA = sig type ' a t val iter2 : when_different_lengths ' : trace -> ( ' a -> ' b -> unit ) -> ' a t -> ' b t -> ( unit , ' trace ) result val map2 : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result val rev_map2 : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result val fold_left2 : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ' a ) -> ' a -> ' b t -> ' c t -> ( ' a , ' trace ) result val fold_right2 : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ' c ) -> ' a t -> ' b t -> ' c -> ( ' c , ' trace ) result val for_all2 : when_different_lengths ' : trace -> ( ' a -> ' b -> bool ) -> ' a t -> ' b t -> ( bool , ' trace ) result val exists2 : when_different_lengths ' : trace -> ( ' a -> ' b -> bool ) -> ' a t -> ' b t -> ( bool , ' trace ) result end
|
module type ALLDOUBLE_SEQENTIAL = sig include ALLDOUBLE_VANILLA val iter2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( unit , ' trace ) result ) -> ' a t -> ' b t -> ( unit , ' trace ) result val iter2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> unit Lwt . t ) -> ' a t -> ' b t -> ( unit , ' trace ) result Lwt . t val iter2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( unit , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( unit , ' trace ) result Lwt . t val map2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( ' c , ' trace ) result ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result val map2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c Lwt . t ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result Lwt . t val map2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( ' c , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result Lwt . t val rev_map2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( ' c , ' trace ) result ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result val rev_map2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c Lwt . t ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result Lwt . t val rev_map2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( ' c , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result Lwt . t val fold_left2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ( ' a , ' trace ) result ) -> ' a -> ' b t -> ' c t -> ( ' a , ' trace ) result val fold_left2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ' a Lwt . t ) -> ' a -> ' b t -> ' c t -> ( ' a , ' trace ) result Lwt . t val fold_left2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ( ' a , ' trace ) result Lwt . t ) -> ' a -> ' b t -> ' c t -> ( ' a , ' trace ) result Lwt . t val fold_right2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ( ' c , ' trace ) result ) -> ' a t -> ' b t -> ' c -> ( ' c , ' trace ) result val fold_right2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ' c Lwt . t ) -> ' a t -> ' b t -> ' c -> ( ' c , ' trace ) result Lwt . t val fold_right2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ( ' c , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ' c -> ( ' c , ' trace ) result Lwt . t val for_all2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( bool , ' trace ) result ) -> ' a t -> ' b t -> ( bool , ' trace ) result val for_all2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> bool Lwt . t ) -> ' a t -> ' b t -> ( bool , ' trace ) result Lwt . t val for_all2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( bool , ' trace ) result Lwt . t val exists2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( bool , ' trace ) result ) -> ' a t -> ' b t -> ( bool , ' trace ) result val exists2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> bool Lwt . t ) -> ' a t -> ' b t -> ( bool , ' trace ) result Lwt . t val exists2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( bool , ' trace ) result Lwt . t end
|
type ' error trace = ' error Support . Lib . Monad . trace
|
module type BASE_E = sig val name : string type ' a elt type ( ' a_elt , ' e ) t val of_list : int list -> ( int , ' e ) t val to_list : ( int , ' e ) t -> ( int list , ' e ) result val pp : Format . formatter -> ( int , ' e ) t -> unit end
|
module type BASE_S = sig val name : string type ' a elt type ' a_elt t val of_list : int list -> int t val to_list : int t -> int list Lwt . t val pp : Format . formatter -> int t -> unit Lwt . t end
|
module type BASE_ES = sig val name : string type ' a elt type ( ' a_elt , ' e ) t val of_list : int list -> ( int , ' e ) t val to_list : ( int , ' e ) t -> ( int list , ' e ) result Lwt . t val pp : Format . formatter -> ( int , ' e ) t -> unit Lwt . t end
|
module type ITER_VANILLA = sig type ' a elt type ' a t val iter : ( ' a elt -> unit ) -> ' a t -> unit end
|
module type ITER_SEQUENTIAL = sig include ITER_VANILLA val iter_e : ( ' a elt -> ( unit , ' trace ) result ) -> ' a t -> ( unit , ' trace ) result val iter_s : ( ' a elt -> unit Lwt . t ) -> ' a t -> unit Lwt . t val iter_es : ( ' a elt -> ( unit , ' trace ) result Lwt . t ) -> ' a t -> ( unit , ' trace ) result Lwt . t end
|
module type ITER_PARALLEL = sig include ITER_SEQUENTIAL val iter_p : ( ' a elt -> unit Lwt . t ) -> ' a t -> unit Lwt . t val iter_ep : ( ' a elt -> ( unit , ' error trace ) result Lwt . t ) -> ' a t -> ( unit , ' error trace ) result Lwt . t end
|
module type ITERI_VANILLA = sig type ' a elt type ' a t val iteri : ( int -> ' a elt -> unit ) -> ' a t -> unit end
|
module type ITERI_SEQUENTIAL = sig include ITERI_VANILLA val iteri_e : ( int -> ' a elt -> ( unit , ' trace ) result ) -> ' a t -> ( unit , ' trace ) result val iteri_s : ( int -> ' a elt -> unit Lwt . t ) -> ' a t -> unit Lwt . t val iteri_es : ( int -> ' a elt -> ( unit , ' trace ) result Lwt . t ) -> ' a t -> ( unit , ' trace ) result Lwt . t end
|
module type MAP_VANILLA = sig type ' a t val map : ( ' a -> ' b ) -> ' a t -> ' b t end
|
module type MAP_SEQUENTIAL = sig include MAP_VANILLA val map_e : ( ' a -> ( ' b , ' trace ) result ) -> ' a t -> ( ' b t , ' trace ) result val map_s : ( ' a -> ' b Lwt . t ) -> ' a t -> ' b t Lwt . t val map_es : ( ' a -> ( ' b , ' trace ) result Lwt . t ) -> ' a t -> ( ' b t , ' trace ) result Lwt . t end
|
module type MAP_PARALLEL = sig include MAP_SEQUENTIAL val map_p : ( ' a -> ' b Lwt . t ) -> ' a t -> ' b t Lwt . t val map_ep : ( ' a -> ( ' b , ' error trace ) result Lwt . t ) -> ' a t -> ( ' b t , ' error trace ) result Lwt . t end
|
module type REVMAP_VANILLA = sig type ' a t val rev : ' a t -> ' a t val rev_map : ( ' a -> ' b ) -> ' a t -> ' b t end
|
module type REVMAP_SEQUENTIAL = sig include REVMAP_VANILLA val rev_map_e : ( ' a -> ( ' b , ' trace ) result ) -> ' a t -> ( ' b t , ' trace ) result val rev_map_s : ( ' a -> ' b Lwt . t ) -> ' a t -> ' b t Lwt . t val rev_map_es : ( ' a -> ( ' b , ' trace ) result Lwt . t ) -> ' a t -> ( ' b t , ' trace ) result Lwt . t end
|
module type REVMAP_PARALLEL = sig include REVMAP_SEQUENTIAL val rev_map_p : ( ' a -> ' b Lwt . t ) -> ' a t -> ' b t Lwt . t val rev_map_ep : ( ' a -> ( ' b , ' error trace ) result Lwt . t ) -> ' a t -> ( ' b t , ' error trace ) result Lwt . t end
|
module type FOLDLEFT_VANILLA = sig type ' a elt type ' a t val fold_left : ( ' a -> ' b elt -> ' a ) -> ' a -> ' b t -> ' a end
|
module type FOLDLEFT_SEQUENTIAL = sig include FOLDLEFT_VANILLA val fold_left_e : ( ' a -> ' b elt -> ( ' a , ' trace ) result ) -> ' a -> ' b t -> ( ' a , ' trace ) result val fold_left_s : ( ' a -> ' b elt -> ' a Lwt . t ) -> ' a -> ' b t -> ' a Lwt . t val fold_left_es : ( ' a -> ' b elt -> ( ' a , ' trace ) result Lwt . t ) -> ' a -> ' b t -> ( ' a , ' trace ) result Lwt . t end
|
module type FOLDRIGHT_VANILLA = sig type ' a t val fold_right : ( ' a -> ' b -> ' b ) -> ' a t -> ' b -> ' b end
|
module type FOLDRIGHT_SEQUENTIAL = sig include FOLDRIGHT_VANILLA val fold_right_e : ( ' a -> ' b -> ( ' b , ' trace ) result ) -> ' a t -> ' b -> ( ' b , ' trace ) result val fold_right_s : ( ' a -> ' b -> ' b Lwt . t ) -> ' a t -> ' b -> ' b Lwt . t val fold_right_es : ( ' a -> ' b -> ( ' b , ' trace ) result Lwt . t ) -> ' a t -> ' b -> ( ' b , ' trace ) result Lwt . t end
|
module type FOLDOOO_VANILLA = sig type ' a elt type ' a t val fold : ( ' b elt -> ' a -> ' a ) -> ' b t -> ' a -> ' a end
|
module type FOLDOOO_SEQUENTIAL = sig include FOLDOOO_VANILLA val fold_e : ( ' b elt -> ' a -> ( ' a , ' trace ) result ) -> ' b t -> ' a -> ( ' a , ' trace ) result val fold_s : ( ' b elt -> ' a -> ' a Lwt . t ) -> ' b t -> ' a -> ' a Lwt . t val fold_es : ( ' b elt -> ' a -> ( ' a , ' trace ) result Lwt . t ) -> ' b t -> ' a -> ( ' a , ' trace ) result Lwt . t end
|
module type EXISTFORALL_VANILLA = sig type ' a elt type ' a t val exists : ( ' a elt -> bool ) -> ' a t -> bool val for_all : ( ' a elt -> bool ) -> ' a t -> bool end
|
module type EXISTFORALL_SEQUENTIAL = sig include EXISTFORALL_VANILLA val exists_e : ( ' a elt -> ( bool , ' trace ) result ) -> ' a t -> ( bool , ' trace ) result val exists_s : ( ' a elt -> bool Lwt . t ) -> ' a t -> bool Lwt . t val exists_es : ( ' a elt -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( bool , ' trace ) result Lwt . t val for_all_e : ( ' a elt -> ( bool , ' trace ) result ) -> ' a t -> ( bool , ' trace ) result val for_all_s : ( ' a elt -> bool Lwt . t ) -> ' a t -> bool Lwt . t val for_all_es : ( ' a elt -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( bool , ' trace ) result Lwt . t end
|
module type EXISTFORALL_PARALLEL = sig include EXISTFORALL_SEQUENTIAL val exists_p : ( ' a elt -> bool Lwt . t ) -> ' a t -> bool Lwt . t val exists_ep : ( ' a elt -> ( bool , ' error trace ) result Lwt . t ) -> ' a t -> ( bool , ' error trace ) result Lwt . t val for_all_p : ( ' a elt -> bool Lwt . t ) -> ' a t -> bool Lwt . t val for_all_ep : ( ' a elt -> ( bool , ' error trace ) result Lwt . t ) -> ' a t -> ( bool , ' error trace ) result Lwt . t end
|
module type FILTER_VANILLA = sig type ' a elt type ' a t val filter : ( ' a -> bool ) -> ' a t -> ' a t end
|
module type FILTER_SEQUENTIAL = sig include FILTER_VANILLA val filter_e : ( ' a -> ( bool , ' trace ) result ) -> ' a t -> ( ' a t , ' trace ) result val filter_s : ( ' a -> bool Lwt . t ) -> ' a t -> ' a t Lwt . t val filter_es : ( ' a -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( ' a t , ' trace ) result Lwt . t end
|
module type FILTER_PARALLEL = sig type ' a t val filter_p : ( ' a -> bool Lwt . t ) -> ' a t -> ' a t Lwt . t val filter_ep : ( ' a -> ( bool , ' error trace ) result Lwt . t ) -> ' a t -> ( ' a t , ' error trace ) result Lwt . t end
|
module type FILTERMAP_VANILLA = sig type ' a t val filter_map : ( ' a -> ' b option ) -> ' a t -> ' b t end
|
module type FILTERMAP_SEQUENTIAL = sig include FILTERMAP_VANILLA val filter_map_e : ( ' a -> ( ' b option , ' trace ) result ) -> ' a t -> ( ' b t , ' trace ) result val filter_map_s : ( ' a -> ' b option Lwt . t ) -> ' a t -> ' b t Lwt . t val filter_map_es : ( ' a -> ( ' b option , ' trace ) result Lwt . t ) -> ' a t -> ( ' b t , ' trace ) result Lwt . t end
|
module type FILTERMAP_PARALLEL = sig type ' a t val filter_map_p : ( ' a -> ' b option Lwt . t ) -> ' a t -> ' b t Lwt . t val filter_map_ep : ( ' a -> ( ' b option , ' error trace ) result Lwt . t ) -> ' a t -> ( ' b t , ' error trace ) result Lwt . t end
|
module type FIND_VANILLA = sig type ' a t val find : ( ' a -> bool ) -> ' a t -> ' a option end
|
module type FIND_SEQUENTIAL = sig include FIND_VANILLA val find_e : ( ' a -> ( bool , ' trace ) result ) -> ' a t -> ( ' a option , ' trace ) result val find_s : ( ' a -> bool Lwt . t ) -> ' a t -> ' a option Lwt . t val find_es : ( ' a -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( ' a option , ' trace ) result Lwt . t end
|
module type PARTITION_VANILLA = sig type ' a t val partition : ( ' a -> bool ) -> ' a t -> ' a t * ' a t end
|
module type PARTITION_SEQUENTIAL = sig include PARTITION_VANILLA val partition_e : ( ' a -> ( bool , ' trace ) result ) -> ' a t -> ( ' a t * ' a t , ' trace ) result val partition_s : ( ' a -> bool Lwt . t ) -> ' a t -> ( ' a t * ' a t ) Lwt . t val partition_es : ( ' a -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ( ' a t * ' a t , ' trace ) result Lwt . t end
|
module type PARTITION_PARALLEL = sig include PARTITION_SEQUENTIAL val partition_p : ( ' a -> bool Lwt . t ) -> ' a t -> ( ' a t * ' a t ) Lwt . t val partition_ep : ( ' a -> ( bool , ' error trace ) result Lwt . t ) -> ' a t -> ( ' a t * ' a t , ' error trace ) result Lwt . t end
|
module type COMBINE_VANILLA = sig type ' a t val combine : when_different_lengths ' : trace -> ' a t -> ' b t -> ( ( ' a * ' b ) t , ' trace ) result val combine_with_leftovers : ' a t -> ' b t -> ( ' a * ' b ) t * ( ' a list , ' b list ) Either . t option end
|
module type ALLDOUBLE_VANILLA = sig type ' a t val iter2 : when_different_lengths ' : trace -> ( ' a -> ' b -> unit ) -> ' a t -> ' b t -> ( unit , ' trace ) result val map2 : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result val rev_map2 : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result val fold_left2 : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ' a ) -> ' a -> ' b t -> ' c t -> ( ' a , ' trace ) result val fold_right2 : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ' c ) -> ' a t -> ' b t -> ' c -> ( ' c , ' trace ) result val for_all2 : when_different_lengths ' : trace -> ( ' a -> ' b -> bool ) -> ' a t -> ' b t -> ( bool , ' trace ) result val exists2 : when_different_lengths ' : trace -> ( ' a -> ' b -> bool ) -> ' a t -> ' b t -> ( bool , ' trace ) result end
|
module type ALLDOUBLE_SEQENTIAL = sig include ALLDOUBLE_VANILLA val iter2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( unit , ' trace ) result ) -> ' a t -> ' b t -> ( unit , ' trace ) result val iter2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> unit Lwt . t ) -> ' a t -> ' b t -> ( unit , ' trace ) result Lwt . t val iter2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( unit , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( unit , ' trace ) result Lwt . t val map2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( ' c , ' trace ) result ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result val map2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c Lwt . t ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result Lwt . t val map2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( ' c , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result Lwt . t val rev_map2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( ' c , ' trace ) result ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result val rev_map2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c Lwt . t ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result Lwt . t val rev_map2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( ' c , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( ' c t , ' trace ) result Lwt . t val fold_left2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ( ' a , ' trace ) result ) -> ' a -> ' b t -> ' c t -> ( ' a , ' trace ) result val fold_left2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ' a Lwt . t ) -> ' a -> ' b t -> ' c t -> ( ' a , ' trace ) result Lwt . t val fold_left2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ( ' a , ' trace ) result Lwt . t ) -> ' a -> ' b t -> ' c t -> ( ' a , ' trace ) result Lwt . t val fold_right2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ( ' c , ' trace ) result ) -> ' a t -> ' b t -> ' c -> ( ' c , ' trace ) result val fold_right2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ' c Lwt . t ) -> ' a t -> ' b t -> ' c -> ( ' c , ' trace ) result Lwt . t val fold_right2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ' c -> ( ' c , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ' c -> ( ' c , ' trace ) result Lwt . t val for_all2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( bool , ' trace ) result ) -> ' a t -> ' b t -> ( bool , ' trace ) result val for_all2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> bool Lwt . t ) -> ' a t -> ' b t -> ( bool , ' trace ) result Lwt . t val for_all2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( bool , ' trace ) result Lwt . t val exists2_e : when_different_lengths ' : trace -> ( ' a -> ' b -> ( bool , ' trace ) result ) -> ' a t -> ' b t -> ( bool , ' trace ) result val exists2_s : when_different_lengths ' : trace -> ( ' a -> ' b -> bool Lwt . t ) -> ' a t -> ' b t -> ( bool , ' trace ) result Lwt . t val exists2_es : when_different_lengths ' : trace -> ( ' a -> ' b -> ( bool , ' trace ) result Lwt . t ) -> ' a t -> ' b t -> ( bool , ' trace ) result Lwt . t end
|
let debug fmt = Logging . debug " transaction " fmt
|
let test_eagain = ref false
|
let check_parents_perms_identical root1 root2 path =
|
let get_lowest path1 path2 =
|
let test_coalesce oldroot currentroot path = false ) ) false
|
let can_coalesce oldroot currentroot path =
|
type ty = No | Full of ( int32 * Store . Node . t * Store . t )
|
type t = { }
|
let make id store = { }
|
let get_id t = match t . ty with No -> none | Full ( id , _ , _ ) -> id
|
let get_store t = t . store
|
let get_paths t = t . paths
|
let add_wop t ty path = t . paths <- ( ty , Store . Path . to_name path ) :: t . paths
|
let add_operation t request response = t . operations <- ( request , response ) :: t . operations
|
let get_operations t = List . rev t . operations
|
let set_read_lowpath t path = t . read_lowpath <- get_lowest path t . read_lowpath
|
let set_write_lowpath t path = t . write_lowpath <- get_lowest path t . write_lowpath
|
let exists t perms path = Store . exists t . store path
|
let write t creator perm path value =
|
let mkdir ( ? with_watch = true ) t creator perm path =
|
let setperms t perm path perms =
|
let rm t perm path =
|
let list t perm path = r
|
let read t perm path = r
|
let getperms t perm path = r
|
let commit ~ con t = true false ) in ) ; true in false else in has_commited
|
module Hash = struct type t = Ledger_hash . t let merge = Ledger_hash . merge let hash_account = Fn . compose Ledger_hash . of_digest Account . digest let empty_account = Ledger_hash . of_digest Account . empty_digest end ( module struct let precomputed_values = Lazy . force Precomputed_values . compiled_inputs let constraint_constants = precomputed_values . constraint_constants let block_data = precomputed_values . protocol_state_with_hash . data let current_slot = Global_slot . of_int 15 let block_data = let open Mina_state . Protocol_state in let consensus_state = Consensus . Data . Consensus_state . Value . For_tests . with_global_slot_since_genesis ( consensus_state block_data ) block_data current_slot in create_value ~ previous_state_hash ( : previous_state_hash block_data ) block_data ~ genesis_state_hash ( : genesis_state_hash block_data ) block_data ~ blockchain_state ( : blockchain_state block_data ) block_data ~ consensus_state ~ constants ( : constants block_data ) block_data |> body let txn_state_view = Mina_state . Protocol_state . Body . view block_data let state_body_hash = Mina_state . Protocol_state . Body . hash block_data let coinbase_stack_source = Pending_coinbase . Stack . empty let pending_coinbase_stack_target ( t : Transaction . t ) t stack = let stack_with_state = Pending_coinbase . Stack ( . push_state state_body_hash stack ) stack in let target = match t with | Coinbase c -> Pending_coinbase ( . Stack . push_coinbase c stack_with_state ) stack_with_state | _ -> stack_with_state in target let empty_sparse_ledger account_ids = let base_ledger = Ledger . create_ephemeral ~ depth : constraint_constants . ledger_depth ( ) in let count = ref 0 in List . iter account_ids ~ f ( : fun account_id -> let ( _ : _ * _ ) _ = Ledger . create_empty_exn base_ledger account_id in incr count ) ; Sparse_ledger . of_ledger_subset_exn base_ledger account_ids module Sparse_txn_logic = Mina_transaction_logic . Make ( Sparse_ledger . L ) L let sparse_ledger ledger t = Or_error . try_with ~ backtrace : true ( fun ( ) -> Sparse_ledger . apply_transaction_exn ~ constraint_constants ~ txn_state_view ledger ( Transaction . forget t ) t ) let transaction_logic ledger t = let ledger = ref ledger in let target_ledger = Sparse_txn_logic . apply_transaction ~ constraint_constants ~ txn_state_view ledger ( Transaction . forget t ) t in Or_error . map ~ f ( : const ! ledger ) ledger target_ledger let transaction_snark ~ source ~ target transaction = Or_error . try_with ~ backtrace : true ( fun ( ) -> Transaction_snark . check_transaction ~ constraint_constants ~ sok_message : { Sok_message . fee = Fee . zero ; prover = Public_key . Compressed . empty } ~ source ( : Sparse_ledger . merkle_root source ) source ~ target ( : Sparse_ledger . merkle_root target ) target ~ init_stack : coinbase_stack_source ~ pending_coinbase_stack_state : { source = coinbase_stack_source ; target = pending_coinbase_stack_target ( Transaction . forget transaction ) transaction coinbase_stack_source } ~ next_available_token_before : ( Sparse_ledger . next_available_token source ) source ~ next_available_token_after : ( Sparse_ledger . next_available_token target ) target ~ zkapp_account1 : None ~ zkapp_account2 : None { transaction ; block_data } ( unstage ( Sparse_ledger . handler source ) source ) source ) let check_consistent source transaction = let res_sparse = sparse_ledger source transaction |> Result . map_error ~ f ( : Error . tag ~ tag " : Sparse ledger logic ) " in let res_txn_logic = transaction_logic source transaction |> Result . map_error ~ f ( : Error . tag ~ tag " : Transaction logic ) " in let target , ledger_error = match ( res_sparse , res_txn_logic ) res_txn_logic with | Error _ , Error _ -> ( source , None ) None | Ok target1 , Ok target2 -> if Ledger_hash . equal ( Sparse_ledger . merkle_root target1 ) target1 ( Sparse_ledger . merkle_root target2 ) target2 then ( target1 , None ) None else ( target1 , Some ( Error . create_s ( List [ Atom " Sparse ledger and transaction logic output \ ledgers do not match " ; Atom ( Sparse_ledger . merkle_root target1 |> Snark_params . Tick . Field . to_string ) ; Atom ( Sparse_ledger . merkle_root target2 |> Snark_params . Tick . Field . to_string ) ] ) ) ) | Ok target , _ | _ , Ok target -> ( target , None ) None in let res_snark = transaction_snark ~ source ~ target transaction |> Result . map_error ~ f ( : Error . tag ~ tag " : Snark ) " in let cons_error res errors = match res with Ok _ -> errors | Error error -> error :: errors in match ( res_sparse , res_snark , res_txn_logic , ledger_error ) ledger_error with | Ok _ , Ok _ , Ok _ , None | Error _ , Error _ , Error _ , None -> ( ) | _ , _ , Error _ , _ -> ( ) | _ -> Option . to_list ledger_error |> cons_error res_sparse |> cons_error res_snark |> cons_error res_txn_logic |> Error . of_list |> Error . raise let timed_specs public_key = let open Quickcheck . Generator . Let_syntax in let untimed = let % map balance = Balance . gen in Some ( Account . create ( Account_id . create public_key Token_id . default ) default balance ) in let timed cliff_time vesting_period = let % bind balance = Balance . gen in let % bind moveable_amount = Amount . gen in let % bind cliff_amount = Amount . gen in let % map vesting_increment = Amount . gen in Some ( Account . create_timed ( Account_id . create public_key Token_id . default ) default balance ~ initial_minimum_balance : ( Balance . sub_amount balance moveable_amount |> Option . value ~ default : Balance . zero ) ~ cliff_time ( : Global_slot . of_int cliff_time ) cliff_time ~ vesting_period ( : Global_slot . of_int vesting_period ) vesting_period ~ cliff_amount ~ vesting_increment |> Or_error . ok_exn ) in [ return None ; untimed ; timed 0 1 ; timed 0 16 ; timed 5 1 ; timed 5 16 ; timed 15 1 ; timed 30 1 ] let gen_account pk = let open Quickcheck . Generator . Let_syntax in let choices = timed_specs pk in let % bind choice = Quickcheck . Generator . of_list choices in choice let transaction_specs sender_sk sender ' sender receiver = let open Quickcheck . Generator . Let_syntax in let gen_user_command_common = let % bind fee = Fee . gen in let % bind nonce = Account_nonce . gen_incl ( Account_nonce . of_int 0 ) 0 ( Account_nonce . of_int 3 ) 3 in let % bind valid_until = Global_slot . gen in let % bind memo_length = Int . gen_incl 0 Signed_command_memo . max_digestible_string_length in let % map memo = String . gen_with_length memo_length Char . gen_print in let memo = Signed_command_memo . create_by_digesting_string memo |> Or_error . ok_exn in ( { fee ; fee_token = Token_id . default ; fee_payer_pk = sender ; nonce ; valid_until ; memo } : Signed_command_payload . Common . t ) in let payment = let % bind common = gen_user_command_common in let % map amount = Amount . gen in let body = Signed_command_payload . Body . Payment { source_pk = sender ; receiver_pk = receiver ; token_id = Token_id . default ; amount } in let payload : Signed_command_payload . t = { common ; body } in let signed = Signed_command . sign { public_key = sender ' ; private_key = sender_sk } payload in Transaction . Command ( User_command . Signed_command signed ) signed in let delegation = let % map common = gen_user_command_common in let body = Signed_command_payload . Body . Stake_delegation ( Set_delegate { delegator = sender ; new_delegate = receiver } ) in let payload : Signed_command_payload . t = { common ; body } in let signed = Signed_command . sign { public_key = sender ' ; private_key = sender_sk } payload in Transaction . Command ( User_command . Signed_command signed ) signed in let coinbase = let % bind amount = Amount . gen in if % bind Quickcheck . Generator . bool then let % map fee = Fee . gen in let res = Coinbase . create ~ amount ~ receiver : sender ~ fee_transfer : ( Some ( Coinbase_fee_transfer . create ~ receiver_pk : receiver ~ fee ) fee ) fee in match res with | Ok res -> Transaction . Coinbase res | Error _ -> Transaction . Coinbase ( Coinbase . create ~ amount ~ receiver : sender ~ fee_transfer : None |> Or_error . ok_exn ) else return ( Transaction . Coinbase ( Coinbase . create ~ amount ~ receiver : sender ~ fee_transfer : None |> Or_error . ok_exn ) ) in let fee_transfer = let single_ft pk = let % map fee = Fee . gen in Fee_transfer . Single . create ~ receiver_pk : pk ~ fee ~ fee_token : Token_id . default in if % bind Quickcheck . Generator . bool then let % map fst = single_ft sender in Transaction . Fee_transfer ( Fee_transfer . of_singles ( ` One fst ) fst |> Or_error . ok_exn ) ok_exn else let % bind fst = single_ft receiver in let % map snd = single_ft sender in Transaction . Fee_transfer ( Fee_transfer . of_singles ( ` Two ( fst , snd ) snd ) snd |> Or_error . ok_exn ) ok_exn in ignore coinbase ; ignore fee_transfer ; [ payment ; delegation ] let gen_transaction sender_sk sender ' sender receiver = let open Quickcheck . Generator . Let_syntax in let choices = transaction_specs sender_sk sender ' sender receiver in let % bind choice = Quickcheck . Generator . of_list choices in choice let gen_ledger_and_txn = let open Quickcheck . Generator . Let_syntax in let % bind sk1 = Private_key . gen in let pk1 ' = Public_key . of_private_key_exn sk1 in let pk1 = Public_key . compress pk1 ' in let % bind account1 = gen_account pk1 in let % bind pk2 , account2 = if % bind Quickcheck . Generator . bool then return ( pk1 , account1 ) account1 else let % bind pk = Public_key . Compressed . gen in let % map account = gen_account pk in ( pk , account ) account in let account_ids = List . map ~ f ( : fun pk -> Account_id . create pk Token_id . default ) default [ pk1 ; pk2 ] |> List . dedup_and_sort ~ compare : Account_id . compare in let ledger = ref ( empty_sparse_ledger account_ids ) account_ids in let add_to_ledger pk account = Option . iter account ~ f ( : fun account -> Sparse_ledger . L . get_or_create_account ledger ( Account_id . create pk Token_id . default ) default account |> Or_error . ok_exn |> ignore ) in add_to_ledger pk1 account1 ; add_to_ledger pk2 account2 ; let ledger = ! ledger in let % map transaction = gen_transaction sk1 pk1 ' pk1 pk2 in ( ledger , transaction ) transaction let % test " transaction logic is consistent between implementations " = let passed = ref true in let i = ref 0 in let threshold = ref 100 in Quickcheck . test ~ trials : 100 gen_ledger_and_txn ~ f ( : fun ( ledger , transaction ) transaction -> incr i ; if ! i >= ! threshold then ( threshold := ! threshold + 100 ; Format . eprintf " % i . " @ ! i ) ; try check_consistent ledger transaction with exn -> let error = Error . of_exn ~ backtrace ` : Get exn in passed := false ; Format . printf " The following transaction was inconsistently \ applied . :@% s . @% s . @% s . " @ ( Yojson . Safe . pretty_to_string ( Transaction . Valid . to_yojson transaction ) transaction ) ( Yojson . Safe . to_string ( Sparse_ledger . to_yojson ledger ) ledger ) ledger ( Yojson . Safe . pretty_to_string ( Error_json . error_to_yojson error ) error ) error ) ; ! passed let txn_jsons = [ ( { json | [ " Command " , [ " Signed_command " , { " payload " : { " common " : { " fee " : " 0 " , " fee_token " : " 1 " , " fee_payer_pk " : " B62qkgwZB95PFs1H1d16JuRK4xaeUvhNBQd3YBobCEkC9tRSVbwP3y5 " , " nonce " : " 0 " , " valid_until " : " 4294967295 " , " memo " : " E4Qr2Sj5zrd8obtiCAxez7JV6Zy4NWEcWViJiRDQ58DEZKJfPY1Ld " } , " body " : [ " Stake_delegation " , [ " Set_delegate " , { " delegator " : " B62qkgwZB95PFs1H1d16JuRK4xaeUvhNBQd3YBobCEkC9tRSVbwP3y5 " , " new_delegate " : " B62qmqN4J84uWANzGqJk37v25DB1ukx7A84YiWPM1CMjnDcQW8fJMTW " } ] ] } , " signer " : " B62qkgwZB95PFs1H1d16JuRK4xaeUvhNBQd3YBobCEkC9tRSVbwP3y5 " , " signature " : " 7mXMcy9qNAnBkXC6wA5BpMoeie58wnJ4bAXZN2zsxcoKdDYh5d33ZKER1VyxtNJYZaci6Sr9isYKmEFJMMhAdSRJK3EyMixN " } ] ] | json } json , { json | { " indexes [ [ [ " " : B62qkgwZB95PFs1H1d16JuRK4xaeUvhNBQd3YBobCEkC9tRSVbwP3y5 " , " 1 ] " , 1 ] 1 [ [ , " B62qmqN4J84uWANzGqJk37v25DB1ukx7A84YiWPM1CMjnDcQW8fJMTW " , " 1 ] " , 0 ] 0 ] 0 , " depth " : 10 , " tree [ " " : Node " , " jwAyTvaRh912L2sLNDG3vmJCWz4cag3B2zeksXmbVwKDJyjevDq [ " , " Node " , " jxABNNMH33j4ARZy3ZjmcMo1vwhApw9enUKfCN91MArv63Zf3SJ [ " , " Node " , " jxj9yf7uV8V7Ck6MUoJkAxWbwr5HQrApE79VszsaNLZ5PfXbvCG [ " , " Node " , " jwbsSx8xiEt3WpDhS39FNmXAhK6YFF1HToyoJaMqsh27u8Zx5Zx [ " , " Node " , " jwJ1uvajpBUVvGUFW3m6HkMzJCT557xGFzhwdQZRJp1JMW7cAtK [ " , " Node " , " jxSXsHu6od1eH13mUNeGPCrQFX45fZwF21szsG59D5jPyTijd6o [ " , " Node " , " jxUefJcX42tmmFGQuFLnjr9mi7djWfDv92UULjN7fJZDmFjTXZm [ " , " Node " , " jwAvU9i9QdHJYPTVhEtr3yViXD69KybABGZq4w9ssfFewn4G1Hu [ " , " Node " , " jwV1HcdrKrGU9NY1FArq7BSc2rVnycRbX24CaELUgcySwbkPYhR [ " , " Node " , " jxL4snqykkLN8wYjdFE7Mafs8Lh9FmTDsdKKNnM1uvQ1MvRVDec [ " , " Account { " , " public_key " " : B62qmqN4J84uWANzGqJk37v25DB1ukx7A84YiWPM1CMjnDcQW8fJMTW " , " token_id " " : 1 " , " token_permissions [ " " : Not_owned { " , " account_disabled " : false } false ] false , " balance " " : 18446744073709551615 " , " nonce " " : 0 " , " receipt_chain_hash " " : 2mzbV7WevxLuchs2dAMY4vQBS6XttnCUF8Hvks4XNBQ5qiSGGBQe " , " delegate " " : B62qmqN4J84uWANzGqJk37v25DB1ukx7A84YiWPM1CMjnDcQW8fJMTW " , " voting_for " " : 3NK2tkzqqK5spR2sZ7tujjqPksL45M3UUrcA4WhCkeiPtnugyE2x " , " timing [ " " : Timed { " , " initial_minimum_balance " " : 11903370931079718836 " , " cliff_time " " : 5 " , " cliff_amount " " : 11056729324207590174 " , " vesting_period " " : 16 " , " vesting_increment " " : 3434009962718717478 } ] " , " permissions { " " : stake " : true , " edit_state [ " " : Signature ] " , " send [ " " : Signature ] " , " receive [ " " : None ] " , " set_delegate [ " " : Signature ] " , " set_permissions [ " " : Signature ] " , " set_verification_key [ " " : Signature ] } " , " snapp " : null } null ] null [ , " Account { " , " public_key " " : B62qiTKpEPjGTSHZrtM8uXiKgn8So916pLmNJKDhKeyBQL9TDb3nvBG " , " token_id " " : 1 " , " token_permissions [ " " : Not_owned { " , " account_disabled " : false } false ] false , " balance " " : 0 " , " nonce " " : 0 " , " receipt_chain_hash " " : 2mzbV7WevxLuchs2dAMY4vQBS6XttnCUF8Hvks4XNBQ5qiSGGBQe " , " delegate " : null , " voting_for " " : 3NK2tkzqqK5spR2sZ7tujjqPksL45M3UUrcA4WhCkeiPtnugyE2x " , " timing [ " " : Untimed ] " , " permissions { " " : stake " : true , " edit_state [ " " : Signature ] " , " send [ " " : Signature ] " , " receive [ " " : None ] " , " set_delegate [ " " : Signature ] " , " set_permissions [ " " : Signature ] " , " set_verification_key [ " " : Signature ] } " , " snapp " : null } null ] null ] null [ , " Hash " , " jxXGdw6qfqz96eqvitzV2yJ4Tawk1PhqyjF86e3n4ZNPwmDmp5T ] ] [ " , " Hash " , " jxPA47eC73ibqELdRRE5fN3paDzecBfiZ5Nfaj3f6xc4Rkgy2eZ ] ] [ " , " Hash " , " jxFGQbPEuwz8DWnhAwuYypdiX6aBCkc55RPF6poUfFSikDK64GU ] ] [ " , " Hash " , " jwSjnoWdZ2wyyUhesr6eoxbhcFjHVLBWHHiPNoVe5Q86P5yz2Ad ] ] [ " , " Hash " , " jwdEug2AL1iCDDXQpFUbMptiryaU1BRaqV6aL4rnknp7ZcdsT8k ] ] [ " , " Hash " , " jxfwfExD2JRGmfwaLkUS2g1HpH896umBLKq3e865m1SbLJW6CrT ] ] [ " , " Hash " , " jw8DqJUfNarG33bpL9rUySBwrfBuz7fRHZr5TEvALMS5Rb2S7jE ] ] [ " , " Hash " , " jxQLSBPmWYGRDRQaUE7Ye21jhsb185H25nWSSYtg8drSemrQA4P ] ] [ " , " Hash " , " jxFokLd9y68j9htcedV8ThzPa8me8kX5FNeRmvVo75NyrqZTLgx ] ] " , " next_available_token " " : 2 } " | json } json ) ; ( { json | [ " Command " , [ " Signed_command " , { " payload " : { " common " : { " fee " : " 11715569620 . 84916441 " , " fee_token " : " 1 " , " fee_payer_pk " : " B62qiuCvZdEYUwvNX1ofpkytqVLeNtTybQgFah7Y5DQdg6gnNgTqo3Q " , " nonce " : " 0 " , " valid_until " : " 3050269529 " , " memo " : " E4Qrq7yDGADR6cebAsrGEUynB1Dq9bKmca7n2fZUTM2G7XJvTZefu " } , " body " : [ " Payment " , { " source_pk " : " B62qiuCvZdEYUwvNX1ofpkytqVLeNtTybQgFah7Y5DQdg6gnNgTqo3Q " , " receiver_pk " : " B62qiuCvZdEYUwvNX1ofpkytqVLeNtTybQgFah7Y5DQdg6gnNgTqo3Q " , " token_id " : " 1 " , " amount " : " 17630684833315573437 " } ] } , " signer " : " B62qiuCvZdEYUwvNX1ofpkytqVLeNtTybQgFah7Y5DQdg6gnNgTqo3Q " , " signature " : " 7mX6BKK7Yf6wGD46jtds848n4ZFAt4PVEy56mjtb3kjhMCoJmkADvQBTVMhVVb54EDEiH7mjpL9LHELmdnvcDWXyKzzLzfdr " } ] ] | json } json , { json | { " indexes [ [ [ " " : B62qiuCvZdEYUwvNX1ofpkytqVLeNtTybQgFah7Y5DQdg6gnNgTqo3Q " , " 1 ] " , 0 ] 0 ] 0 , " depth " : 10 , " tree [ " " : Node " , " jw9h7vsaGR17TLXdceNjsyseSqTN1fFornmvGTQsRoEBopcS9vd [ " , " Node " , " jxGY7Rb5ysfA1ynJSJVzhSLNMDS2wC9qbSu8B6CdMhByADWwZD1 [ " , " Node " , " jwXmGKuyxTbabLnrBGyYSZxX2ufGU17BWNDnXnxVdUfquhvXPNF [ " , " Node " , " jwAxd38ejJAPJpS4WQsw8mz6t52KUpu9sjBLUBdZio2Wiyq7bti [ " , " Node " , " jx6D6UG9o6ba4kQpnVErN6FD1nAiguucFFBukcgXWg3mibfsATh [ " , " Node " , " jxboQxfmmwxFo5mFJt6jWMMf54pwJTZLW1ykSbXXhDf3gnx7wNB [ " , " Node " , " jx8mHqEAPTr5pWYXNBLG7WNYbxxLEmwwudPLngpwF866nU6fACr [ " , " Node " , " jwJzdwbsYshEgW6frEdXudbYYY9F1F7JAp5XA5MTPR7eXRYxkBv [ " , " Node " , " jxDtzn4TWM4q4Do4nJTb5xMisDvkCABYd3YsEHojfd3TGaSZHMz [ " , " Node " , " jwbitauPgBS3vwAbC8GLpM83uaWGCVwi75kMK2DFNK3rz88LQJz [ " , " Account { " , " public_key " " : B62qiuCvZdEYUwvNX1ofpkytqVLeNtTybQgFah7Y5DQdg6gnNgTqo3Q " , " token_id " " : 1 " , " token_permissions [ " " : Not_owned { " , " account_disabled " : false } false ] false , " balance " " : 14192210409447790275 " , " nonce " " : 0 " , " receipt_chain_hash " " : 2mzbV7WevxLuchs2dAMY4vQBS6XttnCUF8Hvks4XNBQ5qiSGGBQe " , " delegate " " : B62qiuCvZdEYUwvNX1ofpkytqVLeNtTybQgFah7Y5DQdg6gnNgTqo3Q " , " voting_for " " : 3NK2tkzqqK5spR2sZ7tujjqPksL45M3UUrcA4WhCkeiPtnugyE2x " , " timing [ " " : Timed { " , " initial_minimum_balance " " : 0 " , " cliff_time " " : 30 " , " cliff_amount " " : 15395280777725364716 " , " vesting_period " " : 1 " , " vesting_increment " " : 18446744073709551615 } ] " , " permissions { " " : stake " : true , " edit_state [ " " : Signature ] " , " send [ " " : Signature ] " , " receive [ " " : None ] " , " set_delegate [ " " : Signature ] " , " set_permissions [ " " : Signature ] " , " set_verification_key [ " " : Signature ] } " , " snapp " : null } null ] null [ , " Hash " , " jwxHKCNJsFjFJrxSusJ1SnzFLJWosGRFdR5iNznUo3VJPA3fTXX ] ] [ " , " Hash " , " jxXGdw6qfqz96eqvitzV2yJ4Tawk1PhqyjF86e3n4ZNPwmDmp5T ] ] [ " , " Hash " , " jxPA47eC73ibqELdRRE5fN3paDzecBfiZ5Nfaj3f6xc4Rkgy2eZ ] ] [ " , " Hash " , " jxFGQbPEuwz8DWnhAwuYypdiX6aBCkc55RPF6poUfFSikDK64GU ] ] [ " , " Hash " , " jwSjnoWdZ2wyyUhesr6eoxbhcFjHVLBWHHiPNoVe5Q86P5yz2Ad ] ] [ " , " Hash " , " jwdEug2AL1iCDDXQpFUbMptiryaU1BRaqV6aL4rnknp7ZcdsT8k ] ] [ " , " Hash " , " jxfwfExD2JRGmfwaLkUS2g1HpH896umBLKq3e865m1SbLJW6CrT ] ] [ " , " Hash " , " jw8DqJUfNarG33bpL9rUySBwrfBuz7fRHZr5TEvALMS5Rb2S7jE ] ] [ " , " Hash " , " jxQLSBPmWYGRDRQaUE7Ye21jhsb185H25nWSSYtg8drSemrQA4P ] ] [ " , " Hash " , " jxFokLd9y68j9htcedV8ThzPa8me8kX5FNeRmvVo75NyrqZTLgx ] ] " , " next_available_token " " : 2 } " | json } json ) ; ( { json | [ " Command " , [ " Signed_command " , { " payload " : { " common " : { " fee " : " 6966112488 . 228360041 " , " fee_token " : " 1 " , " fee_payer_pk " : " B62qoBJBVnaTdcSRDCdJUdpzyFikWo828fFriYb6Ye3UYAXfafv9oBJ " , " nonce " : " 0 " , " valid_until " : " 402359895 " , " memo " : " E4QqiVG8rCzSPqdgMPUP59hA8yMWV6m8YSYGSYBAofr6mLp16UFnM " } , " body " : [ " Stake_delegation " , [ " Set_delegate " , { " delegator " : " B62qoBJBVnaTdcSRDCdJUdpzyFikWo828fFriYb6Ye3UYAXfafv9oBJ " , " new_delegate " : " B62qmyvf3QL2wy6ZQCxMH1T5oEmG2YSygCCqyWWuixpaJYPxzgtm5GK " } ] ] } , " signer " : " B62qoBJBVnaTdcSRDCdJUdpzyFikWo828fFriYb6Ye3UYAXfafv9oBJ " , " signature " : " 7mXUZiLWBxH5rZoDu89W2itCismvcuuFpfRh5sZhaYuq2J53gtZweZGzb4aq4Xs6rPdNStWXxfHDdaWUbF6HifwBcJtRd4Bk " } ] ] | json } json , { json | { " indexes [ [ [ " " : B62qoBJBVnaTdcSRDCdJUdpzyFikWo828fFriYb6Ye3UYAXfafv9oBJ " , " 1 ] " , 1 ] 1 [ [ , " B62qmyvf3QL2wy6ZQCxMH1T5oEmG2YSygCCqyWWuixpaJYPxzgtm5GK " , " 1 ] " , 0 ] 0 ] 0 , " depth " : 10 , " tree [ " " : Node " , " jwEp35gRQZuk69RhiVMziGRdPvuKDxYwbSGfesotUC19aoSMfmG [ " , " Node " , " jx1JzvawqXs76rMkhNNdYUrdSJZDnugFQRB99N1Fcd8faCC1jEf [ " , " Node " , " jxfyAK3UYNAK2PPko12XPamxvPRNtRjrZMgpqxYhVSnrWjKNXJV [ " , " Node " , " jwPsKKCmdamHyWqCDATFayASaeqUXdr3YjCNfmS9vDNTUfbWEun [ " , " Node " , " jwhHC2RuvnqdjVQzDL5izbmdWqYzECVhdLMVoP9Ess2Xb6BYvuy [ " , " Node " , " jxr7tqgJcpMsJ9mnP98HxM8BcHkJitP9iXcvPnXdzjTtyV9WdZf [ " , " Node " , " jw9UAMsNrVgYgSerkPjQAN5AmH55VRMA6ksjDAGs3tzVuTNe2VL [ " , " Node " , " jwjgszwSywzUiAMZcXLAxDXYGzrSvMVuQ6ghrcBaU3B1a3g2xvd [ " , " Node " , " jxeJ1Bqu7VqvgnCrDxAuN2DAHKqMUJXbEDTyk7iK9rJGhZ8fag2 [ " , " Node " , " jxJuoz4xN4sLTimTth3U3rf649AJ8gx73YXkoxquPhaTSXZtc9J [ " , " Account { " , " public_key " " : B62qmyvf3QL2wy6ZQCxMH1T5oEmG2YSygCCqyWWuixpaJYPxzgtm5GK " , " token_id " " : 1 " , " token_permissions [ " " : Not_owned { " , " account_disabled " : false } false ] false , " balance " " : 841059136310941822 " , " nonce " " : 0 " , " receipt_chain_hash " " : 2mzbV7WevxLuchs2dAMY4vQBS6XttnCUF8Hvks4XNBQ5qiSGGBQe " , " delegate " " : B62qmyvf3QL2wy6ZQCxMH1T5oEmG2YSygCCqyWWuixpaJYPxzgtm5GK " , " voting_for " " : 3NK2tkzqqK5spR2sZ7tujjqPksL45M3UUrcA4WhCkeiPtnugyE2x " , " timing [ " " : Timed { " , " initial_minimum_balance " " : 0 " , " cliff_time " " : 15 " , " cliff_amount " " : 15038791585246435520 " , " vesting_period " " : 1 " , " vesting_increment " " : 3819098047186376181 } ] " , " permissions { " " : stake " : true , " edit_state [ " " : Signature ] " , " send [ " " : Signature ] " , " receive [ " " : None ] " , " set_delegate [ " " : Signature ] " , " set_permissions [ " " : Signature ] " , " set_verification_key [ " " : Signature ] } " , " snapp " : null } null ] null [ , " Account { " , " public_key " " : B62qoBJBVnaTdcSRDCdJUdpzyFikWo828fFriYb6Ye3UYAXfafv9oBJ " , " token_id " " : 1 " , " token_permissions [ " " : Not_owned { " , " account_disabled " : false } false ] false , " balance " " : 15374217574632243291 " , " nonce " " : 0 " , " receipt_chain_hash " " : 2mzbV7WevxLuchs2dAMY4vQBS6XttnCUF8Hvks4XNBQ5qiSGGBQe " , " delegate " " : B62qoBJBVnaTdcSRDCdJUdpzyFikWo828fFriYb6Ye3UYAXfafv9oBJ " , " voting_for " " : 3NK2tkzqqK5spR2sZ7tujjqPksL45M3UUrcA4WhCkeiPtnugyE2x " , " timing [ " " : Timed { " , " initial_minimum_balance " " : 12514132074687763235 " , " cliff_time " " : 0 " , " cliff_amount " " : 2989012318809522817 " , " vesting_period " " : 1 " , " vesting_increment " " : 11241263741767143225 } ] " , " permissions { " " : stake " : true , " edit_state [ " " : Signature ] " , " send [ " " : Signature ] " , " receive [ " " : None ] " , " set_delegate [ " " : Signature ] " , " set_permissions [ " " : Signature ] " , " set_verification_key [ " " : Signature ] } " , " snapp " : null } null ] null ] null [ , " Hash " , " jxXGdw6qfqz96eqvitzV2yJ4Tawk1PhqyjF86e3n4ZNPwmDmp5T ] ] [ " , " Hash " , " jxPA47eC73ibqELdRRE5fN3paDzecBfiZ5Nfaj3f6xc4Rkgy2eZ ] ] [ " , " Hash " , " jxFGQbPEuwz8DWnhAwuYypdiX6aBCkc55RPF6poUfFSikDK64GU ] ] [ " , " Hash " , " jwSjnoWdZ2wyyUhesr6eoxbhcFjHVLBWHHiPNoVe5Q86P5yz2Ad ] ] [ " , " Hash " , " jwdEug2AL1iCDDXQpFUbMptiryaU1BRaqV6aL4rnknp7ZcdsT8k ] ] [ " , " Hash " , " jxfwfExD2JRGmfwaLkUS2g1HpH896umBLKq3e865m1SbLJW6CrT ] ] [ " , " Hash " , " jw8DqJUfNarG33bpL9rUySBwrfBuz7fRHZr5TEvALMS5Rb2S7jE ] ] [ " , " Hash " , " jxQLSBPmWYGRDRQaUE7Ye21jhsb185H25nWSSYtg8drSemrQA4P ] ] [ " , " Hash " , " jxFokLd9y68j9htcedV8ThzPa8me8kX5FNeRmvVo75NyrqZTLgx ] ] " , " next_available_token " " : 2 } " | json } json ) ; ( { json | [ " Command " , [ " Signed_command " , { " payload " : { " common " : { " fee " : " 5103387757 . 91091957 " , " fee_token " : " 1 " , " fee_payer_pk " : " B62qmKu3zxe1p3UJM8x3UUh53MKCbBP9cUFkpR1iHJKE4Wq1FdJ9iqb " , " nonce " : " 0 " , " valid_until " : " 4294967295 " , " memo " : " E4QsDHupQsF62TmSScGTdGRGtsozxK41h2ghcwBzvj9zLj8vmnS1W " } , " body " : [ " Stake_delegation " , [ " Set_delegate " , { " delegator " : " B62qmKu3zxe1p3UJM8x3UUh53MKCbBP9cUFkpR1iHJKE4Wq1FdJ9iqb " , " new_delegate " : " B62qmKu3zxe1p3UJM8x3UUh53MKCbBP9cUFkpR1iHJKE4Wq1FdJ9iqb " } ] ] } , " signer " : " B62qmKu3zxe1p3UJM8x3UUh53MKCbBP9cUFkpR1iHJKE4Wq1FdJ9iqb " , " signature " : " 7mX4Jr1Hk8vDLmeqzxWmoQ1ysWgHZhxfr9SiJf9dRnj8bAnnj7XSoHsdZxCnhtbZ7tQxMu8Tb7hvpYvGx8hcPL24oRjSjwj8 " } ] ] | json } json , { json | { " indexes [ [ [ " " : B62qmKu3zxe1p3UJM8x3UUh53MKCbBP9cUFkpR1iHJKE4Wq1FdJ9iqb " , " 1 ] " , 0 ] 0 ] 0 , " depth " : 10 , " tree [ " " : Node " , " jwJMLVzC3HsNgsepocU27N3oe9RjfR5uaJquPtLs8vKQYmUJhyH [ " , " Node " , " jxyUPP6CdhxB2gFX46WhHK8JYw36g94xs1vuQCf1YmAzUJ5msHB [ " , " Node " , " jxfViFPaZNDQZv2WkVect1y2p84wmMLhocHYp4ZGmyxpCXoXN8V [ " , " Node " , " jwz8BSMKyC9nw6BRSZCKmTSPU4TeaaFWUMMrKUh8WeMUDX4wG9d [ " , " Node " , " jxosnPsitXko7dyHrNsGFew5cBwgBbsXvUEqTQw9CWUF5kxvS2d [ " , " Node " , " jwg9Gg3UKoQ7L27oLUZb3ey1eBzN5gqRotMTCeuHa18pHNhSc56 [ " , " Node " , " jxWjzcWzjA81vbXYQBZ6mdih9GRKhUaRtKZrKeAEDEyTuDwLrcs [ " , " Node " , " jwaUpbugJ6wsBjpEuDAn6hvauQRz1UtB4vigysRdoReaEq24G36 [ " , " Node " , " jxiUXyMeqCEacdGN4LyZEoiTH1aMmrVv8HsyPDUAeodoDGwELDJ [ " , " Node " , " jwchfo6bBkFNq197Ktnb3e6xK1v1SnUuqm7ECEY7qbSiuQKtS7w [ " , " Account { " , " public_key " " : B62qmKu3zxe1p3UJM8x3UUh53MKCbBP9cUFkpR1iHJKE4Wq1FdJ9iqb " , " token_id " " : 1 " , " token_permissions [ " " : Not_owned { " , " account_disabled " : false } false ] false , " balance " " : 16443235064858872408 " , " nonce " " : 0 " , " receipt_chain_hash " " : 2mzbV7WevxLuchs2dAMY4vQBS6XttnCUF8Hvks4XNBQ5qiSGGBQe " , " delegate " " : B62qmKu3zxe1p3UJM8x3UUh53MKCbBP9cUFkpR1iHJKE4Wq1FdJ9iqb " , " voting_for " " : 3NK2tkzqqK5spR2sZ7tujjqPksL45M3UUrcA4WhCkeiPtnugyE2x " , " timing [ " " : Timed { " , " initial_minimum_balance " " : 11729407456613440963 " , " cliff_time " " : 0 " , " cliff_amount " " : 2841923093531387540 " , " vesting_period " " : 1 " , " vesting_increment " " : 17463989331768009195 } ] " , " permissions { " " : stake " : true , " edit_state [ " " : Signature ] " , " send [ " " : Signature ] " , " receive [ " " : None ] " , " set_delegate [ " " : Signature ] " , " set_permissions [ " " : Signature ] " , " set_verification_key [ " " : Signature ] } " , " snapp " : null } null ] null [ , " Hash " , " jwxHKCNJsFjFJrxSusJ1SnzFLJWosGRFdR5iNznUo3VJPA3fTXX ] ] [ " , " Hash " , " jxXGdw6qfqz96eqvitzV2yJ4Tawk1PhqyjF86e3n4ZNPwmDmp5T ] ] [ " , " Hash " , " jxPA47eC73ibqELdRRE5fN3paDzecBfiZ5Nfaj3f6xc4Rkgy2eZ ] ] [ " , " Hash " , " jxFGQbPEuwz8DWnhAwuYypdiX6aBCkc55RPF6poUfFSikDK64GU ] ] [ " , " Hash " , " jwSjnoWdZ2wyyUhesr6eoxbhcFjHVLBWHHiPNoVe5Q86P5yz2Ad ] ] [ " , " Hash " , " jwdEug2AL1iCDDXQpFUbMptiryaU1BRaqV6aL4rnknp7ZcdsT8k ] ] [ " , " Hash " , " jxfwfExD2JRGmfwaLkUS2g1HpH896umBLKq3e865m1SbLJW6CrT ] ] [ " , " Hash " , " jw8DqJUfNarG33bpL9rUySBwrfBuz7fRHZr5TEvALMS5Rb2S7jE ] ] [ " , " Hash " , " jxQLSBPmWYGRDRQaUE7Ye21jhsb185H25nWSSYtg8drSemrQA4P ] ] [ " , " Hash " , " jxFokLd9y68j9htcedV8ThzPa8me8kX5FNeRmvVo75NyrqZTLgx ] ] " , " next_available_token " " : 2 } " | json } json ) ; ( { json | [ " Command " , [ " Signed_command " , { " payload " : { " common " : { " fee " : " 0 " , " fee_token " : " 1 " , " fee_payer_pk " : " B62qpeSLPUieLnbs8fJncbZ9qwxJSTFGDHDhMUWxwg1uFxG6jrBSFjE " , " nonce " : " 0 " , " valid_until " : " 255571053 " , " memo " : " E4QsCcdyM6G1Cth5QKT14LnuGcMgJDzSdR7kPZARaSA2os67E1oRW " } , " body " : [ " Stake_delegation " , [ " Set_delegate " , { " delegator " : " B62qpeSLPUieLnbs8fJncbZ9qwxJSTFGDHDhMUWxwg1uFxG6jrBSFjE " , " new_delegate " : " B62qpeSLPUieLnbs8fJncbZ9qwxJSTFGDHDhMUWxwg1uFxG6jrBSFjE " } ] ] } , " signer " : " B62qpeSLPUieLnbs8fJncbZ9qwxJSTFGDHDhMUWxwg1uFxG6jrBSFjE " , " signature " : " 7mX63n8dCk3HXTZNbT7MF4cnmPJGb1xXxkg1qhMoARvijN3PMGceTi71jiVyo1f1deg9DJSpjMGTECB3mYpUB8vQ6x9CQjcB " } ] ] | json } json , { json | { " indexes [ [ [ " " : B62qpeSLPUieLnbs8fJncbZ9qwxJSTFGDHDhMUWxwg1uFxG6jrBSFjE " , " 1 ] " , 0 ] 0 ] 0 , " depth " : 10 , " tree [ " " : Node " , " jwLRMxvbBU31KmLtEpApzwFFkG5U6C6Vs3XZnw8vzDQJt85EDdK [ " , " Node " , " jwmhEsU9gv86qUdiyd2LLK8xFezNgc7VNenHJJrwz4xgbMNAXNP [ " , " Node " , " jxZiDu3G32ckUvwwNMGLzSWHhgKF2ZHuyd9nvdCdW7g4xEy2i3Z [ " , " Node " , " jxfTKqPjMYWhjoRk8u7gGPr2JeRVqT6knAjfHaQ1xN1FJzqZcQo [ " , " Node " , " jxchHaqhYBkB1JyegA8q9fyxHCkLrmRNNA1DbL7ANGfB9qDFYPe [ " , " Node " , " jxJ5RiQLddGxZ6LNcmGnRNhECoVqW6DhAWamZBRokC98xTfbNXY [ " , " Node " , " jxCSYq3DjvasUknRdYTZyMWxKFqg2BaJ5UvKeHgeWLnuQynbABT [ " , " Node " , " jxa9rRM9iJ4jq1Z3xthLyiYTLgCLDHNQeKWhJBipsxuhaMDkqyd [ " , " Node " , " jxTtxGDDatStBD8spdSEgiq2JHZi6ZMDKwFE3HkV8fSXo7K64gr [ " , " Node " , " jx5e2UBCPx6TMHUy6aN5i9NMfhCyBxnAJmRs2UTmATCkuCZceSK [ " , " Account { " , " public_key " " : B62qpeSLPUieLnbs8fJncbZ9qwxJSTFGDHDhMUWxwg1uFxG6jrBSFjE " , " token_id " " : 1 " , " token_permissions [ " " : Not_owned { " , " account_disabled " : false } false ] false , " balance " " : 17009607841493601729 " , " nonce " " : 0 " , " receipt_chain_hash " " : 2mzbV7WevxLuchs2dAMY4vQBS6XttnCUF8Hvks4XNBQ5qiSGGBQe " , " delegate " " : B62qpeSLPUieLnbs8fJncbZ9qwxJSTFGDHDhMUWxwg1uFxG6jrBSFjE " , " voting_for " " : 3NK2tkzqqK5spR2sZ7tujjqPksL45M3UUrcA4WhCkeiPtnugyE2x " , " timing [ " " : Timed { " , " initial_minimum_balance " " : 4135254886733070390 " , " cliff_time " " : 0 " , " cliff_amount " " : 0 " , " vesting_period " " : 16 " , " vesting_increment " " : 8483500404270949136 } ] " , " permissions { " " : stake " : true , " edit_state [ " " : Signature ] " , " send [ " " : Signature ] " , " receive [ " " : None ] " , " set_delegate [ " " : Signature ] " , " set_permissions [ " " : Signature ] " , " set_verification_key [ " " : Signature ] } " , " snapp " : null } null ] null [ , " Hash " , " jwxHKCNJsFjFJrxSusJ1SnzFLJWosGRFdR5iNznUo3VJPA3fTXX ] ] [ " , " Hash " , " jxXGdw6qfqz96eqvitzV2yJ4Tawk1PhqyjF86e3n4ZNPwmDmp5T ] ] [ " , " Hash " , " jxPA47eC73ibqELdRRE5fN3paDzecBfiZ5Nfaj3f6xc4Rkgy2eZ ] ] [ " , " Hash " , " jxFGQbPEuwz8DWnhAwuYypdiX6aBCkc55RPF6poUfFSikDK64GU ] ] [ " , " Hash " , " jwSjnoWdZ2wyyUhesr6eoxbhcFjHVLBWHHiPNoVe5Q86P5yz2Ad ] ] [ " , " Hash " , " jwdEug2AL1iCDDXQpFUbMptiryaU1BRaqV6aL4rnknp7ZcdsT8k ] ] [ " , " Hash " , " jxfwfExD2JRGmfwaLkUS2g1HpH896umBLKq3e865m1SbLJW6CrT ] ] [ " , " Hash " , " jw8DqJUfNarG33bpL9rUySBwrfBuz7fRHZr5TEvALMS5Rb2S7jE ] ] [ " , " Hash " , " jxQLSBPmWYGRDRQaUE7Ye21jhsb185H25nWSSYtg8drSemrQA4P ] ] [ " , " Hash " , " jxFokLd9y68j9htcedV8ThzPa8me8kX5FNeRmvVo75NyrqZTLgx ] ] " , " next_available_token " " : 2 } " | json } json ) ] let % test " one " = let passed = ref true in List . iter txn_jsons ~ f ( : fun ( txn_json , ledger_json ) ledger_json -> let transaction = Transaction . Valid . of_yojson ( Yojson . Safe . from_string txn_json ) txn_json |> Result . ok_or_failwith in let ledger = Sparse_ledger . of_yojson ( Yojson . Safe . from_string ledger_json ) ledger_json |> Result . ok_or_failwith in try check_consistent ledger transaction with exn -> let error = Error . of_exn ~ backtrace ` : Get exn in passed := false ; Format . printf " The following transaction was inconsistently \ applied . :@% s . @% s . @% s . " @ ( Yojson . Safe . pretty_to_string ( Transaction . Valid . to_yojson transaction ) transaction ) ( Yojson . Safe . to_string ( Sparse_ledger . to_yojson ledger ) ledger ) ledger ( Yojson . Safe . pretty_to_string ( Error_json . error_to_yojson error ) error ) error ) ; ! passed end )
|
module T = struct include Blake2 . Make ( ) end
|
module Base58_check = Codable . Make_base58_check ( struct type t = Stable . Latest . t [ @@ deriving bin_io_unversioned , compare ] compare let version_byte = Base58_check . Version_bytes . transaction_hash let description = " Transaction Hash " end ) end [ %% define_locally
|
let to_yojson t = ` String ( to_base58_check t ) t
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.