neofs

package
v0.28.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBind added in v0.12.0

func ParseCheque

func ParseCheque(e *subscriptions.NotificationEvent) (event.Event, error)

ParseCheque from notification into cheque structure.

func ParseConfig added in v0.12.0

func ParseConfig(e *subscriptions.NotificationEvent) (event.Event, error)

func ParseDeposit

func ParseDeposit(e *subscriptions.NotificationEvent) (event.Event, error)

ParseDeposit notification into deposit structure.

func ParseUnbind added in v0.12.0

func ParseUnbind(e *subscriptions.NotificationEvent) (event.Event, error)

func ParseUpdateInnerRing added in v0.12.0

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

func ParseWithdraw

func ParseWithdraw(e *subscriptions.NotificationEvent) (event.Event, error)

ParseWithdraw notification into withdraw structure.

Types

type Bind added in v0.12.0

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

func (Bind) Keys added in v0.12.0

func (b Bind) Keys() [][]byte

func (Bind) MorphEvent added in v0.12.0

func (Bind) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Bind) TxHash added in v0.27.0

func (b Bind) TxHash() util.Uint256

TxHash returns hash of the TX with new epoch notification.

func (Bind) User added in v0.12.0

func (b Bind) User() []byte

type Cheque

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

Cheque structure of neofs.Cheque notification from mainnet chain.

func (Cheque) Amount

func (c Cheque) Amount() int64

Amount of the sent assets.

func (Cheque) ID

func (c Cheque) ID() []byte

ID is a withdraw transaction hash.

func (Cheque) LockAccount

func (c Cheque) LockAccount() util.Uint160

LockAccount return script hash for balance contract wallet.

func (Cheque) MorphEvent

func (Cheque) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Cheque) User

func (c Cheque) User() util.Uint160

User returns withdraw receiver script hash from main net.

type Config added in v0.12.0

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

func (Config) ID added in v0.12.0

func (u Config) ID() []byte

func (Config) Key added in v0.12.0

func (u Config) Key() []byte

func (Config) MorphEvent added in v0.12.0

func (Config) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Config) TxHash added in v0.27.0

func (u Config) TxHash() util.Uint256

TxHash returns hash of the TX with new epoch notification.

func (Config) Value added in v0.12.0

func (u Config) Value() []byte

type Deposit

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

Deposit structure of neofs.Deposit notification from mainnet chain.

func (Deposit) Amount

func (d Deposit) Amount() int64

Amount of transferred assets.

func (Deposit) From

func (d Deposit) From() util.Uint160

From is a script hash of asset sender in main net.

func (Deposit) ID

func (d Deposit) ID() []byte

ID is a deposit transaction hash.

func (Deposit) MorphEvent

func (Deposit) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Deposit) To

func (d Deposit) To() util.Uint160

To is a script hash of asset receiver in balance contract.

type Unbind added in v0.12.0

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

func (Unbind) Keys added in v0.12.0

func (b Unbind) Keys() [][]byte

func (Unbind) MorphEvent added in v0.12.0

func (Unbind) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Unbind) TxHash added in v0.27.0

func (b Unbind) TxHash() util.Uint256

TxHash returns hash of the TX with new epoch notification.

func (Unbind) User added in v0.12.0

func (b Unbind) User() []byte

type UpdateInnerRing added in v0.12.0

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

func (UpdateInnerRing) Keys added in v0.12.0

func (u UpdateInnerRing) Keys() []*keys.PublicKey

func (UpdateInnerRing) MorphEvent added in v0.12.0

func (UpdateInnerRing) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

type Withdraw

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

Withdraw structure of neofs.Withdraw notification from mainnet chain.

func (Withdraw) Amount

func (w Withdraw) Amount() int64

Amount of the withdraw assets.

func (Withdraw) ID

func (w Withdraw) ID() []byte

ID is a withdraw transaction hash.

func (Withdraw) MorphEvent

func (Withdraw) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Withdraw) User

func (w Withdraw) 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