This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
Extract transaction
into blockchain_transaction
#1157
Labels
flag/ethereum integration
kind/refactor ⚙️
This is only about refactoring, no new feature.
location/backend
p2/normal
This is something that should be done
Projects
Milestone
Is your feature request related to a problem? Please describe.
Currently we have
EWalletDB.Transaction
containing some local information as well as blockchain information. We're also about to haveEWalletDB.DepositTransaction
, etc. which means a lot of blockchain info will be duplicated in the database.Describe the solution you'd like
The idea is to consolidate blockchain transaction info into
EWalletDB.BlockchainTransaction
so there's only a single source of truth and keeping separation of concern between transactions and blockchain transactions.This also means that
EWalletDB.TransactionState
will also need to be refactored, but will pave way for simpler state machines.Additional context
In @mederic-p's own words:
Inputs from @T-Dnzt:
The text was updated successfully, but these errors were encountered: