123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100(*****************************************************************************)(* *)(* Open Source License *)(* Copyright (c) 2019 Nomadic Labs, <contact@nomadic-labs.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. *)(* *)(*****************************************************************************)moduleDirectory=Tezos_rpc.DirectorymoduleService=Tezos_rpc.Serviceletmedia_types=[Tezos_rpc_http.Media_type.json]moduleNullLogger=structletdebugfmt=Format.kasprintfignorefmtletlog_infofmt=Format.kasprintfignorefmtletlog_noticefmt=Format.kasprintfignorefmtletwarnfmt=Format.kasprintfignorefmtletlog_errorfmt=Format.kasprintfignorefmtletlwt_debugfmt=Format.kasprintf(fun_->Lwt.return_unit)fmtletlwt_log_infofmt=Format.kasprintf(fun_->Lwt.return_unit)fmtletlwt_log_noticefmt=Format.kasprintf(fun_->Lwt.return_unit)fmtletlwt_warnfmt=Format.kasprintf(fun_->Lwt.return_unit)fmtletlwt_log_errorfmt=Format.kasprintf(fun_->Lwt.return_unit)fmtendmoduleCall=Resto_cohttp_self_serving_client.Self_serving_client.Make(Tezos_rpc.Encoding)(NullLogger)letlocal_ctxt(directory:unitTezos_rpc.Directory.t):Tezos_rpc.Context.generic=letlocal_client=Call.launch?cors:None?agent:None~media_typesdirectoryinletmoduleC=Tezos_rpc_http_client.RPC_client.Make((vallocal_client))inletbase=Uri.emptyinobjectmethodbase=basemethodgeneric_media_type_callmeth?bodyuri=C.generic_media_type_call~accept:media_typesmeth?bodyurimethodcall_service:'m'p'q'i'o.(([<Resto.meth]as'm),unit,'p,'q,'i,'o)Tezos_rpc.Service.t->'p->'q->'i->'otzresultLwt.t=funserviceparamsquerybody->C.call_servicemedia_types~baseserviceparamsquerybodymethodcall_streamed_service:'m'p'q'i'o.(([<Resto.meth]as'm),unit,'p,'q,'i,'o)Tezos_rpc.Service.t->on_chunk:('o->unit)->on_close:(unit->unit)->'p->'q->'i->(unit->unit)tzresultLwt.t=funservice~on_chunk~on_closeparamsquerybody->C.call_streamed_servicemedia_typesservice~base~on_chunk~on_closeparamsquerybodyend