frostfs-node/pkg
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
..
core [#521] Fix issues with transition from pkg/errors pkg 2021-05-19 19:09:35 +03:00
innerring [#505] ir/container: Check key-to-owner mapping in key ownership check 2021-05-25 16:35:52 +03:00
local_object_storage [#541] blobstor/fstree: fix a bug in Iterate() 2021-05-20 19:24:42 +03:00
metrics [#426] Put prometheus behind pkg/metrics 2021-03-17 10:58:00 +03:00
morph [#496] morph/client: Construct StaticClient in two work modes 2021-05-25 16:35:52 +03:00
network [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
services [#505] morph/container: Change get container API 2021-05-25 16:35:52 +03:00
util [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00