Arin Turpin 6 years ago
parent
commit
be01e8ad70
51 changed files with 14295 additions and 13489 deletions
  1. 97
    1
      .idea/workspace.xml
  2. 1
    1
      ZipCoinRedIonicClient/.sourcemaps/0.js.map
  3. 4
    0
      ZipCoinRedIonicClient/.sourcemaps/main.js.map
  4. 3
    4
      ZipCoinRedIonicClient/ionic.config.json
  5. 0
    1
      ZipCoinRedIonicClient/src/app/app.component.ts
  6. 2
    0
      ZipCoinRedIonicClient/src/app/app.module.ts
  7. 8
    0
      ZipCoinRedIonicClient/src/model/transaction.ts
  8. 0
    1
      ZipCoinRedIonicClient/src/pages/home/home.ts
  9. 17
    0
      ZipCoinRedIonicClient/src/pages/transaction/transaction.html
  10. 11
    1
      ZipCoinRedIonicClient/src/pages/transaction/transaction.ts
  11. 3
    1
      ZipCoinRedIonicClient/src/pages/wallet/wallet.module.ts
  12. 11
    1
      ZipCoinRedIonicClient/src/pages/wallet/wallet.ts
  13. 22
    0
      ZipCoinRedIonicClient/src/providers/transaction-service.ts
  14. 0
    25
      ZipCoinRedIonicClient/www/build/.ion-diagnostic-typescript.html
  15. 6
    3
      ZipCoinRedIonicClient/www/build/0.js
  16. 1
    1
      ZipCoinRedIonicClient/www/build/0.js.map
  17. 2
    2
      ZipCoinRedIonicClient/www/build/1.js
  18. 1
    1
      ZipCoinRedIonicClient/www/build/2.js
  19. 2
    2
      ZipCoinRedIonicClient/www/build/3.js
  20. 208
    54
      ZipCoinRedIonicClient/www/build/main.js
  21. 5
    1
      ZipCoinRedIonicClient/www/build/main.js.map
  22. 13372
    13371
      ZipCoinRedIonicClient/www/build/vendor.js
  23. 5
    1
      ZipCoinRedIonicClient/www/build/vendor.js.map
  24. 315
    0
      ZipCoinRedJavaServer/.idea/workspace.xml
  25. 0
    2
      ZipCoinRedJavaServer/pom.xml
  26. 24
    0
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/ZipCoinApp.java
  27. 40
    1
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/TransactionLoader.java
  28. 31
    13
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java
  29. 1
    0
      ZipCoinRedJavaServer/src/main/resources/application.properties
  30. 2
    1
      ZipCoinRedJavaServer/target/classes/application.properties
  31. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/ZipCoinApp.class
  32. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/config/BlockLoader.class
  33. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/config/TransactionLoader.class
  34. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/config/WalletLoader.class
  35. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/BlockController.class
  36. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/HomeController.class
  37. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/TransactionController.class
  38. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/WalletController.class
  39. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Block.class
  40. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Chain.class
  41. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Transaction.class
  42. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Wallet.class
  43. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/BlockRepository.class
  44. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/TransactionRepository.class
  45. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/WalletRepository.class
  46. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/Miner.class
  47. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/StringUtil.class
  48. 16
    0
      ZipCoinRedJavaServer/target/classes/db/migration/V2__create_block.sql
  49. 51
    0
      src/main/java/redCoin/Main.java
  50. 34
    0
      src/test/java/redCoin/testMain.java
  51. BIN
      target/test-classes/redCoin/testMain.class

+ 97
- 1
.idea/workspace.xml View File

27
   </component>
27
   </component>
28
   <component name="FileEditorManager">
28
   <component name="FileEditorManager">
29
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
29
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
30
+<<<<<<< HEAD
31
+      <file leaf-file-name="TransactionAndWalletTest.java" pinned="false" current-in-tab="false">
32
+        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java">
33
+          <provider selected="true" editor-type-id="text-editor">
34
+            <state relative-caret-position="91">
35
+              <caret line="15" selection-start-line="15" selection-end-line="15" />
36
+=======
30
       <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
37
       <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
31
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
38
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
32
           <provider selected="true" editor-type-id="text-editor">
39
           <provider selected="true" editor-type-id="text-editor">
55
                 <element signature="e#1170#1171#0" expanded="true" />
62
                 <element signature="e#1170#1171#0" expanded="true" />
56
                 <element signature="e#1209#1210#0" expanded="true" />
63
                 <element signature="e#1209#1210#0" expanded="true" />
57
               </folding>
64
               </folding>
65
+>>>>>>> dev
58
             </state>
66
             </state>
59
           </provider>
67
           </provider>
60
         </entry>
68
         </entry>
61
       </file>
69
       </file>
70
+<<<<<<< HEAD
71
+      <file leaf-file-name="PersistenceConfiguration.java" pinned="false" current-in-tab="true">
72
+        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/PersistenceConfiguration.java">
73
+          <provider selected="true" editor-type-id="text-editor">
74
+            <state relative-caret-position="90">
75
+              <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
76
+=======
62
       <file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
77
       <file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
63
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/application.properties">
78
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/application.properties">
64
           <provider selected="true" editor-type-id="text-editor">
79
           <provider selected="true" editor-type-id="text-editor">
65
             <state relative-caret-position="45">
80
             <state relative-caret-position="45">
66
               <caret line="3" selection-start-line="3" selection-end-line="3" />
81
               <caret line="3" selection-start-line="3" selection-end-line="3" />
82
+>>>>>>> dev
67
             </state>
83
             </state>
68
           </provider>
84
           </provider>
69
         </entry>
85
         </entry>
71
       <file leaf-file-name="Transaction.java" pinned="false" current-in-tab="false">
87
       <file leaf-file-name="Transaction.java" pinned="false" current-in-tab="false">
72
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
88
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
73
           <provider selected="true" editor-type-id="text-editor">
89
           <provider selected="true" editor-type-id="text-editor">
90
+<<<<<<< HEAD
91
+            <state>
92
+              <caret column="1" selection-start-column="1" selection-end-column="1" />
93
+=======
74
             <state relative-caret-position="232">
94
             <state relative-caret-position="232">
75
               <caret line="34" column="27" selection-start-line="34" selection-start-column="27" selection-end-line="34" selection-end-column="27" />
95
               <caret line="34" column="27" selection-start-line="34" selection-start-column="27" selection-end-line="34" selection-end-column="27" />
96
+>>>>>>> dev
76
             </state>
97
             </state>
77
           </provider>
98
           </provider>
78
         </entry>
99
         </entry>
213
   </component>
234
   </component>
214
   <component name="ProjectFrameBounds">
235
   <component name="ProjectFrameBounds">
215
     <option name="y" value="23" />
236
     <option name="y" value="23" />
237
+<<<<<<< HEAD
238
+    <option name="width" value="1280" />
239
+    <option name="height" value="702" />
240
+  </component>
241
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true">
242
+    <ConfirmationsSetting value="2" id="Add" />
243
+=======
216
     <option name="width" value="1426" />
244
     <option name="width" value="1426" />
217
     <option name="height" value="804" />
245
     <option name="height" value="804" />
246
+>>>>>>> dev
218
   </component>
247
   </component>
219
   <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
248
   <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
220
   <component name="ProjectView">
249
   <component name="ProjectView">
222
       <foldersAlwaysOnTop value="true" />
251
       <foldersAlwaysOnTop value="true" />
223
     </navigator>
252
     </navigator>
224
     <panes>
253
     <panes>
254
+<<<<<<< HEAD
255
+      <pane id="PackagesPane" />
256
+=======
225
       <pane id="AndroidView" />
257
       <pane id="AndroidView" />
258
+>>>>>>> dev
226
       <pane id="ProjectPane">
259
       <pane id="ProjectPane">
227
         <subPane>
260
         <subPane>
228
           <expand>
261
           <expand>
269
           <select />
302
           <select />
270
         </subPane>
303
         </subPane>
271
       </pane>
304
       </pane>
305
+<<<<<<< HEAD
306
+      <pane id="Scope" />
307
+      <pane id="AndroidView" />
308
+=======
272
       <pane id="PackagesPane" />
309
       <pane id="PackagesPane" />
273
       <pane id="Scope" />
310
       <pane id="Scope" />
311
+>>>>>>> dev
274
       <pane id="Course" />
312
       <pane id="Course" />
275
     </panes>
313
     </panes>
276
   </component>
314
   </component>
473
       <workItem from="1531837614306" duration="20000" />
511
       <workItem from="1531837614306" duration="20000" />
474
       <workItem from="1532024920972" duration="1933000" />
512
       <workItem from="1532024920972" duration="1933000" />
475
       <workItem from="1532095197895" duration="1931000" />
513
       <workItem from="1532095197895" duration="1931000" />
514
+<<<<<<< HEAD
515
+      <workItem from="1532704326578" duration="306000" />
516
+=======
476
       <workItem from="1532460873998" duration="385000" />
517
       <workItem from="1532460873998" duration="385000" />
477
       <workItem from="1532523890378" duration="1028000" />
518
       <workItem from="1532523890378" duration="1028000" />
478
       <workItem from="1532528099328" duration="14938000" />
519
       <workItem from="1532528099328" duration="14938000" />
479
       <workItem from="1532701223355" duration="2106000" />
520
       <workItem from="1532701223355" duration="2106000" />
521
+>>>>>>> dev
480
     </task>
522
     </task>
481
     <servers />
523
     <servers />
482
   </component>
524
   </component>
510
     </history-entry>
552
     </history-entry>
511
   </component>
553
   </component>
512
   <component name="TimeTrackingManager">
554
   <component name="TimeTrackingManager">
555
+<<<<<<< HEAD
556
+    <option name="totallyTimeSpent" value="18491000" />
557
+  </component>
558
+  <component name="ToolWindowManager">
559
+    <frame x="0" y="23" width="1280" height="702" extended-state="0" />
560
+=======
513
     <option name="totallyTimeSpent" value="40895000" />
561
     <option name="totallyTimeSpent" value="40895000" />
514
   </component>
562
   </component>
515
   <component name="ToolWindowManager">
563
   <component name="ToolWindowManager">
516
     <frame x="0" y="23" width="1426" height="804" extended-state="0" />
564
     <frame x="0" y="23" width="1426" height="804" extended-state="0" />
517
     <editor active="true" />
565
     <editor active="true" />
566
+>>>>>>> dev
518
     <layout>
567
     <layout>
519
       <window_info anchor="right" id="Palette" order="3" />
568
       <window_info anchor="right" id="Palette" order="3" />
520
       <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
569
       <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
523
       <window_info id="Capture Tool" order="2" />
