forked from TrueCloudLab/frostfs-node
[#452] morph/client: Add reputation contract client wrapper
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
9f1a49a562
commit
b9a1aaec23
4 changed files with 204 additions and 0 deletions
14
pkg/morph/client/reputation/wrapper/wrapper.go
Normal file
14
pkg/morph/client/reputation/wrapper/wrapper.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue