package
2.6.0+incompatible
Repository: https://github.com/stellar/stellar-etl.git
Documentation: pkg.go.dev
# Functions
AccountSignersChanged returns true if account signers have changed.
AddArchiveFlags adds the history archive specific flags: output, and limit TODO: https://stellarorg.atlassian.net/browse/HUBBLE-386 Rename AddArchiveFlags to something more relevant.
AddCloudStorageFlags adds the cloud storage releated flags: cloud-storage-bucket, cloud-credentials.
AddCommonFlags adds the flags common to all commands: start-ledger, end-ledger, stdout, and strict-export.
AddCoreFlags adds the captive core specific flags: core-executable, core-config, batch-size, and output flags TODO: https://stellarorg.atlassian.net/browse/HUBBLE-386 Deprecate?.
AddExportTypeFlags adds the captive core specifc flags: export-{type} flags.
No description provided by the author
ConvertStroopValueToReal converts a value in stroops, the smallest amount unit, into real units.
No description provided by the author
No description provided by the author
CreateLedgerBackend creates a ledger backend using captive core or datastore Defaults to using datastore.
CreateSampleResultMeta creates Transaction results with the desired success flag and number of sub operation results.
No description provided by the author
CreateSampleTx creates a transaction with a single operation (BumpSequence), the min base fee, and infinite timebounds.
No description provided by the author
ExtractEntryFromChange gets the most recent state of an entry from an ingestio change, as well as if the entry was deleted.
ExtractLedgerCloseTime gets the close time of the provided ledger.
GetAccountAddressFromMuxedAccount takes in a muxed account and returns the address of the account.
GetCheckpointNum gets the ledger sequence number of the checkpoint containing the provided ledger.
No description provided by the author
GetPassphrase returns the correct Network Passphrase based on env preference.
GetLatestLedgerSequence returns the latest ledger sequence.
No description provided by the author
GetMostRecentCheckpoint returns the most recent checkpoint before the provided ledger.
HashToHexString is utility function that converts and xdr.Hash type to a hex string.
No description provided by the author
No description provided by the author
MustArchiveFlags gets the values of the the history archive specific flags: start-ledger, output, and limit.
MustBucketFlags gets the values of the bucket list specific flags: output.
MustCloudStorageFlags gets the values of the bucket list specific flags: cloud-storage-bucket, cloud-credentials.
MustCommonFlags gets the values of the the flags common to all commands: end-ledger and strict-export.
MustCoreFlags gets the values for the core-executable, core-config, start ledger batch-size, and output flags.
MustExportTypeFlags gets the values for the export-accounts, export-offers, and export-trustlines flags.
MustFlags gets the values of the the flags for all commands.
No description provided by the author
PanicOnError is a function that panics if the provided error is not nil.
TimePointToUTCTimeStamp takes in an xdr TimePoint and converts it to a time.Time struct in UTC.
ValidateLedgerRange validates the given ledger range.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
TODO: https://stellarorg.atlassian.net/browse/HUBBLE-386 better flags/params Some flags should be named better.
No description provided by the author
# Interfaces
No description provided by the author