572
       <window_info id="Capture Tool" order="2" />
524
       <window_info id="Designer" order="2" />
573
       <window_info id="Designer" order="2" />
525
       <window_info anchor="right" id="Database" order="3" />
574
       <window_info anchor="right" id="Database" order="3" />
575
+<<<<<<< HEAD
576
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
577
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
578
+      <window_info id="UI Designer" order="2" />
579
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
580
+      <window_info anchor="bottom" id="TODO" order="6" />
581
+=======
526
       <window_info id="Structure" order="1" sideWeight="0.17450981" side_tool="true" visible="true" weight="0.2550578" />
582
       <window_info id="Structure" order="1" sideWeight="0.17450981" side_tool="true" visible="true" weight="0.2550578" />
527
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
583
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
528
       <window_info id="UI Designer" order="2" />
584
       <window_info id="UI Designer" order="2" />
529
       <window_info anchor="bottom" id="Debug" order="3" weight="0.39886847" />
585
       <window_info anchor="bottom" id="Debug" order="3" weight="0.39886847" />
530
       <window_info anchor="bottom" id="TODO" order="6" />
586
       <window_info anchor="bottom" id="TODO" order="6" />
531
       <window_info anchor="bottom" id="Messages" order="9" weight="0.3289256" />
587
       <window_info anchor="bottom" id="Messages" order="9" weight="0.3289256" />
588
+>>>>>>> dev
532
       <window_info anchor="right" id="Palette&#9;" order="3" />
589
       <window_info anchor="right" id="Palette&#9;" order="3" />
533
       <window_info id="Image Layers" order="2" />
590
       <window_info id="Image Layers" order="2" />
534
       <window_info anchor="bottom" id="Java Enterprise" order="8" />
591
       <window_info anchor="bottom" id="Java Enterprise" order="8" />
535
       <window_info anchor="right" id="Capture Analysis" order="3" />
592
       <window_info anchor="right" id="Capture Analysis" order="3" />
536
       <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
593
       <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
594
+<<<<<<< HEAD
595
+      <window_info anchor="bottom" id="Run" order="2" weight="0.0" />
596
+      <window_info anchor="bottom" id="Spring" order="9" />
597
+      <window_info active="true" anchor="bottom" id="Terminal" order="7" visible="true" weight="0.4" />
598
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.28109854" />
599
+=======
537
       <window_info anchor="bottom" id="Run" order="2" weight="0.3493635" />
600
       <window_info anchor="bottom" id="Run" order="2" weight="0.3493635" />
538
       <window_info anchor="bottom" id="Spring" order="9" weight="0.32956153" />
601
       <window_info anchor="bottom" id="Spring" order="9" weight="0.32956153" />
539
       <window_info anchor="bottom" id="Terminal" order="7" visible="true" weight="0.27864215" />
602
       <window_info anchor="bottom" id="Terminal" order="7" visible="true" weight="0.27864215" />
540
       <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.8254902" visible="true" weight="0.2550578" />
603
       <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.8254902" visible="true" weight="0.2550578" />
604
+>>>>>>> dev
541
       <window_info anchor="right" id="Bean Validation" order="4" />
605
       <window_info anchor="right" id="Bean Validation" order="4" />
542
       <window_info id="Web" order="4" side_tool="true" />
606
       <window_info id="Web" order="4" side_tool="true" />
543
       <window_info anchor="right" id="Theme Preview" order="3" />
607
       <window_info anchor="right" id="Theme Preview" order="3" />
546
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
610
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
547
       <window_info anchor="bottom" id="Message" order="0" />
611
       <window_info anchor="bottom" id="Message" order="0" />
548
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
612
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
613
+<<<<<<< HEAD
614
+      <window_info anchor="bottom" id="Messages" order="9" weight="0.3298969" />
615
+=======
616
+>>>>>>> dev
549
       <window_info id="Learn" order="5" />
617
       <window_info id="Learn" order="5" />
550
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
618
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
551
       <window_info anchor="bottom" id="Find" order="1" weight="0.32954547" />
619
       <window_info anchor="bottom" id="Find" order="1" weight="0.32954547" />
552
     </layout>
620
     </layout>
553
     <layout-to-restore>
621
     <layout-to-restore>
554
       <window_info anchor="right" id="Palette" order="3" />
622
       <window_info anchor="right" id="Palette" order="3" />
623
+<<<<<<< HEAD
624
+      <window_info anchor="bottom" id="Find" order="1" />
625
+=======
626
+>>>>>>> dev
555
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
627
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
556
       <window_info anchor="right" id="Capture Analysis" order="4" />
628
       <window_info anchor="right" id="Capture Analysis" order="4" />
557
       <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
629
       <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
571
       <window_info anchor="right" id="Palette&#9;" order="7" />
643
       <window_info anchor="right" id="Palette&#9;" order="7" />
572
       <window_info anchor="bottom" id="Terminal" order="8" sideWeight="0.49919224" weight="0.65384614" />
644
       <window_info anchor="bottom" id="Terminal" order="8" sideWeight="0.49919224" weight="0.65384614" />
573
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
645
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
646
+<<<<<<< HEAD
647
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
648
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
649
+=======
574
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
650
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
575
       <window_info anchor="bottom" id="Version Control" order="10" />
651
       <window_info anchor="bottom" id="Version Control" order="10" />
652
+>>>>>>> dev
576
       <window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.50080776" side_tool="true" weight="0.30936456" />
653
       <window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.50080776" side_tool="true" weight="0.30936456" />
577
       <window_info id="Capture Tool" order="5" />
654
       <window_info id="Capture Tool" order="5" />
578
       <window_info anchor="bottom" id="Message" order="0" />
655
       <window_info anchor="bottom" id="Message" order="0" />
633
         </state>
710
         </state>
634
       </provider>
711
       </provider>
635
     </entry>
712
     </entry>
713
+<<<<<<< HEAD
714
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/chain/test/chainTest.java">
715
+=======
636
     <entry file="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot/1.3.1.RELEASE/spring-boot-1.3.1.RELEASE.jar!/org/springframework/boot/SpringApplication.class">
716
     <entry file="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot/1.3.1.RELEASE/spring-boot-1.3.1.RELEASE.jar!/org/springframework/boot/SpringApplication.class">
637
       <provider selected="true" editor-type-id="text-editor">
717
       <provider selected="true" editor-type-id="text-editor">
638
         <state>
718
         <state>
641
       </provider>
721
       </provider>
642
     </entry>
722
     </entry>
643
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/block/test/BlockTest.java">
723
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/block/test/BlockTest.java">
724
+>>>>>>> dev
644
       <provider selected="true" editor-type-id="text-editor">
725
       <provider selected="true" editor-type-id="text-editor">
645
         <state relative-caret-position="308">
726
         <state relative-caret-position="308">
646
           <caret line="32" column="5" selection-start-line="32" selection-start-column="5" selection-end-line="32" selection-end-column="5" />
727
           <caret line="32" column="5" selection-start-line="32" selection-start-column="5" selection-end-line="32" selection-end-column="5" />
762
     </entry>
843
     </entry>
763
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
844
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
764
       <provider selected="true" editor-type-id="text-editor">
845
       <provider selected="true" editor-type-id="text-editor">
846
+<<<<<<< HEAD
847
+        <state>
848
+          <caret column="1" selection-start-column="1" selection-end-column="1" />
849
+=======
765
         <state relative-caret-position="232">
850
         <state relative-caret-position="232">
766
           <caret line="34" column="27" selection-start-line="34" selection-start-column="27" selection-end-line="34" selection-end-column="27" />
851
           <caret line="34" column="27" selection-start-line="34" selection-start-column="27" selection-end-line="34" selection-end-column="27" />
852
+>>>>>>> dev
767
         </state>
853
         </state>
768
       </provider>
854
       </provider>
769
     </entry>
855
     </entry>
770
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
856
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
771
       <provider selected="true" editor-type-id="text-editor">
857
       <provider selected="true" editor-type-id="text-editor">
858
+<<<<<<< HEAD
859
+        <state relative-caret-position="91">
860
+          <caret line="15" selection-start-line="15" selection-end-line="15" />
861
+=======
772
         <state relative-caret-position="285">
862
         <state relative-caret-position="285">
773
           <caret line="19" column="29" selection-start-line="19" selection-start-column="29" selection-end-line="19" selection-end-column="29" />
863
           <caret line="19" column="29" selection-start-line="19" selection-start-column="29" selection-end-line="19" selection-end-column="29" />
774
           <folding>
864
           <folding>
781
             <element signature="e#622#623#0" expanded="true" />
871
             <element signature="e#622#623#0" expanded="true" />
782
             <element signature="e#664#665#0" expanded="true" />
872
             <element signature="e#664#665#0" expanded="true" />
783
           </folding>
873
           </folding>
874
+>>>>>>> dev
784
         </state>
875
         </state>
785
       </provider>
876
       </provider>
786
     </entry>
877
     </entry>
787
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/PersistenceConfiguration.java">
878
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/PersistenceConfiguration.java">
788
       <provider selected="true" editor-type-id="text-editor">
879
       <provider selected="true" editor-type-id="text-editor">
880
+<<<<<<< HEAD
881
+        <state relative-caret-position="90">
882
+          <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
883
+=======
789
         <state relative-caret-position="270">
884
         <state relative-caret-position="270">
790
           <caret line="18" column="23" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
885
           <caret line="18" column="23" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
791
         </state>
886
         </state>
809
       <provider selected="true" editor-type-id="text-editor">
904
       <provider selected="true" editor-type-id="text-editor">
810
         <state relative-caret-position="60">
905
         <state relative-caret-position="60">
811
           <caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
906
           <caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
907
+>>>>>>> dev
812
         </state>
908
         </state>
813
       </provider>
909
       </provider>
814
     </entry>
910
     </entry>
900
       </state>
996
       </state>
901
     </states>
997
     </states>
902
   </component>
998
   </component>
903
-</project>
999
+</project>

+ 1
- 1
ZipCoinRedIonicClient/.sourcemaps/0.js.map View File

