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

Method IsParentTransactionVoid

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

Retrieves a transaction by ID

(cxt context.Context, parentID string)

Source from the content-addressed store, hash-verified

48 RecordTransactionsWithBalanceSetAndOutboxes(ctx context.Context, txns []*model.Transaction, balances []*model.Balance, outboxes []*model.LineageOutbox) ([]*model.Transaction, error)
49 GetTransaction(cxt context.Context, id string) (*model.Transaction, error) // Retrieves a transaction by ID
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

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected