package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/go.git
Documentation: pkg.go.dev
# Functions
AfterLedger returns a new toid that represents the ledger time _after_ any contents (e.g.
DecodeOfferID performs the reverse operation of EncodeOfferID.
EncodeOfferId creates synthetic offer ids to be used by trade resources
This is required because stellar-core does not allocate offer ids for immediately filled offers, while clients expect them for aggregated views.
LedgerRangeInclusive returns inclusive range representation between two ledgers inclusive.
New creates a new total order ID
FIXME: I feel like since ledger sequences are uint32s, TOIDs should take that into account for the ledger parameter...
Parse parses an int64 into a TotalOrderID struct.
# Constants
LedgerMask is the bitmask to mask out ledger sequences in a TotalOrderID.
LedgerShift is the number of bits to shift an int64 to target the ledger component.
OperationMask is the bitmask to mask out operation indexes.
OperationShift is the number of bits to shift an int64 to target the operation component.
TransactionMask is the bitmask to mask out transaction indexes.
TransactionShift is the number of bits to shift an int64 to target the transaction component.