1
-{"version":3,"sources":["../../src/pages/wallet/wallet.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACV;AAUtC;IAAA;IAA+B,CAAC;IAAnB,gBAAgB;QAR5B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,2DAAU;aACX;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,2DAAU,CAAC;aACrC;SACF,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAA;AAAH","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { WalletPage } from './wallet';\n\n@NgModule({\n  declarations: [\n    WalletPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(WalletPage),\n  ],\n})\nexport class WalletPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/wallet/wallet.module.ts"],"sourceRoot":""}
1
+{"version":3,"sources":["../../src/pages/wallet/wallet.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAyC;AACO;AACV;AACmC;AAWzE;IAAA;IAA+B,CAAC;IAAnB,gBAAgB;QAT5B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,2DAAU;aACX;YACD,OAAO,EAAE;gBACP,0FAAkB;gBAClB,sEAAe,CAAC,QAAQ,CAAC,2DAAU,CAAC;aACrC;SACF,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAA;AAAH","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { WalletPage } from './wallet';\nimport { TransactionService } from '../../providers/transaction-service';\n\n@NgModule({\n  declarations: [\n    WalletPage,\n  ],\n  imports: [\n    TransactionService,\n    IonicPageModule.forChild(WalletPage),\n  ]\n})\nexport class WalletPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/wallet/wallet.module.ts"],"sourceRoot":""}

+ 4
- 0
ZipCoinRedIonicClient/.sourcemaps/main.js.map
File diff suppressed because it is too large
View File


+ 3
- 4
ZipCoinRedIonicClient/ionic.config.json View File

1
 {
1
 {
2
   "name": "ZipCoinRed",
2
   "name": "ZipCoinRed",
3
-  "app_id": "",
4
-  "type": "ionic-angular",
5
-  "integrations": {}
6
-}
3
+  "integrations": {},
4
+  "type": "ionic-angular"
5
+}

+ 0
- 1
ZipCoinRedIonicClient/src/app/app.component.ts View File

2
 import { Platform } from 'ionic-angular';
2
 import { Platform } from 'ionic-angular';
3
 import { StatusBar } from '@ionic-native/status-bar';
3
 import { StatusBar } from '@ionic-native/status-bar';
4
 import { SplashScreen } from '@ionic-native/splash-screen';
4
 import { SplashScreen } from '@ionic-native/splash-screen';
5
-import { HomePage } from '../pages/home/home';
6
 import { TabsPage } from '../pages/tabs/tabs';
5
 import { TabsPage } from '../pages/tabs/tabs';
7
 @Component({
6
 @Component({
8
   templateUrl: 'app.html'
7
   templateUrl: 'app.html'

+ 2
- 0
ZipCoinRedIonicClient/src/app/app.module.ts View File

12
 import { TransactionPage } from '../pages/transaction/transaction';
12
 import { TransactionPage } from '../pages/transaction/transaction';
13
 import { TabsPage } from '../pages/tabs/tabs';
13
 import { TabsPage } from '../pages/tabs/tabs';
14
 import { Tab4Page } from '../pages/tab4/tab4';
14
 import { Tab4Page } from '../pages/tab4/tab4';
15
+import { TransactionService } from '../providers/transaction-service';
15
 
16
 
16
 @NgModule({
17
 @NgModule({
17
   declarations: [
18
   declarations: [
40
     StatusBar,
41
     StatusBar,
41
     SplashScreen,
42
     SplashScreen,
42
     BlockService,
43
     BlockService,
44
+    TransactionService,
43
     {provide: ErrorHandler, useClass: IonicErrorHandler}
45
     {provide: ErrorHandler, useClass: IonicErrorHandler}
44
   ]
46
   ]
45
 })
47
 })

+ 8
- 0
ZipCoinRedIonicClient/src/model/transaction.ts View File

1
+export class Transaction{
2
+    constructor(
3
+        public transactionId : string,
4
+        public sender : string,
5
+        public recipient : string,
6
+        public value : number,
7
+    ){}
8
+ }

+ 0
- 1
ZipCoinRedIonicClient/src/pages/home/home.ts View File

1
 import { Component } from '@angular/core';
1
 import { Component } from '@angular/core';
2
 import { NavController } from 'ionic-angular';
2
 import { NavController } from 'ionic-angular';
3
 import { BlockService } from '../../providers/block-service';
3
 import { BlockService } from '../../providers/block-service';
4
-import { WalletPage } from '../wallet/wallet';
5
 @Component({
4
 @Component({
6
   selector: 'page-home',
5
   selector: 'page-home',
7
   templateUrl: 'home.html'
6
   templateUrl: 'home.html'

+ 17
- 0
ZipCoinRedIonicClient/src/pages/transaction/transaction.html View File

15
 
15
 
16
 <ion-content padding>
16
 <ion-content padding>
17
 
17
 
18
+    <ion-list>
19
+        <ion-item-sliding *ngFor="let transaction of transactions">
20
+          <ion-item>
21
+            <ion-card>
22
+                <ion-card-header>
23
+                  Transaction #: {{transaction.transactionId}}
24
+                </ion-card-header>
25
+                <ion-card-content>
26
+                  <div>Sender: {{ transaction.sender }}</div>
27
+                  <div>Recipient: {{ block.recipient }}</div>
28
+                  <div>Amount: {{ block.amount }}</div>
29
+                </ion-card-content>
30
+            </ion-card>
31
+          </ion-item>
32
+        </ion-item-sliding>
33
+      </ion-list>
34
+
18
 </ion-content>
35
 </ion-content>

+ 11
- 1
ZipCoinRedIonicClient/src/pages/transaction/transaction.ts View File

1
 import { Component } from '@angular/core';
1
 import { Component } from '@angular/core';
2
 import { IonicPage, NavController, NavParams } from 'ionic-angular';
2
 import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
+import { TransactionService } from '../../providers/transaction-service';
3
 
4
 
4
 /**
5
 /**
5
  * Generated class for the TransactionPage page.
6
  * Generated class for the TransactionPage page.
15
 })
16
 })
16
 export class TransactionPage {
17
 export class TransactionPage {
17
 
18
 
18
-  constructor(public navCtrl: NavController, public navParams: NavParams) {
19
+  private transactions : Array<any>;
20
+
21
+  constructor(public navCtrl: NavController, public navParams: NavParams,
22
+  public transactionService: TransactionService){
19
   }
23
   }
20
 
24
 
21
   ionViewDidLoad() {
25
   ionViewDidLoad() {
22
     console.log('ionViewDidLoad TransactionPage');
26
     console.log('ionViewDidLoad TransactionPage');
23
   }
27
   }
24
 
28
 
29
+  getAllTransactions() {
30
+    this.transactionService.getAllTransactions().subscribe(transactions => {
31
+      this.transactions = transactions;
32
+    })
33
+  }
34
+
25
 }
35
 }

+ 3
- 1
ZipCoinRedIonicClient/src/pages/wallet/wallet.module.ts View File

1
 import { NgModule } from '@angular/core';
1
 import { NgModule } from '@angular/core';
2
 import { IonicPageModule } from 'ionic-angular';
2
 import { IonicPageModule } from 'ionic-angular';
3
 import { WalletPage } from './wallet';
3
 import { WalletPage } from './wallet';
4
+import { TransactionService } from '../../providers/transaction-service';
4
 
5
 
5
 @NgModule({
6
 @NgModule({
6
   declarations: [
7
   declarations: [
7
     WalletPage,
8
     WalletPage,
8
   ],
9
   ],
9
   imports: [
10
   imports: [
11
+    TransactionService,
10
     IonicPageModule.forChild(WalletPage),
12
     IonicPageModule.forChild(WalletPage),
11
-  ],
13
+  ]
12
 })
14
 })
13
 export class WalletPageModule {}
15
 export class WalletPageModule {}

+ 11
- 1
ZipCoinRedIonicClient/src/pages/wallet/wallet.ts View File

1
 import { Component } from '@angular/core';
1
 import { Component } from '@angular/core';
2
 import { IonicPage, NavController, NavParams } from 'ionic-angular';
2
 import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
+import { TransactionService } from '../../providers/transaction-service';
4
+import { Transaction } from '../../model/transaction';
5
+import { FormGroup } from '@angular/forms';
3
 
6
 
4
 /**
7
 /**
5
  * Generated class for the WalletPage page.
8
  * Generated class for the WalletPage page.
15
 })
18
 })
16
 export class WalletPage {
19
 export class WalletPage {
17
 
20
 
18
-  constructor(public navCtrl: NavController, public navParams: NavParams) {
21
+  transactionForm : FormGroup;
22
+  transaction : Transaction;
23
+
24
+  constructor(public navCtrl: NavController, public navParams: NavParams, public transactionService: TransactionService) {
19
   }
25
   }
20
 
26
 
21
   ionViewDidLoad() {
27
   ionViewDidLoad() {
22
     console.log('ionViewDidLoad WalletPage');
28
     console.log('ionViewDidLoad WalletPage');
23
   }
29
   }
24
 
30
 
31
+  createTransaction(){
32
+    this.transactionService.createTransaction(this.transaction);
33
+  }
34
+
25
 }
35
 }

+ 22
- 0
ZipCoinRedIonicClient/src/providers/transaction-service.ts View File

1
+import { Injectable } from "@angular/core";
2
+import { HttpClient } from "@angular/common/http";
3
+import { Observable } from "rxjs/Observable";
4
+import { Transaction } from "../model/transaction";
5
+
6
+@Injectable()
7
+export class TransactionService{
8
+ public API = 'http://localhost:8080/api/v1';
9
+ public TRANSACTION_API = this.API + '/transactions';
10
+ 
11
+ constructor(public http: HttpClient) {
12
+ }
13
+
14
+ createTransaction(transaction: Transaction) : Observable<Transaction> {
15
+     return this.http.post<Transaction>(this.TRANSACTION_API, transaction);
16
+ }
17
+
18
+ getAllTransactions() : Observable<any> {
19
+    return this.http.get(this.TRANSACTION_API)
20
+  }
21
+
22
+}

+ 0
- 25
ZipCoinRedIonicClient/www/build/.ion-diagnostic-typescript.html View File

1
-<div class="ion-diagnostic">
2
-<div class="ion-diagnostic-masthead" title="typescript error: 2307">
3
-<div class="ion-diagnostic-title">Typescript Error</div>
4
-<div class="ion-diagnostic-message" data-error-code="typescript-2307">Cannot find module &#039;../block/home&#039;.</div>
5
-</div>
6
-<div class="ion-diagnostic-file">
7
-<div class="ion-diagnostic-file-header" title="/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.ts">src/pages/tabs/tabs.ts</div>
8
-<div class="ion-diagnostic-blob">
9
-<table class="ion-diagnostic-table">
10
-<tr>
11
-<td class="ion-diagnostic-blob-num" data-line-number="2"></td>
12
-<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { NavController, NavParams } from <span class="hljs-string">'ionic-angular'</span>;</td>
13
-</tr>
14
-<tr class="ion-diagnostic-error-line">
15
-<td class="ion-diagnostic-blob-num" data-line-number="3"></td>
16
-<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { HomePage } from <span class="hljs-string"><span class="ion-diagnostics-error-chr">'</span><span class="ion-diagnostics-error-chr">.</span><span class="ion-diagnostics-error-chr">.</span><span class="ion-diagnostics-error-chr">/</span><span class="ion-diagnostics-error-chr">b</span><span class="ion-diagnostics-error-chr">l</span><span class="ion-diagnostics-error-chr">o</span><span class="ion-diagnostics-error-chr">c</span><span class="ion-diagnostics-error-chr">k</span><span class="ion-diagnostics-error-chr">/</span><span class="ion-diagnostics-error-chr">h</span><span class="ion-diagnostics-error-chr">o</span><span class="ion-diagnostics-error-chr">m</span><span class="ion-diagnostics-error-chr">e</span><span class="ion-diagnostics-error-chr">'</span></span>;</td>
17
-</tr>
18
-<tr>
19
-<td class="ion-diagnostic-blob-num" data-line-number="4"></td>
20
-<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { WalletPage } from <span class="hljs-string">'../wallet/wallet'</span>;</td>
21
-</tr>
22
-</table>
23
-</div>
24
-</div>
25
-</div>

+ 6
- 3
ZipCoinRedIonicClient/www/build/0.js View File

1
 webpackJsonp([0],{
1
 webpackJsonp([0],{
2
 
2
 
3
-/***/ 282:
3
+/***/ 283:
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
5
 
6
 "use strict";
6
 "use strict";
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WalletPageModule", function() { return WalletPageModule; });
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WalletPageModule", function() { return WalletPageModule; });
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet__ = __webpack_require__(102);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet__ = __webpack_require__(103);
12
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(50);
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
18
 
19
 
19
 
20
 
20
 
21
 
22
+
21
 var WalletPageModule = /** @class */ (function () {
23
 var WalletPageModule = /** @class */ (function () {
22
     function WalletPageModule() {
24
     function WalletPageModule() {
23
     }
25
     }
27
                 __WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */],
29
                 __WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */],
28
             ],
30
             ],
29
             imports: [
31
             imports: [
32
+                __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__["a" /* TransactionService */],
30
                 __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */]),
33
                 __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */]),
31
-            ],
34
+            ]
32
         })
35
         })
