balance

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLock

func ParseLock(params []stackitem.Item) (event.Event, error)

ParseLock from notification into lock structure.

Types

type Lock

type Lock struct {
	// contains filtered or unexported fields
}

Lock structure of balance.Lock notification from morph chain.

func (Lock) Amount

func (l Lock) Amount() int64

Amount of the locked assets.

func (Lock) ID

func (l Lock) ID() []byte

ID is a withdraw transaction hash.

func (Lock) LockAccount

func (l Lock) LockAccount() util.Uint160

LockAccount return script hash for balance contract wallet.

func (Lock) MorphEvent

func (Lock) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Lock) Until

func (l Lock) Until() int64

Until is a epoch before locked account exists.

func (Lock) User

func (l Lock) User() util.Uint160

User returns withdraw receiver script hash from main net.

Jump to

Keyboard shortcuts

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