balance

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLock

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) TxHash

func (l Lock) TxHash() util.Uint256

TxHash returns hash of the TX with lock notification.

func (Lock) Until

func (l Lock) Until() int64

Until is an 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