forked from TrueCloudLab/frostfs-node
[#496] morph/client: add wrapper for neofs contract
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
458fc4f5ae
commit
16e9e726ff
8 changed files with 66 additions and 45 deletions
|
@ -22,19 +22,25 @@ type Client struct {
|
|||
type Option func(*cfg)
|
||||
|
||||
type cfg struct {
|
||||
alphabetUpdateMethod,
|
||||
chequeMethod,
|
||||
bindKeysMethod,
|
||||
unbindKeysMethod string
|
||||
}
|
||||
|
||||
func defaultConfig() *cfg {
|
||||
const (
|
||||
defaultBindKeysMethod = "bind"
|
||||
defaultUnbindKeysMethod = "unbind"
|
||||
defaultBindKeysMethod = "bind"
|
||||
defaultUnbindKeysMethod = "unbind"
|
||||
defaultAlphabetUpdateMethod = "alphabetUpdate"
|
||||
defaultChequeMethod = "cheque"
|
||||
)
|
||||
|
||||
return &cfg{
|
||||
bindKeysMethod: defaultBindKeysMethod,
|
||||
unbindKeysMethod: defaultUnbindKeysMethod,
|
||||
alphabetUpdateMethod: defaultAlphabetUpdateMethod,
|
||||
chequeMethod: defaultChequeMethod,
|
||||
bindKeysMethod: defaultBindKeysMethod,
|
||||
unbindKeysMethod: defaultUnbindKeysMethod,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue