[#269] morph/audit: Implement wrapper over Audit contract client

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-21 16:47:19 +03:00 committed by Alex Vanin
parent 07da9d31f2
commit 919f4364f1
3 changed files with 123 additions and 0 deletions

View file

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