Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolOutput ¶
type PoolOutput struct { PoolID string `json:"liquidity_pool_id"` PoolType string `json:"type"` PoolFee uint32 `json:"fee"` TrustlineCount uint64 `json:"trustline_count"` AssetAType string `json:"asset_a_type"` AssetACode string `json:"asset_a_code"` AssetAIssuer string `json:"asset_a_issuer"` AssetAReserve float64 `json:"asset_a_amount"` AssetAID int64 `json:"asset_a_id"` AssetBType string `json:"asset_b_type"` AssetBCode string `json:"asset_b_code"` AssetBIssuer string `json:"asset_b_issuer"` AssetBReserve float64 `json:"asset_b_amount"` AssetBID int64 `json:"asset_b_id"` LastModifiedLedger uint32 `json:"last_modified_ledger"` LedgerEntryChange uint32 `json:"ledger_entry_change"` Deleted bool `json:"deleted"` ClosedAt time.Time `json:"closed_at"` LedgerSequence uint32 `json:"ledger_sequence"` }
PoolOutput is a representation of a liquidity pool that aligns with the Bigquery table liquidity_pools
func TransformPool ¶
func TransformPool(ledgerChange ingest.Change, header xdr.LedgerHeaderHistoryEntry) (PoolOutput, error)
TransformPool converts an liquidity pool ledger change entry into a form suitable for BigQuery
Click to show internal directories.
Click to hide internal directories.