expect

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeUTXOs

func ConsumeUTXOs(t *testing.T, s *state.MockDiff, ins []*avax.TransferableInput)

func GetMultisigAliases

func GetMultisigAliases(t *testing.T, s *state.MockDiff, addrs []ids.ShortID, aliases []*multisig.AliasWithNonce)

func GetUTXOsFromInputs

func GetUTXOsFromInputs(t *testing.T, s *state.MockDiff, ins []*avax.TransferableInput, utxos []*avax.UTXO)

func Lock

func Lock(t *testing.T, s *state.MockState, utxosMap map[ids.ShortID][]*avax.UTXO)

also fine for Spend

func PhaseTime

func PhaseTime(t *testing.T, s *state.MockDiff, cfg *config.Config, phase test.Phase)

func ProduceNewlyLockedUTXOs

func ProduceNewlyLockedUTXOs(
	t *testing.T,
	s *state.MockDiff,
	outs []*avax.TransferableOutput,
	txID ids.ID,
	baseOutIndex int,
	lockState locked.State,
)

func ProduceUTXOs

func ProduceUTXOs(
	t *testing.T,
	s *state.MockDiff,
	outs []*avax.TransferableOutput,
	txID ids.ID,
	baseOutIndex int,
)

func StateGetAllUTXOs

func StateGetAllUTXOs(t *testing.T, s *state.MockState, addrs []ids.ShortID, utxos [][]*avax.UTXO)

func StateSpendMultisig

func StateSpendMultisig(t *testing.T, s *state.MockState, utxo *avax.UTXO)

Doesn't support multisig alias yet

func StateVerifyMultisigOwner

func StateVerifyMultisigOwner(
	t *testing.T,
	s *state.MockState,
	owner *secp256k1fx.OutputOwners,
	msigAliasAddresses []ids.ShortID,
	msigAliases []*multisig.AliasWithNonce,
	collectAddresses bool,
)

func Unlock

func Unlock(
	t *testing.T,
	s *state.MockDiff,
	lockTxIDs []ids.ID,
	addrs []ids.ShortID,
	utxos []*avax.UTXO,
	removedLockState locked.State,
)

TODO @evlekht seems, that [addrs] actually not affecting anything and could be omitted

func UnlockDeposit

func UnlockDeposit(
	t *testing.T,
	s *state.MockState,
	deposits map[ids.ID]*deposit.Deposit,
	depositOffers []*deposit.Offer,
	utxoOwners []ids.ShortID,
	utxos []*avax.UTXO,
	removedLockState locked.State,
)

TODO @evlekht seems, that [addrs] actually not affecting anything and could be omitted

func VerifyLock

func VerifyLock(
	t *testing.T,
	s *state.MockDiff,
	ins []*avax.TransferableInput,
	utxos []*avax.UTXO,
	addrs []ids.ShortID,
	aliases []*multisig.AliasWithNonce,
)

func VerifyMultisigPermission

func VerifyMultisigPermission(t *testing.T, s *state.MockDiff, addrs []ids.ShortID, aliases []*multisig.AliasWithNonce)

func VerifyUnlockDeposit

func VerifyUnlockDeposit(
	t *testing.T,
	s *state.MockDiff,
	ins []*avax.TransferableInput,
	utxos []*avax.UTXO,
	addrs []ids.ShortID,
	aliases []*multisig.AliasWithNonce,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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