Evgenii Stratonikov
0decb95591
[ #625 ] morph/client: make all constructors return no error
...
In some places we panic, in some we return error, in some (audit) just return a client.
However in all of the places static client is created immediately before
the sugared-client creation.
This commit makes all constructors to just return a client for the sake
of code simplification and unification.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-02-01 15:47:54 +03:00
Leonard Lyubich
d6c0307431
[ #627 ] morph: Inherit internal.StaticClient interface in all wrappers
...
There is a need to provide contract address getter from all contract client
wrappers.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-09-30 14:47:04 +03:00
Pavel Karpy
74afcbe409
[ #815 ] pkg/morph/netmap: Add Morph()
method
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-09-13 14:50:52 +03:00
Pavel Karpy
425c02b0ec
[ #801 ] morph/netmap: Add wrapper options
...
Add constructor options on wrapper level
of `netmap` contract.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2021-09-09 14:07:57 +03:00
Evgenii Stratonikov
458fc4f5ae
[ #496 ] morph/client: provide notary options on client creation
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-06-21 15:16:42 +03:00
Evgenii Stratonikov
b21a6ccede
[ #496 ] Remove unused type aliases and errors
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-05-25 13:41:39 +03:00
Evgenii Stratonikov
2b2b2c2c45
[ #496 ] Use single contract wrapper constructor
...
There is no need in a separate `New()` or `WrapClient()`
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-05-25 13:41:39 +03:00
Evgenii Stratonikov
b52751e992
[ #496 ] innerring/invoke: move wrapper structs to separate packages
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-05-25 13:41:39 +03:00
Stanislav Bogatyrev
b7b5079934
Add Inner Ring code
2020-07-24 17:07:37 +03:00