Skip to content

hanzofi/ledger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,089 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hanzo Fi Ledger

Programmable double-entry financial ledger engine. Atomic multi-posting transactions with Numscript DSL support.

Features

  • Atomic multi-posting transactions
  • Account-based modeling with metadata
  • Numscript DSL for programmable money movement
  • Immutable append-only audit trail
  • Multi-currency with arbitrary precision
  • Idempotent operations

Quick Start

docker compose up -d

curl -X POST http://localhost:3068/v2/ledger/default/transactions \
  -H "Content-Type: application/json" \
  -d '{
    "postings": [{
      "source": "world",
      "destination": "users:001",
      "amount": 10000,
      "asset": "USD/2"
    }]
  }'

Development

go build ./...
go test ./...

License

MIT — see LICENSE

About

Programmable double-entry ledger

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 96.2%
  • PLpgSQL 2.7%
  • TypeScript 0.3%
  • JavaScript 0.2%
  • Just 0.2%
  • ANTLR 0.1%
  • Other 0.3%