testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAccountID

func GenerateAccountID(t *testing.T) (*keypair.Full, xdr.AccountId)

func GenerateAccountIDs

func GenerateAccountIDs(t *testing.T, n int) []xdr.AccountId

func GenerateCreateOperation

func GenerateCreateOperation(src *xdr.AccountId, dest xdr.AccountId) xdr.Operation

func GenerateHorizonAccount

func GenerateHorizonAccount(accountID string, nativeBalance string, sequence string) *hProtocol.Account

func GenerateLEC

func GenerateLEC(lecType xdr.LedgerEntryChangeType, id xdr.AccountId, seqNum xdr.SequenceNumber, balance xdr.Int64) xdr.LedgerEntryChange

func GenerateMergeOperation

func GenerateMergeOperation(src *xdr.AccountId, dest xdr.AccountId) xdr.Operation

func GeneratePaymentOperation

func GeneratePaymentOperation(src *xdr.AccountId, dest xdr.AccountId) xdr.Operation

func GenerateTransactionEnvelope

func GenerateTransactionEnvelope(src xdr.AccountId, seqNum int, operations []xdr.Operation) xdr.TransactionEnvelope

func GenerateTransactionMeta

func GenerateTransactionMeta(v int32, operations []xdr.OperationMeta) xdr.TransactionMeta

func GenerateTransactionResult

func GenerateTransactionResult(code xdr.TransactionResultCode, results []xdr.OperationResult) xdr.TransactionResult

Types

This section is empty.

Jump to

Keyboard shortcuts

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