smart_contract

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlphabetAddress added in v0.7.0

func AlphabetAddress() interop.Hash160

AlphabetAddress returns 2\3n+1 multi signature address of alphabet nodes.

func AlphabetList added in v0.6.0

func AlphabetList() []common.IRNode

AlphabetList returns array of alphabet node keys.

func AlphabetUpdate added in v0.6.0

func AlphabetUpdate(id []byte, args []interop.PublicKey)

AlphabetUpdate updates list of alphabet nodes with provided list of public keys.

func Bind

func Bind(user []byte, keys []interop.PublicKey)

Bind public key with user's account to use it in NeoFS requests.

func Cheque

func Cheque(id []byte, user interop.Hash160, amount int, lockAcc []byte)

Cheque sends gas assets back to the user if they were successfully locked in NeoFS balance contract.

func Config

func Config(key []byte) interface{}

Config returns value of NeoFS configuration with provided key.

func InitConfig

func InitConfig(args [][]byte)

InitConfig set up initial NeoFS key-value configuration.

func InnerRingCandidateAdd

func InnerRingCandidateAdd(key interop.PublicKey)

InnerRingCandidateAdd adds key to the list of inner ring candidates.

func InnerRingCandidateRemove

func InnerRingCandidateRemove(key interop.PublicKey)

InnerRingCandidateRemove removes key from the list of inner ring candidates.

func InnerRingCandidates

func InnerRingCandidates() []common.IRNode

InnerRingCandidates returns array of inner ring candidate node keys.

func ListConfig

func ListConfig() []record

ListConfig returns array of all key-value pairs of NeoFS configuration.

func Migrate added in v0.4.0

func Migrate(script []byte, manifest []byte, data interface{}) bool

Migrate updates smart contract execution script and manifest.

func OnNEP17Payment added in v0.4.0

func OnNEP17Payment(from interop.Hash160, amount int, data interface{})

OnNEP17Payment is a callback for NEP-17 compatible native GAS contract.

func SetConfig

func SetConfig(id, key, val []byte)

SetConfig key-value pair as a NeoFS runtime configuration value.

func Unbind

func Unbind(user []byte, keys []interop.PublicKey)

Unbind public key from user's account

func Version

func Version() int

Version of contract.

func Withdraw

func Withdraw(user interop.Hash160, amount int)

Withdraw initialize gas asset withdraw from NeoFS balance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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