123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121(*****************************************************************************)(* *)(* Open Source License *)(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)(* *)(* Permission is hereby granted, free of charge, to any person obtaining a *)(* copy of this software and associated documentation files (the "Software"),*)(* to deal in the Software without restriction, including without limitation *)(* the rights to use, copy, modify, merge, publish, distribute, sublicense, *)(* and/or sell copies of the Software, and to permit persons to whom the *)(* Software is furnished to do so, subject to the following conditions: *)(* *)(* The above copyright notice and this permission notice shall be included *)(* in all copies or substantial portions of the Software. *)(* *)(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*)(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *)(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *)(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*)(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *)(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *)(* DEALINGS IN THE SOFTWARE. *)(* *)(*****************************************************************************)includeTezos_stdlibmoduleError_monad=Tezos_error_monad.Error_monadincludeTezos_michelinemoduleData_encoding=Data_encodingincludeTezos_error_monad.TzLwtreslibmoduleList=structincludeTezos_stdlib.TzListincludeTezos_error_monad.TzLwtreslib.ListendmoduleString=structincludeStringincludeTezos_stdlib.TzStringmoduleHashtbl=Tezos_error_monad.TzLwtreslib.Hashtbl.MakeSeeded(structtypet=stringletequal=String.equal(* in OCaml 5, the interface of the [Hashtbl.MakeSeeded] functor has changed:
it expects the seeded hash function to be called [seeded_hash]. This will
reduce the amount of boilerplate in the long run, but in the transitionary
period it increases it instead: we need to expose both [hash] and
[seeded_hash] to be compatible with both versions of the compiler.
Depending on which OCaml compiler (4 or 5) is used, either of the hashing
function ([hash] or [seeded_hash]) is used. The other function is unused.
Thus we also need to suppress the associated warning. *)[@@@ocaml.warning"-32"]lethash=Hashtbl.seeded_hashletseeded_hash=Hashtbl.seeded_hash[@@@ocaml.warning"+32"]end)moduleMap=Tezos_error_monad.TzLwtreslib.Map.Make(String)moduleSet=Tezos_error_monad.TzLwtreslib.Set.Make(String)endmoduleBytes=structincludeBytesincludeTezos_stdlib.TzBytesendmoduleTime=TimemoduleFitness=FitnessmoduleUser_activated=User_activatedmoduleBlock_header=Block_headermoduleGenesis=GenesismoduleOperation=OperationmoduleProtocol=ProtocolmoduleTest_chain_status=Test_chain_statusmoduleBlock_locator=Block_locatormoduleMempool=MempoolmoduleP2p_addr=P2p_addrmoduleP2p_identity=P2p_identitymoduleP2p_peer=P2p_peermoduleP2p_point=P2p_pointmoduleP2p_connection=P2p_connectionmoduleP2p_stat=P2p_statmoduleP2p_version=P2p_versionmoduleP2p_rejection=P2p_rejectionmoduleDistributed_db_version=Distributed_db_versionmoduleNetwork_version=Network_versionincludeTezos_crypto.HashedmoduleSignature=Tezos_crypto.SignatureincludeUtils.InfixincludeError_monadmoduleOption_syntax=Tezos_lwt_result_stdlib.Lwtreslib.Bare.Monad.Option_syntaxmoduleLwt_option_syntax=Tezos_lwt_result_stdlib.Lwtreslib.Bare.Monad.Lwt_option_syntaxmoduleInternal_event=Internal_eventmoduleFilename=structincludeStdlib.FilenameincludeTezos_stdlib.TzFilenameendmoduleBounded=BoundedmoduleEmpty=structtypet=|letget_ok:('a,t)result->'a=functionOka->a|Error_->.letabsurd:t->'a=function_->.endmoduleSkip_list=Skip_list