33
     ], WalletPageModule);
36
     ], WalletPageModule);
34
     return WalletPageModule;
37
     return WalletPageModule;

+ 1
- 1
ZipCoinRedIonicClient/www/build/0.js.map View File

1
-{"version":3,"sources":["../../src/pages/wallet/wallet.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACV;AAUtC;IAAA;IAA+B,CAAC;IAAnB,gBAAgB;QAR5B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,2DAAU;aACX;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,2DAAU,CAAC;aACrC;SACF,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAA;AAAH","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { WalletPage } from './wallet';\n\n@NgModule({\n  declarations: [\n    WalletPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(WalletPage),\n  ],\n})\nexport class WalletPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/wallet/wallet.module.ts"],"sourceRoot":""}
1
+{"version":3,"sources":["../../src/pages/wallet/wallet.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAyC;AACO;AACV;AACmC;AAWzE;IAAA;IAA+B,CAAC;IAAnB,gBAAgB;QAT5B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,2DAAU;aACX;YACD,OAAO,EAAE;gBACP,0FAAkB;gBAClB,sEAAe,CAAC,QAAQ,CAAC,2DAAU,CAAC;aACrC;SACF,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAA;AAAH","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { WalletPage } from './wallet';\nimport { TransactionService } from '../../providers/transaction-service';\n\n@NgModule({\n  declarations: [\n    WalletPage,\n  ],\n  imports: [\n    TransactionService,\n    IonicPageModule.forChild(WalletPage),\n  ]\n})\nexport class WalletPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/wallet/wallet.module.ts"],"sourceRoot":""}

+ 2
- 2
ZipCoinRedIonicClient/www/build/1.js View File

1
 webpackJsonp([1],{
1
 webpackJsonp([1],{
2
 
2
 
3
-/***/ 280:
3
+/***/ 282:
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
5
 
6
 "use strict";
6
 "use strict";
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transaction__ = __webpack_require__(100);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transaction__ = __webpack_require__(104);
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);

+ 1
- 1
ZipCoinRedIonicClient/www/build/2.js View File

8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabsPageModule", function() { return TabsPageModule; });
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabsPageModule", function() { return TabsPageModule; });
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tabs__ = __webpack_require__(101);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tabs__ = __webpack_require__(102);
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);

+ 2
- 2
ZipCoinRedIonicClient/www/build/3.js View File

1
 webpackJsonp([3],{
1
 webpackJsonp([3],{
2
 
2
 
3
-/***/ 279:
3
+/***/ 280:
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
5
 
6
 "use strict";
6
 "use strict";
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tab4PageModule", function() { return Tab4PageModule; });
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tab4PageModule", function() { return Tab4PageModule; });
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tab4__ = __webpack_require__(99);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tab4__ = __webpack_require__(101);
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);

+ 208
- 54
ZipCoinRedIonicClient/www/build/main.js View File

1
 webpackJsonp([4],{
1
 webpackJsonp([4],{
2
 
2
 
3
-/***/ 100:
3
+/***/ 101:
4
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
5
+
6
+"use strict";
7
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
8
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
9
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
10
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
11
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
13
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
15
+};
16
+var __metadata = (this && this.__metadata) || function (k, v) {
17
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
18
+};
19
+
20
+
21
+/**
22
+ * Generated class for the Tab4Page page.
23
+ *
24
+ * See https://ionicframework.com/docs/components/#navigation for more info on
25
+ * Ionic pages and navigation.
26
+ */
27
+var Tab4Page = /** @class */ (function () {
28
+    function Tab4Page(navCtrl, navParams) {
29
+        this.navCtrl = navCtrl;
30
+        this.navParams = navParams;
31
+    }
32
+    Tab4Page.prototype.ionViewDidLoad = function () {
33
+        console.log('ionViewDidLoad Tab4Page');
34
+    };
35
+    Tab4Page = __decorate([
36
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
37
+            selector: 'page-tab4',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/'<!--\n  Generated template for the Tab4Page page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>tab4</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/,
38
+        }),
39
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
40
+    ], Tab4Page);
41
+    return Tab4Page;
42
+}());
43
+
44
+//# sourceMappingURL=tab4.js.map
45
+
46
+/***/ }),
47
+
48
+/***/ 102:
49
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
50
+
51
+"use strict";
52
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
53
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
54
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
55
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
56
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
57
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
58
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
59
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
60
+};
61
+var __metadata = (this && this.__metadata) || function (k, v) {
62
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
63
+};
64
+
65
+
66
+/**
67
+ * Generated class for the TransactionPage page.
68
+ *
69
+ * See https://ionicframework.com/docs/components/#navigation for more info on
70
+ * Ionic pages and navigation.
71
+ */
72
+var TransactionPage = /** @class */ (function () {
73
+    function TransactionPage(navCtrl, navParams) {
74
+        this.navCtrl = navCtrl;
75
+        this.navParams = navParams;
76
+    }
77
+    TransactionPage.prototype.ionViewDidLoad = function () {
78
+        console.log('ionViewDidLoad TransactionPage');
79
+    };
80
+    TransactionPage = __decorate([
81
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
82
+            selector: 'page-transaction',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<!--\n  Generated template for the TransactionPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>Transaction</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
83
+        }),
84
+        __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]) === "function" && _b || Object])
85
+    ], TransactionPage);
86
+    return TransactionPage;
87
+    var _a, _b;
88
+}());
89
+
90
+//# sourceMappingURL=transaction.js.map
91
+
92
+/***/ }),
93
+
94
+/***/ 101:
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
95
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
96
 
6
 "use strict";
97
 "use strict";
7
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
98
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
8
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
99
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
100
+<<<<<<< HEAD
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(157);
101
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(157);
10
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(101);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(102);
102
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(102);
103
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(100);
12
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(99);
104
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(99);
105
+=======
106
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(159);
107
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(103);
108
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(104);
109
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(101);
110
+>>>>>>> posttransaction
13
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
111
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
14
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
112
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
113
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
33
     }
131
     }
34
     TabsPage = __decorate([
132
     TabsPage = __decorate([
35
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
133
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
36
-            selector: 'page-tabs',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/'<ion-tabs>\n  <ion-tab [root]="homePage" tabTitle="ZipCoin-BlockChain" tabIcon="link"></ion-tab>\n  <ion-tab [root]="walletPage" tabTitle="ZipCoin Wallet" tabIcon="cash"></ion-tab>\n  <ion-tab [root]="transactionPage" tabTitle="ZipCoin Transactions" tabIcon="contacts"></ion-tab>\n  <ion-tab [root]="tab4" tabTitle="Ziptab" tabIcon="star"></ion-tab>\n\n</ion-tabs>'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/,
134
+            selector: 'page-tabs',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/'<ion-tabs>\n  <ion-tab [root]="homePage" tabTitle="ZipCoin-BlockChain" tabIcon="link"></ion-tab>\n  <ion-tab [root]="walletPage" tabTitle="ZipCoin Wallet" tabIcon="cash"></ion-tab>\n  <ion-tab [root]="transactionPage" tabTitle="ZipCoin Transactions" tabIcon="contacts"></ion-tab>\n  <ion-tab [root]="tab4" tabTitle="Ziptab" tabIcon="star"></ion-tab>\n\n</ion-tabs>'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/,
37
         }),
135
         }),
38
         __metadata("design:paramtypes", [])
136
         __metadata("design:paramtypes", [])
39
     ], TabsPage);
137
     ], TabsPage);
44
 
142
 
45
 /***/ }),
143
 /***/ }),
46
 
144
 
47
-/***/ 101:
145
+<<<<<<< HEAD
146
+/***/ 102:
147
+=======
148
+/***/ 103:
149
+>>>>>>> posttransaction
48
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
150
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
49
 
151
 
50
 "use strict";
152
 "use strict";
51
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
153
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
52
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
154
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
53
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
155
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
156
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
54
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
157
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
55
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
158
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
56
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
159
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
 };
165
 };
63
 
166
 
64
 
167
 
168
+
65
 /**
169
 /**
66
  * Generated class for the WalletPage page.
170
  * Generated class for the WalletPage page.
67
  *
171
  *
69
  * Ionic pages and navigation.
173
  * Ionic pages and navigation.
70
  */
174
  */
