hypha-dao / accounting-contracts

Double entry accounting contracts for decentralized organizations on the Hypha platform
MIT License
0 stars 0 forks source link

Create account & transaction actions #6

Closed Gerard097 closed 3 years ago

Gerard097 commented 3 years ago

Contains implementation for addledger, create and transact actions. I had to include transact implementation here in order to support opening balances for new accounts.

It will add a ledger account to the root node

example input:

image

Creates a new account, and also creates a transaction for the opening balances if any.

Example input without opening balances:

image

and with opening balances:

image

Verifies if the transaction is balance (all postings add to zero) or if there is an implied component.

Example input:

image