checktx

package
v0.73.0-preview.8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TxVersion      = 3
	TestAlgoName   = "testAlgo"
	TestPubKeyName = "testPubKey"
)

Variables

View Source
var TestInputData = v1.InputData{Nonce: 123, BlockHeight: 456, Command: &v1.InputData_Transfer{Transfer: &v1.Transfer{
	FromAccountType: 1,
	To:              "dave",
	ToAccountType:   2,
	Asset:           "test asset",
	Amount:          "123",
	Reference:       "test ref",
}}}

Functions

func CheckTransaction

func CheckTransaction(encodedTransaction string) error

func CreateTransaction

func CreateTransaction() (*v1.Transaction, error)

func CreatedEncodedTransactionData

func CreatedEncodedTransactionData() (string, error)

func GetEncodedTransactionFromFile

func GetEncodedTransactionFromFile(filePath string) (string, error)

func GetFilesInDirectory

func GetFilesInDirectory(directory string) ([]string, error)

Types

type ResultData

type ResultData struct {
	TransactionsPassed   int
	TransactionsFailed   int
	TransactionsAnalysed int
}

func CheckTransactionsInDirectory

func CheckTransactionsInDirectory(transactionDir string) (ResultData, error)

Jump to

Keyboard shortcuts

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