71
 var WalletPage = /** @class */ (function () {
175
 var WalletPage = /** @class */ (function () {
72
-    function WalletPage(navCtrl, navParams) {
176
+    function WalletPage(navCtrl, navParams, transactionService) {
73
         this.navCtrl = navCtrl;
177
         this.navCtrl = navCtrl;
74
         this.navParams = navParams;
178
         this.navParams = navParams;
179
+        this.transactionService = transactionService;
75
     }
180
     }
76
     WalletPage.prototype.ionViewDidLoad = function () {
181
     WalletPage.prototype.ionViewDidLoad = function () {
77
         console.log('ionViewDidLoad WalletPage');
182
         console.log('ionViewDidLoad WalletPage');
78
     };
183
     };
184
+    WalletPage.prototype.createTransaction = function () {
185
+        this.transactionService.createTransaction(this.transaction);
186
+    };
79
     WalletPage = __decorate([
187
     WalletPage = __decorate([
80
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
188
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
81
-            selector: 'page-wallet',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/'<!--\n  Generated template for the WalletPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>Wallet</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n\n  \n  <ion-item>\n      <ion-label>Name</ion-label>\n      <ion-select [(ngModel)]="name">\n        <ion-option value="navya">navya</ion-option>\n        <ion-option value="aleena">aleena</ion-option>\n      </ion-select>\n     </ion-item>\n     <ion-item>\n        <ion-label>current balance</ion-label>\n        <ion-input></ion-input>\n      </ion-item>\n      <ion-item>\n          <ion-label>Public Key</ion-label>\n          <ion-input></ion-input>\n        </ion-item>\n      <br>\n      <br>\n      <div class = "bar bar-subheader bar-assertive">\n          <h2 class = "title">Payment</h2>\n       </div>\n       <ion-item>\n          <ion-label>From</ion-label>\n          <ion-select [(ngModel)]="name">\n            <ion-option value="navya">navya</ion-option>\n            <ion-option value="aleena">aleena</ion-option>\n          </ion-select>\n         </ion-item>\n         <ion-item>\n            <ion-label>To</ion-label>\n            <ion-select [(ngModel)]="to">\n              <ion-option value="navya">navya</ion-option>\n              <ion-option value="aleena">aleena</ion-option>\n            </ion-select>\n           </ion-item>\n      \n          <ion-item>\n              <ion-label>Amount</ion-label>\n              <ion-input></ion-input>\n            </ion-item>\n            <br>\n            <button ion-button>Pay</button>\n</ion-content>\n'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/,
189
+            selector: 'page-wallet',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/'<!--\n  Generated template for the WalletPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>Wallet</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n\n  \n  <ion-item>\n      <ion-label>Name</ion-label>\n      <ion-select [(ngModel)]="name">\n        <ion-option value="navya">navya</ion-option>\n        <ion-option value="aleena">aleena</ion-option>\n      </ion-select>\n     </ion-item>\n     <ion-item>\n        <ion-label>current balance</ion-label>\n        <ion-input></ion-input>\n      </ion-item>\n      <ion-item>\n          <ion-label>Public Key</ion-label>\n          <ion-input></ion-input>\n        </ion-item>\n      <br>\n      <br>\n      <div class = "bar bar-subheader bar-assertive">\n          <h2 class = "title">Payment</h2>\n       </div>\n       <ion-item>\n          <ion-label>From</ion-label>\n          <ion-select [(ngModel)]="name">\n            <ion-option value="navya">navya</ion-option>\n            <ion-option value="aleena">aleena</ion-option>\n          </ion-select>\n         </ion-item>\n         <ion-item>\n            <ion-label>To</ion-label>\n            <ion-select [(ngModel)]="to">\n              <ion-option value="navya">navya</ion-option>\n              <ion-option value="aleena">aleena</ion-option>\n            </ion-select>\n           </ion-item>\n      \n          <ion-item>\n              <ion-label>Amount</ion-label>\n              <ion-input></ion-input>\n            </ion-item>\n            <br>\n            <button ion-button>Pay</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/,
82
         }),
190
         }),
83
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
191
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
84
     ], WalletPage);
192
     ], WalletPage);
85
     return WalletPage;
193
     return WalletPage;
86
 }());
194
 }());
89
 
197
 
90
 /***/ }),
198
 /***/ }),
91
 
199
 
92
-/***/ 102:
200
+<<<<<<< HEAD
201
+/***/ 114:
202
+=======
203
+/***/ 104:
93
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
94
 
205
 
95
 "use strict";
206
 "use strict";
96
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
207
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
97
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
208
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
98
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
209
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
210
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
99
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
211
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
100
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
212
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
101
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
213
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
107
 };
219
 };
108
 
220
 
109
 
221
 
222
+
110
 /**
223
 /**
111
  * Generated class for the TransactionPage page.
224
  * Generated class for the TransactionPage page.
112
  *
225
  *
114
  * Ionic pages and navigation.
227
  * Ionic pages and navigation.
115
  */
228
  */
116
 var TransactionPage = /** @class */ (function () {
229
 var TransactionPage = /** @class */ (function () {
117
-    function TransactionPage(navCtrl, navParams) {
230
+    function TransactionPage(navCtrl, navParams, transactionService) {
118
         this.navCtrl = navCtrl;
231
         this.navCtrl = navCtrl;
119
         this.navParams = navParams;
232
         this.navParams = navParams;
233
+        this.transactionService = transactionService;
120
     }
234
     }
121
     TransactionPage.prototype.ionViewDidLoad = function () {
235
     TransactionPage.prototype.ionViewDidLoad = function () {
122
         console.log('ionViewDidLoad TransactionPage');
236
         console.log('ionViewDidLoad TransactionPage');
123
     };
237
     };
238
+    TransactionPage.prototype.getAllTransactions = function () {
239
+        var _this = this;
240
+        this.transactionService.getAllTransactions().subscribe(function (transactions) {
241
+            _this.transactions = transactions;
242
+        });
243
+    };
124
     TransactionPage = __decorate([
244
     TransactionPage = __decorate([
125
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
245
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
126
-            selector: 'page-transaction',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<!--\n  Generated template for the TransactionPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>Transaction</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
246
+            selector: 'page-transaction',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<!--\n  Generated template for the TransactionPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>Transaction</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n    <ion-list>\n        <ion-item-sliding *ngFor="let transaction of transactions">\n          <ion-item>\n            <ion-card>\n                <ion-card-header>\n                  Transaction #: {{transaction.transactionId}}\n                </ion-card-header>\n                <ion-card-content>\n                  <div>Sender: {{ transaction.sender }}</div>\n                  <div>Recipient: {{ block.recipient }}</div>\n                  <div>Amount: {{ block.amount }}</div>\n                </ion-card-content>\n            </ion-card>\n          </ion-item>\n        </ion-item-sliding>\n      </ion-list>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
127
         }),
247
         }),
128
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
248
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */],
249
+            __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
129
     ], TransactionPage);
250
     ], TransactionPage);
130
     return TransactionPage;
251
     return TransactionPage;
131
 }());
252
 }());
134
 
255
 
135
 /***/ }),
256
 /***/ }),
136
 
257
 
137
-/***/ 114:
258
+/***/ 116:
259
+>>>>>>> posttransaction
138
 /***/ (function(module, exports) {
260
 /***/ (function(module, exports) {
139
 
261
 
140
 function webpackEmptyAsyncContext(req) {
262
 function webpackEmptyAsyncContext(req) {
147
 webpackEmptyAsyncContext.keys = function() { return []; };
269
 webpackEmptyAsyncContext.keys = function() { return []; };
148
 webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
270
 webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
149
 module.exports = webpackEmptyAsyncContext;
271
 module.exports = webpackEmptyAsyncContext;
150
-webpackEmptyAsyncContext.id = 114;
272
+webpackEmptyAsyncContext.id = 116;
151
 
273
 
152
 /***/ }),
274
 /***/ }),
153
 
275
 
154
-/***/ 156:
276
+/***/ 158:
155
 /***/ (function(module, exports, __webpack_require__) {
277
 /***/ (function(module, exports, __webpack_require__) {
156
 
278
 
157
 var map = {
279
 var map = {
158
 	"../pages/tab4/tab4.module": [
280
 	"../pages/tab4/tab4.module": [
159
-		279,
281
+		280,
160
 		3
282
 		3
161
 	],
283
 	],
162
 	"../pages/tabs/tabs.module": [
284
 	"../pages/tabs/tabs.module": [
163
-		280,
285
+		281,
164
 		2
286
 		2
165
 	],
287
 	],
166
 	"../pages/transaction/transaction.module": [
288
 	"../pages/transaction/transaction.module": [
167
-		281,
289
+<<<<<<< HEAD
290
+		280,
291
+=======
292
+		282,
293
+>>>>>>> posttransaction
168
 		1
294
 		1
169
 	],
295
 	],
170
 	"../pages/wallet/wallet.module": [
296
 	"../pages/wallet/wallet.module": [
171
-		282,
297
+		283,
172
 		0
298
 		0
173
 	]
299
 	]
174
 };
300
 };
183
 webpackAsyncContext.keys = function webpackAsyncContextKeys() {
309
 webpackAsyncContext.keys = function webpackAsyncContextKeys() {
184
 	return Object.keys(map);
310
 	return Object.keys(map);
185
 };
311
 };
186
-webpackAsyncContext.id = 156;
312
+webpackAsyncContext.id = 158;
187
 module.exports = webpackAsyncContext;
313
 module.exports = webpackAsyncContext;
188
 
314
 
189
 /***/ }),
315
 /***/ }),
190
 
316
 
191
-/***/ 157:
317
+/***/ 159:
192
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
318
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
193
 
319
 
194
 "use strict";
320
 "use strict";
195
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
321
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
196
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
322
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
197
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
323
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
198
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(158);
324
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(160);
199
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
325
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
200
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
326
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
201
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
327
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
235
     };
361
     };
236
     HomePage = __decorate([
362
     HomePage = __decorate([
237
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
363
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
238
-            selector: 'page-home',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      ZipCoin BlockChain\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n\n  <ion-list>\n    <ion-item-sliding *ngFor="let block of blocks">\n      <ion-item>\n        <ion-card>\n            <ion-card-header>\n              Block #: {{block.blockNumber}}\n            </ion-card-header>\n            <ion-card-content>\n              <div>Nonce: {{ block.nonce }}</div>\n              <div>Data: {{ block.transactionList }}</div>\n              <div>Previous Hash: {{ block.previousHash }}</div>\n              <div>Current Hash: {{ block.currentHash }}</div>\n              <button ion-button (click)="getMinedBlock(block.id)">Mine</button>\n            </ion-card-content>\n        </ion-card>\n      </ion-item>\n    </ion-item-sliding>\n  </ion-list>\n\n</ion-content>'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
364
+            selector: 'page-home',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      ZipCoin BlockChain\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n\n  <ion-list>\n    <ion-item-sliding *ngFor="let block of blocks">\n      <ion-item>\n        <ion-card>\n            <ion-card-header>\n              Block #: {{block.blockNumber}}\n            </ion-card-header>\n            <ion-card-content>\n              <div>Nonce: {{ block.nonce }}</div>\n              <div>Data: {{ block.transactionList }}</div>\n              <div>Previous Hash: {{ block.previousHash }}</div>\n              <div>Current Hash: {{ block.currentHash }}</div>\n              <button ion-button (click)="getMinedBlock(block.id)">Mine</button>\n            </ion-card-content>\n        </ion-card>\n      </ion-item>\n    </ion-item-sliding>\n  </ion-list>\n\n</ion-content>'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
239
         }),
365
         }),
