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

Method TransactionExistsByRef

database/repository.go:52–52  ·  view source on GitHub ↗

Retrieves a transaction by reference

(ctx context.Context, reference string)

Source from the content-addressed store, hash-verified

50 IsParentTransactionVoid(cxt context.Context, parentID string) (bool, error) // Checks if a parent transaction is void
51 GetTransactionByRef(cxt context.Context, reference string) (model.Transaction, error) // Retrieves a transaction by reference
52 TransactionExistsByRef(ctx context.Context, reference string) (bool, error) // Checks if a transaction exists by reference
53 GetExistingTransactionReferences(ctx context.Context, references []string) (map[string]struct{}, error) // Gets existing transaction references in bulk
54 UpdateTransactionStatus(cxt context.Context, id string, status string) error // Updates the status of a transaction
55 GetAllTransactions(cxt context.Context, limit, offset int) ([]model.Transaction, error) // Retrieves all transactions

Callers 2

validateTxnMethod · 0.65
processTransactionMethod · 0.65

Implementers 2

Datasourcedatabase/db.go
MockDataSourcedatabase/mocks/repo_mocks.go

Calls

no outgoing calls

Tested by

no test coverage detected