transfer

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseNegativeAPIChecks

func BaseNegativeAPIChecks(t *testing.T, tx utl.ConsideredTransaction,
	td testdata.TransferTestData[testdata.TransferExpectedValuesNegative],
	actualDiffBalanceInWaves utl.BalanceInWaves, actualDiffBalanceInAsset utl.BalanceInAsset, errMsg string)

func BaseNegativeChecks

func BaseNegativeChecks(t *testing.T, tx utl.ConsideredTransaction,
	td testdata.TransferTestData[testdata.TransferExpectedValuesNegative],
	actualDiffBalanceInWaves utl.BalanceInWaves, actualDiffBalanceInAsset utl.BalanceInAsset, errMsg string)

func BroadcastTransferTxAndGetBalances

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

func BroadcastWithTestData

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

func GetNewAccountWithFunds

func GetNewAccountWithFunds(suite *f.BaseSuite, version byte, scheme proto.Scheme, from int, amount uint64) int

func GetVersions

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

func MakeTxAndGetDiffBalances

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

func NewSignTransferTransaction

func NewSignTransferTransaction(suite *f.BaseSuite, version byte, scheme proto.Scheme, senderPK crypto.PublicKey,
	senderSK crypto.SecretKey, amountAsset, feeAsset proto.OptionalAsset, timestamp, amount, fee uint64,
	recipient proto.Recipient, attachment proto.Attachment) proto.Transaction

func NewSignTransferTransactionWithTestData

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

func Send

func Send(suite *f.BaseSuite, version byte, scheme proto.Scheme, senderPK crypto.PublicKey,
	sk crypto.SecretKey, amountAsset, feeAsset proto.OptionalAsset, timestamp, amount, fee uint64,
	recipient proto.Recipient, attachment proto.Attachment, waitForTx bool) utl.ConsideredTransaction

func SendTransferTxAndGetBalances

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

func SendWithTestData

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

func TransferringAssetAmount

func TransferringAssetAmount(suite *f.BaseSuite, version byte, scheme proto.Scheme, assetID crypto.Digest,
	from, to int, assetAmount ...uint64)

TransferringAssetAmount - Amount of Asset that transferred from one account to another, by default it will be all amount of Asset.

func TransferringFunds

func TransferringFunds(suite *f.BaseSuite, version byte, scheme proto.Scheme, from, to int,
	amount uint64)

Types

type MakeTx

type MakeTx[T any] func(suite *f.BaseSuite, testdata testdata.TransferTestData[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