240
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
366
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
241
     ], HomePage);
367
     ], HomePage);
252
 
378
 
253
 /***/ }),
379
 /***/ }),
254
 
380
 
255
-/***/ 158:
381
+/***/ 160:
256
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
382
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
257
 
383
 
258
 "use strict";
384
 "use strict";
259
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BlockService; });
385
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BlockService; });
260
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(159);
386
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(78);
261
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
387
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
262
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
388
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
263
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
389
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
296
 
422
 
297
 /***/ }),
423
 /***/ }),
298
 
424
 
299
-/***/ 203:
425
+/***/ 204:
300
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
426
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
301
 
427
 
302
 "use strict";
428
 "use strict";
303
 Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
429
 Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
304
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(204);
305
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(224);
430
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(205);
431
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(225);
306
 
432
 
307
 
433
 
308
 Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
434
 Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
310
 
436
 
311
 /***/ }),
437
 /***/ }),
312
 
438
 
313
-/***/ 224:
439
+/***/ 225:
314
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
440
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
315
 
441
 
316
 "use strict";
442
 "use strict";
318
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
444
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
319
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
445
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
320
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(28);
446
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(28);
447
+<<<<<<< HEAD
321
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
448
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
322
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(202);
449
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(202);
323
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(278);
450
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(278);
324
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(159);
451
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(159);
325
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(158);
452
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(158);
326
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(157);
453
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(157);
327
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(101);
328
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(102);
329
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(100);
454
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(102);
455
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(100);
456
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(101);
330
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(99);
457
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(99);
458
+=======
459
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
460
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(203);
461
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(279);
462
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(78);
463
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(160);
464
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(159);
465
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(103);
466
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(104);
467
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(102);
468
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(101);
469
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__ = __webpack_require__(50);
470
+>>>>>>> posttransaction
331
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
471
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
332
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
472
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
333
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
473
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
347
 
487
 
348
 
488
 
349
 
489
 
490
+
350
 var AppModule = /** @class */ (function () {
491
 var AppModule = /** @class */ (function () {
351
     function AppModule() {
492
     function AppModule() {
352
     }
493
     }
366
                 __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */], {}, {
507
                 __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */], {}, {
367
                     links: [
508
                     links: [
368
                         { loadChildren: '../pages/tab4/tab4.module#Tab4PageModule', name: 'Tab4Page', segment: 'tab4', priority: 'low', defaultHistory: [] },
509
                         { loadChildren: '../pages/tab4/tab4.module#Tab4PageModule', name: 'Tab4Page', segment: 'tab4', priority: 'low', defaultHistory: [] },
369
-                        { loadChildren: '../pages/tabs/tabs.module#TabsPageModule', name: 'TabsPage', segment: 'tabs', priority: 'low', defaultHistory: [] },
370
                         { loadChildren: '../pages/transaction/transaction.module#TransactionPageModule', name: 'TransactionPage', segment: 'transaction', priority: 'low', defaultHistory: [] },
510
                         { loadChildren: '../pages/transaction/transaction.module#TransactionPageModule', name: 'TransactionPage', segment: 'transaction', priority: 'low', defaultHistory: [] },
511
+                        { loadChildren: '../pages/tabs/tabs.module#TabsPageModule', name: 'TabsPage', segment: 'tabs', priority: 'low', defaultHistory: [] },
371
                         { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
512
                         { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
372
                     ]
513
                     ]
373
                 })
514
                 })
385
                 __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
526
                 __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
386
                 __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
527
                 __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
387
                 __WEBPACK_IMPORTED_MODULE_7__providers_block_service__["a" /* BlockService */],
528
                 __WEBPACK_IMPORTED_MODULE_7__providers_block_service__["a" /* BlockService */],
529
+                __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__["a" /* TransactionService */],
388
                 { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] }
530
                 { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] }
389
             ]
531
             ]
390
         })
532
         })
396
 
538
 
397
 /***/ }),
539
 /***/ }),
398
 
540
 
399
-/***/ 278:
541
+/***/ 279:
400
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
542
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
401
 
543
 
402
 "use strict";
544
 "use strict";
403
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
545
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
404
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
546
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
405
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
547
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
548
+<<<<<<< HEAD
406
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(202);
549
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(202);
407
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
550
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
408
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(100);
551
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(101);
552
+=======
553
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(203);
554
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
555
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(102);
556
+>>>>>>> posttransaction
409
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
557
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
410
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
558
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
411
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
559
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
431
         });
579
         });
432
     }
580
     }
433
     MyApp = __decorate([
581
     MyApp = __decorate([
434
-        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/
582
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/
435
         }),
583
         }),
436
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
584
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
437
     ], MyApp);
585
     ], MyApp);
442
 
590
 
443
 /***/ }),
591
 /***/ }),
444
 
592
 
445
-/***/ 99:
593
+/***/ 50:
446
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
594
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
447
 
595
 
448
 "use strict";
596
 "use strict";
449
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
597
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionService; });
450
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
598
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
451
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
599
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__(78);
452
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
600
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
453
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
601
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
454
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
602
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
460
 };
608
 };
461
 
609
 
462
 
610
 
463
-/**
464
- * Generated class for the Tab4Page page.
465
- *
466
- * See https://ionicframework.com/docs/components/#navigation for more info on
467
- * Ionic pages and navigation.
468
- */
469
-var Tab4Page = /** @class */ (function () {
470
-    function Tab4Page(navCtrl, navParams) {
471
-        this.navCtrl = navCtrl;
472
-        this.navParams = navParams;
611
+var TransactionService = /** @class */ (function () {
612
+    function TransactionService(http) {
613
+        this.http = http;
614
+        this.API = 'http://localhost:8080/api/v1';
615
+        this.TRANSACTION_API = this.API + '/transactions';
473
     }
616
     }
474
-    Tab4Page.prototype.ionViewDidLoad = function () {
475
-        console.log('ionViewDidLoad Tab4Page');
617
+    TransactionService.prototype.createTransaction = function (transaction) {
618
+        return this.http.post(this.TRANSACTION_API, transaction);
476
     };
619
     };
620
+<<<<<<< HEAD
477
     Tab4Page = __decorate([
621
     Tab4Page = __decorate([
478
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
622
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
479
-            selector: 'page-tab4',template:/*ion-inline-start:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/'<!--\n  Generated template for the Tab4Page page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>tab4</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/,
623
+            selector: 'page-tab4',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/'<!--\n  Generated template for the Tab4Page page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>tab4</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/,
480
         }),
624
         }),
481
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
625
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
482
     ], Tab4Page);
626
     ], Tab4Page);
483
     return Tab4Page;
627
     return Tab4Page;
628
+=======
629
+    TransactionService.prototype.getAllTransactions = function () {
630
+        return this.http.get(this.TRANSACTION_API);
631
+    };
632
+    TransactionService = __decorate([
633
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
634
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_common_http__["a" /* HttpClient */]])
635
+    ], TransactionService);
636
+    return TransactionService;
637
+>>>>>>> posttransaction
484
 }());
638
 }());
485
 
639
 
486
-//# sourceMappingURL=tab4.js.map
640
+//# sourceMappingURL=transaction-service.js.map
487
 
641
 
488
 /***/ })
642
 /***/ })
489
 
643
 
490
-},[203]);
644
+},[204]);
491
 //# sourceMappingURL=main.js.map
645
 //# sourceMappingURL=main.js.map

+ 5
- 1
ZipCoinRedIonicClient/www/build/main.js.map
File diff suppressed because it is too large
View File


+ 13372
- 13371
ZipCoinRedIonicClient/www/build/vendor.js
File diff suppressed because it is too large
View File


+ 5
- 1
ZipCoinRedIonicClient/www/build/vendor.js.map
File diff suppressed because it is too large
View File


