Client_context.walletOperations on the wallet.
method read_file : string -> string Mavryk_base.TzPervasives.tzresult Lwt.tread_file path reads the content of the file given by path. Note that the whole content of the file is loaded into memory: you shouldn't read big files using this method. Errors that may be returned are implementation-dependent.
with_lock f calls f () exclusively from any other function that is wrapped within with_lock.
method load : string ->
default:'a ->
'a Mavryk_base.TzPervasives.Data_encoding.encoding ->
'a Mavryk_base.TzPervasives.tzresult Lwt.tload alias ~default enc reads the file corresponding to the alias, and parses using encoding. If the file does not exist, then default is returned.
method write : string ->
'a ->
'a Mavryk_base.TzPervasives.Data_encoding.encoding ->
unit Mavryk_base.TzPervasives.tzresult Lwt.twrite alias x encoding writes in a file corresponding to the alias the information given by x using the encoding.
method last_modification_time : string ->
float option Mavryk_base.TzPervasives.tzresult Lwt.tlast_modification_time alias returns the last modification time of the file corresponding to the alias, if the file exists; otherwise None.