frostfs

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 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 Cheque

type Cheque struct {
	IDValue     []byte
	AmountValue int64 // Fixed8
	UserValue   util.Uint160
	LockValue   util.Uint160
}

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 {
	KeyValue   []byte
	ValueValue []byte
	IDValue    []byte

	// TxHashValue is used in notary environmental
	// for calculating unique but same for
	// all notification receivers values.
	TxHashValue util.Uint256
}

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 {
	IDValue     []byte
	AmountValue int64 // Fixed8
	FromValue   util.Uint160
	ToValue     util.Uint160
}

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 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 {
	IDValue     []byte
	AmountValue int64 // Fixed8
	UserValue   util.Uint160
}

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