multivendor-wallet
v0.0.3
Published
Install-and-use wallet plugin with ledger engine, TypeORM store, lifecycle hooks, and HTTP routes for multi-vendor marketplaces
Maintainers
Readme
multivendor-wallet
Framework-agnostic wallet ledger engine for multi-vendor marketplaces.
Operations
credit/debit— adjust available balance (integer minor units / paise)hold/release/cancelHold— escrow lifecycletransfer— atomic debit + creditgetBalance—{ available, held, total }wheretotal = available + held
Host integration
Implement IWalletStore with your persistence layer (TypeORM adapter ships in Myownbazaar_server). Pass { nativeTx: entityManager } to join an existing database transaction.
Publish
pnpm run build && pnpm run test
# tag: wallet-v0.0.1