MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / getOrCreateBalanceByIndicator

Method getOrCreateBalanceByIndicator

balance.go:136–191  ·  view source on GitHub ↗

getOrCreateBalanceByIndicator retrieves a balance by its indicator and currency. If the balance does not exist, it creates a new one. It starts a tracing span, fetches or creates the balance, and records relevant events. When EnableQueuedChecks is enabled in the transaction config, it will fetch the

(ctx context.Context, indicator, currency string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 6

CreateBalanceMethod · 0.95
FetchFunction · 0.92
GetBalanceByIndicatorMethod · 0.65
GetBalanceByIDMethod · 0.65
StartMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected