Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transaction-engine

This is a simple project representing a simple transaction engine to track the balance of clients.

The engine is only concerned with processing provided transactions. Things like retention of transition data for audit purposes or authorization are out of scope for this project.

Documentation

The code is thoroughly documented. You can build and read the documentation via:

cargo doc --no-deps --open

Run

This crate contains a binary for processing transactions listed in a CSV file. Examples can be found in the assets/ folder. Output of the engine is a list of the account balances of each client. The output is printed to stdout. Logs are printed to stderr. To run the application use cargo's default run command and provide a valid CSV file:

cargo run -- assets/transactions.csv > accounts.csv

The application also provides a --help option for further options and infos:

cargo run -- --help

Developed with AI

The transaction engine was written with inline suggestions by free-tier copilot.

A final audit was performed with Claude Haiku 4.5 using the following prompt:

You are an auditor.
Check the whole repository ensure docs are correct and align with what the code actually does.
Ensure sufficient test coverage.
Identify potential issues.

The audit did not found any critical issues after a few fixes.

About

Simple toy transaction engine.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages