testutil

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 12 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 GenerateKin2HorizonAccount added in v0.2.2

func GenerateKin2HorizonAccount(accountID string, balance string, sequence string) *hProtocol.Account

func GenerateKin2PaymentOperation added in v0.2.2

func GenerateKin2PaymentOperation(src *xdr.AccountId, dest xdr.AccountId, issuer xdr.AccountId) xdr.Operation

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

func GetKin2Context added in v0.2.2

func GetKin2Context(ctx context.Context) context.Context

func StellarAccountIDFromString added in v0.2.2

func StellarAccountIDFromString(address string) (id xdr.AccountId, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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