Versions in this module Expand all Collapse all v1 v1.0.0 Feb 22, 2024 Changes in this version + var EffectTypeNames = map[EffectType]string + func AssetFromContractData(ledgerEntry xdr.LedgerEntry, passphrase string) *xdr.Asset + func ContractBalanceFromContractData(ledgerEntry xdr.LedgerEntry, passphrase string) ([32]byte, *big.Int, bool) + func FarmHashAsset(assetCode, assetIssuer, assetType string) int64 + func GetTransactionSet(transactionEntry historyarchive.Ledger) (transactionProcessing []xdr.TransactionEnvelope) + func PoolIDToString(id xdr.PoolId) string + func TransactionProcessing(l xdr.LedgerCloseMeta) []xdr.TransactionResultMeta + type AccountOutput struct + AccountID string + Balance float64 + BuyingLiabilities float64 + ClosedAt time.Time + Deleted bool + Flags uint32 + HomeDomain string + InflationDestination string + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerSequence uint32 + MasterWeight int32 + NumSponsored uint32 + NumSponsoring uint32 + NumSubentries uint32 + SellingLiabilities float64 + SequenceLedger zero.Int + SequenceNumber int64 + SequenceTime zero.Int + Sponsor null.String + ThresholdHigh int32 + ThresholdLow int32 + ThresholdMedium int32 + func TransformAccount(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) (AccountOutput, error) + type AccountSignerOutput struct + AccountID string + ClosedAt time.Time + Deleted bool + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerSequence uint32 + Signer string + Sponsor null.String + Weight int32 + func TransformSigners(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) ([]AccountSignerOutput, error) + type AssetFromContractDataFunc func(ledgerEntry xdr.LedgerEntry, passphrase string) *xdr.Asset + type AssetOutput struct + AssetCode string + AssetID uint64 + AssetIssuer string + AssetType string + ID int64 + func TransformAsset(operation xdr.Operation, operationIndex int32, transactionIndex int32, ...) (AssetOutput, error) + type ClaimableBalanceOutput struct + AssetAmount float64 + AssetCode string + AssetID int64 + AssetIssuer string + AssetType string + BalanceID string + Claimants []Claimant + ClosedAt time.Time + Deleted bool + Flags uint32 + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerSequence uint32 + Sponsor null.String + func TransformClaimableBalance(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) (ClaimableBalanceOutput, error) + type Claimant struct + Destination string + Predicate xdr.ClaimPredicate + type ConfigSettingOutput struct + AutoBumpLedgers uint32 + BucketListSizeWindow []uint64 + BucketListSizeWindowSampleSize uint32 + BucketListTargetSizeBytes int64 + BucketListWriteFeeGrowthFactor uint32 + ClosedAt time.Time + ConfigSettingId int32 + ContractCostParamsCpuInsns []map[string]string + ContractCostParamsMemBytes []map[string]string + ContractDataEntrySizeBytes uint32 + ContractDataKeySizeBytes uint32 + ContractMaxSizeBytes uint32 + Deleted bool + EvictionScanSize uint64 + FeeContractEvents1Kb int64 + FeeHistorical1Kb int64 + FeeRatePerInstructionsIncrement int64 + FeeRead1Kb int64 + FeeReadLedgerEntry int64 + FeeTxSize1Kb int64 + FeeWriteLedgerEntry int64 + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerMaxInstructions int64 + LedgerMaxReadBytes uint32 + LedgerMaxReadLedgerEntries uint32 + LedgerMaxTxCount uint32 + LedgerMaxTxsSizeBytes uint32 + LedgerMaxWriteBytes uint32 + LedgerMaxWriteLedgerEntries uint32 + LedgerSequence uint32 + MaxEntriesToArchive uint32 + MaxEntryTtl uint32 + MinPersistentTtl uint32 + MinTemporaryTtl uint32 + PersistentRentRateDenominator int64 + StartingEvictionScanLevel uint32 + TempRentRateDenominator int64 + TxMaxContractEventsSizeBytes uint32 + TxMaxInstructions int64 + TxMaxReadBytes uint32 + TxMaxReadLedgerEntries uint32 + TxMaxSizeBytes uint32 + TxMaxWriteBytes uint32 + TxMaxWriteLedgerEntries uint32 + TxMemoryLimit uint32 + WriteFee1KbBucketListHigh int64 + WriteFee1KbBucketListLow int64 + func TransformConfigSetting(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) (ConfigSettingOutput, error) + type ContractBalanceFromContractDataFunc func(ledgerEntry xdr.LedgerEntry, passphrase string) ([32]byte, *big.Int, bool) + type ContractCodeOutput struct + ClosedAt time.Time + ContractCodeExtV int32 + ContractCodeHash string + Deleted bool + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerKeyHash string + LedgerSequence uint32 + func TransformContractCode(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) (ContractCodeOutput, error) + type ContractDataOutput struct + ClosedAt time.Time + ContractDataAssetCode string + ContractDataAssetIssuer string + ContractDataAssetType string + ContractDataBalance string + ContractDataBalanceHolder string + ContractDurability string + ContractId string + ContractKeyType string + Deleted bool + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerKeyHash string + LedgerSequence uint32 + type DiagnosticEventOutput struct + Body string + BodyV int32 + ClosedAt time.Time + ContractId string + ExtV int32 + InSuccessfulContractCall bool + LedgerSequence uint32 + TransactionHash string + TransactionID int64 + Type string + func TransformDiagnosticEvent(transaction ingest.LedgerTransaction, lhe xdr.LedgerHeaderHistoryEntry) ([]DiagnosticEventOutput, error, bool) + type DimAccount struct + Address string + ID uint64 + type DimMarket struct + BaseCode string + BaseIssuer string + CounterCode string + CounterIssuer string + ID uint64 + type DimOffer struct + Action string + BaseAmount float64 + CounterAmount float64 + DimOfferID uint64 + HorizonID int64 + MakerID uint64 + MarketID uint64 + Price float64 + type EffectOutput struct + Address string + AddressMuxed null.String + Details map[string]interface{} + LedgerClosed time.Time + OperationID int64 + Type int32 + TypeString string + func TransformEffect(transaction ingest.LedgerTransaction, ledgerSeq uint32, ...) ([]EffectOutput, error) + type EffectType int + const EffectAccountCreated + const EffectAccountCredited + const EffectAccountDebited + const EffectAccountFlagsUpdated + const EffectAccountHomeDomainUpdated + const EffectAccountInflationDestinationUpdated + const EffectAccountRemoved + const EffectAccountSponsorshipCreated + const EffectAccountSponsorshipRemoved + const EffectAccountSponsorshipUpdated + const EffectAccountThresholdsUpdated + const EffectClaimableBalanceClaimantCreated + const EffectClaimableBalanceClaimed + const EffectClaimableBalanceClawedBack + const EffectClaimableBalanceCreated + const EffectClaimableBalanceSponsorshipCreated + const EffectClaimableBalanceSponsorshipRemoved + const EffectClaimableBalanceSponsorshipUpdated + const EffectContractCredited + const EffectContractDebited + const EffectDataCreated + const EffectDataRemoved + const EffectDataSponsorshipCreated + const EffectDataSponsorshipRemoved + const EffectDataSponsorshipUpdated + const EffectDataUpdated + const EffectExtendFootprintTtl + const EffectLiquidityPoolCreated + const EffectLiquidityPoolDeposited + const EffectLiquidityPoolRemoved + const EffectLiquidityPoolRevoked + const EffectLiquidityPoolTrade + const EffectLiquidityPoolWithdrew + const EffectOfferCreated + const EffectOfferRemoved + const EffectOfferUpdated + const EffectRestoreFootprint + const EffectSequenceBumped + const EffectSignerCreated + const EffectSignerRemoved + const EffectSignerSponsorshipCreated + const EffectSignerSponsorshipRemoved + const EffectSignerSponsorshipUpdated + const EffectSignerUpdated + const EffectTrade + const EffectTrustlineCreated + const EffectTrustlineFlagsUpdated + const EffectTrustlineRemoved + const EffectTrustlineSponsorshipCreated + const EffectTrustlineSponsorshipRemoved + const EffectTrustlineSponsorshipUpdated + const EffectTrustlineUpdated + type FactOfferEvent struct + LedgerSeq uint32 + OfferInstanceID uint64 + type LedgerOutput struct + BaseFee uint32 + BaseReserve uint32 + ClosedAt time.Time + FailedTransactionCount int32 + FeePool int64 + LedgerHash string + LedgerHeader string + LedgerID int64 + MaxTxSetSize uint32 + OperationCount int32 + PreviousLedgerHash string + ProtocolVersion uint32 + Sequence uint32 + SuccessfulTransactionCount int32 + TotalCoins int64 + TransactionCount int32 + TxSetOperationCount string + func TransformLedger(inputLedger historyarchive.Ledger) (LedgerOutput, error) + type LedgerTransactionOutput struct + ClosedAt time.Time + LedgerSequence uint32 + TxEnvelope string + TxFeeMeta string + TxLedgerHistory string + TxMeta string + TxResult string + func TransformLedgerTransaction(transaction ingest.LedgerTransaction, lhe xdr.LedgerHeaderHistoryEntry) (LedgerTransactionOutput, error) + type LiquidityPoolAsset struct + AssetAAmount float64 + AssetACode string + AssetAIssuer string + AssetAType string + AssetBAmount float64 + AssetBCode string + AssetBIssuer string + AssetBType string + type NormalizedOfferOutput struct + Account DimAccount + Event FactOfferEvent + Market DimMarket + Offer DimOffer + func TransformOfferNormalized(ledgerChange ingest.Change, ledgerSeq uint32) (NormalizedOfferOutput, error) + type OfferOutput struct + Amount float64 + BuyingAssetCode string + BuyingAssetID int64 + BuyingAssetIssuer string + BuyingAssetType string + ClosedAt time.Time + Deleted bool + Flags uint32 + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerSequence uint32 + OfferID int64 + Price float64 + PriceD int32 + PriceN int32 + SellerID string + SellingAssetCode string + SellingAssetID int64 + SellingAssetIssuer string + SellingAssetType string + Sponsor null.String + func TransformOffer(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) (OfferOutput, error) + type OperationOutput struct + ClosedAt time.Time + OperationDetails map[string]interface{} + OperationID int64 + SourceAccount string + SourceAccountMuxed string + TransactionID int64 + Type int32 + TypeString string + func TransformOperation(operation xdr.Operation, operationIndex int32, ...) (OperationOutput, error) + type Path struct + AssetCode string + AssetIssuer string + AssetType string + type PoolOutput struct + AssetACode string + AssetAID int64 + AssetAIssuer string + AssetAReserve float64 + AssetAType string + AssetBCode string + AssetBID int64 + AssetBIssuer string + AssetBReserve float64 + AssetBType string + ClosedAt time.Time + Deleted bool + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerSequence uint32 + PoolFee uint32 + PoolID string + PoolShareCount float64 + PoolType string + TrustlineCount uint64 + func TransformPool(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) (PoolOutput, error) + type Price struct + Denominator int32 + Numerator int32 + type SponsorshipOutput struct + Operation xdr.Operation + OperationIndex uint32 + type TestTransaction struct + EnvelopeXDR string + FeeChangesXDR string + Hash string + Index uint32 + MetaXDR string + ResultXDR string + type TradeEffectDetails struct + BoughtAmount string + BoughtAssetCode string + BoughtAssetIssuer string + BoughtAssetType string + OfferID int64 + Seller string + SellerMuxed string + SellerMuxedID uint64 + SoldAmount string + SoldAssetCode string + SoldAssetIssuer string + SoldAssetType string + type TradeOutput struct + BuyingAccountAddress string + BuyingAmount float64 + BuyingAssetCode string + BuyingAssetID int64 + BuyingAssetIssuer string + BuyingAssetType string + BuyingOfferID null.Int + HistoryOperationID int64 + LedgerClosedAt time.Time + LiquidityPoolFee null.Int + Order int32 + PriceD int64 + PriceN int64 + RoundingSlippage null.Int + SellerIsExact null.Bool + SellingAccountAddress string + SellingAmount float64 + SellingAssetCode string + SellingAssetID int64 + SellingAssetIssuer string + SellingAssetType string + SellingLiquidityPoolID null.String + SellingOfferID null.Int + TradeType int32 + func TransformTrade(operationIndex int32, operationID int64, transaction ingest.LedgerTransaction, ...) ([]TradeOutput, error) + type TransactionOutput struct + Account string + AccountMuxed string + AccountSequence int64 + ClosedAt time.Time + CreatedAt time.Time + ExtraSigners pq.StringArray + FeeAccount string + FeeAccountMuxed string + FeeCharged int64 + InnerTransactionHash string + LedgerBounds string + LedgerSequence uint32 + MaxFee uint32 + Memo string + MemoType string + MinAccountSequence null.Int + MinAccountSequenceAge null.Int + MinAccountSequenceLedgerGap null.Int + NewMaxFee uint32 + OperationCount int32 + ResourceFee int64 + SorobanResourcesInstructions uint32 + SorobanResourcesReadBytes uint32 + SorobanResourcesWriteBytes uint32 + Successful bool + TimeBounds string + TransactionHash string + TransactionID int64 + TxEnvelope string + TxFeeMeta string + TxMeta string + TxResult string + func TransformTransaction(transaction ingest.LedgerTransaction, lhe xdr.LedgerHeaderHistoryEntry) (TransactionOutput, error) + type TransformContractDataStruct struct + AssetFromContractData AssetFromContractDataFunc + ContractBalanceFromContractData ContractBalanceFromContractDataFunc + func NewTransformContractDataStruct(assetFrom AssetFromContractDataFunc, ...) *TransformContractDataStruct + func (t *TransformContractDataStruct) TransformContractData(ledgerChange ingest.Change, passphrase string, ...) (ContractDataOutput, error, bool) + type TrustlineOutput struct + AccountID string + AssetCode string + AssetID int64 + AssetIssuer string + AssetType int32 + Balance float64 + BuyingLiabilities float64 + ClosedAt time.Time + Deleted bool + Flags uint32 + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerKey string + LedgerSequence uint32 + LiquidityPoolID string + SellingLiabilities float64 + Sponsor null.String + TrustlineLimit int64 + func TransformTrustline(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) (TrustlineOutput, error) + type TtlOutput struct + ClosedAt time.Time + Deleted bool + KeyHash string + LastModifiedLedger uint32 + LedgerEntryChange uint32 + LedgerSequence uint32 + LiveUntilLedgerSeq uint32 + func TransformTtl(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) (TtlOutput, error)