+ 315
- 0
ZipCoinRedJavaServer/.idea/workspace.xml View File

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="0142cf83-c97a-4389-9211-4113dcc9aea5" name="Default" comment="" />
5
+    <ignored path="$PROJECT_DIR$/target/" />
6
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7
+    <option name="TRACKING_ENABLED" value="true" />
8
+    <option name="SHOW_DIALOG" value="false" />
9
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+    <option name="LAST_RESOLUTION" value="IGNORE" />
12
+  </component>
13
+  <component name="FileEditorManager">
14
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
15
+      <file leaf-file-name="Miner.java" pinned="false" current-in-tab="false">
16
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Miner.java">
17
+          <provider selected="true" editor-type-id="text-editor">
18
+            <state relative-caret-position="345">
19
+              <caret line="23" column="16" selection-start-line="23" selection-start-column="16" selection-end-line="23" selection-end-column="16" />
20
+            </state>
21
+          </provider>
22
+        </entry>
23
+      </file>
24
+      <file leaf-file-name="BlockLoader.java" pinned="false" current-in-tab="true">
25
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/config/BlockLoader.java">
26
+          <provider selected="true" editor-type-id="text-editor">
27
+            <state relative-caret-position="-57">
28
+              <caret line="10" column="17" selection-start-line="10" selection-start-column="17" selection-end-line="10" selection-end-column="17" />
29
+              <folding>
30
+                <element signature="imports" expanded="true" />
31
+              </folding>
32
+            </state>
33
+          </provider>
34
+        </entry>
35
+      </file>
36
+      <file leaf-file-name="BlockRepository.java" pinned="false" current-in-tab="false">
37
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/BlockRepository.java">
38
+          <provider selected="true" editor-type-id="text-editor">
39
+            <state relative-caret-position="60">
40
+              <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
41
+            </state>
42
+          </provider>
43
+        </entry>
44
+      </file>
45
+      <file leaf-file-name="Block.java" pinned="false" current-in-tab="false">
46
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
47
+          <provider selected="true" editor-type-id="text-editor">
48
+            <state relative-caret-position="75">
49
+              <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
50
+            </state>
51
+          </provider>
52
+        </entry>
53
+      </file>
54
+    </leaf>
55
+  </component>
56
+  <component name="IdeDocumentHistory">
57
+    <option name="CHANGED_PATHS">
58
+      <list>
59
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Miner.java" />
60
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/config/BlockLoader.java" />
61
+      </list>
62
+    </option>
63
+  </component>
64
+  <component name="MavenImportPreferences">
65
+    <option name="importingSettings">
66
+      <MavenImportingSettings>
67
+        <option name="importAutomatically" value="true" />
68
+      </MavenImportingSettings>
69
+    </option>
70
+  </component>
71
+  <component name="ProjectView">
72
+    <navigator proportions="" version="1">
73
+      <foldersAlwaysOnTop value="true" />
74
+    </navigator>
75
+    <panes>
76
+      <pane id="PackagesPane" />
77
+      <pane id="AndroidView" />
78
+      <pane id="Scope" />
79
+      <pane id="ProjectPane">
80
+        <subPane>
81
+          <expand>
82
+            <path>
83
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
84
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
85
+            </path>
86
+            <path>
87
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
88
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
89
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
90
+            </path>
91
+            <path>
92
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
93
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
94
+              <item name="src" type="462c0819:PsiDirectoryNode" />
95
+            </path>
96
+            <path>
97
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
98
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
99
+              <item name="src" type="462c0819:PsiDirectoryNode" />
100
+              <item name="main" type="462c0819:PsiDirectoryNode" />
101
+            </path>
102
+            <path>
103
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
104
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
105
+              <item name="src" type="462c0819:PsiDirectoryNode" />
106
+              <item name="main" type="462c0819:PsiDirectoryNode" />
107
+              <item name="java" type="462c0819:PsiDirectoryNode" />
108
+            </path>
109
+            <path>
110
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
111
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
112
+              <item name="src" type="462c0819:PsiDirectoryNode" />
113
+              <item name="main" type="462c0819:PsiDirectoryNode" />
114
+              <item name="java" type="462c0819:PsiDirectoryNode" />
115
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
116
+            </path>
117
+            <path>
118
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
119
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
120
+              <item name="src" type="462c0819:PsiDirectoryNode" />
121
+              <item name="main" type="462c0819:PsiDirectoryNode" />
122
+              <item name="java" type="462c0819:PsiDirectoryNode" />
123
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
124
+              <item name="config" type="462c0819:PsiDirectoryNode" />
125
+            </path>
126
+            <path>
127
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
128
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
129
+              <item name="src" type="462c0819:PsiDirectoryNode" />
130
+              <item name="main" type="462c0819:PsiDirectoryNode" />
131
+              <item name="java" type="462c0819:PsiDirectoryNode" />
132
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
133
+              <item name="model" type="462c0819:PsiDirectoryNode" />
134
+            </path>
135
+            <path>
136
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
137
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
138
+              <item name="src" type="462c0819:PsiDirectoryNode" />
139
+              <item name="main" type="462c0819:PsiDirectoryNode" />
140
+              <item name="java" type="462c0819:PsiDirectoryNode" />
141
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
142
+              <item name="repository" type="462c0819:PsiDirectoryNode" />
143
+            </path>
144
+          </expand>
145
+          <select />
146
+        </subPane>
147
+      </pane>
148
+    </panes>
149
+  </component>
150
+  <component name="RunDashboard">
151
+    <option name="ruleStates">
152
+      <list>
153
+        <RuleState>
154
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
155
+        </RuleState>
156
+        <RuleState>
157
+          <option name="name" value="StatusDashboardGroupingRule" />
158
+        </RuleState>
159
+      </list>
160
+    </option>
161
+  </component>
162
+  <component name="RunManager">
163
+    <configuration default="true" type="Application" factoryName="Application">
164
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
165
+    </configuration>
166
+    <configuration default="true" type="JUnit" factoryName="JUnit">
167
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
168
+      <option name="ALTERNATIVE_JRE_PATH" />
169
+      <option name="PACKAGE_NAME" />
170
+      <option name="MAIN_CLASS_NAME" />
171
+      <option name="METHOD_NAME" />
172
+      <option name="TEST_OBJECT" value="class" />
173
+      <option name="VM_PARAMETERS" value="-ea" />
174
+      <option name="PARAMETERS" />
175
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
176
+      <option name="PASS_PARENT_ENVS" value="true" />
177
+      <option name="TEST_SEARCH_SCOPE">
178
+        <value defaultName="singleModule" />
179
+      </option>
180
+      <patterns />
181
+    </configuration>
182
+    <configuration default="true" type="TestNG" factoryName="TestNG">
183
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
184
+      <option name="ALTERNATIVE_JRE_PATH" />
185
+      <option name="SUITE_NAME" />
186
+      <option name="PACKAGE_NAME" />
187
+      <option name="MAIN_CLASS_NAME" />
188
+      <option name="METHOD_NAME" />
189
+      <option name="GROUP_NAME" />
190
+      <option name="TEST_OBJECT" value="CLASS" />
191
+      <option name="VM_PARAMETERS" value="-ea" />
192
+      <option name="PARAMETERS" />
193
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
194
+      <option name="OUTPUT_DIRECTORY" />
195
+      <option name="PASS_PARENT_ENVS" value="true" />
196
+      <option name="TEST_SEARCH_SCOPE">
197
+        <value defaultName="singleModule" />
198
+      </option>
199
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
200
+      <option name="PROPERTIES_FILE" />
201
+      <properties />
202
+      <listeners />
203
+    </configuration>
204
+  </component>
205
+  <component name="SvnConfiguration">
206
+    <configuration />
207
+  </component>
208
+  <component name="TaskManager">
209
+    <task active="true" id="Default" summary="Default task">
210
+      <changelist id="0142cf83-c97a-4389-9211-4113dcc9aea5" name="Default" comment="" />
211
+      <created>1532706486704</created>
212
+      <option name="number" value="Default" />
213
+      <option name="presentableId" value="Default" />
214
+      <updated>1532706486704</updated>
215
+    </task>
216
+    <servers />
217
+  </component>
218
+  <component name="ToolWindowManager">
219
+    <frame x="0" y="22" width="1020" height="691" extended-state="0" />
220
+    <layout>
221
+      <window_info anchor="right" id="Palette" order="3" />
222
+      <window_info anchor="bottom" id="TODO" order="6" />
223
+      <window_info anchor="right" id="Palette&#9;" order="3" />
224
+      <window_info id="Image Layers" order="2" />
225
+      <window_info anchor="right" id="Capture Analysis" order="3" />
226
+      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
227
+      <window_info anchor="right" id="Maven Projects" order="3" />
228
+      <window_info anchor="bottom" id="Run" order="2" />
229
+      <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
230
+      <window_info active="true" anchor="bottom" id="Terminal" order="7" visible="true" weight="0.2996633" />
231
+      <window_info id="Capture Tool" order="2" />
232
+      <window_info id="Designer" order="2" />
233
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.3210634" />
234
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
235
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
236
+      <window_info id="UI Designer" order="2" />
237
+      <window_info anchor="right" id="Theme Preview" order="3" />
238
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
239
+      <window_info id="Favorites" order="2" side_tool="true" />
240
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
241
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
242
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
243
+      <window_info anchor="bottom" id="Message" order="0" />
244
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
245
+      <window_info anchor="bottom" id="Find" order="1" />
246
+    </layout>
247
+  </component>
248
+  <component name="VcsContentAnnotationSettings">
249
+    <option name="myLimit" value="2678400000" />
250
+  </component>
251
+  <component name="editorHistoryManager">
252
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Miner.java">
253
+      <provider selected="true" editor-type-id="text-editor">
254
+        <state relative-caret-position="345">
255
+          <caret line="23" column="16" selection-start-line="23" selection-start-column="16" selection-end-line="23" selection-end-column="16" />
256
+        </state>
257
+      </provider>
258
+    </entry>
259
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/BlockRepository.java">
260
+      <provider selected="true" editor-type-id="text-editor">
261
+        <state relative-caret-position="60">
262
+          <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
263
+        </state>
264
+      </provider>
265
+    </entry>
266
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
267
+      <provider selected="true" editor-type-id="text-editor">
268
+        <state relative-caret-position="75">
269
+          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
270
+        </state>
271
+      </provider>
272
+    </entry>
273
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/config/BlockLoader.java">
274
+      <provider selected="true" editor-type-id="text-editor">
275
+        <state relative-caret-position="465">
276
+          <caret line="36" lean-forward="true" selection-start-line="36" selection-end-line="36" />
277
+          <folding>
278
+            <element signature="imports" expanded="true" />
279
+          </folding>
280
+        </state>
281
+      </provider>
282
+    </entry>
283
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Miner.java">
284
+      <provider selected="true" editor-type-id="text-editor">
285
+        <state relative-caret-position="345">
286
+          <caret line="23" column="16" selection-start-line="23" selection-start-column="16" selection-end-line="23" selection-end-column="16" />
287
+        </state>
288
+      </provider>
289
+    </entry>
290
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
291
+      <provider selected="true" editor-type-id="text-editor">
292
+        <state relative-caret-position="75">
293
+          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
294
+        </state>
295
+      </provider>
296
+    </entry>
297
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/BlockRepository.java">
298
+      <provider selected="true" editor-type-id="text-editor">
299
+        <state relative-caret-position="60">
300
+          <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
301
+        </state>
302
+      </provider>
303
+    </entry>
304
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/config/BlockLoader.java">
305
+      <provider selected="true" editor-type-id="text-editor">
306
+        <state relative-caret-position="-57">
307
+          <caret line="10" column="17" selection-start-line="10" selection-start-column="17" selection-end-line="10" selection-end-column="17" />
308
+          <folding>
309
+            <element signature="imports" expanded="true" />
310
+          </folding>
311
+        </state>
312
+      </provider>
313
+    </entry>
314
+  </component>
315
+</project>

+ 0
- 2
ZipCoinRedJavaServer/pom.xml View File

57
     </dependencies>
57
     </dependencies>
58
 
58
 
59
 
59
 
60
-
61
-
62
 </project>
60
 </project>

+ 24
- 0
ZipCoinRedJavaServer/src/main/java/com/zipcoin/ZipCoinApp.java View File

11
     }
11
     }
12
 
12
 
13
 }
13
 }
14
+
15
+
16
+
17
+/*
18
+*
19
+*
20
+*
21
+* figure out how to send serialized coins
22
+* tabbed interface
23
+* :payment,wallet, transaction
24
+* :blocks - show all blocks on chain
25
+* LocalDate for transactions, /wallet/getID
26
+* coin ONLY, coin objects, hashcoded. talk to yauheni about this.
27
+* List<Coin> of coins
28
+*
29
+*
30
+*
31
+* springboot run on hiroku ************
32
+*
33
+*
34
+*
35
+* @return coin with serialized number
36
+*
37
+* */

