neofscontract

package
v0.27.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

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.

func (*ChequePrm) SetAmount added in v0.27.0

func (c *ChequePrm) SetAmount(amount int64)

SetAmount sets amount.

func (*ChequePrm) SetID added in v0.27.0

func (c *ChequePrm) SetID(id []byte)

SetID sets ID of the cheque.

func (*ChequePrm) SetLock added in v0.27.0

func (c *ChequePrm) SetLock(lock util.Uint160)

SetLock sets lock.

func (*ChequePrm) SetUser added in v0.27.0

func (c *ChequePrm) SetUser(user util.Uint160)

SetUser sets user.

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.

func TryNotary added in v0.22.1

func TryNotary() Option

TryNotary returns option to enable notary invocation tries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL