Documentation ¶
Index ¶
- func Bind(user []byte, keys []interop.PublicKey) bool
- func Cheque(id []byte, user interop.Hash160, amount int, lockAcc []byte) bool
- func Config(key []byte) interface{}
- func Deposit(from interop.Hash160, amount int, rcv interop.Hash160) bool
- func Init(owner interop.PublicKey, args []interop.PublicKey) bool
- func InitConfig(args [][]byte) bool
- func InnerRingCandidateAdd(key interop.PublicKey) bool
- func InnerRingCandidateRemove(key interop.PublicKey) bool
- func InnerRingCandidates() []common.IRNode
- func InnerRingList() []common.IRNode
- func InnerRingUpdate(chequeID []byte, args []interop.PublicKey) bool
- func IsInnerRing(key []byte) bool
- func ListConfig() []record
- func Migrate(script []byte, manifest []byte) bool
- func OnNEP17Payment(from interop.Hash160, amount int, data interface{})
- func SetConfig(id, key, val []byte) bool
- func Unbind(user []byte, keys []interop.PublicKey) bool
- func Version() int
- func Withdraw(user []byte, amount int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cheque ¶
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 ¶
InitConfig set up initial NeoFS key-value configuration.
func InnerRingCandidateAdd ¶
InnerRingCandidateAdd adds key to the list of inner ring candidates.
func InnerRingCandidateRemove ¶
InnerRingCandidateRemove removes key from the list of inner ring candidates.
func InnerRingCandidates ¶
InnerRingCandidates returns array of inner ring candidate node keys.
func InnerRingList ¶
InnerRingList returns array of inner ring node keys.
func InnerRingUpdate ¶
InnerRingUpdate updates list of inner ring nodes with provided list of public keys.
func IsInnerRing ¶
IsInnerRing returns 'true' if key is inside of inner ring list.
func ListConfig ¶
func ListConfig() []record
ListConfig returns array of all key-value pairs of NeoFS configuration.
func OnNEP17Payment ¶ added in v0.4.0
OnNEP17Payment is a callback for NEP-17 compatible native GAS contract.
Types ¶
This section is empty.