utility

package
v0.0.0-...-e76cf3b Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("utility")

Functions

func CreatePaymentTransaction

func CreatePaymentTransaction(gClient gasserviceclient.Client, sender string, receiver string, assetCode string, assetIssuer string, amount float64) (*b.TransactionBuilder, error)

func GetAssets

func GetAssets(accountAddress string, prclient pr_client.PRServiceClient) ([]*model.Asset, error)

GetAssets : This function combines the list of requested as well as trusted(allowed trust) assets by an account

func GetTrustedWWAssets

func GetTrustedWWAssets(accountAddress string, prclient pr_client.PRServiceClient) ([]*model.Asset, error)

GetTrustedWWAssets : Gets account information from stellar and parses trusted assets to return

func SubmitPaymentTransaction

func SubmitPaymentTransaction(gClient gasserviceclient.Client, sourceAccount string, tx *b.TransactionBuilder,
	cClient crypto_client.CryptoServiceClient) (hash string, ledger uint64, 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