From 799bc0bb2afff12eb2c2efb76284919b7aaa6da5 Mon Sep 17 00:00:00 2001 From: Joe Andrews Date: Wed, 8 Jul 2020 18:34:29 +0100 Subject: [PATCH] feat(sdk): delete w file --- packages/extension/:w | 48 ------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 packages/extension/:w diff --git a/packages/extension/:w b/packages/extension/:w deleted file mode 100644 index 9fd33257e..000000000 --- a/packages/extension/:w +++ /dev/null @@ -1,48 +0,0 @@ -const fetchOutputNotes = ({ - proofData, - proof, - signature, - signature2, -}) => { - const { - outputNotes, - remainderNote, - } = proofData || {}; - if (!outputNotes) return null; - - return { - outputNotes: outputNotes - .filter((note) => { - if (!remainderNote) return true; - return note.decryptedViewingKey !== remainderNote.decryptedViewingKey; - }) - .map(({ - noteHash, - value, - }) => ({ - noteHash, - value, - })), - }; -}; - -export default { - DEPOSIT_PROOF: [ - fetchOutputNotes, - ], - WITHDRAW_PROOF: [], - TRANSFER_PROOF: [ - fetchOutputNotes, - ], - CREATE_NOTE_FROM_BALANCE_PROOF: [ - (data) => { - const { - outputNotes, - } = fetchOutputNotes(data) || {}; - - return { - notes: outputNotes || [], - }; - }, - ], -};