forked from TrueCloudLab/frostfs-node
b794aeab63
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> |
||
---|---|---|
.. | ||
client | ||
event | ||
subscriber | ||
timer |