setassetscript

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APINegativeChecks

func APINegativeChecks(t *testing.T, tx utl.ConsideredTransaction,
	td testdata.SetAssetScriptTestData[testdata.SetAssetScriptExpectedValuesNegative],
	actualDiffBalanceInWaves utl.BalanceInWaves, actualDiffBalanceInAsset utl.BalanceInAsset, errMsg string)

func APIPositiveChecks

func APIPositiveChecks(t *testing.T, tx utl.ConsideredTransaction,
	td testdata.SetAssetScriptTestData[testdata.SetAssetScriptExpectedValuesPositive],
	actualDiffBalanceInWaves utl.BalanceInWaves, actualDiffBalanceInAsset utl.BalanceInAsset, errMsg string)

func BroadcastSetAssetScriptTxAndGetBalances

func BroadcastSetAssetScriptTxAndGetBalances[T any](suite *f.BaseSuite, testdata testdata.SetAssetScriptTestData[T],
	version byte, waitForTx bool) (utl.ConsideredTransaction, utl.BalanceInWaves, utl.BalanceInAsset)

func BroadcastWithTestData

func BroadcastWithTestData[T any](suite *f.BaseSuite, testdata testdata.SetAssetScriptTestData[T],
	version byte, waitForTx bool) utl.ConsideredTransaction

func GetVersions

func GetVersions(suite *f.BaseSuite) []byte

func MakeTxAndGetDiffBalances

func MakeTxAndGetDiffBalances[T any](suite *f.BaseSuite, testdata testdata.SetAssetScriptTestData[T], version byte,
	waitForTx bool, makeTx MakeTx[T]) (utl.ConsideredTransaction, utl.BalanceInWaves, utl.BalanceInAsset)

func NegativeChecks

func NegativeChecks(t *testing.T, tx utl.ConsideredTransaction,
	td testdata.SetAssetScriptTestData[testdata.SetAssetScriptExpectedValuesNegative],
	actualDiffBalanceInWaves utl.BalanceInWaves, actualDiffBalanceInAsset utl.BalanceInAsset, errMsg string)

func NewSignedSetAssetScriptTransaction

func NewSignedSetAssetScriptTransaction(suite *f.BaseSuite, version byte, scheme proto.Scheme,
	senderPK crypto.PublicKey, senderSK crypto.SecretKey, assetID crypto.Digest, script proto.Script,
	fee, timestamp uint64) proto.Transaction

func NewSignedSetAssetScriptTransactionWithTestData

func NewSignedSetAssetScriptTransactionWithTestData[T any](suite *f.BaseSuite, version byte,
	testdata testdata.SetAssetScriptTestData[T]) proto.Transaction

func PositiveChecks

func PositiveChecks(t *testing.T, tx utl.ConsideredTransaction,
	td testdata.SetAssetScriptTestData[testdata.SetAssetScriptExpectedValuesPositive],
	actualDiffBalanceInWaves utl.BalanceInWaves, actualDiffBalanceInAsset utl.BalanceInAsset, errMsg string)

func SendSetAssetScriptTxAndGetBalances

func SendSetAssetScriptTxAndGetBalances[T any](suite *f.BaseSuite, testdata testdata.SetAssetScriptTestData[T],
	version byte, waitForTx bool) (utl.ConsideredTransaction, utl.BalanceInWaves, utl.BalanceInAsset)

func SendWithTestData

func SendWithTestData[T any](suite *f.BaseSuite, testdata testdata.SetAssetScriptTestData[T],
	version byte, waitForTx bool) utl.ConsideredTransaction

Types

type MakeTx

type MakeTx[T any] func(suite *f.BaseSuite, testdata testdata.SetAssetScriptTestData[T], version byte,
	waitForTx bool) utl.ConsideredTransaction

Jump to

Keyboard shortcuts

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