[#452] morph/client: Add reputation contract client wrapper

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-03-31 17:59:07 +03:00 committed by Alex Vanin
parent 9f1a49a562
commit b9a1aaec23
4 changed files with 204 additions and 0 deletions

View file

@ -0,0 +1,14 @@
package wrapper
import (
"github.com/nspcc-dev/neofs-node/pkg/morph/client/reputation"
)
// ClientWrapper is a wrapper over reputation contract
// client which implements storage of reputation values.
type ClientWrapper reputation.Client
// WrapClient wraps reputation contract client and returns ClientWrapper instance.
func WrapClient(c *reputation.Client) *ClientWrapper {
return (*ClientWrapper)(c)
}