Documentation ¶
Index ¶
- Variables
- func ChangeTrust(gClient gasservice.GasServiceClient, ...) (string, error)
- func CreateNativePayment(gClient gasservice.GasServiceClient, sourceAccount nc.Account, ...) (string, error)
- func DecodeStellarError(err error) error
- func DecodeStellarPaymentError(err error) error
- func DoAllowTrust(gClient gasservice.GasServiceClient, trustorAccountAddress string, ...) (error, string)
- func DoChangeTrust(gClient gasservice.GasServiceClient, trustorAccount model.Account, ...) (error, string)
- func GetAssetType(assetCode string) string
- func GetBalance(accountId, assetCode, assetIssuer string) string
- func GetCreditAsset(ast model.Asset, amount decimal.Decimal, prclient pr_client.PRServiceClient) (creditAsset interface{}, err error)
- func GetStellarAccount(accountId string) hProtocol.Account
- func GetTrustedAssets(accountAddress string) (bool, []hProtocol.Asset)
- func IsBalanceExist(accountId, assetCode, assetIssuer string) bool
- func IsNative(assetCode string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var LOGGER = logging.MustGetLogger("asset")
Functions ¶
func ChangeTrust ¶
func ChangeTrust(gClient gasservice.GasServiceClient, trustorAddr, trustee, assetCode, limit string) (string, error)
ChangeTrust: Creates change trust transaction and returns xdr
func CreateNativePayment ¶
func CreateNativePayment(gClient gasservice.GasServiceClient, sourceAccount nc.Account, destinationAddress, amount string) (string, error)
func DecodeStellarError ¶
func DoAllowTrust ¶
func DoAllowTrust(gClient gasservice.GasServiceClient, trustorAccountAddress string, assetCode string, issuerAddress string, authorize bool, cClient crypto_client.CryptoServiceClient) (error, string)
DoAllowTrust support DO / DA
func DoChangeTrust ¶
func DoChangeTrust(gClient gasservice.GasServiceClient, trustorAccount model.Account, assetCode string, issuerAddress string, limit int64, cClient crypto_client.CryptoServiceClient) (error, string)
DoChangeTrust: support DA / DO
func GetAssetType ¶
func GetBalance ¶
func GetCreditAsset ¶
func GetStellarAccount ¶
func IsBalanceExist ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.