Documentation ¶
Index ¶
- Variables
- func NewEffect(ctx context.Context, row history.Effect, ledger history.Ledger) (result hal.Pageable, err error)
- func NewOperation(ctx context.Context, row history.Operation, ledger history.Ledger) (result hal.Pageable, err error)
- func PopulateAccount(ctx context.Context, dest *Account, ca core.Account, cd []core.AccountData, ...) error
- func PopulateAccountFlags(dest *AccountFlags, row core.Account)
- func PopulateAccountThresholds(dest *AccountThresholds, row core.Account)
- func PopulateAsset(ctx context.Context, dest *Asset, asset xdr.Asset) error
- func PopulateAssetStat(ctx context.Context, res *AssetStat, row assets.AssetStatsR) (err error)
- func PopulateBalance(dest *Balance, row core.Trustline) (err error)
- func PopulateBaseEffect(ctx context.Context, this *effects.Base, row history.Effect, ...)
- func PopulateBaseOperation(ctx context.Context, dest *operations.Base, row history.Operation, ...)
- func PopulateLedger(ctx context.Context, dest *Ledger, row history.Ledger)
- func PopulateMasterSigner(dest *Signer, row core.Account)
- func PopulateNativeBalance(dest *Balance, stroops, buyingLiabilities, sellingLiabilities xdr.Int64) (err error)
- func PopulateOffer(ctx context.Context, dest *Offer, row core.Offer, ledger *history.Ledger)
- func PopulateOrderBookSummary(ctx context.Context, dest *OrderBookSummary, selling xdr.Asset, ...) error
- func PopulatePath(ctx context.Context, dest *horizon.Path, q paths.Query, p paths.Path) (err error)
- func PopulateRoot(ctx context.Context, dest *horizon.Root, ledgerState ledger.State, ...)
- func PopulateSigner(ctx context.Context, dest *Signer, row core.Signer)
- func PopulateTrade(ctx context.Context, dest *Trade, row history.Trade)
- func PopulateTradeAggregation(ctx context.Context, dest *TradeAggregation, row history.TradeAggregation) error
- func PopulateTransaction(ctx context.Context, dest *Transaction, row history.Transaction)
- func PopulateTransactionResultCodes(ctx context.Context, dest *TransactionResultCodes, ...) (err error)
- func PopulateTransactionSuccess(ctx context.Context, dest *TransactionSuccess, result txsub.Result)
Constants ¶
This section is empty.
Variables ¶
var EffectTypeNames = map[history.EffectType]string{ history.EffectAccountCreated: "account_created", history.EffectAccountRemoved: "account_removed", history.EffectAccountCredited: "account_credited", history.EffectAccountDebited: "account_debited", history.EffectAccountThresholdsUpdated: "account_thresholds_updated", history.EffectAccountHomeDomainUpdated: "account_home_domain_updated", history.EffectAccountFlagsUpdated: "account_flags_updated", history.EffectAccountInflationDestinationUpdated: "account_inflation_destination_updated", history.EffectSignerCreated: "signer_created", history.EffectSignerRemoved: "signer_removed", history.EffectSignerUpdated: "signer_updated", history.EffectTrustlineCreated: "trustline_created", history.EffectTrustlineRemoved: "trustline_removed", history.EffectTrustlineUpdated: "trustline_updated", history.EffectTrustlineAuthorized: "trustline_authorized", history.EffectTrustlineDeauthorized: "trustline_deauthorized", history.EffectOfferCreated: "offer_created", history.EffectOfferRemoved: "offer_removed", history.EffectOfferUpdated: "offer_updated", history.EffectTrade: "trade", history.EffectDataCreated: "data_created", history.EffectDataRemoved: "data_removed", history.EffectDataUpdated: "data_updated", history.EffectSequenceBumped: "sequence_bumped", }
Functions ¶
func NewEffect ¶
func NewEffect( ctx context.Context, row history.Effect, ledger history.Ledger, ) (result hal.Pageable, err error)
NewEffect creates a new effect resource from the provided database representation of the effect.
func NewOperation ¶
func NewOperation( ctx context.Context, row history.Operation, ledger history.Ledger, ) (result hal.Pageable, err error)
NewOperation creates a new operation resource, finding the appropriate type to use based upon the row's type.
func PopulateAccount ¶
func PopulateAccount( ctx context.Context, dest *Account, ca core.Account, cd []core.AccountData, cs []core.Signer, ct []core.Trustline, ) error
PopulateAccount fills out the resource's fields
func PopulateAccountFlags ¶
func PopulateAssetStat ¶
func PopulateAssetStat( ctx context.Context, res *AssetStat, row assets.AssetStatsR, ) (err error)
PopulateAssetStat fills out the details func PopulateAssetStat(
func PopulateBalance ¶
func PopulateBaseEffect ¶
func PopulateBaseEffect(ctx context.Context, this *effects.Base, row history.Effect, ledger history.Ledger)
Populate loads this resource from `row`
func PopulateBaseOperation ¶
func PopulateBaseOperation( ctx context.Context, dest *operations.Base, row history.Operation, ledger history.Ledger, )
Populate fills out this resource using `row` as the source.
func PopulateMasterSigner ¶
PopulateMaster fills out the fields of the signer, using a stellar account to provide the data.
func PopulateNativeBalance ¶
func PopulateOffer ¶
func PopulatePath ¶
PopulatePath converts the paths.Path into a Path
func PopulateRoot ¶
func PopulateRoot( ctx context.Context, dest *horizon.Root, ledgerState ledger.State, hVersion, cVersion string, passphrase string, currentProtocolVersion int32, coreSupportedProtocolVersion int32, friendBotURL *url.URL, )
Populate fills in the details
func PopulateSigner ¶
Populate fills out the fields of the signer, using one of an account's secondary signers.
func PopulateTrade ¶
Populate fills out the details of a trade using a row from the history_trades table.
func PopulateTradeAggregation ¶
func PopulateTradeAggregation( ctx context.Context, dest *TradeAggregation, row history.TradeAggregation, ) error
Populate fills out the details of a trade using a row from the history_trades table.
func PopulateTransaction ¶
func PopulateTransaction( ctx context.Context, dest *Transaction, row history.Transaction, )
Populate fills out the details
func PopulateTransactionResultCodes ¶
func PopulateTransactionResultCodes(ctx context.Context, dest *TransactionResultCodes, fail *txsub.FailedTransactionError, ) (err error)
Populate fills out the details
Types ¶
This section is empty.