Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file client_context.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236(*****************************************************************************)(* *)(* Open Source License *)(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)(* Copyright (c) 2018 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. *)(* *)(*****************************************************************************)type('a,'b)lwt_format=('a,Format.formatter,unit,'bLwt.t)format4classtypeprinter=objectmethoderror:('a,'b)lwt_format->'amethodwarning:('a,unit)lwt_format->'amethodmessage:('a,unit)lwt_format->'amethodanswer:('a,unit)lwt_format->'amethodlog:string->('a,unit)lwt_format->'aendclasstypeprompter=objectmethodprompt:('a,stringtzresult)lwt_format->'amethodprompt_password:('a,Bytes.ttzresult)lwt_format->'amethodmultiple_password_retries:boolendclasstypeio=objectinheritprinterinheritprompterendclasssimple_printerlog=letmessagex=Format.kasprintf(funmsg->log"stdout"msg)xinobjectmethoderror:typeab.(a,b)lwt_format->a=Format.kasprintf(funmsg->Lwt.fail(Failuremsg))methodwarning:typea.(a,unit)lwt_format->a=Format.kasprintf(funmsg->log"stderr"msg)methodmessage:typea.(a,unit)lwt_format->a=messagemethodanswer:typea.(a,unit)lwt_format->a=messagemethodlog:typea.string->(a,unit)lwt_format->a=funname->Format.kasprintf(funmsg->lognamemsg)endclasstypewallet=objectmethodload_passwords:stringLwt_stream.toptionmethodread_file:string->stringtzresultLwt.tmethodwith_lock:(unit->'aLwt.t)->'aLwt.tmethodload:string->default:'a->'aData_encoding.encoding->'atzresultLwt.tmethodwrite:string->'a->'aData_encoding.encoding->unittzresultLwt.tmethodlast_modification_time:string->floatoptiontzresultLwt.tmethodget_base_dir:stringendclasstypechain=objectmethodchain:Shell_services.chainendclasstypeblock=objectmethodblock:Shell_services.blockmethodconfirmations:intoptionendclasstypeio_wallet=objectinheritprinterinheritprompterinheritwalletendclasstypeio_rpcs=objectinheritprinterinheritprompterinheritTezos_rpc.Context.genericendclasstypeui=objectmethodsleep:float->unitLwt.tmethodexit:'a.int->'amethodnow:unit->Ptime.tendclasstypeux_options=objectmethodverbose_rpc_error_diagnostics:boolendclasstypefull=objectinheritprinterinheritprompterinheritwalletinheritTezos_rpc.Context.genericinheritchaininheritblockinherituiinheritux_optionsendclassproxy_context(obj:full)=objectmethodload_passwords=obj#load_passwordsmethodread_file=obj#read_filemethodbase=obj#basemethodchain=obj#chainmethodblock=obj#blockmethodconfirmations=obj#confirmationsmethodanswer:typea.(a,unit)lwt_format->a=obj#answermethodcall_service:'m'p'q'i'o.(([<Resto.meth]as'm),'pr,'p,'q,'i,'o)Tezos_rpc.Service.t->'p->'q->'i->'otzresultLwt.t=obj#call_servicemethodcall_streamed_service:'m'p'q'i'o.(([<Resto.meth]as'm),'pr,'p,'q,'i,'o)Tezos_rpc.Service.t->on_chunk:('o->unit)->on_close:(unit->unit)->'p->'q->'i->(unit->unit)tzresultLwt.t=obj#call_streamed_servicemethoderror:typeab.(a,b)lwt_format->a=obj#errormethodgeneric_media_type_call=obj#generic_media_type_callmethodwith_lock:typea.(unit->aLwt.t)->aLwt.t=obj#with_lockmethodload:typea.string->default:a->aData_encoding.encoding->atzresultLwt.t=obj#loadmethodlog:typea.string->(a,unit)lwt_format->a=obj#logmethodmessage:typea.(a,unit)lwt_format->a=obj#messagemethodwarning:typea.(a,unit)lwt_format->a=obj#warningmethodwrite:typea.string->a->aData_encoding.encoding->unittzresultLwt.t=obj#writemethodlast_modification_time:string->floatoptiontzresultLwt.t=obj#last_modification_timemethodprompt:typea.(a,stringtzresult)lwt_format->a=obj#promptmethodprompt_password:typea.(a,Bytes.ttzresult)lwt_format->a=obj#prompt_passwordmethodmultiple_password_retries:bool=obj#multiple_password_retriesmethodsleep:float->unitLwt.t=obj#sleepmethodexit:'a.int->'a=obj#exitmethodnow:unit->Ptime.t=obj#nowmethodget_base_dir:string=obj#get_base_dirmethodverbose_rpc_error_diagnostics=obj#verbose_rpc_error_diagnosticsendletlog__=Lwt.return_unitletnull_printer:#printer=newsimple_printerlog