frostfs-node/pkg/morph/client
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
..
audit [#496] Use single contract wrapper constructor 2021-05-25 13:41:39 +03:00
balance [#496] Remove unused type aliases and errors 2021-05-25 13:41:39 +03:00
container [#505] morph/container: Add Put method arguments 2021-05-25 16:35:52 +03:00
neofsid [#505] ir: Process set eACL notifications from Container contract 2021-05-25 16:35:52 +03:00
netmap [#496] Remove unused type aliases and errors 2021-05-25 13:41:39 +03:00
reputation [#496] Use single contract wrapper constructor 2021-05-25 13:41:39 +03:00
client.go [#505] morph/client: Support boolean invocation argument 2021-05-25 16:35:52 +03:00
client_test.go [#505] morph/client: Support boolean invocation argument 2021-05-25 16:35:52 +03:00
constructor.go [#468] Update neo-go to v0.94.1 2021-04-09 11:32:05 +03:00
notary.go [#496] morph/client: fallback to simple invoke in NotaryInvoke 2021-05-25 13:41:39 +03:00
static.go [#496] morph/client: Construct StaticClient in two work modes 2021-05-25 16:35:52 +03:00
util.go [#521] *: use stdlib errors package 2021-05-19 16:42:54 +03:00
util_test.go [#478] morph/client: Try to parse integer as a byte type 2021-04-15 17:53:08 +03:00