Documentation ¶
Index ¶
- Constants
- Variables
- func CheckTransaction(encodedTransaction string) error
- func CreateTransaction() (*v1.Transaction, error)
- func CreatedEncodedTransactionData() (string, error)
- func GetEncodedTransactionFromFile(filePath string) (string, error)
- func GetFilesInDirectory(directory string) ([]string, error)
- type ResultData
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 CreateTransaction ¶
func CreateTransaction() (*v1.Transaction, error)
func GetFilesInDirectory ¶
Types ¶
type ResultData ¶
func CheckTransactionsInDirectory ¶
func CheckTransactionsInDirectory(transactionDir string) (ResultData, error)
Click to show internal directories.
Click to hide internal directories.