Documentation ¶
Index ¶
- func AssetCode(asset xdr.Asset) string
- func IsEmpty[T any](v T) bool
- func Memo(memo xdr.Memo, txHash string) (*string, string)
- func OperationID(ledgerNumber, txNumber, opNumber int32) string
- func OperationResult(txResult xdr.TransactionResult, opNumber int) *xdr.OperationResultTr
- func PointOf[T any](value T) *T
- func SanitizeUTF8(input string) string
- func SourceAccount(op xdr.Operation, txEnvelope xdr.TransactionEnvelope) string
- func TransactionID(ledgerNumber, txNumber int32) string
- func UnwrapInterfaceToPointer[T any](i interface{}) *T
- type HTTPClient
- type MockHTTPClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OperationID ¶
func OperationResult ¶
func OperationResult(txResult xdr.TransactionResult, opNumber int) *xdr.OperationResultTr
func SanitizeUTF8 ¶
SanitizeUTF8 sanitizes a string to comply to the UTF-8 character set and Postgres' code zero byte constraint
func SourceAccount ¶
func SourceAccount(op xdr.Operation, txEnvelope xdr.TransactionEnvelope) string
func TransactionID ¶
func UnwrapInterfaceToPointer ¶
func UnwrapInterfaceToPointer[T any](i interface{}) *T
UnwrapInterfaceToPointer unwraps an interface to a pointer of the given type.
Types ¶
type HTTPClient ¶
Click to show internal directories.
Click to hide internal directories.