Documentation ¶
Index ¶
- type BindKeysPrm
- type Client
- func (x *Client) AlphabetUpdate(id []byte, pubs keys.PublicKeys) error
- func (x *Client) BindKeys(p BindKeysPrm) error
- func (x *Client) Cheque(txHash util.Uint256, id []byte, user util.Uint160, amount int64, ...) error
- func (x *Client) ContractAddress() util.Uint160
- func (x *Client) UnbindKeys(args UnbindKeysPrm) error
- type Option
- type UnbindKeysPrm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindKeysPrm ¶ added in v0.28.0
type BindKeysPrm struct {
// contains filtered or unexported fields
}
BindKeysPrm groups parameters of BindKeys operation.
func (*BindKeysPrm) SetKeys ¶ added in v0.28.0
func (x *BindKeysPrm) SetKeys(v [][]byte)
SetKeys sets a list of public keys in a binary format.
func (*BindKeysPrm) SetOptionalPrm ¶ added in v0.28.0
func (x *BindKeysPrm) SetOptionalPrm(op client.InvokePrmOptional)
SetOptionalPrm sets optional client parameters.
func (*BindKeysPrm) SetScriptHash ¶ added in v0.28.0
func (x *BindKeysPrm) SetScriptHash(v []byte)
SetScriptHash sets script hash of the NeoFS account identifier.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper over StaticClient which makes calls with the names and arguments of the NeoFS contract.
Working client must be created via constructor New. Using the Client that has been created with new(Client) expression (or just declaring a Client variable) is unsafe and can lead to panic.
func NewFromMorph ¶ added in v0.28.0
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8, opts ...Option) (*Client, error)
NewFromMorph wraps client to work with NeoFS contract.
func (*Client) AlphabetUpdate ¶ added in v0.22.0
func (x *Client) AlphabetUpdate(id []byte, pubs keys.PublicKeys) error
AlphabetUpdate update list of alphabet nodes.
func (*Client) BindKeys ¶
func (x *Client) BindKeys(p BindKeysPrm) error
BindKeys binds list of public keys from NeoFS account by script hash.
func (*Client) Cheque ¶ added in v0.22.0
func (x *Client) Cheque(txHash util.Uint256, id []byte, user util.Uint160, amount int64, lock util.Uint160) error
Cheque invokes `cheque` method of NeoFS contract.
func (*Client) ContractAddress ¶ added in v0.28.0
ContractAddress returns the address of the associated contract.
func (*Client) UnbindKeys ¶
func (x *Client) UnbindKeys(args UnbindKeysPrm) error
UnbindKeys invokes the call of key unbinding method of NeoFS contract.
type Option ¶
type Option func(*opts)
Option allows to set an optional parameter of ClientWrapper.
func AsAlphabet ¶ added in v0.28.0
func AsAlphabet() Option
AsAlphabet returns option to sign main TX of notary requests with client's private key.
Considered to be used by IR nodes only.
type UnbindKeysPrm ¶ added in v0.28.0
type UnbindKeysPrm struct {
// contains filtered or unexported fields
}
UnbindKeysPrm groups parameters of UnbindKeys operation.
func (*UnbindKeysPrm) SetKeys ¶ added in v0.28.0
func (x *UnbindKeysPrm) SetKeys(v [][]byte)
SetKeys sets a list of public keys in a binary format.
func (*UnbindKeysPrm) SetOptionalPrm ¶ added in v0.28.0
func (x *UnbindKeysPrm) SetOptionalPrm(op client.InvokePrmOptional)
SetOptionalPrm sets optional client parameters.
func (*UnbindKeysPrm) SetScriptHash ¶ added in v0.28.0
func (x *UnbindKeysPrm) SetScriptHash(v []byte)
SetScriptHash sets script hash of the NeoFS account identifier.