neofs

package
v0.12.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBind added in v0.12.0

func ParseBind(params []smartcontract.Parameter) (event.Event, error)

func ParseCheque

func ParseCheque(params []smartcontract.Parameter) (event.Event, error)

ParseCheque from notification into cheque structure.

func ParseConfig added in v0.12.0

func ParseConfig(params []smartcontract.Parameter) (event.Event, error)

func ParseDeposit

func ParseDeposit(params []smartcontract.Parameter) (event.Event, error)

ParseDeposit notification into deposit structure.

func ParseUnbind added in v0.12.0

func ParseUnbind(params []smartcontract.Parameter) (event.Event, error)

func ParseUpdateInnerRing added in v0.12.0

func ParseUpdateInnerRing(params []smartcontract.Parameter) (event.Event, error)

func ParseWithdraw

func ParseWithdraw(params []smartcontract.Parameter) (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() []*keys.PublicKey

func (Bind) MorphEvent added in v0.12.0

func (Bind) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Bind) User added in v0.12.0

func (b Bind) User() util.Uint160

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) 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) 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 (u Unbind) Keys() []*keys.PublicKey

func (Unbind) MorphEvent added in v0.12.0

func (Unbind) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Unbind) User added in v0.12.0

func (u Unbind) User() util.Uint160

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