execute

package
v1.10.16 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QuorumNumerator   = 2
	QuorumDenominator = 3
)

Variables

This section is empty.

Functions

func Block

func Block(
	ctx context.Context,
	chainContext *snow.Context,
	db database.KeyValueReaderWriterDeleter,
	skipVerify bool,
	blockContext *smblock.Context,
	blk *xsblock.Stateless,
) error

func ExpectsContext

func ExpectsContext(blk *block.Stateless) (bool, error)

Types

type Tx

type Tx struct {
	Context      context.Context
	ChainContext *snow.Context
	Database     database.KeyValueReaderWriterDeleter

	SkipVerify   bool
	BlockContext *block.Context

	TxID        ids.ID
	Sender      ids.ShortID
	TransferFee uint64
	ExportFee   uint64
	ImportFee   uint64
}

func (*Tx) Export

func (t *Tx) Export(e *tx.Export) error

func (*Tx) Import

func (t *Tx) Import(i *tx.Import) error

func (*Tx) Transfer

func (t *Tx) Transfer(tf *tx.Transfer) error

type TxExpectsContext

type TxExpectsContext struct {
	Result bool
}

func (*TxExpectsContext) Export

func (*TxExpectsContext) Export(*tx.Export) error

func (*TxExpectsContext) Import

func (t *TxExpectsContext) Import(*tx.Import) error

func (*TxExpectsContext) Transfer

func (*TxExpectsContext) Transfer(*tx.Transfer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL