neofscontract

package
v0.22.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWrapper

type ClientWrapper neofscontract.Client

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(id []byte, pubs keys.PublicKeys) error

AlphabetUpdate update list of alphabet nodes.

func (*ClientWrapper) Cheque added in v0.22.0

func (x *ClientWrapper) Cheque(id []byte, user util.Uint160, amount int64, lock util.Uint160) error

Cheque invokes `cheque` method of NeoFS contract.

func (*ClientWrapper) ManageKeys

func (x *ClientWrapper) ManageKeys(scriptHash []byte, ks [][]byte, bind bool) error

ManageKeys binds/unbinds list of public keys from NeoFS account by script hash.

type Option added in v0.22.1

type Option func(*opts)

Option allows to set an optional parameter of ClientWrapper.

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