Skip to content

Commit

Permalink
feat: initial core deposit and credit facility work (#1144)
Browse files Browse the repository at this point in the history
* chore(core-deposit): DepositAccount boilerplate

* chore(deposit): deposit entity

* test: dummy perms wip

* test: use DummyPerms in deposit test

* test: account -> balance integration

* chore(deposit): add DepositLedger

* chore: record_deposit template

* chore: execute record_deposit template

* chore: impl balance usecase

* chore: templates for withdraw use case

* chore: include deposit in sqlx-prepare

* chore: run sqlx prepare

* refactor: rename AccountHolderId -> DepositAccountHolderId

* chore: withdrawal entity in core

* chore: impl withdrawal usecases

* chore: sqlx-prepare

* fix: add instrumentation to credit_facility.list

* chore: clippy

* chore: CreditLedger boilerplate

* chore: create credit facility accounts

* chore: run sqlx-prepare

* chore: move get_credit_facility_balance

* chore: add / remove collateral templates

* chore: fix name

---------

Co-authored-by: bodymindarts <justin@galoy.io>
Co-authored-by: Vaibhav <thevaibhavdixit@gmail.com>
  • Loading branch information
3 people authored Dec 13, 2024
1 parent e80fa99 commit bc7cd83
Show file tree
Hide file tree
Showing 186 changed files with 6,662 additions and 1,171 deletions.
401 changes: 335 additions & 66 deletions Cargo.lock

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ members = [
"core/user",
"core/governance",
"core/money",
"core/deposit",

"lib/authz",
"lib/audit",
Expand All @@ -22,8 +23,12 @@ members = [
]

[workspace.dependencies]
es-entity = "0.3.1"
sim-time = "0.3.1"
es-entity = { git = "https://github.com/galoymoney/cala.git", branch = "main" }
sim-time = { git = "https://github.com/galoymoney/cala.git", branch = "main" }
cala-ledger = { git = "https://github.com/galoymoney/cala.git", branch = "main" }
# es-entity = "0.3.1"
# sim-time = "0.3.1"
# cala-ledger = "0.3.1"

anyhow = "1.0.92"
async-graphql = { version = "7.0.11", default-features = false, features = ["dataloader", "tracing", "chrono", "playground"] }
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ sqlx-prepare:
cd lib/outbox && cargo sqlx prepare
cd core/governance && cargo sqlx prepare
cd core/user && cargo sqlx prepare
cd core/deposit && cargo sqlx prepare
cd lana/app && cargo sqlx prepare
cd lana/dashboard && cargo sqlx prepare

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bc7cd83

Please sign in to comment.