testutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 15 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 GenerateSolanaKeypair added in v0.2.3

func GenerateSolanaKeypair(t *testing.T) ed25519.PrivateKey

func GenerateSolanaKeys added in v0.2.3

func GenerateSolanaKeys(t *testing.T, n int) []ed25519.PublicKey

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 SortKeys added in v0.3.0

func SortKeys(src []ed25519.PublicKey)

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