Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlphabetUpdatePrm ¶ added in v0.27.0
type AlphabetUpdatePrm struct { client.InvokePrmOptional // contains filtered or unexported fields }
AlphabetUpdatePrm groups parameters of AlphabetUpdate operation.
func (*AlphabetUpdatePrm) SetID ¶ added in v0.27.0
func (a *AlphabetUpdatePrm) SetID(id []byte)
SetID sets update ID.
func (*AlphabetUpdatePrm) SetPubs ¶ added in v0.27.0
func (a *AlphabetUpdatePrm) SetPubs(pubs keys.PublicKeys)
SetPubs sets new alphabet public keys.
type ChequePrm ¶ added in v0.27.0
type ChequePrm struct { client.InvokePrmOptional // contains filtered or unexported fields }
ChequePrm groups parameters of AlphabetUpdate operation.
type ClientWrapper ¶
type ClientWrapper struct { internal.StaticClient // contains filtered or unexported fields }
ClientWrapper is a wrapper over NeoFS contract client which provides convenient methods for working with a contract.
Working ClientWrapper must be created via NewFromMorph.
func NewFromMorph ¶
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8, opts ...Option) (*ClientWrapper, error)
NewFromMorph wraps client to work with NeoFS contract.
func (*ClientWrapper) AlphabetUpdate ¶ added in v0.22.0
func (x *ClientWrapper) AlphabetUpdate(prm AlphabetUpdatePrm) error
AlphabetUpdate update list of alphabet nodes.
func (*ClientWrapper) Cheque ¶ added in v0.22.0
func (x *ClientWrapper) Cheque(prm ChequePrm) error
Cheque invokes `cheque` method of NeoFS contract.
func (*ClientWrapper) ManageKeys ¶
func (x *ClientWrapper) ManageKeys(prm ManageKeysPrm) error
ManageKeys binds/unbinds list of public keys from NeoFS account by script hash.
type ManageKeysPrm ¶ added in v0.27.0
type ManageKeysPrm struct { client.InvokePrmOptional // contains filtered or unexported fields }
ManageKeysPrm groups parameters of ManageKeys operation.
func (*ManageKeysPrm) SetBind ¶ added in v0.27.0
func (m *ManageKeysPrm) SetBind(bind bool)
SetBind sets operation type: bind/unbind.
func (*ManageKeysPrm) SetKeys ¶ added in v0.27.0
func (m *ManageKeysPrm) SetKeys(ks [][]byte)
SetKeys sets keys.
func (*ManageKeysPrm) SetScriptHash ¶ added in v0.27.0
func (m *ManageKeysPrm) SetScriptHash(scriptHash []byte)
SetScriptHash sets script hash.
type Option ¶ added in v0.22.1
type Option func(*opts)
Option allows to set an optional parameter of ClientWrapper.
func AsAlphabet ¶ added in v0.25.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.