Help us shape the future of Go! Take the 2026 Go Developer Survey

execute

package
v1.16.17 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 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 context.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 context.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