Renames custom-chain-scripts to chain-operations and extends transaction listener
Adds db/controllers and creates a new logic pattern for handling stakeholders, stock classes, stock legends, and stock plans
Adds one route per each primary object and uses the pattern from controllers to do the same thing for each object
Adds db/controllers/transactions to handle issuance and transfer
Adds is_onchain_synced to Stakeholder and Stock Class creation events (onchain first, then reflecting offchain using the transaction listener)
Creates operations for create, read, and transactions
Updates the deseed script
Improves seed script
Refactors routes/index and src/server
Why?
Uses onchain first philosophy to create issuer, stakeholder, stock class, and all transactions. Chain is the arbiter and the final record of truth. From there, data gets synced off chain.
What?
custom-chain-scripts
tochain-operations
and extends transaction listenerdb/controllers
and creates a new logic pattern for handling stakeholders, stock classes, stock legends, and stock planscontrollers
to do the same thing for each objectdb/controllers/transactions
to handle issuance and transferis_onchain_synced
to Stakeholder and Stock Class creation events (onchain first, then reflecting offchain using the transaction listener)operations
forcreate
,read
, andtransactions
deseed
scriptseed
scriptroutes/index
andsrc/server
Why?
Screenshots (optional)