This assignment is designed to give you an idea of the work you'll be facing day-to-day…
- User
This assignment is designed to give you an idea of the work you'll be facing day-to-day in this role, while also providing you the opportunity to showcase your thought process and skill set. Your solution will never be used for any purposes beyond evaluation. We want you to build an app which is able to compress transactions. What is a compression? I owe you 500, we both have to reserve capital against this which we can’t use elsewhere! Let’s change that to me owing you 100. Why is this better? both of us just freed 400$ of capital. For example: const transactions = [ { tradingParty: "me", counterparty: "you", amount: -400 }, { tradingParty: "me", counterparty: "you", amount: 500 }, { tradingParty: "me", counterparty: "someone_else", amount: 100 }, ] const compressedTransactions = compress(transactions); /* compressedTransactions = [ { tradingParty: "me", counterparty: "you", amount: 100 }, { tradingParty: "me", counterparty: "someone_else", amount: 100 }, ]; */ App requirements We'll need a basic interface to add and view transactions. A valid transaction has an amount and two parties: trading party and counterparty. The app should be able to support these capabilities: Display 2 lists of all transactions grouped by: Paying transactions (amount < 0. Receiving transactions (amount > 0. Add a new transaction: A modal or dialog should open once Add new Transaction is clicked. Only valid transactions should be allowed: Counterparty should be a non empty string. Amount should be a non-zero positive integer. For the sake of this exercise the app should assume the trading party is always you, so tradingParty = "me" .
- Assistant