frostfs

package
v0.0.0-...-79ba347 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCheque

ParseCheque from notification into cheque structure.

func ParseDeposit

func ParseDeposit(e *state.ContainedNotificationEvent) (event.Event, error)

ParseDeposit notification into deposit structure.

func ParseUpdateInnerRing

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

func ParseWithdraw

func ParseWithdraw(e *state.ContainedNotificationEvent) (event.Event, error)

ParseWithdraw notification into withdraw structure.

Types

type Bind

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

func (Bind) Keys

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

func (Bind) MorphEvent

func (Bind) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Bind) TxHash

func (b Bind) TxHash() util.Uint256

TxHash returns hash of the TX with new epoch notification.

func (Bind) User

func (b Bind) User() []byte

type Cheque

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

Cheque structure of frostfs.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

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

func (Config) ID

func (u Config) ID() []byte

func (Config) Key

func (u Config) Key() []byte

func (Config) MorphEvent

func (Config) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Config) TxHash

func (u Config) TxHash() util.Uint256

TxHash returns hash of the TX with new epoch notification.

func (Config) Value

func (u Config) Value() []byte

type Deposit

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

Deposit structure of frostfs.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

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

func (Unbind) Keys

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

func (Unbind) MorphEvent

func (Unbind) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

func (Unbind) TxHash

func (b Unbind) TxHash() util.Uint256

TxHash returns hash of the TX with new epoch notification.

func (Unbind) User

func (b Unbind) User() []byte

type UpdateInnerRing

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

func (UpdateInnerRing) Keys

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

func (UpdateInnerRing) MorphEvent

func (UpdateInnerRing) MorphEvent()

MorphEvent implements Neo:Morph Event interface.

type Withdraw

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

Withdraw structure of frostfs.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