frostfs-node/pkg/morph
Leonard Lyubich b794aeab63 [#496] morph/client: Construct StaticClient in two work modes
There are two scenarios of invocation of contract methods:
  1. do not invoke notary contract;
  2. try to invoke notary contract if it is enabled in Client.

Taking this into account, `StaticClient` can work in one of the two described
modes. Based on this, it makes sense at the stage of creating `StaticClient`
to fix the call mode, and the further abstract from it.

Define `StaticClientOption` setters of `StaticClient` optional parameters.
Add `TryNotary` constructor of option which enables notary tries. Call
`NotaryInvoke` on underlying `Client` if the option is provided, otherwise
call `Invoke`. Mark `NotaryInvoke` method of `StaticClient` as deprecated.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-25 16:35:52 +03:00
..
client [#496] morph/client: Construct StaticClient in two work modes 2021-05-25 16:35:52 +03:00
event [#505] event/container: Change number of items in Put event 2021-05-25 16:35:52 +03:00
subscriber [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
timer [#479] morph/timer: Move block timer to morph package 2021-04-19 09:35:54 +03:00