+ 40
- 1
ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/TransactionLoader.java View File

1
 package com.zipcoin.config;
1
 package com.zipcoin.config;
2
 
2
 
3
-public class TransactionLoader {
3
+import com.zipcoin.model.Transaction;
4
+import com.zipcoin.repository.TransactionRepository;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.boot.ApplicationArguments;
7
+import org.springframework.boot.ApplicationRunner;
8
+import org.springframework.stereotype.Component;
9
+
10
+@Component
11
+public class TransactionLoader implements ApplicationRunner {
12
+
13
+  private TransactionRepository repo;
14
+
15
+  @Autowired
16
+  public TransactionLoader(TransactionRepository repo){
17
+      this.repo = repo;
18
+  }
19
+
20
+
21
+    @Override
22
+    public void run(ApplicationArguments applicationArguments){
23
+
24
+        Transaction[] transactions = new Transaction[]{
25
+
26
+                new Transaction("shivam", "khalil", 10),
27
+                new Transaction("eric", "shivam", 100),
28
+                new Transaction("khalil", "eric", (float)30.22),
29
+                new Transaction("aleena", "navya", (float)43.32),
30
+                new Transaction("shivam", "ken", 1)
31
+        };
32
+
33
+
34
+
35
+
36
+        for(Transaction t : transactions){
37
+            this.repo.save(t);
38
+        }
39
+
40
+
41
+
42
+    }
4
 }
43
 }

+ 31
- 13
ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java View File

1
 package com.zipcoin.model;
1
 package com.zipcoin.model;
2
 
2
 
3
-import com.zipcoin.utilities.StringUtil;
4
 import org.apache.commons.codec.digest.DigestUtils;
3
 import org.apache.commons.codec.digest.DigestUtils;
5
 
4
 
6
 import javax.persistence.*;
5
 import javax.persistence.*;
7
 
6
 
8
-import java.security.*;
9
-import java.util.List;
10
 
7
 
11
 @Entity
8
 @Entity
12
 public class Transaction {
9
 public class Transaction {
13
     @Id
10
     @Id
14
     @GeneratedValue(strategy = GenerationType.AUTO)
11
     @GeneratedValue(strategy = GenerationType.AUTO)
12
+<<<<<<< HEAD
13
+    private Long transactionId;
14
+
15
+    private String sender;
16
+    private String reciepient;
17
+=======
15
     private String transactionId;
18
     private String transactionId;
16
     private PublicKey sender;
19
     private PublicKey sender;
17
-    private PublicKey reciepient;
20
+    private PublicKey recipient;
21
+>>>>>>> posttransaction
18
     private float amount;
22
     private float amount;
19
 
23
 
20
     //@OneToMany
24
     //@OneToMany
28
 
32
 
29
     }
33
     }
30
 
34
 
31
-    public Transaction(PublicKey from, PublicKey to, float amount/*List<Integer> coins*/) {
35
+    public Transaction(String from, String to, float amount/*List<Integer> coins*/) {
32
         this.sender = from;
36
         this.sender = from;
33
-        this.reciepient = to;
37
+        this.recipient = to;
34
         this.amount = amount;
38
         this.amount = amount;
35
         //this.coins=coins;
39
         //this.coins=coins;
36
 
40
 
37
     }
41
     }
38
 
42
 
39
-    public String getTransactionId() {
43
+    public Long getTransactionId() {
40
         return transactionId;
44
         return transactionId;
41
     }
45
     }
42
 
46
 
43
-    public void setTransactionId(String transactionId) {
47
+    public void setTransactionId(Long transactionId) {
44
         this.transactionId = transactionId;
48
         this.transactionId = transactionId;
45
     }
49
     }
46
 
50
 
47
-    public PublicKey getSender() {
51
+    public String getSender() {
48
         return sender;
52
         return sender;
49
     }
53
     }
50
 
54
 
51
-    public void setSender(PublicKey sender) {
55
+    public void setSender(String sender) {
52
         this.sender = sender;
56
         this.sender = sender;
53
     }
57
     }
54
 
58
 
55
-    public PublicKey getReciepient() {
59
+<<<<<<< HEAD
60
+    public String getReciepient() {
56
         return reciepient;
61
         return reciepient;
57
     }
62
     }
58
 
63
 
59
-    public void setReciepient(PublicKey reciepient) {
64
+    public void setReciepient(String reciepient) {
60
         this.reciepient = reciepient;
65
         this.reciepient = reciepient;
66
+=======
67
+    public PublicKey getReciepient() {
68
+        return recipient;
69
+    }
70
+
71
+    public void setReciepient(PublicKey reciepient) {
72
+        this.recipient = reciepient;
73
+>>>>>>> posttransaction
61
     }
74
     }
62
 
75
 
63
     public float getAmount() { return amount; }
76
     public float getAmount() { return amount; }
71
     private String calulateHash() {
84
     private String calulateHash() {
72
 
85
 
73
         return DigestUtils.sha256Hex(
86
         return DigestUtils.sha256Hex(
87
+<<<<<<< HEAD
88
+                sender +
89
+                        (reciepient) +
90
+=======
74
                 StringUtil.getStringFromKey(sender) +
91
                 StringUtil.getStringFromKey(sender) +
75
-                        StringUtil.getStringFromKey(reciepient) +
92
+                        StringUtil.getStringFromKey(recipient) +
93
+>>>>>>> posttransaction
76
                         Float.toString(amount)
94
                         Float.toString(amount)
77
         );
95
         );
78
     }
96
     }

+ 1
- 0
ZipCoinRedJavaServer/src/main/resources/application.properties View File

1
+
1
 spring.jpa.hibernate.ddl-auto=create-drop
2
 spring.jpa.hibernate.ddl-auto=create-drop
2
 spring.datasource.url=jdbc:mysql://localhost:3306/zipcoin?useSSL=false
3
 spring.datasource.url=jdbc:mysql://localhost:3306/zipcoin?useSSL=false
3
 spring.datasource.username=root
4
 spring.datasource.username=root

+ 2
- 1
ZipCoinRedJavaServer/target/classes/application.properties View File

1
+
1
 spring.jpa.hibernate.ddl-auto=create-drop
2
 spring.jpa.hibernate.ddl-auto=create-drop
2
 spring.datasource.url=jdbc:mysql://localhost:3306/zipcoin?useSSL=false
3
 spring.datasource.url=jdbc:mysql://localhost:3306/zipcoin?useSSL=false
3
-spring.datasource.username=root
4
+spring.datasource.username=root

BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/ZipCoinApp.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/config/BlockLoader.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/config/TransactionLoader.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/config/WalletLoader.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/BlockController.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/HomeController.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/TransactionController.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/WalletController.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Block.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Chain.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Transaction.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Wallet.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/BlockRepository.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/TransactionRepository.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/WalletRepository.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/Miner.class View File


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/StringUtil.class View File


+ 16
- 0
ZipCoinRedJavaServer/target/classes/db/migration/V2__create_block.sql View File

1
+<<<<<<< HEAD
2
+CREATE TABLE BLOCK(
3
+	ID INT AUTO_INCREMENT,
4
+	BLOCK_NUMBER INT,
5
+	PREVIOUS_HASH VARCHAR(255),
6
+	NONCE INT,
7
+	CURRENT_HASH VARCHAR(255),
8
+	TRANSACTION_LIST VARCHAR(2000)
9
+);
10
+
11
+CREATE TABLE WALLET(
12
+  ID INT AUTO_INCREMENT,
13
+);
14
+=======
1
 -- CREATE TABLE BLOCK(
15
 -- CREATE TABLE BLOCK(
2
 -- 	ID INT AUTO_INCREMENT,
16
 -- 	ID INT AUTO_INCREMENT,
3
 -- 	BLOCK_NUMBER INT,
17
 -- 	BLOCK_NUMBER INT,
12
 --  NAME VARCHAR (50),
26
 --  NAME VARCHAR (50),
13
 --  PUBLICKEY VARCHAR (200),
27
 --  PUBLICKEY VARCHAR (200),
14
 --  AMOUNT INT
28
 --  AMOUNT INT
29
+-- );
30
+>>>>>>> dev

+ 51
- 0
src/main/java/redCoin/Main.java View File

1
+package redCoin;
2
+
3
+import org.apache.commons.codec.digest.DigestUtils;
4
+
5
+public class Main {
6
+
7
+
8
+    public static void main(String[] args) {
9
+
10
+        Main test = new Main();
11
+        Thread t1 = new Thread();
12
+        Thread t2 = new Thread();
13
+
14
+        //System.out.println(test.hash("i"));
15
+        t1.start();
16
+        t2.start();
17
+        System.out.println(test.mine("109875890","shivameindslnadgckgvkvskJNf","ken -> shiv9999999999 3030"));
18
+
19
+    }
20
+
21
+    private Integer nonce = 0;
22
+
23
+
24
+    public String hash(String stringToHash) {
25
+        String hashedString = DigestUtils.sha256Hex(stringToHash);
26
+
27
+        return hashedString;
28
+    }
29
+
30
+    public Integer mine(String block, String previousHash, String data){
31
+        boolean hashCodeCheck = false;
32
+
33
+
34
+        while(hashCodeCheck == false){
35
+            String newHash = hash(block + previousHash + data + nonce.toString());
36
+            System.out.println(newHash);
37
+            if(newHash.startsWith("000012f")){
38
+
39
+                hashCodeCheck = true;
40
+            } else{
41
+
42
+                nonce++;
43
+
44
+            }
45
+        }
46
+        System.out.println(nonce);
47
+        return nonce;
48
+    }
49
+
50
+
51
+}

+ 34
- 0
src/test/java/redCoin/testMain.java View File

1
+package redCoin;
2
+
3
+import org.apache.commons.codec.digest.DigestUtils;
4
+import org.junit.Test;
5
+import static org.junit.Assert.assertEquals;
6
+
7
+
8
+public class testMain {
9
+
10
+    @Test
11
+    public void hash(){
12
+        Main main = new Main();
13
+        String stringToHash = "this is a test hash";
14
+        String expected = DigestUtils.sha256Hex(stringToHash);
15
+
16
+        String actual = main.hash(stringToHash);
17
+        assertEquals(expected,actual);
18
+    }
19
+
20
+    @Test
21
+    public void testMineBoolean(){
22
+        Main main = new Main();
23
+        String previousHash = "hash1";
24
+        String block = "block1";
25
+        String dataToCrypt = "shivam -> eric 200, eric -> khalil 203";
26
+
27
+        String toHash = main.hash(previousHash+block+dataToCrypt);
28
+
29
+
30
+    }
31
+
32
+
33
+
34
+}

BIN
target/test-classes/redCoin/testMain.class View File