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

Method GetTotalCommittedTransactions

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

Retrieves all transactions

(cxt context.Context, parentID string)

Source from the content-addressed store, hash-verified

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
56 GetTotalCommittedTransactions(cxt context.Context, parentID string) (*big.Int, error) // Gets the total count of committed transactions for a parent
57 GetTransactionsPaginated(ctx context.Context, id string, batchSize int, offset int64) ([]*model.Transaction, error) // Retrieves transactions in a paginated manner
58 GetInflightTransactionsByParentID(ctx context.Context, parentTransactionID string, batchSize int, offset int64) ([]*model.Transaction, error) // Retrieves inflight transactions by parent ID
59 GetRefundableTransactionsByParentID(ctx context.Context, parentTransactionID string, batchSize int, offset int64) ([]*model.Transaction, error) // Retrieves refundable transactions by parent ID

Callers 1

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected