testutils

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestTransactions

func GetTestTransactions[C, P any](t *testing.T, network *utils.Network, factories ...factory[C, P]) ([]C, []P)

func StripCompilerFields

func StripCompilerFields(t *testing.T, class core.Class)

StripCompilerFields strips the some fields related to compiler in the compiled class. It's due to the difference between the expected compiler version and the actual compiler version.

Types

type TransactionBuilder

type TransactionBuilder[C, P any] struct {
	ToCore         toCoreType[C]
	ToP2PDeclare   toP2PType[P, *transaction.DeclareV3WithClass]
	ToP2PDeploy    toP2PType[P, *transaction.DeployAccountV3]
	ToP2PInvoke    toP2PType[P, *transaction.InvokeV3]
	ToP2PL1Handler toP2PType[P, *transaction.L1HandlerV0]
}

func (*TransactionBuilder[C, P]) GetTestDeclareTransaction

func (b *TransactionBuilder[C, P]) GetTestDeclareTransaction(t *testing.T, network *utils.Network) (C, P)

func (*TransactionBuilder[C, P]) GetTestDeployAccountTransaction

func (b *TransactionBuilder[C, P]) GetTestDeployAccountTransaction(t *testing.T, network *utils.Network) (C, P)

func (*TransactionBuilder[C, P]) GetTestInvokeTransaction

func (b *TransactionBuilder[C, P]) GetTestInvokeTransaction(t *testing.T, network *utils.Network) (C, P)

func (*TransactionBuilder[C, P]) GetTestL1HandlerTransaction

func (b *TransactionBuilder[C, P]) GetTestL1HandlerTransaction(t *testing.T, network *utils.Network) (C, P)

Jump to

Keyboard shortcuts

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